|
Bugzilla – Full Text Bug Listing |
| Summary: | dracut: the nfs module issues "rpc.statd: Running as root. chown /var/lib/nfs to choose different user" | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Antonio Feijoo <antonio.feijoo> |
| Component: | Basesystem | Assignee: | dracut maintainers <dracut-maintainers> |
| Status: | NEW --- | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | nfbrown, thomas.blume |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | dracut patch | ||
|
Description
Antonio Feijoo
2023-12-07 15:03:04 UTC
Why are we even running rpc.statd from the initrd - that doesn't make a lot of sense. What filesystem is being mounted? Presumably a root filesystem? Is this root filesystem shared with other clients? If so do all the clients treat as read-only? If the filesystem mounted is never shared, or if it is only accessed read-only. then we don't need NFS locking, and so don't need rpc.statd. Possibly the problem is that NFS is starting rpc.statd when it doesn't need to. (In reply to Neil Brown from comment #1) > Why are we even running rpc.statd from the initrd - that doesn't make a lot > of sense. Maybe this code is outdated, it was introduced in 2009 (https://github.com/dracutdevs/dracut/commit/f6f74096f6fa2bac0e841f21134dba00b5b65d9a), at least it was added with the following comment: ``` # Start rpc.statd as mount won't let us use locks on a NFSv4 # filesystem without talking to it. NFSv4 does locks internally, # rpc.lockd isn't needed ``` > What filesystem is being mounted? Presumably a root filesystem? Yes. > Is this root filesystem shared with other clients? If so do all the clients > treat as read-only? I don't know the answer to this question. Thomas, have you ever seen the dracut nfs module on a real customer setup? > If the filesystem mounted is never shared, or if it is only accessed > read-only. then we don't need NFS locking, and so don't need rpc.statd. > > Possibly the problem is that NFS is starting rpc.statd when it doesn't need > to. Thanks for this background. (In reply to Antonio Feijoo from comment #2) > > Is this root filesystem shared with other clients? If so do all the clients > > treat as read-only? > > I don't know the answer to this question. Thomas, have you ever seen the > dracut nfs module on a real customer setup? Yeah, I remember some setups on diskless clients. But Neil is right, a shared rw nfsroot doesn't make any sense as clients would overwrite each other. AFAICR all of these shared nfsroot setups were ro. So, I guess we can live without NFS locking for nfsroot in the initrd. Still, I would put a kind of warning there that shared nfsroot in rw mode is not supported. Just in case someone finds a usecase one day. |