Gentoo Archives: gentoo-user

From: Alexander Skwar <listen@×××××××××××××××.name>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Re: Resize /
Date: Sat, 18 Nov 2006 17:56:58
Message-Id: 1223893.gp5QoyjxzT@m-id.message-center.info
In Reply to: Re: [gentoo-user] Re: Resize / by Dale
1 · Dale <dalek@××××××××××.net>:
2
3 > Alexander Skwar wrote:
4 >> < snip >
5 >> The advantage of EVMS over LVM in this case would be, that he
6 >> wouldn't have to reformat/repartition and would still be able
7 >> to resize the partition/filesystem, wouldn't he?
8 >> < snip >
9 >> Yes, with reiserfs, this can be done. But also with every other
10 >> "normal" filesystem besides ext2.
11 >>
12 >> Alexander Skwar
13 >>
14 >
15 > Somewhat on topic here. How hard is it to do this with no previous
16 > knowledge of how it works?
17
18 Impossible to do. Nothing at all can be done without knowledge.
19
20 IMO a better question is: How hard is it, to get proper
21 knowledge?
22
23 Answer: Easy, thanks to the excellent LVM howto. See
24 http://tldp.org/HOWTO/LVM-HOWTO/
25
26 > I am constantly running into the same thing
27 > the OP is and having to move things around.
28
29 Very basic hint: Make your filesystems as small as possible and
30 enlarge them, when required. This means, that you'd start out
31 with a lot of unallocated space.
32
33 > Currently I have two 80GB
34 > drives. Here is my partition scheme at the moment:
35 >
36 >> root@smoker / # mount
37 >> /dev/hda6 on / type reiserfs (rw)
38 >> /dev/hda1 on /boot type reiserfs (rw,noatime,notail)
39 >> /dev/hda7 on /home type reiserfs (rw)
40 >> /dev/hda8 on /usr type reiserfs (rw)
41 >> /dev/hda9 on /usr/portage type reiserfs (rw)
42 >> /dev/hda10 on /data type reiserfs (rw)
43 >> root@smoker / #
44 >> root@smoker / # df
45 >> Filesystem 1K-blocks Used Available Use% Mounted on
46 >> /dev/hda6 9765136 1896004 7869132 20% /
47 >> /dev/hda1 146612 45880 100732 32% /boot
48 >> /dev/hda7 9765136 1236144 8528992 13% /home
49 >> /dev/hda8 9765136 4269660 5495476 44% /usr
50 >> /dev/hda9 5859272 3052004 2807268 53% /usr/portage
51 >> /dev/hda10 43762436 10667796 33094640 25% /data
52
53 Hm. Those are IMO too large. Generally, I'd make the filesystems
54 so large, that they are about 80% filled.
55
56 >> root@smoker / #
57
58 As I've said often before: I'd use filesystems for /, /var, /opt,
59 /boot, /usr and /home. And actually I also use seperate filesystems
60 for Gentoo stuff.
61
62 alexander@blatt ~ $ df
63 Dateisystem 1K-Blöcke Benutzt Verfügbar Ben% Eingehängt auf
64 /dev/hda3 404832 193740 211092 48% /
65 devshm 355300 66108 289192 19% /dev/shm
66 temp 355300 200 355100 1% /tmp
67 /dev/hda7 23300 8388 13709 38% /boot
68 /dev/mapper/sys-Opt 531776 477360 54416 90% /opt
69 /dev/mapper/sys-Var 713500 253360 460140 36% /var
70 /dev/mapper/sys-Gentoo
71 4075188 3846720 228468 95% /Gentoo
72 /dev/mapper/sys-Ccache
73 2067124 1925708 141416 94% /Gentoo/ccache
74 /dev/mapper/sys-PortageBuild
75 2097084 82032 2015052 4% /Gentoo/Portage/build
76 /dev/mapper/sys-USR 5242716 2701260 2541456 52% /usr
77 /dev/mapper/sys-Sources
78 1142744 690160 452584 61% /usr/src
79 /dev/mapper/sys-Home 1834948 1104528 730420 61% /home
80 /dev/mapper/sys-GentooAlt
81 1187796 1108112 79684 94% /alt
82 /dev/mapper/sys-MediaNeu
83 597992 33168 564824 6% /data/media
84 /dev/mapper/sys-CD--GN--WMAG
85 261797 243647 18150 94% /data/CD-GN-WMAG
86 /dev/mapper/sys-Eigene_Dateien
87 717596 553204 164392 78% /data/Eigene_Dateien
88 svcdir 512 200 312 40% /var/lib/init.d
89
90 alexander@blatt ~ $ sudo vgdisplay sys
91 --- Volume group ---
92 VG Name sys
93 System ID
94 Format lvm2
95 Metadata Areas 2
96 Metadata Sequence No 623
97 VG Access read/write
98 VG Status resizable
99 MAX LV 0
100 Cur LV 12
101 Open LV 12
102 Max PV 0
103 Cur PV 2
104 Act PV 2
105 VG Size 27,39 GB
106 PE Size 4,00 MB
107 Total PE 7012
108 Alloc PE / Size 5023 / 19,62 GB
109 Free PE / Size 1989 / 7,77 GB
110 VG UUID MtUu25-c1G2-w28Q-C2md-Gq99-IIMw-8WNTAq
111
112
113 Alexander Skwar
114 --
115 Research is to see what everybody else has seen, and think what nobody
116 else has thought.
117
118
119 --
120 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Re: Re: Resize / Dale <dalek@××××××××××.net>