[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] how to get a scsi tape device to work with xen 3.3.1


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Sabuj Pattanayek <sabujp@xxxxxxxxx>
  • Date: Wed, 11 Feb 2009 12:18:28 -0600
  • Delivery-date: Wed, 11 Feb 2009 10:19:09 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=YGBHPYTC8fWFB4VciZknFXhYmit3imY2CK44XTy6223BB6Lca4Ptx/sgk2gnS23PN1 E0Ou2T7uS5y5cePsbttAW/rq/xon1T8XDT32lPIC6t0n4WRhL6y3a9kqBZpnVD9ZOLpZ Ngt/t56UMHYdCXEAukRQmKs2saRR6Yl3cx+Ug=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,

I'm using Centos 5.2 i386 and have installed xen 3.3.1 from the
repository mentioned here:

http://grantmcwilliams.com/index.php?option=com_content&view=article&id=229:install-xen-33-on-centos-5-the-easy-way&catid=97:xen-howtos&Itemid=465

I'm trying to get tape devices on the dom0 (virt4) to work on the domU
(seabass):

####

[root@virt4 ~]# rpm -qa | grep xen
xen-libs-3.3.1-0
kernel-xen-2.6.18-92.1.22.el5
xen-3.3.1-0

[root@virt4 ~]# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  1507     4     r-----    189.9
seabass                                      2   512     2     -b----     27.4

[root@virt4 ~]# lsscsi
[0:0:3:0]    tape    IBM      ULTRIUM-TD3      57F7  /dev/st0
[0:0:4:0]    tape    HP       C1537A           HP02  /dev/st1

[root@virt4 ~]# xm scsi-attach seabass 0:0:3:0 0:0:3:0
[root@virt4 ~]# xm scsi-list seabass
Idx BE  state  phy-hctl   phy   vir-hctl   devstate
0   0   1      0:0:3:0    st0   0:0:3:0    None

[root@seabass ~]# modprobe st

dmesg:

SCSI subsystem initialized
st: Version 20050830, fixed bufsize 32768, s/g segs 256

[root@seabass ~]# ls -l /dev/nst0
ls: /dev/nst0: No such file or directory
[root@seabass ~]# ls -l /dev/st0
ls: /dev/st0: No such file or directory
[root@seabass ~]# lsscsi
[root@seabass ~]# cat /proc/scsi/scsi

[root@virt4 ~]# xm scsi-detach seabass 0:0:3:0
Error: Driver status is not connected
Usage: xm scsi-detach <Domain> <VirtDevice>

####

Ok so maybe I need to try to get the PCI scsi card attached to the domU first?

####

[root@virt4 ~]# lspci | grep -i scsi
01:01.0 SCSI storage controller: Adaptec AIC-7892A U160/m (rev 02)

[root@virt4 ~]# xm pci-attach seabass 01:01.0
Error: Device 0 not connected
Usage: xm pci-attach <Domain> <domain:bus:slot.func> [virtual slot]

Insert a new pass-through pci device.

>From /var/log/xen/xend.log:

[2009-02-11 12:11:24 5643] DEBUG (XendDomainInfo:688)
XendDomainInfo.pci_device_configure: ['pci', ['dev', ['domain',
'0x0'], ['bus', '0x01'], ['slot', '0x01'], ['func', '0x0'], ['vslt',
'0x0']], ['state', 'Initialising']]

[root@virt4 ~]# xm pci-list seabass
VSlt domain   bus   slot   func
0x0    0x0  0x01   0x01    0x0

[root@seabass ~]# lspci

Any ideas on how to get this to work?

Thanks,
Sabuj Pattanayek

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.