1 |
On Tue, Mar 27 2012, Alan McKinnon wrote: |
2 |
|
3 |
> All you need is a decent amount of free disk space as you will shuffle |
4 |
> things around just like in that 15 pieces game. |
5 |
|
6 |
This sounds encouraging. My disk is less than half full so space is not |
7 |
an issue. |
8 |
|
9 |
> Assuming / is the first (or second) partition on a disk: |
10 |
|
11 |
Question. For me, / is actually /dev/sda5 (sda4 is the extended |
12 |
partition, the three in front are one dell's special, and two for |
13 |
windows, the latter only used when contacting dell for diagnostics). |
14 |
But I think this difference is not material. |
15 |
|
16 |
> Measure how much data is on the file system. |
17 |
> Measure how much data is on the /usr file system. |
18 |
|
19 |
Right |
20 |
|
21 |
> Move partitions after / on the disk out of the way creating enough free |
22 |
> space to contain current / and /usr. |
23 |
|
24 |
Question. /dev/sda7 is LVM and that is used for /usr, /local, et al. |
25 |
How do I move an LVM partition? I could make plain partitions and just |
26 |
copy /usr, /opt, et al., each to a separate partition. Is that the way? |
27 |
|
28 |
> Enlarge / partition, enlarge the file system on it, copy contents |
29 |
> of /usr there. |
30 |
|
31 |
/ is ext3, which I believe can be extended live. Or do you recommend |
32 |
using a gentoo install CD (or equivalent)? |
33 |
|
34 |
> Arrange the rest of your disk the way you want it (either with or |
35 |
> without LVM, both are easy enough to do). |
36 |
> Move the rest of your data back to it's final destination. |
37 |
> Delete any last remnants of the old /usr partition. |
38 |
|
39 |
This part seems straight forward and not scary since I still would have |
40 |
the newly created and copied /usr, /opt, et al. partitions in case |
41 |
something goes wrong. |
42 |
|
43 |
So the result would be |
44 |
|
45 |
/ (including /usr) on one partition (not LVM) |
46 |
/local, /opt et al., each as separate LVs on my recreated LVM partition |
47 |
|
48 |
I believe this is one of the configurations others have adopted, which I |
49 |
consider a plus. The other favored configuration is to keep the current |
50 |
partition scheme and use an initramfs via genkernel, dracut, or Neil's |
51 |
"in kernel config" soln. |
52 |
|
53 |
I would suspect there are second order improvements such as moving |
54 |
/usr/portage and /usr/src to LVM with symlinks left behind in /usr, but |
55 |
I am now just concerned to see if I have the basic plan correct. |
56 |
Have I? |
57 |
|
58 |
thanks, |
59 |
allan |