mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Remove trailing spaces in file docs/source/guides/admin-guides/references/man8/makehosts.8.rst
This commit is contained in:
parent
d9f0ab7e55
commit
88bcbfab99
@ -29,7 +29,7 @@ DESCRIPTION
|
||||
***********
|
||||
|
||||
|
||||
\ **makehosts**\ updates the /etc/hosts file based on information stored in the
|
||||
\ **makehosts**\ updates the /etc/hosts file based on information stored in the
|
||||
xCAT database object definitions.
|
||||
|
||||
The main three bits of information needed are: node hostname, node ip and network domain name.
|
||||
@ -49,32 +49,32 @@ OPTIONS
|
||||
|
||||
|
||||
|
||||
\ **-n**\
|
||||
|
||||
\ **-n**\
|
||||
|
||||
Completely replace the /etc/hosts file, losing any previous content. If this option is not specified,
|
||||
it will only replace the lines in the file that correspond to the nodes in the specified noderange.
|
||||
|
||||
|
||||
|
||||
\ **-l | -**\ **-longnamefirst**\
|
||||
|
||||
|
||||
\ **-l | -**\ **-longnamefirst**\
|
||||
|
||||
The FQDN (Fully Qualified Domain Name) of the host will appear before the PQDN (Partially Qualified Domain Name) for each host in the /etc/hosts file.
|
||||
The default is PQDN first.
|
||||
After xCAT is installed, the attribute name "FQDNfirst" can be added into "site" table manually. If the value is set as "1", "yes" or "enable", the /etc/hosts entries generated by "makehosts" will put the FQDN before the PQDN. Otherwise, the original behavior will be performed.
|
||||
|
||||
|
||||
|
||||
\ **-m | -**\ **-mactolinklocal**\
|
||||
|
||||
|
||||
\ **-m | -**\ **-mactolinklocal**\
|
||||
|
||||
Updates /etc/hosts file with IPv6 link local addresses, the link local address is generated
|
||||
from the mac address stored in mac table.
|
||||
|
||||
|
||||
|
||||
\ **-d**\
|
||||
|
||||
|
||||
\ **-d**\
|
||||
|
||||
Delete rather than create records. This will also delete any additional network interfaces (NICs) included in the node definitions.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -85,26 +85,26 @@ EXAMPLES
|
||||
|
||||
|
||||
1. Add entries to /etc/hosts for all nodes included in the xCAT node group called "compute".
|
||||
|
||||
|
||||
|
||||
|
||||
.. code-block:: perl
|
||||
|
||||
|
||||
makehosts compute
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2.
If the xCAT hosts table contains:
|
||||
|
||||
|
||||
|
||||
|
||||
.. code-block:: perl
|
||||
|
||||
|
||||
"compute","|node(\d+)|1.2.3.($1+0)|","|(.*)|($1).cluster.net|",,
|
||||
|
||||
|
||||
|
||||
|
||||
Assuming the group "compute" contains node01, node02, etc., then in /etc/hosts they will be given
|
||||
IP addresses of 1.2.3.1, 1.2.3.2, etc.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user