linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Resizing raid-1 on replacing failed disk
@ 2004-10-23  4:11 matt brennan
  2004-10-23  5:41 ` Guy
  2004-11-04  4:44 ` partition sizing and raid1 matt brennan
  0 siblings, 2 replies; 8+ messages in thread
From: matt brennan @ 2004-10-23  4:11 UTC (permalink / raw)
  To: linux-raid

I would like replace a failed disk in a raid-1 with a larger disk - and 
ultimately increase the size of the array (and ext3 partition) by 
subsequently adding a second larger disk in lieu of the currently active 
one.

I am hoping someone will scan the following and briefly reply: "this 
looks ok" or "you forgot step(s) X" before I commence.

<disclaimer>
I have read the software-raid-howto, list faq, mdadm man pages and 
trawled this mailing list to try to ensure I am not posting a question 
that has been answered before. If you believe that this topic is well 
covered elsewhere, please smack me up and post a link.
</disclaimer>

Currently:

kernel: 2.4.18
mdadm: 0.7.2-2 (version reported by dpkg)

> # mdadm --detail /dev/md0
> /dev/md0:
>         Version : 00.90.00
>   Creation Time : Sun Dec 23 05:46:51 2001
>      Raid Level : raid1
>      Array Size : 39078016 (37.26 GiB 40.01 GB)
>     Device Size : 39078016 (37.26 GiB 40.01 GB)
>      Raid Disks : 2
>     Total Disks : 2
> Preferred Minor : 0
>     Persistance : Superblock is persistant
<snip>
>     Number   Major   Minor   RaidDisk   State
>        0       3        1        0      active sync   /dev/hda1
>        1      22        1        1      faulty   /dev/hdc1
>            UUID : 3e9f6b0c:e3c4d3cc:761130b2:d4f74686

Plan:

- backup
- physcially remove the failed disk
- physcially replace the failed disk with a larger disk
- add the new disk to the array and allow to resync
- fail and remove the active smaller disk
- physcially replace the active smaller disk with a larger disk
- resize the ext3 partition

Help:

Could you indicate whether this is possible with the listed kernel and 
mdadm version before I kick off?

Thanks and regards,

   matt

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-11-04  8:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-23  4:11 Resizing raid-1 on replacing failed disk matt brennan
2004-10-23  5:41 ` Guy
2004-10-23  6:12   ` Guy
2004-10-23  6:31   ` matt brennan
2004-10-25  5:14     ` Neil Brown
2004-11-04  4:44 ` partition sizing and raid1 matt brennan
2004-11-04  5:24   ` Jim Paris
2004-11-04  8:10   ` Gordon Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).