| | 12 | |
| | 13 | == Partitioning Scheme == |
| | 14 | |
| | 15 | We'll use [wiki:LVM]. here's the proposed partitioning scheme: |
| | 16 | |
| | 17 | Base disk is broken into two partitions: |
| | 18 | |
| | 19 | * `/dev/sda1` is a small (200MB) partition for `/boot` |
| | 20 | * `/dev/sda2` is everything else, and will be a physical volume (the only physical volume in the primary volume group for the machine) |
| | 21 | |
| | 22 | The primary volume group will have these logical volumes: |
| | 23 | |
| | 24 | * `root` is a ~1GB volume mounted at `/` |
| | 25 | * `usr` is a ~4GB volume mounted at `/usr` |
| | 26 | * `var` is a ~4GB volume mounted at `/var` |
| | 27 | * `swap` is a ~1GB volume used for swap space |
| | 28 | * the rest will be mounted as a scratch partition somewhere reasonable (like `/usr/local/scratch`) |
| | 29 | |
| | 30 | == temporary space == |
| | 31 | |
| | 32 | i'm inclined to mount `/tmp` as a RAM-backed filesystem. Since all RAM is actually backed by swap, this is reasonable, and it means that `/tmp` will be nicely auto-flushed on a reboot. An example line in `/etc/fstab` for such a method would look like this: |
| | 33 | {{{ |
| | 34 | tmpfs /tmp tmpfs size=300m,mode=1777,nosuid,nodev 0 0 |
| | 35 | }}} |