I have the following ZFS structure:
% sudo zfs list 16:03:46
NAME USED AVAIL REFER MOUNTPOINT
zpool1 1.18T 5.86T 544K legacy
zpool1/home 1.18T 5.86T 96K legacy
zpool1/home/alice 12.6G 5.86T 12.6G /zshare/zpool1/home/alice
zpool1/home/bob 1.17T 5.86T 1.02T /zshare/zpool1/home/bob
zpool2 2.22T 4.82T 188K legacy
zpool2/media 1.13T 4.82T 1.13T /zshare/zpool1/home/media_root
For performance & storage reasons, zpool1
& zpool2
do not share any disks. I want both bob & alice to access media_root
. Bob & Alice are not allowed to access each other's files though.
- I cannot share /zshare/zpool1/home as a folder because it belongs to the root partition, which is small and if alice or bob wanted to copy anything larger than 60Gb to their folder it would fail with "not enough space" even though their home folder has it (Windows calculates the space from the drive hosting the SMB shared folder).
- I cannot share two folders to both user's workstations, because Windows doesn't allow you to mount multiple network drives from the same IP address...
- I cannot symlink
media_root
into/alice
and/bob
because on Windows it will not follow the symlink, and I can't seem to get hardlinks to work across Z filesystems.
I really REALLY don't want to duplicate all the files in media_root
to a subfolder for both alice & bob, and use a crontab-style rsync to keep them both updated with each other and on zpool2, but what other options are there?
I am sure there is some way to make this happen with ZFS on Ubuntu 20.04, but HOW?
EDIT: The network in question does NOT have DNS.