Re: Where Did The Disk Go???

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



On Wed, Nov 27, 2013 at 11:44 AM, <m.roth@xxxxxxxxx> wrote:

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

smartctl is the tool for this job.  Or look at the label on the disk.


> one of the others... actually, I think there's a script to use with parted
> that can clone a drive's partitions.
>

Once you swap in the spare drive, you can use sfdisk to clone the partition
layout.

sfdisk -d /dev/sdX | sfdisk /dev/sdY

where sdX is the healthy disk in whichever software raid1 array and sdY is
the new spare drive.

>From there you'll just add the partition(s) on the new disk to the proper
array with mdadm.


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



-- 
---~~.~~---
Mike
//  SilverTip257  //
_______________________________________________
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