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

[Xen-bugs] [Bug 1356] New: virtualized fibrechannell tape and media changer works only partially



http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1356

           Summary: virtualized fibrechannell tape and media changer works
                    only partially
           Product: Xen
           Version: unstable
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Hypervisor
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: nice@xxxxxxxxxxxxxxx


Hyptervisor: 64 bit
dom0: 32 bit (PAE) openSUSE 10.3 with Xen-3.3.0 and linux-2.6.18 from xen.org
dom0: 32 bit (PAE) openSUSE 10.3 with linux-2.6.18 from xen.org

The tape and changer (the latter handled by the "st" driver and "mover" utiliy)
seem to work in the dom0, but onyl partially(!) in domU:

#############################################################
#############################################################
##################### domU config:

name="u-96"
uuid="7b77d277-e99a-e25b-3652-61e936f78aaa"
memory=512
vcpus=1
on_poweroff="destroy"
on_reboot="restart"
on_crash="destroy"
on_xend_start = "ignore"
on_xend_stop = "shutdown"
localtime=0
keymap="en-us"
builder="linux"
kernel="/boot/vmlinux-2.6.18.8-xen_330"
ramdisk="/boot/initrd-2.6.18.8-xen_330-domU"
root="/dev/xvda2"
extra="console=tty1"
disk=[ 'phy:/dev/mapper/u-96,xvda,w','phy:/dev/mapper/u-96-home,xvdb,w' ]
vif=[ 'mac=00:16:3e:0b:e9:49,bridge=eth0','mac=00:16:3e:0b:ea:49,bridge=vlan1'
]
vscsi=[ '1:0:2:0, 0:0:0:0','1:0:2:1, 0:0:0:1','3:0:2:0, 0:0:1:0' ]
vfb=['type=vnc,vncdisplay=10']

#############################################################
#############################################################
##################### dom0 SCSI behaviour:

u-96:~ # modprobe st
u-96:~ # dmesg
st: Version 20050830, fixed bufsize 32768, s/g segs 256
st 1:0:2:0: Attached scsi tape st0
st0: try direct i/o: yes (alignment 512 B)
st 3:0:2:0: Attached scsi tape st1
st1: try direct i/o: yes (alignment 512 B)
st0: Block limits 1 - 16777215 bytes.


u-96:~ # modprobe ch debug=1
u-96:~ # dmesg
SCSI Media Changer driver v0.25 
ch0: command: <6>Mode Sense(6) 1a 20 1d 00 ff 00
ch0: result: 0x0
ch0: type #1 (mt): 0x0+1 [medium transport]
ch0: type #2 (st): 0x3e9+48 [storage]
ch0: type #3 (ie): 0x0+0 [import/export]
ch0: type #4 (dt): 0x1+2 [data transfer]
ch0: command: <6>Read element status b8 24 00 01 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: dt 0x1: ID/LUN unknown
ch0: command: <6>Read element status b8 24 00 02 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: dt 0x2: ID/LUN unknown
ch0: INITIALIZE ELEMENT STATUS, may take some time ...
ch0: command: <6>Reasssign Blocks 07 20 00 00 00 00
ch0: result: 0x0
ch0: ... finished
ch 1:0:2:1: Attached scsi changer ch0


carrier3:~ # mover
/dev/sch0: mt=1 st=48 ie=0 dt=2
medium transport
   0: 
storage
   0: access 
   1: access 
   2: access full       tag: '000003L4                        '
   3: access full       tag: '000004L4                        '
   4: access full       tag: '000005L4                        '
   5: access full       tag: '000021L4                        '
   6: access full       tag: '000007L4                        '
   7: access full       tag: '000008L4                        '
   8: access 
   9: access full       tag: '000026L4                        '
  10: access full       tag: '000011L4                        '
  11: access full       tag: '000012L4                        '
  12: access full       tag: '000013L4                        '
  13: access full       tag: '000014L4                        '
  14: access full       tag: '000015L4                        '
  15: access full       tag: '000016L4                        '
  16: access full       tag: '000017L4                        '
  17: access full       tag: '000018L4                        '
  18: access full       tag: '000019L4                        '
  19: access full       tag: '000006L4                        '
  20: access 
  21: access full       tag: '000022L4                        '
  22: access full       tag: '000023L4                        '
  23: access full       tag: '000024L4                        '
  24: access full       tag: '000010L4                        '
  25: access 
  26: access full       tag: '000027L4                        '
  27: access full       tag: '000028L4                        '
  28: access full       tag: '000029L4                        '
  29: access full       tag: '000030L4                        '
  30: access full       tag: '000031L4                        '
  31: access full       tag: '000032L4                        '
  32: access full       tag: '000033L4                        '
  33: access full       tag: '000034L4                        '
  34: access full       tag: '000035L4                        '
  35: access full       tag: '000036L4                        '
  36: access full       tag: '000037L4                        '
  37: access full       tag: '000038L4                        '
  38: access full       tag: '000039L4                        '
  39: access 
  40: access 
  41: access 
  42: access 
  43: access full       tag: '000040L4                        '
  44: access full       tag: '000025L4                        '
  45: access full       tag: '000020L4                        '
  46: access full       tag: '000009L4                        '
  47: access full       tag: '000002L4                        '
import/export
data transfer
   0: access full       tag: '000001L4                        '
   1: access 
carrier3:~ # dmesg
ch0: command: <6>Read element status b8 31 00 00 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 31 00 00 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 31 00 00 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 e9 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 e9 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ea 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ea 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 eb 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 eb 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ec 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ec 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ed 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ed 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ee 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ee 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ef 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ef 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f0 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f0 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f1 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f1 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f2 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f2 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f3 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f3 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f4 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f4 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f5 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f5 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f6 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f6 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f7 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f7 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f8 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f8 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f9 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f9 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fa 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fa 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fb 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fb 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fc 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fc 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fd 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fd 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fe 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fe 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ff 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ff 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 00 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 00 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 01 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 01 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 02 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 02 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 03 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 03 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 04 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 04 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 05 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 05 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 06 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 06 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 07 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 07 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 08 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 08 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 09 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 09 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0a 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0a 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0b 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0b 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0c 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0c 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0d 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0d 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0e 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0e 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0f 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0f 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 10 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 10 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 11 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 11 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 12 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 12 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 13 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 13 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 14 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 14 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 15 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 15 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 16 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 16 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 17 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 17 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 18 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 18 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 e9 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ea 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 eb 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ec 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ed 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ee 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ef 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f0 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f1 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f2 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f3 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f4 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f5 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f6 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f7 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f8 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 f9 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fa 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fb 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fc 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fd 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 fe 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 03 ff 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 00 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 01 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 02 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 03 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 04 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 05 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 06 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 07 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 08 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 09 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0a 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0b 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0c 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0d 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0e 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 0f 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 10 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 11 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 12 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 13 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 14 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 15 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 16 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 17 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 32 04 18 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 34 00 01 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 34 00 01 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 34 00 02 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 34 00 02 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 34 00 01 00 01 00 00 00 ff 00 00
ch0: result: 0x0
ch0: command: <6>Read element status b8 34 00 02 00 01 00 00 00 ff 00 00
ch0: result: 0x0


carrier3:~ # mt --file=/dev/nst0 status
drive type = Generic SCSI-2 tape
drive status = 1174405120
sense key error = 0
residue count = 0
file number = -1
block number = -1
Tape block size 0 bytes. Density code 0x46 (unknown).
Soft error count since last status=0
General status bits on (1010000):
 ONLINE IM_REP_EN


carrier3:~ # mt --file=/dev/nst0 rewind


carrier3:~ # dd of=/dev/nst0 bs=262144 count=100 conv=sync if=/dev/zero
100+0 records in
100+0 records out
26214400 bytes (26 MB) copied, 2.73592 s, 9.6 MB/s

#############################################################
#############################################################
##################### domU SCSI behaviour:

u-96:~ # modprobe st
u-96:~ # dmesg
st: Version 20050830, fixed bufsize 32768, s/g segs 256
st 0:0:1:0: Attached scsi tape st0
st0: try direct i/o: yes (alignment 512 B)
st 0:0:0:0: Attached scsi tape st1
st1: try direct i/o: yes (alignment 512 B)
st1: Block limits 1 - 16777215 bytes.


u-96:~ # modprobe ch debug=1
u-96:~ # dmesg
SCSI Media Changer driver v0.25 
ch0: command: <6>Mode Sense(6) 1a 20 1d 00 ff 00
ch0: result: 0x0
ch0: type #1 (mt): 0x0+1 [medium transport]
ch0: type #2 (st): 0x3e9+48 [storage]
ch0: type #3 (ie): 0x0+0 [import/export]
ch0: type #4 (dt): 0x1+2 [data transfer]
ch0: command: <6>Read element status b8 24 00 01 00 01 00 00 00 ff 00 00
ch0: result: 0x8000002
ch0: Current: sense key: Illegal Request
    Additional sense: Invalid command operation code
ch0: READ ELEMENT STATUS for element 0x1 failed
ch0: dt 0x1: READ ELEMENT STATUS failed
ch0: command: <6>Read element status b8 24 00 02 00 01 00 00 00 ff 00 00
ch0: result: 0x8000002
ch0: Current: sense key: Illegal Request
    Additional sense: Invalid command operation code
ch0: READ ELEMENT STATUS for element 0x2 failed
ch0: dt 0x2: READ ELEMENT STATUS failed
ch0: INITIALIZE ELEMENT STATUS, may take some time ...
ch0: command: <6>Reasssign Blocks 07 20 00 00 00 00
ch0: result: 0x8000002
ch0: Current: sense key: Illegal Request
    Additional sense: Invalid command operation code
ch0: ... finished
ch 0:0:0:1: Attached scsi changer ch0


u-96:~ # mover
/dev/sch0: mt=1 st=48 ie=0 dt=2
medium transport
ioctl failed (GSTATUS): Input/output error
u-96:~ # dmesg
ch0: command: <6>Read element status b8 31 00 00 00 01 00 00 00 ff 00 00
ch0: result: 0x8000002
ch0: Current: sense key: Illegal Request
    Additional sense: Invalid command operation code
ch0: device has no volume tag support
ch0: command: <6>Read element status b8 21 00 00 00 01 00 00 00 ff 00 00
ch0: result: 0x8000002
ch0: Current: sense key: Illegal Request
    Additional sense: Invalid command operation code
ch0: READ ELEMENT STATUS for element 0x0 failed


u-96:~ # mt --file=/dev/nst1 status
drive type = Generic SCSI-2 tape
drive status = 1174405120
sense key error = 0
residue count = 0
file number = 0
block number = 0
Tape block size 0 bytes. Density code 0x46 (unknown).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN


u-96:~ # mt --file=/dev/nst1 rewind


u-96:~ # dd of=/dev/nst1 bs=262144 count=100 conv=sync if=/dev/zero
dd: writing `/dev/nst1': Device or resource busy
1+0 records in
0+0 records out
0 bytes (0 B) copied, 2.62983 s, 0.0 kB/s


u-96:~ # dd of=/dev/nst1 bs=512 count=100 conv=sync if=/dev/zero
100+0 records in
100+0 records out
51200 bytes (51 kB) copied, 1.56228 s, 32.8 kB/s


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


 


Rackspace

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