echo "scsi remove-single-device a b c d" > /proc/scsi/scsi
donde
a == host-adapter id
b == SCSI channel on host-adapter
c == ID
d == LUN
Esto lo podeis mirar con un lssd o lssg
Vale perfecto pero .... el lssd/lssg son herramientas del paquete hp-fiberutils ..... y esto es una maquina virtual primer fail. Joer que hacemos?
Siguiente comando, este más generico, lsscsi:
servhost:~# lsscsi
[0:0:1:0] disk ATA ST31000524AS JC4B /dev/sda
[2:0:0:0] disk ATA ST3320613AS SD22 /dev/sdb
[3:0:0:0] disk ATA ST31000524AS JC4B /dev/sdc
[4:0:0:0] cd/dvd PIONEER DVD-RW DVR-115D 1.13 /dev/sr0
[0:0:1:0] disk ATA ST31000524AS JC4B /dev/sda
[2:0:0:0] disk ATA ST3320613AS SD22 /dev/sdb
[3:0:0:0] disk ATA ST31000524AS JC4B /dev/sdc
[4:0:0:0] cd/dvd PIONEER DVD-RW DVR-115D 1.13 /dev/sr0
Bueno, pero resulta que no lo esta instalado en este Red Hat, ademas que no esta conectado ni a la Red hat network ni a un satellite, de donde sacamos el paquete lsscsi?, pues busquemos alternativas que seguro que hay, objetivo el /dev y el /sys. Encontramos lo siguiente:
servhost:~# ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root 9 nov 3 19:49 pci-0000:00:1f.2-scsi-0:0:1:0 -> ../../sda
lrwxrwxrwx 1 root root 10 nov 3 19:50 pci-0000:00:1f.2-scsi-0:0:1:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 nov 3 19:49 pci-0000:00:1f.5-scsi-0:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 nov 3 19:52 pci-0000:00:1f.5-scsi-0:0:0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 nov 3 19:49 pci-0000:00:1f.5-scsi-0:0:0:0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 nov 3 19:49 pci-0000:00:1f.5-scsi-0:0:0:0-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 nov 3 19:49 pci-0000:00:1f.5-scsi-0:0:0:0-part4 -> ../../sdb4
lrwxrwxrwx 1 root root 10 nov 3 19:50 pci-0000:00:1f.5-scsi-0:0:0:0-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 10 nov 3 19:50 pci-0000:00:1f.5-scsi-0:0:0:0-part6 -> ../../sdb6
lrwxrwxrwx 1 root root 10 nov 3 19:50 pci-0000:00:1f.5-scsi-0:0:0:0-part7 -> ../../sdb7
lrwxrwxrwx 1 root root 9 nov 3 19:49 pci-0000:00:1f.5-scsi-1:0:0:0 -> ../../sdc
lrwxrwxrwx 1 root root 10 nov 3 19:50 pci-0000:00:1f.5-scsi-1:0:0:0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 nov 3 19:49 pci-0000:02:00.1-scsi-0:0:0:0 -> ../../sr0
total 0
lrwxrwxrwx 1 root root 9 nov 3 19:49 pci-0000:00:1f.2-scsi-0:0:1:0 -> ../../sda
lrwxrwxrwx 1 root root 10 nov 3 19:50 pci-0000:00:1f.2-scsi-0:0:1:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 nov 3 19:49 pci-0000:00:1f.5-scsi-0:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 nov 3 19:52 pci-0000:00:1f.5-scsi-0:0:0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 nov 3 19:49 pci-0000:00:1f.5-scsi-0:0:0:0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 nov 3 19:49 pci-0000:00:1f.5-scsi-0:0:0:0-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 nov 3 19:49 pci-0000:00:1f.5-scsi-0:0:0:0-part4 -> ../../sdb4
lrwxrwxrwx 1 root root 10 nov 3 19:50 pci-0000:00:1f.5-scsi-0:0:0:0-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 10 nov 3 19:50 pci-0000:00:1f.5-scsi-0:0:0:0-part6 -> ../../sdb6
lrwxrwxrwx 1 root root 10 nov 3 19:50 pci-0000:00:1f.5-scsi-0:0:0:0-part7 -> ../../sdb7
lrwxrwxrwx 1 root root 9 nov 3 19:49 pci-0000:00:1f.5-scsi-1:0:0:0 -> ../../sdc
lrwxrwxrwx 1 root root 10 nov 3 19:50 pci-0000:00:1f.5-scsi-1:0:0:0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 nov 3 19:49 pci-0000:02:00.1-scsi-0:0:0:0 -> ../../sr0
OOOOOOOOOOOOOOOOOOOO
servhost:~# find /sys/devices -name "*block*" | grep -e "sd"
/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:1/0:0:1:0/block/sda/queue/logical_block_size
/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:1/0:0:1:0/block/sda/queue/physical_block_size
/sys/devices/pci0000:00/0000:00:1f.5/host2/target2:0:0/2:0:0:0/block/sdb/queue/logical_block_size
/sys/devices/pci0000:00/0000:00:1f.5/host2/target2:0:0/2:0:0:0/block/sdb/queue/physical_block_size
/sys/devices/pci0000:00/0000:00:1f.5/host3/target3:0:0/3:0:0:0/block/sdc/queue/logical_block_size
/sys/devices/pci0000:00/0000:00:1f.5/host3/target3:0:0/3:0:0:0/block/sdc/queue/physical_block_size
/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:1/0:0:1:0/block/sda/queue/logical_block_size
/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:1/0:0:1:0/block/sda/queue/physical_block_size
/sys/devices/pci0000:00/0000:00:1f.5/host2/target2:0:0/2:0:0:0/block/sdb/queue/logical_block_size
/sys/devices/pci0000:00/0000:00:1f.5/host2/target2:0:0/2:0:0:0/block/sdb/queue/physical_block_size
/sys/devices/pci0000:00/0000:00:1f.5/host3/target3:0:0/3:0:0:0/block/sdc/queue/logical_block_size
/sys/devices/pci0000:00/0000:00:1f.5/host3/target3:0:0/3:0:0:0/block/sdc/queue/physical_block_size
O ya lo tenemos!!!!
Lo dejo como chuleta definitiva!!!
Espero que le sirva a alguien de ayuda.
Saludos y sed todo lo felices que podáis ser.
Quitos.