dnLL

Removable SCSI drives issues

3 posts in this topic Last Reply

Recommended Posts

Posted (edited)

I have the last version of unRAID and after a fresh boot, sdb, sdc and sde shows as Virtual Floppy or virtual disks.

 

image.png.ff404d75ec1e574591af7e708d5aec3e.png

 

I think it's related to some virtual USB devices:

root@server:~# lsusb
Bus 002 Device 002: ID 13fe:5500 Kingston Technology Company Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 001 Device 006: ID 046b:ff31 American Megatrends, Inc.
Bus 001 Device 005: ID 046b:ff40 American Megatrends, Inc.
Bus 001 Device 004: ID 046b:ff20 American Megatrends, Inc.
Bus 001 Device 003: ID 046b:ff01 American Megatrends, Inc.
Bus 001 Device 002: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I have no idea why there are so many American Megatrends peripherals here. I do have multiple VMs but they're not even loaded yet at that point (it's before the array is started). I'm not a Linux expert yet, where should I look to see what exactly is assigning these sdb/sdc/sdd virtual drives? I can see them in my syslog but nothing really special about them...


   621  Jun 11 09:54:43 server kernel: usb 1-8.1: new high-speed USB device number 4 using xhci_hcd
   622  Jun 11 09:54:43 server kernel: usb-storage 1-8.1:1.0: USB Mass Storage device detected
   623  Jun 11 09:54:43 server kernel: scsi 0:0:0:0: Direct-Access     UFD 3.0  Silicon-Power32G PMAP PQ: 0 ANSI: 6
   624  Jun 11 09:54:43 server kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
   625  Jun 11 09:54:43 server kernel: sd 0:0:0:0: [sda] 60566016 512-byte logical blocks: (31.0 GB/28.9 GiB)
   626  Jun 11 09:54:43 server kernel: sd 0:0:0:0: [sda] Write Protect is off
   627  Jun 11 09:54:43 server kernel: sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
   628  Jun 11 09:54:43 server kernel: sd 0:0:0:0: [sda] No Caching mode page found
   629  Jun 11 09:54:43 server kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
   630  Jun 11 09:54:43 server kernel: scsi host1: usb-storage 1-8.1:1.0
   631  Jun 11 09:54:43 server kernel: sda: sda1
   632  Jun 11 09:54:43 server kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
   633  Jun 11 09:54:43 server kernel: usb 1-8.2: new high-speed USB device number 5 using xhci_hcd
   634  Jun 11 09:54:43 server kernel: usb-storage 1-8.2:1.0: USB Mass Storage device detected
   635  Jun 11 09:54:43 server kernel: usb-storage 1-8.2:1.0: Quirks match for vid 046b pid ff40: 200
   636  Jun 11 09:54:43 server kernel: scsi host2: usb-storage 1-8.2:1.0
   637  Jun 11 09:54:43 server kernel: usb 1-8.3: new high-speed USB device number 6 using xhci_hcd
   638  Jun 11 09:54:43 server kernel: usb-storage 1-8.3:1.0: USB Mass Storage device detected
   639  Jun 11 09:54:43 server kernel: scsi host3: usb-storage 1-8.3:1.0
   640  Jun 11 09:54:43 server kernel: usb 1-8.4: new low-speed USB device number 7 using xhci_hcd
   641  Jun 11 09:54:43 server kernel: input: American Megatrends Inc. Virtual Keyboard and Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8.4/1-8.4:1.0/0003:046B:FF10.0002/input/input1
   642  Jun 11 09:54:43 server kernel: hid-generic 0003:046B:FF10.0002: input,hidraw1: USB HID v1.10 Keyboard [American Megatrends Inc. Virtual Keyboard and Mouse] on usb-0000:00:14.0-8.4/input0
   643  Jun 11 09:54:43 server kernel: input: American Megatrends Inc. Virtual Keyboard and Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8.4/1-8.4:1.1/0003:046B:FF10.0003/input/input2
   644  Jun 11 09:54:43 server kernel: hid-generic 0003:046B:FF10.0003: input,hidraw2: USB HID v1.10 Mouse [American Megatrends Inc. Virtual Keyboard and Mouse] on usb-0000:00:14.0-8.4/input1
   645  Jun 11 09:54:43 server kernel: scsi 1:0:0:0: CD-ROM            AMI      Virtual CDROM0   1.00 PQ: 0 ANSI: 0 CCS
   646  Jun 11 09:54:43 server kernel: sr 1:0:0:0: [sr0] scsi-1 drive
   647  Jun 11 09:54:43 server kernel: cdrom: Uniform CD-ROM driver Revision: 3.20
   648  Jun 11 09:54:43 server kernel: sr 1:0:0:0: Attached scsi CD-ROM sr0
   649  Jun 11 09:54:43 server kernel: sr 1:0:0:0: Attached scsi generic sg1 type 5
   650  Jun 11 09:54:43 server kernel: scsi 2:0:0:0: Direct-Access     AMI      Virtual Floppy0  1.00 PQ: 0 ANSI: 0 CCS
   651  Jun 11 09:54:43 server kernel: sd 2:0:0:0: Attached scsi generic sg2 type 0
   652  Jun 11 09:54:43 server kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
   653  Jun 11 09:54:43 server kernel: scsi 3:0:0:0: Direct-Access     AMI      Virtual HDisk0   1.00 PQ: 0 ANSI: 0 CCS
   654  Jun 11 09:54:43 server kernel: sd 3:0:0:0: Attached scsi generic sg3 type 0
   655  Jun 11 09:54:43 server kernel: sd 3:0:0:0: [sdc] Attached SCSI removable disk
   656  Jun 11 09:54:43 server kernel: scsi 3:0:0:1: Direct-Access     AMI      Virtual HDisk1   1.00 PQ: 0 ANSI: 0 CCS
   657  Jun 11 09:54:43 server kernel: sd 3:0:0:1: Attached scsi generic sg4 type 0
   658  Jun 11 09:54:43 server kernel: sd 3:0:0:1: [sdd] Attached SCSI removable disk
   659  Jun 11 09:54:43 server kernel: floppy0: no floppy controllers found

It doesn't say from which VM configuration it comes from (if any). I have a grand total of 5 cables hooked up to my server: 3 ethernet cables, the power cable and the UPS (usb). I also have an internal USB port with the flash drive containing the unRAID image (I assume it's the USB Mass Storage device above).

 

I'm kinda stuck. It doesn't have any direct impact but I do hate having my first drive as sde instead of sdb.

 

Also, this is always unchecked for all my VMs:

 

image.png.a858c97637aefbf83b2045d29154df1d.png

 

Additional data: All my VMs are Linux except one running Windows Server 2008. Looking at the XML I'm thinking it could be the problematic VM.

 

<domain type='kvm'>
  <name>windows</name>
  <uuid>5b570616-cc93-e0b0-8493-161c08da6cc2</uuid>
  <description>Windows</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 7" icon="windows.png" os="windows7"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>2</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='1'/>
    <vcpupin vcpu='1' cpuset='5'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.11'>hvm</type>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vendor_id state='on' value='none'/>
    </hyperv>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='1' threads='2'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='hypervclock' present='yes'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/windows/vdisk1.img'/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/windows/vdisk2.img'/>
      <target dev='hdd' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:89:f4:ba'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='unix'>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='fr-ca'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </memballoon>
  </devices>
</domain>

 

Edited by dnLL

Share this post


Link to post
Posted (edited)

Not sure if that helps...

 

root@server:~# ls -l /dev/disk/by-id/*
...
lrwxrwxrwx 1 root root  9 Jun 11 13:19 /dev/disk/by-id/usb-AMI_Virtual_CDROM0_AAAABBBBCCCC1-0:0 -> ../../sr0
lrwxrwxrwx 1 root root  9 Jun 11 13:19 /dev/disk/by-id/usb-AMI_Virtual_Floppy0_AAAABBBBCCCC2-0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 Jun 11 13:19 /dev/disk/by-id/usb-AMI_Virtual_HDisk0_AAAABBBBCCCC3-0:0 -> ../../sdc
lrwxrwxrwx 1 root root  9 Jun 11 13:19 /dev/disk/by-id/usb-AMI_Virtual_HDisk1_AAAABBBBCCCC3-0:1 -> ../../sdd
...

 

root@server:~# cat /var/state/unassigned.devices/unassigned.devices.ini

[/dev/disk/by-id/usb-AMI_Virtual_Floppy0_AAAABBBBCCCC2-0:0]
DEVLINKS = "/dev/disk/by-id/usb-AMI_Virtual_Floppy0_AAAABBBBCCCC2-0:0 /dev/disk/by-path/pci-0000:00:14.0-usb-0:8.2:1.0-scsi-0:0:0:0"
DEVNAME = "/dev/sdb"
DEVPATH = "/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8.2/1-8.2:1.0/host2/target2:0:0/2:0:0:0/block/sdb"
DEVTYPE = "disk"
ID_BUS = "usb"
ID_INSTANCE = "0:0"
ID_MODEL = "Virtual_Floppy0"
ID_MODEL_ENC = "Virtual\x20Floppy0\x20"
ID_MODEL_ID = "ff40"
ID_PATH = "pci-0000:00:14.0-usb-0:8.2:1.0-scsi-0:0:0:0"
ID_PATH_TAG = "pci-0000_00_14_0-usb-0_8_2_1_0-scsi-0_0_0_0"
ID_REVISION = 1.00
ID_SERIAL = "AMI_Virtual_Floppy0_AAAABBBBCCCC2-0:0"
ID_SERIAL_SHORT = "AAAABBBBCCCC2"
ID_TYPE = "disk"
ID_USB_DRIVER = "usb-storage"
ID_USB_INTERFACES = ":080650:"
ID_USB_INTERFACE_NUM = 00
ID_VENDOR = "AMI"
ID_VENDOR_ENC = "AMI\x20\x20\x20\x20\x20"
ID_VENDOR_ID = "046b"
MAJOR = 8
MINOR = 16
SUBSYSTEM = "block"
USEC_INITIALIZED = 9843874

[/dev/disk/by-id/usb-AMI_Virtual_HDisk0_AAAABBBBCCCC3-0:0]
DEVLINKS = "/dev/disk/by-id/usb-AMI_Virtual_HDisk0_AAAABBBBCCCC3-0:0 /dev/disk/by-path/pci-0000:00:14.0-usb-0:8.3:1.0-scsi-0:0:0:0"
DEVNAME = "/dev/sdc"
DEVPATH = "/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8.3/1-8.3:1.0/host3/target3:0:0/3:0:0:0/block/sdc"
DEVTYPE = "disk"
ID_BUS = "usb"
ID_INSTANCE = "0:0"
ID_MODEL = "Virtual_HDisk0"
ID_MODEL_ENC = "Virtual\x20HDisk0\x20\x20"
ID_MODEL_ID = "ff31"
ID_PATH = "pci-0000:00:14.0-usb-0:8.3:1.0-scsi-0:0:0:0"
ID_PATH_TAG = "pci-0000_00_14_0-usb-0_8_3_1_0-scsi-0_0_0_0"
ID_REVISION = 1.00
ID_SERIAL = "AMI_Virtual_HDisk0_AAAABBBBCCCC3-0:0"
ID_SERIAL_SHORT = "AAAABBBBCCCC3"
ID_TYPE = "disk"
ID_USB_DRIVER = "usb-storage"
ID_USB_INTERFACES = ":080650:"
ID_USB_INTERFACE_NUM = 00
ID_VENDOR = "AMI"
ID_VENDOR_ENC = "AMI\x20\x20\x20\x20\x20"
ID_VENDOR_ID = "046b"
MAJOR = 8
MINOR = 32
SUBSYSTEM = "block"
USEC_INITIALIZED = 9845409

[/dev/disk/by-id/usb-AMI_Virtual_HDisk1_AAAABBBBCCCC3-0:1]
DEVLINKS = "/dev/disk/by-id/usb-AMI_Virtual_HDisk1_AAAABBBBCCCC3-0:1 /dev/disk/by-path/pci-0000:00:14.0-usb-0:8.3:1.0-scsi-0:0:0:1"
DEVNAME = "/dev/sdd"
DEVPATH = "/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8.3/1-8.3:1.0/host3/target3:0:0/3:0:0:1/block/sdd"
DEVTYPE = "disk"
ID_BUS = "usb"
ID_INSTANCE = "0:1"
ID_MODEL = "Virtual_HDisk1"
ID_MODEL_ENC = "Virtual\x20HDisk1\x20\x20"
ID_MODEL_ID = "ff31"
ID_PATH = "pci-0000:00:14.0-usb-0:8.3:1.0-scsi-0:0:0:1"
ID_PATH_TAG = "pci-0000_00_14_0-usb-0_8_3_1_0-scsi-0_0_0_1"
ID_REVISION = 1.00
ID_SERIAL = "AMI_Virtual_HDisk1_AAAABBBBCCCC3-0:1"
ID_SERIAL_SHORT = "AAAABBBBCCCC3"
ID_TYPE = "disk"
ID_USB_DRIVER = "usb-storage"
ID_USB_INTERFACES = ":080650:"
ID_USB_INTERFACE_NUM = 00
ID_VENDOR = "AMI"
ID_VENDOR_ENC = "AMI\x20\x20\x20\x20\x20"
ID_VENDOR_ID = "046b"
MAJOR = 8
MINOR = 48
SUBSYSTEM = "block"
USEC_INITIALIZED = 9845873

 

Edited by dnLL

Share this post


Link to post

Solution: deleting the Windows VM entirely does fix the problem (see XML above). I tried removing a lot of stuff from the XML configuration without success. 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Copyright © 2005-2018 Lime Technology, Inc.
unRAID® is a registered trademark of Lime Technology, Inc.