Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Search for new SCSI disks

Leer en espanol
Search for new SCSI disks

Table of contents

We see the available disks bash[rokito ===

On many occasions, when adding a new disk hot, the disk is not detected. Today we are going to see how to perform a rescue of SCSI devices.

We see the available disks

Bash
[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

We carry out the rescue:

Bash
[rokitoh@redorbita ~]# echo – – – > /sys/class/scsi_host/host0/scan

mediante el comando dmesg we can see the new added disk:

text
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

Carrying out a tasting /proc/scsi/scsi and /proc/partitions We can also see the new added disk:

MON'S:

Bash
[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

Partitions:

Bash
[rokitoh@redorbita ~]# cat /proc/partitions

major minor #blocks name
8 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

All the best,

:wq!

Comments