[CentOS] Where Did The Disk Go???

Wed Nov 27 16:44:58 UTC 2013
m.roth at 5-cent.us <m.roth at 5-cent.us>

Gene Poole wrote:
> I'm running CentOS 5.9 x86_64 on a machine I built myself that has 6 SATA
> II hard drives (4 - 1 TB drives; 2 - 1.5 TB drives) all in several RAID-1
> arrays. These arrays were created when I did the original installation
> with CentOS 5.1 and each created partition (both standard and LVM) were
> built raid 1.
>
> Due to some things happening around the house that required most of my
> attention, I saw some alerts concerning drive /dev/sdb but I didn't have
> time to address it and since I am running raid 1...  One of the tings that
> happened was my home took a lightening strike and we were down for 4 days.

You *do* have the system on a UPS, right...?
>
> When we got our electricity back and I brought the machine back up I
> noticed that there were only 5 drives listed  and I wasn't getting any
> more alerts.  What was /dev/sdb was no longer listed with any command
> (fdisk; cat /proc/mdstat; mdadm --list).
>
> I do have a spare drive and my questions are:
>
> Anyone know how I can find the serial number of the bad drive?
> Once replaced, what is the best way to get the partitions recreated?

Of the bad one? No. The other option would be to either use smartctl to
find the serial numbers of all the rest. Recreate? Make it identical to
one of the others... actually, I think there's a script to use with parted
that can clone a drive's partitions.

       mark