Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS server/client install fails here...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Sun Jan 19, 2025 9:37 pm    Post subject: NFS server/client install fails here... Reply with quote

Installed as
Code:
emerge -pv net-fs/nfs-utils

These are the packages that would be merged, in reverse order:

Calculating dependencies....... done!
Dependency resolution took 14.65 s (backtrack: 0/20).

[ebuild   R    ] net-fs/nfs-utils-2.7.1::gentoo  USE="-caps -junction -kerberos -ldap libmount -nfsv3 nfsv4 -sasl (-selinux) -tcpd uuid" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Throws
Code:
modprobe nfsd
rc-service nfs start
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/rpc.statd start
 * Starting NFS statd ...
 * Detaching to start `/sbin/rpc.statd' ...
 *   start-stop-daemon: failed to start `/sbin/rpc.statd'                 [ !! ]
 * ERROR: rpc.statd failed to start
 * ERROR: cannot start nfs as rpc.statd would not start


Install follows wiki but nfs4 only and module.

I must be missing something...
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Tue Jan 21, 2025 6:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3948

PostPosted: Sun Jan 19, 2025 10:26 pm    Post subject: Reply with quote

Is
Code:

/etc/init.d/rpcbind

running?
_________________
:)
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Sun Jan 19, 2025 11:22 pm    Post subject: Reply with quote

@alamahant,
Thks 4 ur support.

To my understanding [nfsv4] has strong implication because CONFIG_RPCSEC_GSS_KRB5 gets forced.

Since I want an off the shelf easy and quick solution for home network, I currently switched to nfsv3.
Code:
emerge -pv net-fs/nfs-utils

These are the packages that would be merged, in reverse order:

Calculating dependencies.... done!
Dependency resolution took 14.68 s (backtrack: 0/20).

[ebuild   R    ] net-fs/nfs-utils-2.7.1::gentoo  USE="-caps -junction -kerberos -ldap libmount nfsv3 -nfsv4 -sasl (-selinux) -tcpd uuid" 0 KiB
Code:
rc-service nfs start
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/nfs start
 * Exporting NFS directories ...                                          [ ok ]
 * Starting NFS mountd ...
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6            [ ok ]
 * Starting NFS daemon ...                                                [ ok ]
 * Starting NFS smnotify ...                                              [ ok ]
Would be nice to get rid of these
Code:
pc.mountd: svc_tli_create: could not open connection for [tp/ud]p6


Could be I later come back to [nfsv4] aiming to figure out how to have it working in a minimalist approach.

Thks 4 ur attention, interest & support
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3948

PostPosted: Tue Jan 21, 2025 12:56 am    Post subject: Reply with quote

Quote:

CONFIG_RPCSEC_GSS_KRB5 gets forced.

I think only if you use sec=krb5(pi) in /etc/exports.
Then you will need also to invoke
rpc.gssd
and
rpc.svcgssd
by adding them in /etc/conf.d/nfs(client).
I am not certain but i think nfs4 uses rpc.idmapd by default.
_________________
:)
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Tue Jan 21, 2025 7:00 pm    Post subject: Reply with quote

Setting the client side;
Code:
emerge -p -v net-fs/nfs-utils

 * IMPORTANT: 82 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in reverse order:

Calculating dependencies  ..... done!
Dependency resolution took 31.15 s (backtrack: 0/20).

[ebuild   R    ] net-fs/nfs-utils-2.7.1::gentoo  USE="-caps -junction -kerberos -ldap libmount nfsv3 -nfsv4 -sasl (-selinux) -tcpd uuid" 0 Ki
Code:
grep NFS /boot/config-5.15.175-gentoo-dist
CONFIG_XENFS=m
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_KERNFS=y
CONFIG_NFS_FS=m
# CONFIG_NFS_V2 is not set
CONFIG_NFS_V3=m
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=m
CONFIG_NFS_SWAP=y
CONFIG_NFS_V4_1=y
CONFIG_NFS_V4_2=y
CONFIG_PNFS_FILE_LAYOUT=m
CONFIG_PNFS_BLOCK=m
CONFIG_PNFS_FLEXFILE_LAYOUT=m
CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org"
# CONFIG_NFS_V4_1_MIGRATION is not set
CONFIG_NFS_V4_SECURITY_LABEL=y
CONFIG_NFS_FSCACHE=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
CONFIG_NFS_DEBUG=y
CONFIG_NFS_DISABLE_UDP_SUPPORT=y
# CONFIG_NFS_V4_2_READ_PLUS is not set
CONFIG_NFSD=m
# CONFIG_NFSD_V2 is not set
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_PNFS=y
CONFIG_NFSD_BLOCKLAYOUT=y
CONFIG_NFSD_SCSILAYOUT=y
CONFIG_NFSD_FLEXFILELAYOUT=y
CONFIG_NFSD_V4_2_INTER_SSC=y
CONFIG_NFSD_V4_SECURITY_LABEL=y
CONFIG_NFS_ACL_SUPPORT=m
CONFIG_NFS_COMMON=y
CONFIG_NFS_V4_2_SSC_HELPER=y
Code:
lsmod|grep nfs
nfs                   372736  0
lockd                 122880  1 nfs
sunrpc                520192  2 lockd,nfs
fscache               393216  1 nfs

Starting the service throws:
Code:
rc-service nfsclient start
 * Caching service dependencies ...
Service 'nfsclient' needs non existent service 'rpc.idmapd'                                                                                                         [ ok ]
 * ERROR: nfsclient needs service(s) rpc.idmapd


Side note: Oh boy, I hardly recall having such a hard time with a gentoo wiki.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Tue Jan 21, 2025 7:47 pm    Post subject: Reply with quote

Learning the hard way:
Code:
emerge -p -v net-fs/nfs-utils

 * IMPORTANT: 74 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in reverse order:

Calculating dependencies  .!!! /etc/portage/package.env references non-existent file: /etc/portage/env/slibtool-max-error
!!! /etc/portage/package.env references non-existent file: /etc/portage/env/slibtool-max-error
. ...... done!
Dependency resolution took 19.26 s (backtrack: 0/20).

[ebuild   R    ] net-fs/nfs-utils-2.7.1::gentoo  USE="-caps -junction -kerberos -ldap libmount nfsv3 nfsv4 -sasl (-selinux) -tcpd uuid" 0 KiB
Now starts as:
Code:
rc-service nfsclient start
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/rpcbind start
 * Starting rpcbind ...
 * Detaching to start `/sbin/rpcbind' ...                                                                                                                           [ ok ]
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/rpc.statd start
 * Starting NFS statd ...
 * Detaching to start `/sbin/rpc.statd' ...                                                                                                                         [ ok ]
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/rpc.pipefs start
 * Setting up RPC pipefs ...                                                                                                                                        [ ok ]
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/rpc.idmapd start
 * Starting idmapd ...                                                                                                                                              [ ok ]
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/nfsclient start
 * Starting NFS sm-notify ...

Thks 4 ur attention, interest and support
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Tue Jan 21, 2025 8:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9331

PostPosted: Tue Jan 21, 2025 8:09 pm    Post subject: Reply with quote

Code:
* IMPORTANT: 82 config files in '/etc/portage' need updating.

Code:
* IMPORTANT: 74 config files in '/etc/portage' need updating.

I have no words ...
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Tue Jan 21, 2025 8:55 pm    Post subject: Reply with quote

asturm wrote:
I have no words ...
You have at least FOUR words and A.E.I.O.U. is no more than the ordered list of the FIVE vowels of the alphabet.
It would be much appreciated here if you keep out of the way with what I can't refrain to consider as a trolling like posture since you have no evidences your point is any relevant
to the OP.
Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum