1 |
Getting OT but... |
2 |
|
3 |
Something I like with Raid1 is when I want to upgrade, update or |
4 |
modify in any way the installation. I simply degrade the array right |
5 |
before the modif so that I work on only one device (say sda1) and the |
6 |
other (say sdb1) become the pre-modif backup. The the modification is |
7 |
done at the normal speed of a single drive, not hammed by the slow |
8 |
writes of the raid1, once done and tested I can re-add sdb1 and sync. |
9 |
|
10 |
Or if there is any complication during the modif, you get the great |
11 |
warm feeling of having a perfect backup in sdb1. =) |
12 |
|
13 |
Simon |
14 |
|
15 |
On Feb 7, 2008 7:31 AM, Rasmus Andersen <rasmus@×××××××××.dk> wrote: |
16 |
> On Thu, Feb 07, 2008 at 06:50:57AM -0500, Simon Turner wrote: |
17 |
> > Hi Rasmus, |
18 |
> > you will first need to resize your md device. Using mdadm, that |
19 |
> > would be done with --grow (check the man, `mdadm /dev/md123 --grow |
20 |
> > --size=500G` should do the trick). |
21 |
> |
22 |
> Ah yes, thanks for that. For some reason I had not noted that use of |
23 |
> --grow... mdadm /dev/md0 --grow --size=max did the trick nicely thanks. |
24 |
> |
25 |
> > But that will leave your filesystem intact at the current size, so |
26 |
> > you'll have to resize the filesystem next. I know ext2&3 support |
27 |
> > "growing" but I don't know about other filesystems. |
28 |
> |
29 |
> I use LVM(2) and ext3 so I am ok there. |
30 |
> |
31 |
> > However, since it's a simple raid one, you could create a new raid |
32 |
> > device with one drive, format it at 500G, copy the stuff over from the |
33 |
> > old raid1, drop the old raid1 device and add it to the new one. |
34 |
> |
35 |
> Yes, thats true. But since this is my root, var, home, etc etc that |
36 |
> would require me to go to single-user mode for the duration of the copy. |
37 |
> The resync-in-background is much nicer :) |
38 |
> |
39 |
> Thanks for your help. |
40 |
> |
41 |
> Cheers, |
42 |
> |
43 |
> Rasmus |
44 |
> -- |
45 |
> gentoo-user@l.g.o mailing list |
46 |
> |
47 |
> |
48 |
|
49 |
|
50 |
|
51 |
-- |
52 |
When Earth was the only inhabited planet in the Galaxy, it was a |
53 |
primitive place, militarily speaking. The only weapon they had ever |
54 |
invented worth mentioning was a crude and inefficient nuclear-reaction |
55 |
bomb for which they had not even developed the logical defense. - |
56 |
Asimov |
57 |
-- |
58 |
gentoo-user@l.g.o mailing list |