Re: info about hdds in raid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Eugeneapolinary Ju wrote:
> How can I tell wich HDD to swap, when the "cat /proc/mdstat" says one 
> HDD of the RAID1 array has died?
>
> Does the HDD's has some serial numbers, that I can see in "reality", 
> and I can get that number from e.g.: a commands output?
>
> How could I know wich HDD to swap in e.g.: a RAID1 array?
>

for devices that show up as /dev/hdX, try

    # hdparm -i /dev/hda

for devices that show up as /dev/sdX,

    # cat /proc/scsi/scsi

this last won't show serial numbers, however it will list drive models 
and SCSI channel/id/lun, which should narrow it down.   the first SCSI 
device listed thats 'Direct-Access' (as opposed to Processor, or 
something else) is /dev/sda, the 2nd is /dev/sdb


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux