在更换完NetApp存储控制器后,控制器的时间可能与正确时间相差很远,这时需要手工设置系统的时间。如果系统中的NTP服务正在运行,就会导致设置时间失败,报以下错误:
fas2240-4-08> date 2207101937
date: cannot set date when NTP is running.
查看时间选项,可以看到NTP服务正在启用:
fas2240-4-08> options timed
timed.enable on
timed.log off
timed.max_skew 30m
timed.min_skew 0
timed.proto ntp
timed.sched hourly
timed.servers 192.168.10.5
timed.window 0s
将时间服务选项关闭:
fas2240-4-08> options timed.enable off
fas2240-4-08> options timed
timed.enable off
timed.log off
timed.max_skew 30m
timed.min_skew 0
timed.proto ntp
timed.sched hourly
timed.servers 192.168.10.5
timed.window 0s
然后手工设置系统的时间:
fas2240-4-08> date 2207101951
完成后重新启用NTP服务:
fas2240-4-08> options timed.enable on