跳转到主内容

如何修复损坏或缺失的名称服务文件

Views:
3
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

适用场景

  • ONTAP 9
  • 名称服务

问题描述

即使集群级别 SVM 空间中的名称服务文件看起来正常(位于集群配置数据库和内存中),例如:

cluster::> services name-service unix-user show -vserver svm
               User            User   Group  Full
Vserver        Name            ID     ID     Name
-------------- --------------- ------ ------ --------------------------------
svm            nobody          65535  65535
svm            pcuser          65534  65534
svm            root            0      1

cluster::> services name-service unix-group show -vserver svm
Vserver        Name                ID
-------------- ------------------- ----------
svm            daemon              1
svm            nobody              65535
svm            pcuser              65534
svm            root                0

cluster::> services name-service ns-switch show -vserver svm
                               Source
Vserver         Database       Order
--------------- ------------   ---------
svm             hosts          files,
                                 dns
svm             group          files
svm             passwd         files
svm             netgroup       files
svm             namemap        files

cluster::> services name-service dns show -vserver svm
                        Vserver: svm
                        Domains: x.x.x
                   Name Servers: x.x.x
                 Timeout (secs): 2
               Maximum Attempts: 1

  • SVM 空间中仍需要包含原生名称服务文件
  • 如果这些名称服务文件损坏,损坏或丢失,安全守护进程( SECD )将报告以下事件,例如:

[kern_secd:info] ERR  :NSLIBC: Vsid = 3 Failed to open file: /mroot/etc/cluster_config/vserver/.vserver_3/config/name_services//etc/pwd.db. Error: No such file or directory
[kern_secd:info] info :NSLIBC: Vsid = 3 Could not stat file: /mroot/etc/cluster_config/vserver/.vserver_3/config/name_services//etc/nsswitch.conf. Error: No such file or directory
[kern_secd:info] ERR  :NSLIBC: Vsid = 3 Failed to open file: /mroot/etc/cluster_config/vserver/.vserver_3/config/name_services//etc/group. Error: No such file or directory

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

Scan to view the article on your device