PDA

View Full Version : Disk Partition Recommendations on GAiA initial setup



sanhy85
2012-08-22, 21:12
Hi All,

I have a pair of SG4205 running in Full HA Standalone.

As you know, the areas for disk allocation are
1. System-swap
2. System-root
3. Logs
4. Backup Images

a) My environment does not have the need of taking snapshots | dependent on backups most often.

b) With 4 months into operation, the logs partition has used up around 17GB out of 60GB.

With 250GB in total, any recommendations on how much I should allocate to each partition?


Help much appreciated. Thanks. (:

Jejerod
2012-08-23, 14:01
GAiA usually creates a swap and LVM partition (and a very small /boot partition).


[Expert@gaia]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 19 152586 83 Linux
/dev/sda2 20 541 4192965 82 Linux swap / Solaris
/dev/sda3 542 60801 484038450 8e Linux LVM

sda1: /boot, ~150MB
sda2: swap, ~4GB
sda3: LVM, ~484GB (2205 Appliance has 500GB Disk)

The LVM partition holds the volume group vg_splat with a 32G logical volume for the operating system as well as a log volume. snapshots are created as new logical volumes in the free LVM space.


[Expert@gaia]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
lv_RP2012_07_12 vg_splat -wi-a- 4.53G
lv_RP2012_07_25 vg_splat -wi-a- 5.03G
lv_RP2012_08_17 vg_splat -wi-a- 5.22G
lv_current vg_splat -wi-ao 32.00G
lv_fcd_GAIA vg_splat -wi-a- 4.00G
lv_log vg_splat -wi-ao 60.00G

lv_current is for the operating system, mounted at /
lv_log is for logs, mounted at /var/log
lv_RP* are snapshots
lv_fcd_GAIA is for restoring factory defaults, I think.

You may want to snapshot your device when upgrading; not for backup. Snapshots are not a replacement for a backup anyway.

If you know your way around Linux LVM, remember that you can resize your volumes later (lvextend --help). So you can't really make a mistake by starting with a small log volume and extending it if needed.

Also, depending on the features you use, the size of snapshots vary. 32G snapshots would mean that the / partition is full, so your snapshots will probably use considerably less space. The 4 GB factory defaults volume will be taken from the snapshot space, so take this into account.

I'd use:
- 4GB swap
- 32GB GAiA (current)
- 32GB+4GB (factory default) for snapshots
This comes to 72GB, so you may select something around 175GB for logs. Or you may start with 120GB and extend the lv later if necessary, which will give you the option for another snapshot or three if needed.