[SOLVED] Bind mount mounting but subdirectories are empty

ITPugilist

Well-Known Member
Dec 5, 2017
38
3
48
So I have on my Host machine:
/storage/HDD2
/storage/Internal

And I am planning to mount these on my Guest machine which is a container:
/srv/samba

So in my Guest machine I can see that under /srv/samba I see HDD2 and Internal respectively, but not their contents, so I am asking the wizards in the community to help me out. :)
 
Nevermind, I got it, /storage/HDD2 and /storage/Internal are from different hard drives, so I created mp0 and mp1 in my ct.conf file in /etc/pve/lxc and created 2 mount points for each of the directory. "HDD2" is mounted off of /dev/sdb and "Internal" being, well, internal in /dev/sda. Seems you can't create a single "bind mount" mount point for 2 mount points in a host machine to a container if they are located on different hard drives. I shall mark this now as solved. :)

Having a lot of fun with proxmox and a few hair grabbing moments but definitely worth it.