virtual usb drive errors

Markus Wild fbsd-lists at dudes.ch
Tue Apr 6 13:29:17 UTC 2010


Hi there,

> I hope it's a right place to ask, if no, please advice right mailing list.
> 
> My server is based on intel S5000PAL motherboard and have dedicated "Intel
> remote
> management module 2". 

We use SuperMicro twin servers with their AOC-SIMSO+ server remote
management boards, and our problems are very similar, if not the same,
as yours...

> If I try to boot from remotely mounted installation drive/iso (FreeBSD
> 8.0-RELEASE) it goes fine until I
> choose installation media - in messages I see a read error.

Same here. I tried pretty much all FreeBSD  live CD images I could find,
including a 9-current snapshot, same result. The kernel loads fine,
initializes, but fails to mount the root filesystem off the virtual USB
drive no matter what type I chose in the FixIt menu, or with FreSBIE at
the point where it tries to mount the root.

Actually, what I tried to achieve here is simply to boot into a live
image, so I could clone another system over the network. I also tried
an OpenBSD and a NetBSD live image the same way, both (!) booted fine,
but didn't have a raid driver for our adaptec controllers in those
images, so they were no alternative for my purposes.

> If I try to mount remote drive on working FreeBSD (also 8.0-RELEASE) - I
> see that virtual
> device recognized fine, but gets error when trying to mount:

I hadn't tried that approach yet, so I inserted an iso image into the
virtual usb drive:

7.0-STABLE FreeBSD 7.0-STABLE #0: Sun Jun 15 19:58:32 CEST 2008  amd64

insert of the virtual iso:
# dmesg
ums0: at uhub3 port 6 (addr 2) disconnected
ums0: detached
ukbd0: at uhub3 port 6 (addr 2) disconnected
ukbd0: detached
umass0: <Peppercon AG Multidevice, class 0/0, rev 2.00/0.01, addr 2> on uhub3
ums0: <Peppercon AG Multidevice, class 0/0, rev 2.00/0.01, addr 2> on uhub3
ums0: 3 buttons and Z dir.
ukbd0: <Peppercon AG Multidevice, class 0/0, rev 2.00/0.01, addr 2> on uhub3
kbd2 at ukbd0
cd0 at umass-sim0 bus 0 target 0 lun 0
cd0: <PepperC Virtual Disc 1 0.01> Removable CD-ROM SCSI-3 device 
cd0: 40.000MB/s transfers
cd0: cd present [147976 x 2048 byte records]
umass0: Phase Error, residue = -8
umass0: Phase Error, residue = -8
umass0: Phase Error, residue = -8
umass0: Phase Error, residue = -8

# mount -t cd9660 /dev/cd0 /cdrom
mount_cd9660: /dev/cd0: Input/output error

# dmesg
(cd0:umass-sim0:0:0:0): READ TOC/PMA/ATIP {MMC Proposed}. CDB: 43 0 0 0 0 0 0 0 4 0 
(cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(cd0:umass-sim0:0:0:0): SCSI Status: Check Condition
(cd0:umass-sim0:0:0:0): UNIT ATTENTION asc:29,0
(cd0:umass-sim0:0:0:0): Power on, reset, or bus device reset occurred
(cd0:umass-sim0:0:0:0): Retries Exhausted
umass0: Phase Error, residue = -8
g_vfs_done():cd0[READ(offset=32768, length=2048)]error = 5


8.0-STABLE FreeBSD 8.0-STABLE #2: Thu Mar 18 22:57:50 CET 2010  amd64
--------------------------------------------------------------

insert of the virtual iso:
# dmesg
ugen3.2: <Peppercon AG> at usbus3 (disconnected)
ums0: at uhub3, port 6, addr 2 (disconnected)
ukbd0: at uhub3, port 6, addr 2 (disconnected)
ugen3.2: <Peppercon AG> at usbus3
umass0: <Peppercon AG Multidevice, class 0/0, rev 2.00/0.01, addr 2> on usbus3
umass0:  SCSI over Bulk-Only; quirks = 0x0000
umass0:3:0:-1: Attached to scbus3
ums0: <Peppercon AG Multidevice, class 0/0, rev 2.00/0.01, addr 2> on usbus3
ums0: 3 buttons and [XYZ] coordinates ID=0
ukbd0: <Peppercon AG Multidevice, class 0/0, rev 2.00/0.01, addr 2> on usbus3
kbd2 at ukbd0
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred)
cd0 at umass-sim0 bus 0 scbus3 target 0 lun 0
cd0: <PepperC Virtual Disc 1 0.01> Removable CD-ROM SCSI-3 device 
cd0: 40.000MB/s transfers
cd0: cd present [147976 x 2048 byte records]

# mount -t cd9660 /dev/cd0 /cdrom
mount_cd9660: /dev/cd0: Input/output error

# dmesg
(cd0:umass-sim0:0:0:0): READ TOC/PMA/ATIP. CDB: 43 0 0 0 0 0 0 0 4 0 
(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
(cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred)
(cd0:umass-sim0:0:0:0): READ TOC/PMA/ATIP. CDB: 43 0 0 0 0 0 0 0 4 0 
(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
(cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred)
(cd0:umass-sim0:0:0:0): READ TOC/PMA/ATIP. CDB: 43 0 0 0 0 0 0 0 4 0 
(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
(cd0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred)
g_vfs_done():cd0[READ(offset=32768, length=2048)]error = 5


Let me know if and how I can help in some way to debug this problem. 

We have another issue with this KVM board: on one system (there's about
20 identical servers, just one with this problem) we have keyboard/mouse
access over IP as long as IO is done via the BIOS (i.e. I can get into
BIOS menus, RAID controller menu, FreeBSD loader). However, as soon as
the FreeBSD kernel takes over and IO should be handled by the FreeBSD
USB stack, I see this error in dmesg:

uhub3: port 6, set config at addr 2 failed
uhub3: device problem (IOERROR), disabling port 6

it could be a faulti KVM board, but then I ask myself why access works
fine as long as BIOS IO is used..

Kind regards,
Markus


More information about the freebsd-usb mailing list