2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-10 21:40:14 +00:00

man page and doc work for makentp.

This commit is contained in:
linggao
2015-06-18 13:59:44 -04:00
parent 0827547cea
commit 9cf2093e22
2 changed files with 16 additions and 6 deletions

View File

@@ -1149,10 +1149,14 @@ site => {
" give stable output. You can increase the timeout value by specifying \n".
" '--min-rtt-timeout 1s'. xCAT will append the options defined here to \n".
" the nmap command.\n\n".
" ntpservers: A comma delimited list of NTP servers for the node. Often the\n".
" xCAT management node is the NTP server.\n\n".
" ntpservers: A comma delimited list of NTP servers for the service node and\n".
" the compute node to sync with. The keyword <xcatmaster> means that\n".
" the node's NTP server is the node that is managing it\n".
" (either its service node or the management node).\n\n".
" extntpservers: A comma delimited list of external NTP servers for the xCAT\n".
" management node to sync with.\n\n".
" management node to sync with. If it is empty, the NTP server\n".
" will use the management node's own hardware clock to calculate\n".
" the system date and time\n\n".
" svloglocal: if set to 1, syslog on the service node will not get forwarded to the\n".
" mgmt node.\n\n".
" timezone: (e.g. America/New_York)\n\n".

View File

@@ -19,11 +19,17 @@ I<switchdiscover [-a|--all] [-V|--verbose]>
I<makentp> command sets up the NTP server on the xCAT management node and the service node.
By default, it sets up the NTP server for xCAT management node. It gets the site table attribute I<extntpservers> and have the local NTP server sync with the external ntp servers defined by <site.extntpservers>. If -a flag is specified, the command also works for all the service nodes that have I<servicenode.ntpserver> set. The NTP server on the service node will sync with the management node.
By default, it sets up the NTP server for xCAT management node. If -a flag is specified, the command will setup the ntp servers for management node as well as all the service nodes that have I<servicenode.ntpserver> set. It honors the site table attributes I<extntpservers> and I<ntpservers> described below:
This command is also called by xcatd when it starts on the xCAT management node and the service nodes.
=over 4
To setup NTP client on other nodes such as compute nodes, please add B<setupntp> postscript to the I<postscripts> table and run I<updatenode node -P setupntp>. The setupntp postscripts honors I<site.ntpservers> attribute for NTP servers. If the value of I<site.ntpservers> is "<xcatmaster>" then the management node or the service node that serves the node will be the NTP server.
I<site.extntpservers> -- the NTP servers for the management node to sync with. If it is empty then the NTP server will use the management node's own hardware clock to calculate the system date and time.
I<site.ntpservers> -- the NTP servers for the service node and compute node to sync with. The keyword <xcatmaster> means that the node's NTP server is the node that is managing it (either its service node or the management node).
=back
To setup NTP on the compute node, please add B<setupntp> postscript to the I<postscripts> table and run I<updatenode node -P setupntp> command.
=head1 OPTIONS