nfs v4 server client autofs gentoo
https://wiki.gentoo.org/wiki/NFSv4
https://wiki.archlinux.org/index.php/NFS
Server
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
CONFIG_NFSD_V4=y
# CONFIG_NFSD_FAULT_INJECTION is not set
CONFIG_NFS_COMMON=y
antec ~ # cat /etc/exports
/export 192.168.192.0/24(rw,fsid=0,no_subtree_check)
/export/sata1 192.168.192.0/24(rw,nohide,no_subtree_check)
/export/sata2 192.168.192.0/24(rw,nohide,no_subtree_check)
risko@k53sv ~ $ zcat /proc/config.gz | grep -i nfs
CONFIG_NFS_FS=m
CONFIG_NFS_V2=m
CONFIG_NFS_V3=m
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=m
https://wiki.archlinux.org/index.php/NFS
Server
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
CONFIG_NFSD_V4=y
# CONFIG_NFSD_FAULT_INJECTION is not set
CONFIG_NFS_COMMON=y
antec ~ # cat /etc/exports
/export 192.168.192.0/24(rw,fsid=0,no_subtree_check)
/export/sata1 192.168.192.0/24(rw,nohide,no_subtree_check)
/export/sata2 192.168.192.0/24(rw,nohide,no_subtree_check)
antec ~ # cat /etc/fstab | grep export
/misc/sata1 /export/sata1 none bind 0 0
/misc/sata2 /export/sata2 none bind 0 0
antec ~ # grep sata /etc/autofs/auto.misc
sata1 -fstype=ext4,rw :UUID="d4100459-eb46-4dd6-8856-1726d654e7b2"
sata2 -fstype=ext4,rw :UUID="9c0c1c0d-43ee-4f60-b7cb-367c5062da47"
nfsd.service enabled
rpc-idmapd.service enabled
rpc-mountd.service enabled
Client
risko@k53sv ~ $ zcat /proc/config.gz | grep -i nfs
CONFIG_NFS_FS=m
CONFIG_NFS_V2=m
CONFIG_NFS_V3=m
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=m
k53sv ~ # grep export /etc/autofs/auto.misc
sata1 -rw,_netdev,auto 192.168.192.250:/export/sata1
sata2 -rw,_netdev,auto 192.168.192.250:/export/sata2
rpcbind.service enabled
autofs.service enabled
Comments
Post a Comment