Re: NFS setup -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux