Ext4 on 2TB storage vps, should I make one big / or split into /home and /var?
Storage VPS: single big partition or split by use?
- I used to do single partition
- Then I lost everything when /var filled up
- Now I split by use case
- But zfs makes this easier
- With datasets instead of partitions
- You can snapshot each one
- Compression per dataset too
- Though maybe overkill for storage vps
world record: 4min Arch install
svendeal said:
Zfs makes this easier
Simple is better. One pool, many datasets. No partition table anxiety. Send | receive for backup. ext4 cannot do this.
131 days, but this is still relevant for anyone setting up a new box.
Jonas said:
Then I lost everything when /var filled up
This is the exact reason I split even on ext4. One bad log rotation or a runaway docker volume and your home directory is hostage to a quota fight. With separate partitions the damage stays bounded.
ZFS datasets are nicer in theory but most storage VPS offerings still ship ext4 by default. You work with what the provider gives you unless you want to fight the installer.
I do /, /var, and /home as a minimum. The overhead is a few gigs of padding I never miss.
it's not lag, it's dramatic tension