Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFS mounting broken on newish LX images #994

Open
sjorge opened this issue Aug 9, 2021 · 7 comments
Open

NFS mounting broken on newish LX images #994

sjorge opened this issue Aug 9, 2021 · 7 comments

Comments

@sjorge
Copy link
Contributor

sjorge commented Aug 9, 2021

I noticed NFS share mounting was broken when trying to upgrade to a new Ubuntu 20.04 images from 16.04 (new image, not an in place upgrade)

OS Image Provider Host Result
Ubuntu 20.04 Joyent SmartOS 20210426T094839Z Broken
Ubuntu 20.04 Joyent Omnios Bloody Broken
Ubuntu 20.04 OmniOS Omnios Bloody Broken
Ubuntu 18.04 OmniOS Omnios Bloody OK
Ubuntu 16.04 Joyent SmartOS 20210426T094839Z OK
Ubuntu 16.04 Joyent Omnios Bloody OK
Debian 9 Joyent SmartOS 20210426T094839Z OK
Debian 9 Joyent Omnios Bloody OK
Debian 10 OmniOS Omnios Bloody Broken

Doesn't look to be SmartOS specific as OmniOS has the same problem,

I noticed on I noticed rpc.statd fails to start according to systemd, however the process is running when checking with ps. I also noticed that on Ubuntu 20.04 lx_lockd isn't started, but it runs fine manually. I think mount -t nfs never gets to the state where we start lx_lockd.

I also noticed the rpc.statd failure on Ubuntu 18.04 on OmniOS but there mounting works fine. I'm guessing it's a mix of systemd and nfs-common changes that is causing the failure.

@sjorge
Copy link
Contributor Author

sjorge commented Aug 9, 2021

Poke @papertigers

@papertigers
Copy link
Contributor

I think I recall seeing something similar, I will try and trace down what's happening and how viable a fix might be.

@sjorge
Copy link
Contributor Author

sjorge commented Aug 9, 2021

I think the rpc.statd one is a systemd related change systemd/systemd@db256aa but I don't think that is the problem here, as it works fine in 18.04 which also has the rpc.statd issue.

@papertigers
Copy link
Contributor

papertigers commented Aug 10, 2021

Okay I have setup one OmniOS sparse zone sharing a directory and one ubuntu 20.04 lx zone.
sharemgr share -F nfs -o anon=1000,ro /share
root@ubuntu20:~# mount -t nfs -o vers=4,ro 192.168.50.13:/share /share

root@ubuntu20:/share# ls
hello

How are you attempting to setup the share via systemd or /etc/fstab?

@papertigers
Copy link
Contributor

Spoke with @sjorge over irc. It seems that mount attempts versions 4.2, 4.1, 4.0, and 3. Specifying -o vers=4 is a workaround for now. Need to do a refresh into how lx_lockd is triggered and what might be happening.

@sjorge
Copy link
Contributor Author

sjorge commented Aug 10, 2021

And trying all them manually, only vers=4 works the others fail.

@Adel-Magebinary
Copy link

(readonly == B_TRUE) ? "vers=3,sec=sys,ro" : "vers=3,sec=sys",

This might help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants