Re: NFS configuration problem -

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

 



On Mon, 14 Sep 2020 at 19:37, Bob Goodwin <bobgoodwin@xxxxxxxxxxx> wrote:


On 2020-09-14 18:20, George N. White III wrote:
>
>
>     Presentiy /etc/exports is:
>
>     [bobg@nfs ~]$ cat /etc/exports
>     /nfs4exports/home
>     192.168.50.0/24(rw,sync,insecure,no_root_squash,no_subtree_check)
>     <http://192.168.50.0/24(rw,sync,insecure,no_root_squash,no_subtree_check)>

Looks like a mail program tried to make a link.
 
>
>     It looks like I am exporting the wrong location/partition ...
>
>
> Did you mean to export "/home/nfs4exports"?
>
> --
> George N. White III
°
If that will store the data in the large "'home" partition that shows
only 4% used, yes. But at this point I'm not sure what to do to correct
this, can I edit the /etc/exports file in the server directly. I assume
I will need to change fstab accordingly too.

Yes on all counts.  We need to work on building your confidence by
showing you how to verify that each change you make is working as
expected.

On the server, I suggest you copy "/etc/exports" to "/etc/exports.new",
edit "/etc/exports.new" to make the change and post the .new file here
so others can check for problems.  Once you are confident that the
changes are good, you can use "showmount -e" to record the
current state, then, on the client, unmount the server so you can
make the change:

On the client, unmount all nfs filesystems:
step 0. sudo umount -a -t nfs
Back on the server, you need to stop exporting the old directory,:

step 0: sudo exportfs -u  "/nfs_share/home"

then move the data from "/nfs_share/home" to "/home/nfs_share":

step 1: sudo mv /nfs_share/home /home/nfs_share
systemctl daemon-reload
Check that /nfs_share is empty, that /home/nfs_share
has the expected contents, and that the root partition has gained
roughly the same space that has been lost on the /hom
Check that /nfs_share is empty and that /home/nfs_share
has the expected contents.

Update "/etc/exports", and export the new "/home/nfs_share":

step 2. sudo mv /etc/exports /etc/exports.old
step 3. sudo mv /etc/exports.new /etc/exports
step 4: sudo  exportfs -av

Verify that this worked by running "showmount -e"

Back on the client, make a  "/etc/fstab.new" with the same process and post
for review.  The version you posted earlier seems to have a typo, but that may
have occurred when posting. 

Once you are confident in your fstab, replace the original version with the updated
version

step 5: sudo mv /etc/fstab /etc/fstab.old
step 6: sudo mv /etc/fstab.new /etc/fstab

Then let systemd know about the changes:

step 7: sudo  systemctl daemon-reload
step 8:
e partition
by running "df -lh / /home"

Update "/etc/exports", and export the new "/home/nfs_share":

step 2. sudo mv /etc/exports /etc/exports.old
step 3. sudo mv /etc/exports.new /etc/exports
step 4: sudo  exportfs -av

Verify that this worked by running "showmount -e"

Back on the client, make a  "/etc/fstab.new" with the same process and post
for review.  The version you posted earlier seems to have a typo, but that may
have occurred when posting. 

Once you are confident in your fstab, replace the original version with the updated
version

step 5: sudo mv /etc/fstab /etc/fstab.old
step 6: sudo mv /etc/fstab.new /etc/fstab

Then let systemd know about the changes:

step 7: sudo  systemctl daemon-reload

Verify that the changes are working: the contents of "/media/nfs"
should look the same as they did before the server ran out of space
on the root partition.

--
George N. White III

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@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