All of lore.kernel.org
 help / color / mirror / Atom feed
From: matt brennan <raid@classforge.com>
To: Guy <bugzilla@watkins-home.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Resizing raid-1 on replacing failed disk
Date: Sat, 23 Oct 2004 16:01:59 +0930	[thread overview]
Message-ID: <4179FADF.40806@classforge.com> (raw)
In-Reply-To: <200410230541.i9N5fuN10579@www.watkins-home.com>

Guy wrote <snipped together from serveral replies>:

> You will be replacing your boot disk (I think).  This will be a grub
> or lilo issue.  

Thanks for your help! The array is not a boot disk (my bad - should have
clarified)...

> But I do have other notes: 
> * logically remove the failed disk - "mdadm /dev/md0 -r /dev/hdc1"
> * fail the smaller disk - "mdadm /dev/md0 -f /dev/hda1"
> * wait a few seconds (was some issue with failing and removing too quickly)
> * remove the smaller disk - "mdadm /dev/md0 -r /dev/hda1"

Thank you for this extra detail!

> If you're partition is ext2 or ext3, you can use resize2fs. A word of
> caution for you. I've used this utility many times, and it is
> necessary to do a e2fsck -f on the partition to be resized BOTH
> before and after.

And thanks again - this surely will help! It would perhaps be handy to 
have a tip on this (or more generally the resize array process) in the 
software-raid-faq (noting that e2fsck stuff is a file system rather than 
md issue). Perhaps I can contribute after completion.

> Please wait for someone to help with this!  But not
> me!  I don't trust my advice!  Other than my advice to wait for help.
> :)

Could someone else please comment on the overall feasibility of resizing 
a raid-1 array to physically larger disks via this process?

> - backup
> * logically remove the failed disk - "mdadm /dev/md0 -r /dev/hdc1"
> - physically remove the failed disk
> - physically replace the failed disk with a larger disk
> - add the new disk to the array and allow to resync
> * fail the smaller disk - "mdadm /dev/md0 -f /dev/hda1"
> * wait a few seconds (was some issue with failing and removing too quickly)
> * remove the smaller disk - "mdadm /dev/md0 -r /dev/hda1"
> - physically replace the active smaller disk with a larger disk
 > ** e2fsck -f
> - resize the ext3 partition
> ** e2fsck -f

Thanks and regards,

   matt




  parent reply	other threads:[~2004-10-23  6:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4179FADF.40806@classforge.com \
    --to=raid@classforge.com \
    --cc=bugzilla@watkins-home.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.