NetApp ONTAP 9.x環境でNTPやDNSの設定をした際に、正常に動作しているかを確認する手法
NTPの設定確認
NTP設定がされているかどうかを「cluster time-service ntp server show」で確認
::> cluster time-service ntp server show
Is
Authentication
Server Version Enabled Key ID
------------------------------ ------- -------------- ------
10.20.8.10 auto false -
::>
NTPの動作確認
指定したNTPサーバと同期が取れているかは、adminモードでは確認出来ない。
advancedかdiagモードに切り替えて「cluster time-service ntp status show」を実行して確認。
::> set adv
Warning: These advanced commands are potentially dangerous; use them only when
directed to do so by NetApp personnel.
Do you want to continue? {y|n}: y
::*> cluster time-service ntp status show
Node: netapp_02
Server Reachable Selection State Offset (ms)
----------------------- --------- ------------------------------ ------------
10.20.8.10 true Currently Selected Server 21.552
Node: netapp_02
Server Reachable Selection State Offset (ms)
----------------------- --------- ------------------------------ ------------
10.20.8.10 true Currently Selected Server 21.68
2 entries were displayed.
::*>
上記の様に「Reachable:true」となっていればNTPサーバと通信が取れている。
下記の様に「Reachable:false」となっている場合は接続が取れないか、リトライ中である。
::*> cluster time-service ntp status show
Node: netapp_01
Server Reachable Selection State Offset (ms)
----------------------- --------- ------------------------------ ------------
10.20.8.10 false Server Not Responding or Too 0
Distant
Node: netapp_02
Server Reachable Selection State Offset (ms)
----------------------- --------- ------------------------------ ------------
10.20.8.10 false Server Not Responding or Too 0
Distant
2 entries were displayed.
::*>
なお、-insオプションを付けると詳細が確認出来る。
::*> cluster time-service ntp status show -ins
Node: netapp_01
NTP Server Host Name, IPv4 or IPv6 Address: 10.20.8.10
Server IP Address: 10.20.8.10
Is Peer Reachable and Responding to Polls?: true
Is Peer Selected as Clock Source?: true
State of Server Selection: sys_peer
Description of Server Selection State: Currently Selected Server
Poll Interval (secs): 64
Time from Last Poll (secs): 9
Offset from Server Time (ms): -16.61
Delay Time to Server (ms): 0.395
Maximum Offset Error (ms): 20.946
Reachability of Server: 1f
Stratum of Server Clock: 2
Reference Clock at Server: 133.243.238.163
Reported Packet and Peer Errors: -
Node: netapp_02
NTP Server Host Name, IPv4 or IPv6 Address: 10.20.8.10
Server IP Address: 10.20.8.10
Is Peer Reachable and Responding to Polls?: true
Is Peer Selected as Clock Source?: true
State of Server Selection: sys_peer
Description of Server Selection State: Currently Selected Server
Poll Interval (secs): 64
Time from Last Poll (secs): 14
Offset from Server Time (ms): 6.623
Delay Time to Server (ms): 0.398
Maximum Offset Error (ms): 17.906
Reachability of Server: 1f
Stratum of Server Clock: 2
Reference Clock at Server: 133.243.238.163
Reported Packet and Peer Errors: -
2 entries were displayed.
::*>
DNSの設定確認
DNSに関する設定は「vserver services name-service dns show」を実行する。
ontap98::> vserver services name-service dns show
Name
Vserver Domains Servers
--------------- ----------------------------------- ----------------
ontap98 adosakana.local 172.17.44.49
share225 adosakana.local 172.17.44.49
share228 adosakana.local 172.17.44.49
3 entries were displayed.
ontap98::>
Active Directoryに参加している場合は、DNSの自動更新に関する設定も重要なので「vserver services name-service dns dynamic-update show」で確認する。
ontap98::> vserver services name-service dns dynamic-update show
Vserver Is-Enabled Use-Secure Vserver FQDN TTL
--------------- ---------- ---------- ------------------------ -------
share225 true false adosakana.local 24h
share228 false false - 24h
2 entries were displayed.
ontap98::>
上記例では、Storage VM:share225ではDNS自動更新を有効にしている、ということになる。
/etc/hosts ファイルに相当する固定の名前解決を行っているかは「vserver services name-service dns hosts show」で確認する。
注意が必要なのは、「NetAppのクラスタ管理」と「各Storage VM」でそれぞれ別の設定になっているということ。これを勘違いしているとうまく名前解決が実施できない。
ネットワークインタフェースとルーティングの設定も関係してくるので「network interface show」と「network route show」も確認すると良い。
DNSの動作確認
DNSサーバに接続ができているかは「vserver services name-service dns check -vserver SVM名 -ins」で確認出来る。
ontap98::> vserver services name-service dns check -vserver ontap98 -ins
Vserver: ontap98
Name Server: 172.17.44.49
Name Server Status: up
Status Details: Response time (msec): 1
ontap98::>
上記はStorageVM:ontap98 に対して確認を実施した結果となり、「Name Server status:up」で「Response time(msec)」の値があるのでDNSサーバ応答があった、ということになる。
指定したホスト名が名前解決できるかはadvancedモード/diagモードが必須となる。
コマンドは「vserver services name-service getxxbyyy getaddrinfo -vserver SVM名 -hostname 解決したいホスト名」か「vserver services name-service getxxbyyy gethostbyname -vserver SVM名 -hostname 解決したいホスト名」となる。
ontap98::> set advanced
Warning: These advanced commands are potentially dangerous; use them only when directed to do so by NetApp personnel.
Do you want to continue? {y|n}: y
ontap98::*>vserver services name-service getxxbyyy getaddrinfo -vserver ontap98 -hostname adserver
Host name: adserver
Canonical Name: adserver.adosakana.local
IPv4: 172.17.44.49
ontap98::*>
IPアドレスの逆引きは 「vserver services name-service getxxbyyy getnameinfo -vserver SVM名 -ipaddress IPアドレス」 か 「vserver services name-service getxxbyyy getnameinfo -vserver SVM名 -ipaddress IPアドレス 」 となる
ontap98::*> vserver services name-service getxxbyyy gethostbyaddr -vserver ontap98 -ipaddress 172.17.44.49
IP address: 172.17.44.49
Host name: adserver.adosakana.local
ontap98::*>