hello to everyone, I'm trying to create a small home server that through container provides nas, media server and other services, I'm encountering problems to make that the various containers can read and write on the same raid managed through btrfs, this is the scheme of how I would like it to work.
i'll try to setup the bind mount like described into the wiki but this seems not working, can someone look at my config?
in the host i mount btrfs raid at /storage path:
and change all the containers config at /etc/pve/lxc/<xxx>.conf with this bind mount config:
after create a test file on /storage/Video i can not see it on a container:
where am I wrong? Is there a better way to get this? thx
Code:
+-------------------+--------------------+---------------------+--------------------+
| | | | |
| | container 1 | container 2 | container 3 |
| | | | |
| proxmox +---------+----------+-----------+---------+-------------+------+
| | | | |
| | +----------------+------------+ |
| | | | | | |
| | | +----------------+--+ | |
+---------+---------+ | | | | | +--------------+
| | | | | | | |
| | | | | | | |
+---------v---------+ +------v--v-----+-------v--v--+------v-v----+---------v------+
| proxmox/vm/lxc | | video | audio | misc | backup |
+-------------------+ +------------------------------------------------------------+
+-------------------+ +------------------------------------------------------------+
| EXT4 | | BTRFS raid 1 |
+-------------------+ +------------------------------------------------------------+
+-------------------+ +-------------------------+ +-----------------------------+
| SSD 120GB | | HDD 4TB | | HDD 4TB |
+-------------------+ +-------------------------+ +-----------------------------+
in the host i mount btrfs raid at /storage path:
Code:
root@pve:/# mount | grep btrfs
/dev/sdb on /storage type btrfs (rw,relatime,space_cache,subvolid=5,subvol=/)
Code:
root@pve:/# cat /etc/pve/lxc/100.conf
#nas service -> 192.168.1.201%0A
...CUT...
mp0: /storage/Video, mp=/mnt/video
mp1: /storage/Audio, mp=/mnt/audio
mp2: /storage/Misc, mp=/mnt/misc
mp3: /storage/Backup, mp=/mnt/backup
Code:
-------------- PVE
root@pve:/storage/Video# ls -la
total 20
drwxr-xr-x 1 root root 16 Feb 3 10:04 .
drwxr-xr-x 1 root root 72 Feb 3 09:10 ..
-rw-r--r-- 1 root root 11 Feb 3 10:04 test.txt
-------------- LXC
root@NAS /mnt/video# ls -la
total 8
drwxr-xr-x 2 root root 4096 Feb 3 08:08 .
drwxr-xr-x 7 root root 4096 Feb 3 08:08 ..