Gentoo Archives: gentoo-user

From: Dirk Heinrichs <dirk.heinrichs@××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] extending /usr partition...
Date: Sat, 21 Mar 2009 18:16:27
Message-Id: 200903211916.19661.dirk.heinrichs@online.de
In Reply to: [gentoo-user] extending /usr partition... by Jarry
1 Am Samstag, 21. März 2009 19:05:42 schrieb Jarry:
2
3 > I found out my /usr is getting full pretty fast, so I want
4 > to increase it before it happens a real problem. I have:
5 >
6 > /dev/md4 (sda5+sdb5), ~5GB size, used for /var, nearly empty
7 > /dev/md5 (sda6+sdb6), ~5GB size, used for /usr, nearly full (90%)
8 > And I have /backup on separate partition (hda1), big enough
9 >
10 > What I think of is this procedure: First I copy /var and /usr:
11 > cp -a /var /backup
12 > cp -a /usr /backup
13
14 Yes.
15
16 > Then I intend to reboot with install-cd, repartition sda/sdb
17 > (make sda5/sdb5 smaller and sda6/sdb6 bigger), create new
18 > /dev/md4 and /dev/md5, mount them, and copy the content back.
19
20 No. Do it right this time and create only one md device and use lvm on top of
21 it to avoid such problems in the future.
22
23 BTW: Speaking of md4 and md5, is there also md[123]? If yes, you should think
24 about adding their space to that large md device, too.
25
26 > cp -a /mnt/gentoo/backup/var /mnt/gentoo/var
27 > cp -a /mnt/gentoo/backup/usr /mnt/gentoo/usr
28
29 Yes.
30
31 > Is it a correct procedure? All partitions are ext3 type, no lvm2,
32 > moreover on /dev/md so I can not extend/shrink them while using...
33
34 And that's the reason why it's not the correct procedure.
35
36 HTH...
37
38 Dirk

Attachments

File name MIME type
signature.asc application/pgp-signature