list up the default usages of the various profiles. To ease writing partition recipes
To think about when writing recipes
- make sure df report at least 10% free space to keep nagios quiet
- remember 5% is reserved for root (so 15% free space is needed)
- allow a big home0 on mainserver,
- the partitioning tool will round up or down to the nearest "cylinder"
- try to keep sizes a multiple of 64 MiB, round up to nearest
Profiles from cd
main
df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_system-root 910M 84M 780M 10% / udev 10M 52K 10M 1% /dev devshm 65M 0 65M 0% /dev/shm none 65M 8.0K 65M 1% /tmp /dev/sda1 92M 13M 75M 15% /boot /dev/mapper/vg_system-skole+tjener+home0 2.6G 69M 2.4G 3% /skole/tjener/home0 /dev/mapper/vg_system-usr 2.7G 401M 2.2G 16% /usr /dev/mapper/vg_system-var 1.3G 128M 1.2G 11% /var
thin-client-server
Disk label: 'Debian GNU/Linux 5.0.1+edu0 A _Lenny_ - Unofficial Multi-architecture amd64/i386/powerpc NETINST #1 20090412-10:39' debian-edu-profile-udeb 0.675~svn57863 Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_system-root 1.9G 133M 1.7G 8% / /dev/hda1 236M 23M 201M 11% /boot /dev/mapper/vg_system-opt 1.2G 633M 489M 57% /opt /dev/mapper/vg_system-usr 5.7G 4.0G 1.5G 74% /usr /dev/mapper/vg_system-var 2.1G 1.8G 145M 93% /var /dev/mapper/vg_system-var+opt+ltsp+swapfiles 438M 11M 405M 3% /var/opt/ltsp/swapfiles Note: fsautoresize was called (208 times) for /var but couldn't grow the volume, only 204MB free. VG #PV #LV #SN Attr VSize VFree vg_system 1 6 0 wz--n- 13.75G 204.00M
workstation
Filesystem Size Used Avail Use% Mounted on /dev/mapper/DebEdu-root 2.8G 1.8G 918M 66% / /dev/hda1 183M 14M 160M 8% /boot /dev/mapper/DebEdu-usr 5.5G 4.4G 838M 85% /usr Note: fsautoresize was employed: # grep resize /var/log/installer/syslog Mar 24 18:05:57 debian-edu-fsautoresize: overfull /usr, resizing to 5289574 Mar 24 18:09:33 debian-edu-fsautoresize: overfull /usr, resizing to 5821235 label 'Debian GNU/Linux 5.0r0+edu0~a0 _Lenny_ - Unofficial i386 CD700 Binary-1 20090319-09:38' debian-edu-install-udeb 0.675~svn57322
standalone
Can be ignored becouse of manual partitioning.
Combined main + ltsp
Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_system-root 380M 72M 289M 20% / udev 10M 52K 10M 1% /dev devshm 65M 0 65M 0% /dev/shm none 65M 36K 65M 1% /tmp /dev/sda1 92M 13M 75M 15% /boot /dev/mapper/vg_system-opt 1.8G 497M 1.2G 30% /opt /dev/mapper/vg_system-skole+tjener+home0 2.0G 68M 1.9G 4% /skole/tjener/home0 /dev/mapper/vg_system-usr 2.3G 1.4G 796M 64% /usr /dev/mapper/vg_system-var 1.2G 154M 924M 15% /var
Combined main +ws + ltsp
Profiles from dvd
main
thin-client-server
workstation
standalone
Can be ignored becouse of manual partitioning.
Combined main + ltsp
Combined main +ws + ltsp
Suggestion
This suggestion is based on the '91edumain+ltsp' recipe, the recent results reported by Vagrant and those on my systems. used min prio factor max type desc ----------------------------------------------------- 4562 4608 9608 5000 6000 ext3 /usr (5632) (6000) (1392) 1720 1792 5792 4000 5000 ext3 /var (900) (3000) (2100) 17 100 3100 3000 20000 ext3 /skole/tjener/home0 (1500) (1400) 34 64 3064 3000 4096 ext3 /var/spool/squid (1000) (936) 633 640 2640 2000 4096 ext3 /opt 3385* (2000) (1360) (4000) - 256 2256 2000 2048 linux-swap (32) (10000) (9968) (300%) 100 112 2112 2000 1024 ext3 / (10000) (9888) (512) 34 92 1092 1500 3000 ext3 /var/opt/ltsp/swapfiles (2000) (1908) 17 64 1064 1000 2000 ext3 /skole/backup (1000) (936) 22 64 1064 1000 128 ext3 /boot (10000) (9936) (200) - 32 532 500 -1 ext3 /debianedufreespace (1000) (968) ______________________________________ 7156 7824 25000 The table is ordered by factor then by size. Numbers in parentheses are current values of suggested change. * WAS used for diskless on my system. Considerations: Used initially (used)- Amount of used space observed after installation. Amounts for long running system are also needed. Minimal size (min)- Try to avoid resize during installation. Set grater than used for normal install. Factor (fact)- This what really determines the growth rate of the partition. The growth coefficient is fact/factsum. fact = prio - min; rounded for easier view. Priority- Highest- Limited Maximal size && likely to grow. High- As big as possible. Low- give me some space. Lowest- filler. /boot- Assuming 10M per kernel 64M is plenty. [Ronny Aasen] I would not want boot too be too small. you may need to install things like memtest. and other tools that may go in there. and depending on your setup initrd can be smaller or larger. also this is not a LVM volume so growing it is a lot harder then for the other volumes. /- With some admins working as root, I'd like to give a little space for /root. /usr- Grows over time. [Vagrant Cascadian] we definitely should not have the minimum size less than 90% of the expected size. earlier, /usr minimum was closer to 4600, and that triggered the "resize during install" problem, untill we upped it to around 5600. /var- Initial needs change, depend on installation medium. Likely to grow over time. /opt- Needs 649M for thin-clients, 5G for diskless. [Vagrant Cascadian] i'd say /opt needs a minimum of 1G, as it may need more space during the install than after (for downloaded packages), as it automatically cleans out the LTSP chroot's /var/cache/apt/archives when it finishes the install. /var/opt/ltsp/swapfiles- Depends on number and type of clients. I think 256-512 per client. I don't see any reasonable default for this. Probably needs manual adjustment. /skole/tjener/home0- Depends on number of users. I don't see any reasonable default for this. Probably needs manual adjustment. /var/spool/squid- User experience may benefit immensely from >512M web cache. [Ronny Aasen] This need to correlate with squid config we provide i belive. Please add your own.
Particulator is a little calculator to predict approximately the resulted partitions of a recipe, in hope it will be useful.