On Mon, 14 Sep 2020 at 19:37, Bob Goodwin bobgoodwin@fastmail.us 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)%3E
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.