New to Rockstor, so I probably have bungled something somewhere. Additionally, while I have many years of linux experience, I’ve never quite gotten NFS right… so the likely hood of buglement there is quite high.
I created an NFS export, but then realized that I needed no_root_squash. At first I thought I needed to use advanced editing to get this, and it appeared that I could only do that while creating an export. So I deleted the export I had already made, and added one through advanced editing. But that didn’t show up under exports, which didn’t seem right, so I deleted that and went back to the regular creation screen. I then saw that the admin ip option sets no_root_squash, so I tried re-making the share with that… only to get the error in the screenshot.
Any suggestions would be appreciated. Thanks!
Detailed step by step instructions to reproduce the problem
I think these are the steps I took
Create an NFS share using the normal screen
Delete the share
Create (or attempt to) the share via advanced editing
Delete the share from the advanced editor
Attempt to create the share using the “Add NFS Export” button
Get the error message
Delete all references to the IP using the system shell, directly editing /etc/exports
Attempt to create the share using the “Add NFS Export” button
TLDR: remove all exports, confirm via “Advanced edit” and restart the NFS service.
I had a similar issue recently where one of my exports got stuck but only showed up in the “Advanced edit” tab. Removing it via nano /etc/exports didn’t fix it, as the export was automatically restored. In my particular case, the stuck export was some snapshot I had made, so I was able to solve the issue by just removing that snapshot.
Thanks @unguul! I think my original issue managed to resolve itself somehow, maybe by the old snapshots being removed by schedule.
Amusingly though, while trying to resolve my most recent problem, a google search caused me to stumble on my own post and your answer, which turned out to be the key to helping me resolve it!
So for anyone else stumbling on this, here are a few more breadcrumbs that might help.
I had an issue where an NFS export would not start up after a reboot. There was a low level in the rockstor logs saying the NFS export couldn’t be created to to a failed mkdir command.
Turns out NFS does not get along with visible shares, as described here:
Unfortunately, the solution there didn’t work for me, as I could not delete the snapshots, I think because they were being exported via NFS. This post lead me to see where I could find that. A lot of going in seeming circles and using chattr -i /export/share/offending_snapshot followed by rm -r /export/share/offending_snapshot eventually got things cleared out, and I was able to delete snapshots. Then I was eventually able to re-make the NFS share, and things started working again.