I've spent countless hours on this and I'm reaching a dead end so thought I'd turn here for some experienced and practical advice.
I've just setup Proxmox 8.1.3 on my homelab server running an Intel N100, 16gb RAM, a 256gb SATA ssd for OS and VM/LXC use and 3 3TG SATA spinning hard drives.
I'm trying to setup 2 of the drives in an LVM pool and then pass those combined drives as a single 6TB "drive" to an LXC container running docker for media storage use formatted with btrfs to take advantage of compression. I don't need redundancy at all and I don't need the pool to be backed up.
I used this guide: https://help.nodespace.com/knowledgebase.php?article=307 to group /dev/sdb & /dev/sdc (the two drives I want to "combine" and then have added a mount point to this storage under /media in the LXC config using the GUI.
What I'm unclear on is how to handle the storage either inside the container as it's mounted to /media and outside the container on the Proxmox level where it appears to be available as /dev/media/vm-100-disk-0 ...
I previously used "defaults,noatime,space_cache=v2,compress=zstd:3" as mount options when I had this all set up on Ubuntu but without using an LVM pool as various guides said that compression can help performance and obviously somewhat reduce storage use although thats not a priority.
My question is, what's the best or correct way to setup what I've described?
The storage pool "Format" in Proxmox "media" is specified as "raw" which is then I assume passed directly to the LXC container. I've successfully managed to format the LVM pool with btrfs in the Proxmox command line (it defaulted to ext4) but I'm not sure how to mount it inside the LXC container with the mount options mentioned above? fstab doesn't seem to apply either inside or outside the container since it's passed into the LXC "raw" and it isn't really mounted outside the container as far as I can tell?
What's the correct why to set this up? Would btrfs compression or other options be handled inside or outside the LXC container? How are they set?
I've just setup Proxmox 8.1.3 on my homelab server running an Intel N100, 16gb RAM, a 256gb SATA ssd for OS and VM/LXC use and 3 3TG SATA spinning hard drives.
I'm trying to setup 2 of the drives in an LVM pool and then pass those combined drives as a single 6TB "drive" to an LXC container running docker for media storage use formatted with btrfs to take advantage of compression. I don't need redundancy at all and I don't need the pool to be backed up.
I used this guide: https://help.nodespace.com/knowledgebase.php?article=307 to group /dev/sdb & /dev/sdc (the two drives I want to "combine" and then have added a mount point to this storage under /media in the LXC config using the GUI.
What I'm unclear on is how to handle the storage either inside the container as it's mounted to /media and outside the container on the Proxmox level where it appears to be available as /dev/media/vm-100-disk-0 ...
I previously used "defaults,noatime,space_cache=v2,compress=zstd:3" as mount options when I had this all set up on Ubuntu but without using an LVM pool as various guides said that compression can help performance and obviously somewhat reduce storage use although thats not a priority.
My question is, what's the best or correct way to setup what I've described?
The storage pool "Format" in Proxmox "media" is specified as "raw" which is then I assume passed directly to the LXC container. I've successfully managed to format the LVM pool with btrfs in the Proxmox command line (it defaulted to ext4) but I'm not sure how to mount it inside the LXC container with the mount options mentioned above? fstab doesn't seem to apply either inside or outside the container since it's passed into the LXC "raw" and it isn't really mounted outside the container as far as I can tell?
What's the correct why to set this up? Would btrfs compression or other options be handled inside or outside the LXC container? How are they set?