En muchas ocasiones a la hora de agregar un nuevo disco en caliente no nos detecta el disco, Hoy vamos a ver como realizar un rescan de los dispositivos SCSI.
Vemos los disco disponibles
[rokitoh@redorbita ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Realizamos el rescan:
[rokitoh@redorbita ~]# echo – – – > /sys/class/scsi_host/host0/scan
mediante el comando dmesg podemos observar el nuevo disco añadido:
hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04 { AbortedCommand }
ide: failed opcode was: 0xec
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
target0:0:2: Beginning Domain Validation
target0:0:2: Domain Validation skipping write tests
target0:0:2: Ending Domain Validation
target0:0:2: FAST-40 WIDE SCSI 80.0 MB/s ST (25 ns, offset 127)
SCSI device sdc: 209715200 512-byte hdwr sectors (107374 MB)
sdc: Write Protect is off
sdc: Mode Sense: 31 00 00 00
sdc: cache data unavailable
sdc: assuming drive cache: write through
SCSI device sdc: 209715200 512-byte hdwr sectors (107374 MB)
sdc: Write Protect is off
sdc: Mode Sense: 31 00 00 00
sdc: cache data unavailable
sdc: assuming drive cache: write through
sdc: unknown partition table
sd 0:0:2:0: Attached scsi disk sdc
sd 0:0:2:0: Attached scsi generic sg2 type 0
Realizando un cat a /proc/scsi/scsi y /proc/partitions podemos observar tambien el nuevo disco añadido:
LUN’S:
[rokitoh@redorbita ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Particiones:
[rokitoh@redorbita ~]# cat /proc/partitions
major minor #blocks name8 0 100663296 sda
8 1 104391 sda1
8 2 100558867 sda2
8 16 62914560 sdb
253 0 89128960 dm-0
253 1 2064384 dm-1
253 2 62914560 dm-2
8 32 104857600 sdc
Un saludo,
:wq!
Una respuesta a “Buscar discos nuevos SCSI”