EXPORT { # Export Id (mandatory, each EXPORT must have a unique Export_Id) Export_Id = 12345;
# Exported path (mandatory) Path = /etc;
# Pseudo Path (required for NFSv4 or if mount_path_pseudo = true) Pseudo = /etc;
# Restrict the protocols that may use this export. This cannot allow # access that is denied in NFS_CORE_PARAM. Protocols = 3,4;
# Access type for clients. Default is None, so some access must be # given. It can be here, in the EXPORT_DEFAULTS, or in a CLIENT block Access_Type = RW;
# Whether to squash various users. Squash = root_squash;
# Allowed security types for this export Sectype = sys,krb5,krb5i,krb5p;
[root@remote ~]# kdb5_util create -s Loading random data Initializing database '/var/kerberos/krb5kdc/principal' for realm 'EXAMPLE.COM', master key name 'K/M@EXAMPLE.COM' You will be prompted for the database Master Password. It is important that you NOT FORGET this password. Enter KDC database master key:
运行kadmin.local 来管理kdc 并添加nfs server 和 client的 主机信息
1 2 3 4 5 6 7 8
[root@remote ~]# kadmin.local Authenticating as principal root/admin@EXAMPLE.COM with password. kadmin.local: addprinc -randkey host/server.example.com WARNING: no policy specified for host/server.example.com@EXAMPLE.COM; defaulting to no policy Principal "host/server.example.com@EXAMPLE.COM" created. kadmin.local: addprinc -randkey host/client.example.com WARNING: no policy specified for host/client.example.com@EXAMPLE.COM; defaulting to no policy Principal "host/client.example.com@EXAMPLE.COM" created.
添加nfs server 和 client的 nfs 服务主机和客户端
1 2 3 4 5 6
kadmin.local: addprinc -randkey nfs/server.example.com WARNING: no policy specified for nfs/server.example.com@EXAMPLE.COM; defaulting to no policy Principal "nfs/server.example.com@EXAMPLE.COM" created. kadmin.local: addprinc -randkey nfs/client.example.com WARNING: no policy specified for nfs/client.example.com@EXAMPLE.COM; defaulting to no policy Principal "nfs/client.example.com@EXAMPLE.COM" created.
EXPORT { # Export Id (mandatory, each EXPORT must have a unique Export_Id) Export_Id=12345;
# Exported path (mandatory) Path=/etc/nfs;
# Pseudo Path (required for NFSv4 or if mount_path_pseudo = true) Pseudo=/etc/nfs;
# Restrict the protocols that may use this export. This cannot allow # access that is denied in NFS_CORE_PARAM. Protocols=3,4;
# Access type for clients. Default is None, so some access must be # given. It can be here, in the EXPORT_DEFAULTS, or in a CLIENT block Access_Type=RW;
# Whether to squash various users. Squash=no_root_squash;
# Allowed security types for this export Sectype=sys,krb5,krb5i,krb5p;
GETLAYOUT1 st_getdevicelist.testGetLayout : FAILURE layout_type does not contain BLOCK LAYOUTCOMMIT1 st_getdevicelist.testLayoutCommit : FAILURE layout_type does not contain BLOCK