Replacing disk in Linux Software RAID 1

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

 



Hi,

I have a server with a 2 disk Linux Software RAID 1
setup (two 80Gb disks). The first device is /dev/hde
and the second is /dev/hdg.

The /dev/hde device is ready to fail, as it produces
various SMART errors using smartctl and fails on a
self-test with:

[root@gazelle root]# smartctl -l selftest /dev/hde
smartctl version 5.30 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                 
Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed: read failure      
90%        34         0x0463c0ee
# 2  Short offline       Completed: read failure      
90%      1087         0x0425290c
# 3  Extended offline    Completed: read failure      
90%      1072         0x0425290c
# 4  Short offline       Completed: read failure      
90%      1072         0x0425290c
# 5  Short offline       Completed: read failure      
90%      1071         0x0425290c

The server is running Fedora Core 1.

I have the new 80Gb disk and wish to replace /dev/hde
device with the new disk, how do I do this?

The following is how I have the mirror setup:

# fdisk -l /dev/hde

Disk /dev/hde: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id 
System
/dev/hde1   *         1       395   3172806    b 
Win95 FAT32
/dev/hde2           396       408    104422+  fd 
Linux raid autodetect
/dev/hde3           409      1070   5317515   fd 
Linux raid autodetect
/dev/hde4          1071      9729  69553417+   f 
Win95 Ext'd (LBA)
/dev/hde5          1071      1331   2096451   fd 
Linux raid autodetect
/dev/hde6          1332      1585   2040223+  fd 
Linux raid autodetect
/dev/hde7          1586      1716   1052226   fd 
Linux raid autodetect
/dev/hde8          1717      4327  20972826   fd 
Linux raid autodetect
/dev/hde9          4328      9729  43391533+  fd 
Linux raid autodetect

with /dev/hdg being exactly like above.

As soon as I pull out the /dev/hde device, the server
won't boot (as grub only resides on /dev/hde), so I
also installed grub on /dev/hdg to overcome that
problem. But now I'm wondering what I must do to pull
out /dev/hde and replace it with the new drive (which
doesn't have any partitioning setup) and then force
Linux to resync the data on /dev/hdg to the new
/dev/hde?

Is there some way I have to fail the /dev/hde drive,
replace it then put it back on-line? First time I've
done this with Software RAID so I'm not sure.

Any advice is appreciated.

Michael.


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux