21 msg[query] kernel-2.6.24 + ndiswrapper
5 msgQuestion re: upgrade to goffice
1 msgACPI problem
7 msggnome overlay?
12 msgGentoo 'Install CD' 2008.Feb.08. minimal i686
3 msgdrupal errors
3 msgautounmask fails
5 msgkdelibs-4.0.1 complaining about missing accessi...
4 msgruby gems versus emerge
3 msgUSB Mouse
1 msgOT Florida Linux Show 2008 call for help
5 msgPower Drain during Suspend to Disk
4 msgMy portage is hosed (segfaults) and I dont know...
18 msgHorribly off-topic linux distro question...
6 msgInstallation of binary packages
2 msg[OT] Trying to use xauth -> Xlib: No protoco...

resize raid1 array
\ Rasmus Andersen (7 Feb 2008)
. \ Simon Turner (7 Feb 2008)
. . \ Rasmus Andersen (7 Feb 2008)
. . . \ Simon Turner (7 Feb 2008)

6 msgNo sound in mythfrontend
2 msg[OT] Gentoo-Wiki down too
7 msgKDE 4 again
Subject:Re: resize raid1 array
Group:Gentoo-user
From:Simon Turner
Date:7 Feb 2008


 
Getting OT but...

Something I like with Raid1 is when I want to upgrade, update or
modify in any way the installation. I simply degrade the array right
before the modif so that I work on only one device (say sda1) and the
other (say sdb1) become the pre-modif backup. The the modification is
done at the normal speed of a single drive, not hammed by the slow
writes of the raid1, once done and tested I can re-add sdb1 and sync.

Or if there is any complication during the modif, you get the great
warm feeling of having a perfect backup in sdb1. =)

Simon

On Feb 7, 2008 7:31 AM, Rasmus Andersen <rasmus> wrote:
> On Thu, Feb 07, 2008 at 06:50:57AM -0500, Simon Turner wrote:
> > 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).
>
> Ah yes, thanks for that. For some reason I had not noted that use of
> --grow... mdadm /dev/md0 --grow --size=max did the trick nicely thanks.
>
> > 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.
>
> I use LVM(2) and ext3 so I am ok there.
>
> > 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.
>
> Yes, thats true. But since this is my root, var, home, etc etc that
> would require me to go to single-user mode for the duration of the copy.
> The resync-in-background is much nicer :)
>
> Thanks for your help.
>
> Cheers,
>
> Rasmus
> --
> gentoo-user 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 mailing list



© 2004-2008 readlist.com