Centos VM, SCSI external USB Hard Drive

Issues related to hardware problems
Post Reply
xander86
Posts: 1
Joined: 2017/02/07 15:28:28

Centos VM, SCSI external USB Hard Drive

Post by xander86 » 2017/02/07 15:50:31

I am a bit of a linux newbie but I have Hyper-V running Centos 7. I have a external hard drive plugged into the physical server with USB. In hyper-v I have it on SCSI port 2. The hard drive is a NTFS drive. I ran dmesg and found this:

[ 1.936087] sd 0:0:0:2: [storvsc] Sense Key : Illegal Request [current]
[ 1.936090] sd 0:0:0:2: [storvsc] Add. Sense: Invalid command operation code
[ 11.947182] sd 0:0:0:2: Device offlined - not ready after error recovery
[ 11.947223] sd 0:0:0:2: rejecting I/O to offline device
[ 11.947265] sd 0:0:0:2: rejecting I/O to offline device
[ 11.947300] sd 0:0:0:2: [sdb] Read Capacity(16) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 11.947302] sd 0:0:0:2: [sdb] Sense not available.
[ 11.947306] sd 0:0:0:2: rejecting I/O to offline device
[ 11.947338] sd 0:0:0:2: rejecting I/O to offline device
[ 11.947369] sd 0:0:0:2: rejecting I/O to offline device
[ 11.947402] sd 0:0:0:2: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 11.947404] sd 0:0:0:2: [sdb] Sense not available.
[ 11.947407] sd 0:0:0:2: rejecting I/O to offline device
[ 11.947439] sd 0:0:0:2: rejecting I/O to offline device
[ 11.947471] sd 0:0:0:2: rejecting I/O to offline device
[ 11.947503] sd 0:0:0:2: [sdb] Write Protect is off
[ 11.947506] sd 0:0:0:2: [sdb] Mode Sense: 00 00 00 00
[ 11.947509] sd 0:0:0:2: rejecting I/O to offline device
[ 11.947540] sd 0:0:0:2: [sdb] Asking for cache data failed
[ 11.947571] sd 0:0:0:2: [sdb] Assuming drive cache: write through
[ 11.949770] sd 0:0:0:2: [sdb] Attached SCSI disk
[ 11.951304] sd 0:0:0:1: [sdc] 2155872256 512-byte logical blocks: (1.10 TB/1.00 TiB)
[ 11.951309] sd 0:0:0:1: [sdc] 4096-byte physical blocks
[ 11.953082] sd 0:0:0:0: [sda] Write Protect is off
[ 11.953087] sd 0:0:0:0: [sda] Mode Sense: 0f 00 00 00
[ 11.953171] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 11.953529] sd 0:0:0:1: [sdc] Write Protect is off
[ 11.953533] sd 0:0:0:1: [sdc] Mode Sense: 0f 00 00 00
[ 11.953625] sd 0:0:0:1: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 11.955588] sdc:
[ 11.959130] sd 0:0:0:1: [sdc] Attached SCSI disk
[ 11.959848] sda: sda1 sda2 sda3
[ 11.960734] sd 0:0:0:0: [sda] Attached SCSI disk

Any help would be amazing, I cannot figure this out. I cant see it with fdisk, blkid, or lsblk (only lsblk -a).

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos VM, SCSI external USB Hard Drive

Post by TrevorH » 2017/02/07 15:56:32

If that log is from the guest to which you have attached the drive then it's there and it's /dev/sda. As root you ought to be able to access it and use fdisk etc on it but you shouldn't need to do so since it's already partitioned. If the filesystems on it are NTFS then you will need to install ntfs-3g from the EPEL repo - yum install epel-release - then yum install ntfs-3g.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply