On 04/17/2018 02:42 AM, Bob Goodwin wrote:
/dev/mapper/fedora-home 2.7T 4.8G 2.5T 1% /home
As you can see it is putting the stored data in "/" [19G in a 49G
space]. Those partitions were setup selecting "custom/standard
partitions] in the installer. It looks to me like I should've used the
2.7T of space in "/" but that's not easy for me to do now.
So I guess it boils down to how do I tell NFS to store data in /home
instead of "/"? I've been looking at this and can't see what to
change, or maybe it can';t be fixed that way?
If you are using NFSv4, this is trivial. Make a directory,
/home/exports, and use that as your NFS root. Create
/home/exports/var/ftp/pub and /home/export/home/public and move the
required content to those locationos. In /etc/exports:
/home/export 192.168.1.0/255.255.255.0(ro)
/home/export/var/ftp/pub 192.168.1.0/255.255.255.0(ro)
/home/export/home/public 192.168.1.0/255.255.255.0(rw)
/home/export 192.168.54.0/255.255.255.0(ro,sync)
/home/export/var/ftp/pub 192.168.54.0/255.255.255.0(ro,sync)
If you want to export those directories via NFSv3, you'd create the same
directory structure, and then bind mount those directories into place.
Create the directories, move the content, and then add to /etc/fstab:
/home/export/var/ftp/pub /var/ftp/pub none bind 0 0
/home/export/home/public /home/public none bind 0 0
After setting up fstab, you can "mount /var/ftp/pub" and "mount
/home/public". Those will be mounted automatically each time you reboot.
In that case, /etc/exports should look like:
/var/ftp/pub 192.168.1.0/255.255.255.0(ro,mountpoint)
/home/public 192.168.1.0/255.255.255.0(rw,mountpoint)
/var/ftp/pub 192.168.54.0/255.255.255.0(ro,sync,mountpoint)
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx