I am building a home server to host a few self hosted apps in docker (Ubuntu LTS). I would like to put all the files for the apps in the user home folder to keep them in one place and easy back up. I am thinking about 2 x main folders: /home/user/docker – for docker compose and all docker volumes and /home/user/data – for all my files:
/home/user/ docker/ container1 container2 … data/ entertainment/ movies series music downloads/ documents/ photos/ personal files/ backups/ laptop_backups/ phone_backups/ I will assign the data/ folder to Nextcloud for access from family laptops and phones.
I have a 500GB SSD, 1TB HDD + a few different smaller size HDD’s + probably will add more HDD’s in the future. Maybe also one more SSD.
I am planning to divide the storage as LVM:
SSD – 2 partitions: 100GB & 400GB HDD – 1 partition: 1TB
I will create 3 x Volume Groups: 100GB – “system”, 400GB – “SSD”, 1TB – “HDD”.
I am thinking about a following set up:
VG 100GB “system” – LV “system” for /
VG “HDD” – LV “slow data” for:
/home/user/data/entertainment /home/user/data/backups /home/user/data/downloadsVG “SSD” – LV “fast data” for:
/home/user/data/documents /home/user/user/docker
My question is: how to best divide the storage between Volume Groups and Logical Volumes? I would like to have a flexible set up so that I could resize and change disk storage in the future and at the same time use the SSD space in the best way.