Hi Rasmus,
  you will first need to resize your md device.  Using mdadm, that
would be done with --grow (check the man, `mdadm /dev/md123 --grow
--size=500G` should do the trick).

  But that will leave your filesystem intact at the current size, so
you'll have to resize the filesystem next.  I know ext2&3 support
"growing" but I don't know about other filesystems.

  However, since it's a simple raid one, you could create a new raid
device with one drive, format it at 500G, copy the stuff over from the
old raid1, drop the old raid1 device and add it to the new one.

Simon

On 2/7/08, Rasmus Andersen <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I had a raid1/mirror array of two 200G disks. Then one failed and I
> thought 'lets get two 500G disks and just ease them in, they are cheap'.
> So I added the full 500G partition from the first disk to the degraded
> array, watched the resync, removed the remaining 200G disk and added the
> last 500G disk.
>
> My hope now was that I would be able to tell the kernel that md0 now is
> 500G, not 200G. But alas, I have not been able to do so. Is there a way
> to do this? Or is the only way forward to shrink the partitions and
> create new 300G ones alongside?
>
> Thanks,
>   Rasmus
> --
> gentoo-user@lists.gentoo.org mailing list
>
>


-- 
When Earth was the only inhabited planet in the Galaxy, it was a
primitive place, militarily speaking.  The only weapon they had ever
invented worth mentioning was a crude and inefficient nuclear-reaction
bomb for which they had not even developed the logical defense. -
Asimov
-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to