Tim Hempstead wrote:

> Now sdg is part of a 6 disk RAID5 array (md0) using Linux software
> raid.  I am assuming that the process to replace the disk is something
> like this:
> 
> 1). Make sure I have an up to date backup of everything important off
> the server 

That would be nice, but with one or two terabytes of storage, maybe not
practical?

> 2). Fail the disk in the Raid array by using a mdadm command? (as its
> not showing in there as having issues yet so I'll need to force it)

Yep - something like this "mdadm --manage /dev/md0 --fail /dev/sdg"

After that, your array will be running degraded.  Check
with "cat /proc/mdstat". 

> 3). Remove disk from array using mdadm command? 

Yes.

> 4). Establish which physical disk is sdg (I have it down to 2 already
> i think) 

That seems pretty essential, yes.  But you've only got 6 disks, so it
can't be difficult.  Take a look at /dev/disk/by-path.

> 5). Shutdown server 

Yes.

> 6). Replace disk with another of the same size (fortunately i have a
> spare). 

Yes.

> 7). start up server 

Yes.

> 8). Add disk to array (as new spare?)

Just add it - "mdadm --manage /dev/md0 --add /dev/sdN" 

> 9). re-sync the array onto the new disk

That will already have started after step 8. 

Step10:  Pray that you don't have a second drive fail during the resync.



/Per Jessen, Zürich

-- 
http://www.spamchek.com/ - your spam is our business.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to