1 |
On Fri, Nov 25, 2011 at 11:12:42PM +0700, Pandu Poluan wrote |
2 |
|
3 |
> Everytime I read some guide on LVM, my eyes becomes blurry, the room |
4 |
> starts spinning, and I can hear wolves howling ... :D |
5 |
> |
6 |
> Seriously, LVM looks mighty nice, but it also looks (and is!) mighty complex. |
7 |
> |
8 |
> So, I want to start from something simple. |
9 |
> |
10 |
> Aaaanyways, after reviewing my production boxes, I decided to |
11 |
> implement the following strategy: |
12 |
> |
13 |
> / == 800 MiB |
14 |
> /boot == 20 MiB |
15 |
> /usr == 1800 MiB |
16 |
> /usr/portage == 2000 MiB |
17 |
> /var == 4000 MiB |
18 |
> /var/lib/postgresql == 1000 MiB |
19 |
> |
20 |
> Comments, suggestions, are welcome :) |
21 |
|
22 |
I have my own weird approach that's even weirder than my mdev setup<G>. |
23 |
I start with... |
24 |
* 250 megabytes for / as ext2fs (No that is not a typo) |
25 |
* 4 gigs for swap |
26 |
* the rest of the drive is /home as one huge reiserfs partition |
27 |
|
28 |
And I do *NOT* use LVM. "fdisk -l" shows... |
29 |
|
30 |
Device Boot Start End Blocks Id System |
31 |
/dev/sda1 2048 976773167 488385560 5 Extended |
32 |
/dev/sda5 4096 516095 256000 83 Linux |
33 |
/dev/sda6 518144 8906751 4194304 83 Linux |
34 |
/dev/sda7 8908800 976773167 483932184 83 Linux |
35 |
|
36 |
"df" shows |
37 |
|
38 |
Filesystem 1K-blocks Used Available Use% Mounted on |
39 |
rootfs 247919 29315 205804 13% / |
40 |
/dev/root 247919 29315 205804 13% / |
41 |
devtmpfs 10240 0 10240 0% /dev |
42 |
rc-svcdir 1024 44 980 5% /lib/rc/init.d |
43 |
mdev 10240 0 10240 0% /dev |
44 |
shm 1551308 0 1551308 0% /dev/shm |
45 |
/dev/sda7 483917384 251951296 231966088 53% /home |
46 |
|
47 |
The secret is that I bindmount /opt, /var, /usr, and /tmp onto the |
48 |
large reiserfs partition. |
49 |
############################################################################## |
50 |
/dev/sda5 / ext2 noatime,nodiratime,async 0 1 |
51 |
/dev/sda7 /home reiserfs noatime,nodiratime,async,notail 0 1 |
52 |
/home/bindmounts/opt /opt auto bind 0 0 |
53 |
/home/bindmounts/var /var auto bind 0 0 |
54 |
/home/bindmounts/usr /usr auto bind 0 0 |
55 |
/home/bindmounts/tmp /tmp auto bind 0 0 |
56 |
/dev/sda6 none swap sw 0 0 |
57 |
/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0 |
58 |
/dev/cdrom1 /mnt/cdrom1 auto noauto,user,ro 0 0 |
59 |
/dev/sdb1 /mnt/extb auto noauto,user,noatime,async 0 0 |
60 |
/dev/sdc1 /mnt/extc auto noauto,user,noatime,async 0 0 |
61 |
|
62 |
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for |
63 |
# POSIX shared memory (shm_open, shm_unlink). |
64 |
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will |
65 |
# use almost no memory if not populated with files) |
66 |
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
67 |
############################################################################## |
68 |
|
69 |
-- |
70 |
Walter Dnes <waltdnes@××××××××.org> |