diff --git a/README.rst b/README.rst index 730e14e675..797f7ba55b 100644 --- a/README.rst +++ b/README.rst @@ -8,7 +8,7 @@ Documentation xCAT documentation is available at: http://xcat-docs.readthedocs.io/en/latest/ -|docs_latest| |docs_212| |docs_211| +|docs_latest| |docs_2123| |docs_2122| |docs_212| |docs_211| Open Source License ------------------- @@ -22,11 +22,20 @@ Developers Developers and prospective contributors are encouraged to read the `Developers Guide `_ In particular the `GitHub `_ related subsection. - -.. |docs_212| image:: https://readthedocs.org/projects/xcat-docs/badge/?version=2.12 - :alt: 2.12 documentation status +.. |docs_2123| image:: https://readthedocs.org/projects/xcat-docs/badge/?version=2.12.3 + :alt: 2.12.3 documentation status :scale: 100% - :target: http://xcat-docs.readthedocs.io/en/2.12/ + :target: http://xcat-docs.readthedocs.io/en/2.12.3/ + +.. |docs_2122| image:: https://readthedocs.org/projects/xcat-docs/badge/?version=2.12.2 + :alt: 2.12.2 documentation status + :scale: 100% + :target: http://xcat-docs.readthedocs.io/en/2.12.2/ + +.. |docs_212| image:: https://readthedocs.org/projects/xcat-docs/badge/?version=2.12.0 + :alt: 2.12.0 documentation status + :scale: 100% + :target: http://xcat-docs.readthedocs.io/en/2.12.0/ .. |docs_211| image:: https://readthedocs.org/projects/xcat-docs/badge/?version=2.11 :alt: 2.11 documentation status diff --git a/Version b/Version index 371a952d65..56beced9a1 100644 --- a/Version +++ b/Version @@ -1 +1 @@ -2.12.2 +2.12.4 diff --git a/build-ubunturepo b/build-ubunturepo index 275a95347d..6eae013940 100755 --- a/build-ubunturepo +++ b/build-ubunturepo @@ -102,16 +102,6 @@ if [ "$c_flag" -a "$d_flag" ];then fi - -uploader="litingt" -USER="xcat" -SERVER="xcat.org" -FILES_PATH="files" -FRS="/var/www/${SERVER}/${FILES_PATH}" -release="github.com/xcat2/xcat-core/releases" -APT_DIR="${FRS}/xcat" -APT_REPO_DIR="${APT_DIR}/repos/apt" - # Find where this script is located to set some build variables old_pwd=`pwd` cd `dirname $0` @@ -121,11 +111,6 @@ curdir=`pwd` local_core_repo_path="$curdir/../../xcat-core" local_dep_repo_path="$curdir/../../xcat-dep/xcat-dep" -#define the url used for creating the source list file -#define the upload dir used for uploading packages -sf_repo_url="https://xcat.org/files/ubuntu" -sf_dir="/var/www/xcat.org/files" - #use flock to only one person build at the same time # Get a lock, so can not do 2 builds at once exec 8>/var/lock/xcatbld.lock @@ -218,7 +203,7 @@ then pkg_type="snap" build_string="Snap_Build" cur_date=`date +%Y%m%d%H%M` - pkg_version="${short_ver}-${pkg_type}${cur_date}" + pkg_version="${ver}-${pkg_type}${cur_date}" if [ ! -d ../../$package_dir_name ];then mkdir -p "../../$package_dir_name" @@ -248,9 +233,10 @@ then #3 symbolic link can't work during package if [ $file_low = "xcat-probe" ]; then CURDIR=$(pwd) - mkdir -p ${CURDIR}/xCAT-probe/lib/perl/xCAT/ - cp -f ${CURDIR}/perl-xCAT/xCAT/NetworkUtils.pm ${CURDIR}/xCAT-probe/lib/perl/xCAT/ - cp -f ${CURDIR}/perl-xCAT/xCAT/GlobalDef.pm ${CURDIR}/xCAT-probe/lib/perl/xCAT/ + mkdir -p ${CURDIR}/lib/perl/xCAT/ + cp -f ${CURDIR}/../perl-xCAT/xCAT/NetworkUtils.pm ${CURDIR}/lib/perl/xCAT/ + cp -f ${CURDIR}/../perl-xCAT/xCAT/GlobalDef.pm ${CURDIR}/lib/perl/xCAT/ + cp -f ${CURDIR}/../perl-xCAT/xCAT/ServiceNodeUtils.pm ${CURDIR}/lib/perl/xCAT/ fi dpkg-buildpackage -uc -us else @@ -365,7 +351,6 @@ __EOF__ chmod 775 mklocalrepo.sh #create the xcat-core.list file - #echo "deb ${sf_repo_url}/${REL}/${upload_dir}/ precise main" > xcat-core.list cd ../ if ! grep xcat /etc/group ; then @@ -384,26 +369,8 @@ __EOF__ ln -s xcat-core core-snap fi - # Decide whether to upload or not (default NOT to upload) - if [ "$UP" != "1" ]; then - echo "Upload not specified, Done! (rerun with UP=1, to upload)" - cd $old_pwd - exit 0 - fi - - #upload the deb packages - i=0 - echo "Uploading RPMs from $upload_dir to ${APT_REPO_DIR}/${REL}/ ..." - while [ $((i+=1)) -le 5 ] && ! rsync -urLv --delete $upload_dir $USER@${SERVER}:${APT_REPO_DIR}/${REL}/ - do : ; done - - #upload the tar ball - i=0 - echo "Uploading $tar_name to ${APT_DIR}/xcat-core/${REL}/Ubuntu/core-snap/ ..." - while [ $((i+=1)) -le 5 ] && ! rsync -v --force $tar_name $USER@${SERVER}:${APT_DIR}/xcat-core/${REL}/Ubuntu/core-snap/ - do : ; done - - cd $old_pwd + cd $old_pwd + exit 0 fi if [ "$d_flag" ] @@ -493,8 +460,6 @@ __EOF__ chmod 775 mklocalrepo.sh - #echo ""deb ${sf_repo_url}/xcat-dep/ precise main"" > xcat-dep.list - cd .. if ! grep xcat /etc/group ; then groupadd xcat @@ -509,32 +474,7 @@ __EOF__ chgrp root $dep_tar_name chmod g+w $dep_tar_name - # Decide whether to upload or not (default NOT to upload) - if [ "$UP" != "1" ]; then - echo "Upload not specified, Done! (rerun with UP=1, to upload)" - cd $old_pwd - exit 0 - fi - - #upload the dep packages - i=0 - echo "Uploading debs from xcat-dep to ${APT_REPO_DIR}/xcat-dep/ ..." - while [ $((i+=1)) -le 5 ] && ! rsync -urLv --delete xcat-dep $USER@${SERVER}:${APT_REPO_DIR}/ - do : ; done - - #upload the tarball - i=0 - echo "Uploading $dep_tar_name to ${APT_DIR}/xcat-dep/2.x_Ubuntu/ ..." - while [ $((i+=1)) -le 5 ] && ! rsync -v --force $dep_tar_name $USER@${SERVER}:${APT_DIR}/xcat-dep/2.x_Ubuntu/ - do : ; done - - #upload the README file - cd debs - i=0 - echo "Uploading README to ${APT_DIR}/xcat-dep/2.x_Ubuntu/ ..." - while [ $((i+=1)) -le 5 ] && ! rsync -v --force README $USER@${SERVER}:${APT_DIR}/xcat-dep/2.x_Ubuntu/ - do : ; done - cd $old_pwd + exit 0 fi exit 0 diff --git a/buildcore.sh b/buildcore.sh index a2422ce7fe..d9e7a7899f 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -67,14 +67,14 @@ if [ -z "$UP" ]; then fi # These are the rpms that should be built for each kind of xcat build -ALLBUILD="perl-xCAT xCAT-client xCAT-server xCAT-test xCAT-buildkit xCAT xCATsn xCAT-genesis-scripts xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe" +ALLBUILD="perl-xCAT xCAT-client xCAT-server xCAT-test xCAT-buildkit xCAT xCATsn xCAT-genesis-scripts xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe xCAT-csm" ZVMBUILD="perl-xCAT xCAT-server xCAT-UI" ZVMLINK="xCAT-client xCAT xCATsn" # xCAT and xCATsn have PCM specific configuration - conserver-xcat, syslinux-xcat # xCAT-server has PCM specific configuration - RESTAPI(perl-JSON) # xCAT-client has PCM specific configuration - getxcatdocs(perl-JSON) PCMBUILD="xCAT xCAT-server xCAT-client xCATsn" -PCMLINK="perl-xCAT xCAT-buildkit xCAT-genesis-scripts-x86_64 xCAT-genesis-scripts-ppc64 xCAT-vlan" +PCMLINK="perl-xCAT xCAT-buildkit xCAT-genesis-scripts-x86_64 xCAT-genesis-scripts-ppc64 xCAT-vlan xCAT-probe" # Note: for FSM, the FlexCAT rpm is built separately from gsa/git FSMBUILD="perl-xCAT xCAT-client xCAT-server" FSMLINK="" @@ -172,9 +172,17 @@ else fi function setversionvars { - VER=`cat Version` - SHORTVER=`cat Version|cut -d. -f 1,2` - SHORTSHORTVER=`cat Version|cut -d. -f 1` + if [ ! -z "$USEGITVER" ]; then + VER=`git describe` + VER=${VER/-/.post} + VER=${VER/-/.} + else + VER=`cat Version` + fi + XCATVER=$VER + export XCATVER + SHORTVER=`echo $VER|cut -d. -f 1,2` + SHORTSHORTVER=`echo $VER|cut -d. -f 1` BUILD_TIME=`date` BUILD_MACHINE=`hostname` COMMIT_ID=`git rev-parse --short HEAD` @@ -291,7 +299,7 @@ if [ "$OSNAME" = "AIX" ]; then fi # Build the rest of the noarch rpms -for rpmname in xCAT-client xCAT-server xCAT-IBMhpc xCAT-rmc xCAT-UI xCAT-test xCAT-buildkit xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe; do +for rpmname in xCAT-client xCAT-server xCAT-IBMhpc xCAT-rmc xCAT-UI xCAT-test xCAT-buildkit xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe xCAT-csm; do if [[ " $EMBEDBUILD " != *\ $rpmname\ * ]]; then continue; fi if [ "$OSNAME" = "AIX" -a "$rpmname" = "xCAT-buildkit" ]; then continue; fi # do not build xCAT-buildkit on aix if [ "$OSNAME" = "AIX" -a "$rpmname" = "xCAT-SoftLayer" ]; then continue; fi # do not build xCAT-softlayer on aix diff --git a/docs/source/advanced/chain/chain_table.rst b/docs/source/advanced/chain/chain_table.rst index a2e0dc0a93..b12a86863e 100644 --- a/docs/source/advanced/chain/chain_table.rst +++ b/docs/source/advanced/chain/chain_table.rst @@ -7,7 +7,7 @@ The chain table (``tabdump chain``) is an xCAT database table that holds the cha * currchain * chain -To know how are those three attributes used, pls reference the picture: +To know how are those three attributes used, reference the picture: .. image:: chain_tasks_logic.png diff --git a/docs/source/advanced/chain/chain_tasks.rst b/docs/source/advanced/chain/chain_tasks.rst index 326d14adf1..dc979ee71f 100644 --- a/docs/source/advanced/chain/chain_tasks.rst +++ b/docs/source/advanced/chain/chain_tasks.rst @@ -25,7 +25,7 @@ The ``image.tgz`` **must** have the following properties: * Created using the ``tar zcvf`` command * The tarball must include a ``runme.sh`` script to initiate the execution of the runimage -To create your own image, please reference :ref:`creating image for runimage `. +To create your own image, reference :ref:`creating image for runimage `. **Tip**: You could try to run ``wget http:////image.tgz`` manually to make sure the path has been set correctly. diff --git a/docs/source/advanced/cluster_maintenance/service_node/changing_hostname_ip.rst b/docs/source/advanced/cluster_maintenance/service_node/changing_hostname_ip.rst index faffe3cbe3..e99134962f 100644 --- a/docs/source/advanced/cluster_maintenance/service_node/changing_hostname_ip.rst +++ b/docs/source/advanced/cluster_maintenance/service_node/changing_hostname_ip.rst @@ -36,11 +36,11 @@ Database Connection Changes Granting or revoking access privilege in the database for the service node. -* For mysql, please refer to :ref:`grante_revoke_mysql_access_label`. +* For mysql, refer to :ref:`grante_revoke_mysql_access_label`. .. There is no procedure in old document on sourceforge for postgress to grant or revoke the access privilege for service node. -* For postgress, please refer to `TODO `_. +* For postgress, refer to `TODO `_. Update Provision Environment on Service Node -------------------------------------------- diff --git a/docs/source/advanced/confluent/server/confluent_server.rst b/docs/source/advanced/confluent/server/confluent_server.rst index ea9bf1ebc7..6bdecb8323 100644 --- a/docs/source/advanced/confluent/server/confluent_server.rst +++ b/docs/source/advanced/confluent/server/confluent_server.rst @@ -56,8 +56,7 @@ The following example describes the steps for **rhels7.1** on **ppc64le**:: cd confluent-dep-rh7-ppc64le/ ./mklocalrepo.sh -**Note:** If the OS/architecture you are looking for is not provided under confluent-dep, -please send an email to the xcat-user mailing list: xcat-user@lists.sourceforge.net +**Note:** If the OS/architecture you are looking for is not provided under confluent-dep, send an email to the xcat-user mailing list: xcat-user@lists.sourceforge.net Install diff --git a/docs/source/advanced/docker/docker_registry.rst b/docs/source/advanced/docker/docker_registry.rst index 57553e096e..920629dc8c 100644 --- a/docs/source/advanced/docker/docker_registry.rst +++ b/docs/source/advanced/docker/docker_registry.rst @@ -5,7 +5,7 @@ Docker Registry is a stateless, highly scalable server side application that sto This document describes how to set up a local private docker registry on Ubuntu 15.04 on x86_64. -**Note:** Please ensure that docker registry is not already set up on this docker host. +**Note:** Ensure that docker registry is not already set up on this docker host. Setting Up Docker Host ---------------------- @@ -17,7 +17,7 @@ Setting Up Docker Registry Manually Docker registry needed to be set up on xCAT's MN. -This section describes two methods of setting up docker registry manullay. +This section describes two methods of setting up docker registry manually. First, create some folders where files for this tutorial will live. :: diff --git a/docs/source/advanced/docker/dockerized_xcat/dockerized_xcat.rst b/docs/source/advanced/docker/dockerized_xcat/dockerized_xcat.rst index db49faa1b3..e1d9dba6b8 100644 --- a/docs/source/advanced/docker/dockerized_xcat/dockerized_xcat.rst +++ b/docs/source/advanced/docker/dockerized_xcat/dockerized_xcat.rst @@ -24,7 +24,7 @@ By pulling xCAT Docker image and running xCAT Docker image in a container, you g xCAT Docker images ------------------ -xCAT shippes 2 Docker images for Docker host with different architecture: +xCAT ships 2 Docker images for Docker host with different architecture: * "xcat/xcat-ubuntu-x86_64": run on x86_64 Docker host * "xcat/xcat-ubuntu-ppc64le": run on ppc64le Docker host @@ -81,12 +81,12 @@ Once you attach or ssh to the container, you will find that xCAT is running and Currently, since xCAT can only generate the diskless osimages of Linux distributions with the same OS version and architecture with xCAT MN. If you need to provision diskless osimages besides ubuntu x86_64 with xCAT running in the Docker, you can use ``imgexport`` and ``imgimport`` to import the diskless osimages generated before. -If you start up the xCAT Docker container by following the steps described in sections above strictly, without specifying "--dns=IP_ADDRESS...", "--dns-search=DOMAIN...", or "--dns-opt=OPTION..." options, Docker uses the /etc/resolv.conf of the host machine (where the docker daemon runs). Any DNS problem inside container, please make sure the DNS server on the Docker host works well. +If you start up the xCAT Docker container by following the steps described in sections above strictly, without specifying "--dns=IP_ADDRESS...", "--dns-search=DOMAIN...", or "--dns-opt=OPTION..." options, Docker uses the /etc/resolv.conf of the host machine (where the docker daemon runs). Any DNS problem inside container, make sure the DNS server on the Docker host works well. Save and Restore xCAT data ---------------------------- -According to the policy of Docker, Docker image should only be the service deployment unit, it is not recommended to save data in Docker image. Docker uses "Data Volume" to save persisent data inside container, which can be simply taken as a shared directory between Docker host and Docker container. +According to the policy of Docker, Docker image should only be the service deployment unit, it is not recommended to save data in Docker image. Docker uses "Data Volume" to save persistent data inside container, which can be simply taken as a shared directory between Docker host and Docker container. For dockerized xCAT, there are 3 volumes recommended to save and restore xCAT user data. diff --git a/docs/source/advanced/docker/dockerized_xcat/run_xcat_in_docker_native.rst b/docs/source/advanced/docker/dockerized_xcat/run_xcat_in_docker_native.rst index 481ec15a1b..2dc90076c7 100644 --- a/docs/source/advanced/docker/dockerized_xcat/run_xcat_in_docker_native.rst +++ b/docs/source/advanced/docker/dockerized_xcat/run_xcat_in_docker_native.rst @@ -69,7 +69,7 @@ Now run the xCAT Docker container with the Docker image "xcat/xcat-ubuntu-x86_64 * use ``--privileged=true`` to give extended privileges to this container * use ``--hostname`` to specify the hostname of the container, which is available inside the container * use ``--name`` to assign a name to the container, this name can be used to manipulate the container on Docker host -* use ``--add-host="xcatmn.clusers.com xcatmn:10.5.107.101"`` to write the ``/etc/hosts`` entries of Docker container inside container. Since xCAT use the FQDN(Fully Qualified Domain Name) to determine the cluster domain on startup, please make sure the format to be " : ", otherwise, you need to set the cluster domain with ``chdef -t site -o clustersite domain="clusters.com"`` inside the container manually +* use ``--add-host="xcatmn.clusers.com xcatmn:10.5.107.101"`` to write the ``/etc/hosts`` entries of Docker container inside container. Since xCAT use the FQDN(Fully Qualified Domain Name) to determine the cluster domain on startup, make sure the format to be " : ", otherwise, you need to set the cluster domain with ``chdef -t site -o clustersite domain="clusters.com"`` inside the container manually * use ``--volume /docker/xcatdata/:/install`` to mount a pre-created "/docker/xcatdata" directory on Docker host to "/install" directory inside container as a data volume. This is optional, it is mandatory if you want to backup and restore xCAT data. * use ``--net=mgtnet`` to connect the container to the Docker network "mgtnet" * use ``--ip=10.5.107.101`` to specify the IP address of the xCAT Docker container diff --git a/docs/source/advanced/docker/dockerized_xcat/setup_docker_host.rst b/docs/source/advanced/docker/dockerized_xcat/setup_docker_host.rst index d01367fe75..6ba2218cb9 100644 --- a/docs/source/advanced/docker/dockerized_xcat/setup_docker_host.rst +++ b/docs/source/advanced/docker/dockerized_xcat/setup_docker_host.rst @@ -4,7 +4,7 @@ Setup Docker host Install Docker Engine --------------------- -The Docker host to run xCAT Docker image should be a baremental or virtual server with Docker v1.10 or above installed. For the details on system requirements and Docker installation, please refer to `Docker Installation Docs `_. +The Docker host to run xCAT Docker image should be a baremental or virtual server with Docker v1.10 or above installed. For the details on system requirements and Docker installation, refer to `Docker Installation Docs `_. **Note:** diff --git a/docs/source/advanced/docker/lifecycle_management.rst b/docs/source/advanced/docker/lifecycle_management.rst index 2943bd75fb..869b57da9b 100644 --- a/docs/source/advanced/docker/lifecycle_management.rst +++ b/docs/source/advanced/docker/lifecycle_management.rst @@ -3,7 +3,7 @@ Docker life-cycle management in xCAT The Docker linux container technology is currently very popular. xCAT can help managing Docker containers. xCAT, as a system management tool has the natural advantage for supporting multiple operating systems, multiple architectures and large scale clusters. -This document describes how to use xCAT for docker management, from Docker Host setup to docker container operationis. +This document describes how to use xCAT for docker management, from Docker Host setup to docker container operations. **Note:** The document was verified with **Docker Version 1.10, 1.11** and **Docker API version 1.22.** The Docker Host was verified on **ubuntu14.04.3 x86_64**, **ubuntu15.10 x86_64**, **ubuntu16.04 x86_64** and **ubuntu16.04 ppc64el**. diff --git a/docs/source/advanced/domain_name_resolution/domain_name_resolution.rst b/docs/source/advanced/domain_name_resolution/domain_name_resolution.rst index acf30517d9..d8745b6eee 100644 --- a/docs/source/advanced/domain_name_resolution/domain_name_resolution.rst +++ b/docs/source/advanced/domain_name_resolution/domain_name_resolution.rst @@ -101,7 +101,7 @@ You must set the **forwarders** attribute in the xCAT cluster **site** definitio An xCAT **network** definition must be defined for each management network used in the cluster. The **net** and **mask** attributes will be used by the ``makedns`` command. -A network **domain** and **nameservers** value must be provided either in the network definiton corresponding to the nodes or in the site definition. +A network **domain** and **nameservers** value must be provided either in the network definition corresponding to the nodes or in the site definition. For example, if the cluster domain is **mycluster.com**, the IP address of the management node, (as known by the cluster nodes), is **100.0.0.41** and the site DNS servers are **50.1.2.254,50.1.3.254** then you would run the following command. :: @@ -249,7 +249,7 @@ To use this support you must set one or more of the following node definition at The additional NIC information may be set by directly editing the xCAT **nics** table or by using the **xCAT *defs** commands to modify the node definitions. The details for how to add the additional information is described below. As you will see, entering this -information manually can be tedious and error prone. This support is primarily targetted to be used in +information manually can be tedious and error prone. This support is primarily targeted to be used in conjunction with other IBM products that have tools to fill in this information in an automated way. Managing additional interface information using the **xCAT *defs** commands @@ -269,7 +269,7 @@ For example, the expanded format for the **nicips** and **nichostnamesuffixes** nicips.eth1=10.1.1.6 nichostnamesuffixes.eth1=-eth1 -If we assume that your xCAT node name is **compute02** then this would mean that you have an additonal interface **("eth1")** and that the hostname and IP address are **compute02-eth1** and **10.1.1.6**. +If we assume that your xCAT node name is **compute02** then this would mean that you have an additional interface **("eth1")** and that the hostname and IP address are **compute02-eth1** and **10.1.1.6**. A "|" delimiter is used to specify multiple values for an interface. For example: :: @@ -285,7 +285,7 @@ For the **nicaliases** attribute a list of additional aliases may be provided. : This indicates that the **compute02-eth1** hostname would get the additional two aliases, alias1 alias2, included in the **/etc/hosts** file, (when using the ``makehosts`` command). -The second line indicates that **compute02-eth2** would get the additonal alias **alias3** and that **compute02-eth-lab** would get **alias4** +The second line indicates that **compute02-eth2** would get the additional alias **alias3** and that **compute02-eth-lab** would get **alias4** Setting individual nic attribute values ''''''''''''''''''''''''''''''''''''''' diff --git a/docs/source/advanced/hamn/high_available_management_node.rst b/docs/source/advanced/hamn/high_available_management_node.rst index 4375d553bd..da94390ae7 100644 --- a/docs/source/advanced/hamn/high_available_management_node.rst +++ b/docs/source/advanced/hamn/high_available_management_node.rst @@ -13,15 +13,15 @@ The data synchronization is important for any high availability configuration. W * The configuration files for the services that are required by xCAT, like named, DHCP, apache, nfs, ssh, etc. * The operating systems images repository and users customization data repository, the ``/install`` directory contains these repositories in most cases. -There are a lot of ways for data syncronization, but considering the specific xCAT HAMN requirements, only several of the data syncronziation options are practical for xCAT HAMN. +There are a lot of ways for data synchronization, but considering the specific xCAT HAMN requirements, only several of the data synchronziation options are practical for xCAT HAMN. **1\. Move physical disks between the two management nodes**: if we could physically move the hard disks from the failed management node to the backup management node, and bring up the backup management node, then both the operating system and xCAT data will be identical between the new management node and the failed management node. RAID1 or disk mirroring could be used to avoid the disk be a single point of failure. -**2\. Shared data**: the two management nodes use the single copy of xCAT data, no matter which management node is the primary MN, the cluster management capability is running on top of the single data copy. The access to the data could be done through various ways like shared storage, NAS, NFS, samba etc. Based on the protocol being used, the data might be accessable only on one management node at a time or be accessable on both management nodes in parellel. If the data could only be accessed from one management node, the failover process need to take care of the data access transition; if the data could be accessed on both management nodes, the failover does not need to consider the data access transition, it usually means the failover process could be faster. +**2\. Shared data**: the two management nodes use the single copy of xCAT data, no matter which management node is the primary MN, the cluster management capability is running on top of the single data copy. The access to the data could be done through various ways like shared storage, NAS, NFS, samba etc. Based on the protocol being used, the data might be accessible only on one management node at a time or be accessible on both management nodes in parallel. If the data could only be accessed from one management node, the failover process need to take care of the data access transition; if the data could be accessed on both management nodes, the failover does not need to consider the data access transition, it usually means the failover process could be faster. -Warning: Running database through network file system has a lot of potential problems and is not practical, however, most of the database system provides database replication feature that can be used to synronize the database between the two management nodes. +Warning: Running database through network file system has a lot of potential problems and is not practical, however, most of the database system provides database replication feature that can be used to synchronize the database between the two management nodes. -**3\. Mirroring**: each of the management node has its own copy of the xCAT data, and the two copies of data are syncronized through mirroring mechanism. DRBD is used widely in the high availability configuration scenarios, to provide data replication by mirroring a whole block device via network. If we put all the important data for xCAT onto the DRBD devices, then it could assure the data is synchronized between the two management nodes. Some parallel file system also provides capability to mirror data through network. +**3\. Mirroring**: each of the management node has its own copy of the xCAT data, and the two copies of data are synchronized through mirroring mechanism. DRBD is used widely in the high availability configuration scenarios, to provide data replication by mirroring a whole block device via network. If we put all the important data for xCAT onto the DRBD devices, then it could assure the data is synchronized between the two management nodes. Some parallel file system also provides capability to mirror data through network. Manual vs. Automatic Failover ----------------------------- @@ -36,7 +36,7 @@ From xCAT perspective, if the management node needs to provide network services **2\. Configuration complexity** -The configuration for the high availability applications is usually complex, it may take a long time to configure, debug and stablize the high availability configuration. +The configuration for the high availability applications is usually complex, it may take a long time to configure, debug and stabilize the high availability configuration. **3\. Maintenance effort** diff --git a/docs/source/advanced/hamn/index.rst b/docs/source/advanced/hamn/index.rst index 649ac74e0b..1d7bcecab6 100644 --- a/docs/source/advanced/hamn/index.rst +++ b/docs/source/advanced/hamn/index.rst @@ -1,12 +1,12 @@ -High Avaiability -================ +High Availability +================= -The xCAT management node plays an important role in the cluster, if the management node is down for whatever reason, the administrators will lose the management capability for the whole cluster, until the management node is back up and running. In some configuration, like the Linux nfs-based statelite in a non-hierarchy cluster, the compute nodes may not be able to run at all without the management node. So, it is important to consider the high availability for the management node. +The xCAT management node plays an important role in the cluster, if the management node is down for whatever reason, the administrators will lose the management capability for the whole cluster, until the management node is back up and running. In some configurations, like the Linux NFSROOT-based statelite in a non-hierarchy cluster, the compute nodes may not be able to run at all without the management node. So, it is important to consider the high availability for the management node. -The goal of the HAMN(High Availability Management Node) configuration is, when the primary xCAT management node fails, the standby management node can take over the role of the management node, either through automatic failover or through manual procedure performed by the administrator, and thus avoid long periods of time during which your cluster does not have active cluster management function available. +The goal of the HAMN (High Availability Management Node) configuration is, when the primary xCAT management node fails, the standby management node can take over the role of the management node, either through automatic failover or through manual procedure performed by the administrator, and thus avoid long periods of time during which your cluster does not have active cluster management function available. -The following pages describes ways to configure the xCAT Management Node for High Availbility. +The following pages describes ways to configure the xCAT Management Node for High Availability. .. toctree:: :maxdepth: 2 diff --git a/docs/source/advanced/hamn/setup_ha_mgmt_node_with_drbd_pacemaker_corosync.rst b/docs/source/advanced/hamn/setup_ha_mgmt_node_with_drbd_pacemaker_corosync.rst index 708d59ac7e..766580dade 100644 --- a/docs/source/advanced/hamn/setup_ha_mgmt_node_with_drbd_pacemaker_corosync.rst +++ b/docs/source/advanced/hamn/setup_ha_mgmt_node_with_drbd_pacemaker_corosync.rst @@ -149,7 +149,7 @@ So, in this documentation, we will setup xCAT on both management nodes before we chdef -t site nameservers=10.1.0.1 chdef -t network 10_1_0_0-255_255_255_0 tftpserver=10.1.0.1 -#. Install and configure MySQL. MySQL will be used as the xCAT database system, please refer to the doc [ **todo** Setting_Up_MySQL_as_the_xCAT_DB]. +#. Install and configure MySQL. MySQL will be used as the xCAT database system, refer to the doc [ **todo** Setting_Up_MySQL_as_the_xCAT_DB]. Verify xcat is running on MySQL by running: :: @@ -219,7 +219,7 @@ Setup xCAT on the Standby Management Node #. Install xCAT. The procedure described in :doc:`xCAT Install Guide <../../guides/install-guides/index>` should be used for the xCAT setup on the standby management node. -#. Install and configure MySQL. MySQL will be used as the xCAT database system, please refer to the doc [Setting_Up_MySQL_as_the_xCAT_DB]. +#. Install and configure MySQL. MySQL will be used as the xCAT database system, refer to the doc [Setting_Up_MySQL_as_the_xCAT_DB]. Verify xcat is running on MySQL by running: :: @@ -689,7 +689,7 @@ Configure Pacemaker All the cluster resources are managed by Pacemaker, here is an example ``pacemaker`` configuration that has been used by different HA MN customers. You might need to do some minor modifications based on your cluster configuration. -Please be aware that you need to apply ALL the configuration at once. You cannot pick and choose which pieces to put in, and you cannot put some in now, and some later. Don't execute individual commands, but use crm configure edit instead. :: +Be aware that you need to apply ALL the configuration at once. You cannot pick and choose which pieces to put in, and you cannot put some in now, and some later. Don't execute individual commands, but use crm configure edit instead. :: node x3550m4n01 node x3550m4n02 @@ -1043,7 +1043,7 @@ Add a crontab entry to check the differences 0 6 * * * /sbin/drbdadm verify all -Please note that this process will take a few hours. You could schedule it at a time when it can be expected to run when things are relatively idle. You might choose to only run it once a week, but nightly seems to be a nice choice as well. You should only put this cron job on one side or the other of the DRBD mirror . not both. +Note that this process will take a few hours. You could schedule it at a time when it can be expected to run when things are relatively idle. You might choose to only run it once a week, but nightly seems to be a nice choice as well. You should only put this cron job on one side or the other of the DRBD mirror . not both. Correcting the differences automatically ---------------------------------------- diff --git a/docs/source/advanced/hamn/setup_ha_mgmt_node_with_shared_data.rst b/docs/source/advanced/hamn/setup_ha_mgmt_node_with_shared_data.rst index 7e4a205300..5a80aade91 100644 --- a/docs/source/advanced/hamn/setup_ha_mgmt_node_with_shared_data.rst +++ b/docs/source/advanced/hamn/setup_ha_mgmt_node_with_shared_data.rst @@ -408,7 +408,7 @@ The operating system is installed on the internal disks. #. Connect the shared disk to both management nodes - To verify the shared disks are connected correctly, run the sginfo command on both management nodes and look for the same serial number in the output. Please be aware that the sginfo command may not be installed by default on Linux, the sginfo command is shipped with package sg3_utils, you can manually install the package sg3_utils on both management nodes. + To verify the shared disks are connected correctly, run the sginfo command on both management nodes and look for the same serial number in the output. Be aware that the sginfo command may not be installed by default on Linux, the sginfo command is shipped with package sg3_utils, you can manually install the package sg3_utils on both management nodes. Once the sginfo command is installed, run sginfo -l command on both management nodes to list all the known SCSI disks, for example, enter: :: diff --git a/docs/source/advanced/hamn/setup_xcat_high_available_management_node_in_softlayer.rst b/docs/source/advanced/hamn/setup_xcat_high_available_management_node_in_softlayer.rst index d8c41342d8..a8b40f11a5 100644 --- a/docs/source/advanced/hamn/setup_xcat_high_available_management_node_in_softlayer.rst +++ b/docs/source/advanced/hamn/setup_xcat_high_available_management_node_in_softlayer.rst @@ -132,8 +132,8 @@ Execute steps on xCAT MN rhmn1 # chdef -t site master=10.2.2.250 nameservers=10.2.2.250 # chdef -t network 10_0_0_0-255_0_0_0 tftpserver=10.2.2.250 # tabdump networks - ~]#netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,nameservers,ntpservers,logservers,dynamicrange,staticrange,staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain,comments,disable - "10_0_0_0-255_0_0_0","10.0.0.0","255.0.0.0","eth0","10.2.0.221",,"10.2.2.250",,,,,,,,,,,, + ~]#netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,nameservers,ntpservers,logservers,dynamicrange,staticrange,staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain,mtu,comments,disable + "10_0_0_0-255_0_0_0","10.0.0.0","255.0.0.0","eth0","10.2.0.221",,"10.2.2.250",,,,,,,,,,,,, #. Add 2 nodes into policy table: :: @@ -329,7 +329,7 @@ Install corosync and pacemaker on both rhmn2 and rhmn1 Customize corosync/pacemaker configuration for xCAT ------------------------------------------------------ -Please be aware that you need to apply ALL the configuration at once. You cannot pick and choose which pieces to put in, and you cannot put some in now, and some later. Don't execute individual commands, but use crm configure edit instead. +Be aware that you need to apply ALL the configuration at once. You cannot pick and choose which pieces to put in, and you cannot put some in now, and some later. Don't execute individual commands, but use crm configure edit instead. Check that both rhmn2 and chetha are standby state now: :: diff --git a/docs/source/advanced/hierarchy/appendix/appendix_b_diagnostics.rst b/docs/source/advanced/hierarchy/appendix/appendix_b_diagnostics.rst index 9bc99086e6..ca259ecb3c 100644 --- a/docs/source/advanced/hierarchy/appendix/appendix_b_diagnostics.rst +++ b/docs/source/advanced/hierarchy/appendix/appendix_b_diagnostics.rst @@ -16,7 +16,7 @@ Appendix B: Diagnostics * **otherpkgs(including xCAT rpms) installation failed on the SN** --The OS repository is not created on the SN. When the "yum" command is processing the dependency, the rpm packages (including expect, nmap, and httpd, etc) - required by xCATsn can't be found. In this case, please check whether the + required by xCATsn can't be found. In this case, check whether the ``/install/postscripts/repos///`` directory exists on the MN. If it is not on the MN, you need to re-run the "copycds" command, and there will be some file created under the diff --git a/docs/source/advanced/hierarchy/databases/mysql_remove.rst b/docs/source/advanced/hierarchy/databases/mysql_remove.rst index 53cc15e71d..6a25ab488f 100644 --- a/docs/source/advanced/hierarchy/databases/mysql_remove.rst +++ b/docs/source/advanced/hierarchy/databases/mysql_remove.rst @@ -12,7 +12,7 @@ If you no longer want to use MySQL/MariaDB to maintain ``xcatdb``, and like to s XCATBYPASS=1 restorexCATdb -p ~/xcat-dbback -* Change to PostgreSQL, please following documentation: :doc:`/advanced/hierarchy/databases/postgres_install` +* Change to PostgreSQL, following documentation: :doc:`/advanced/hierarchy/databases/postgres_install` * Change back to default xCAT database, SQLite (**Note**: xCAT Hierarchy cluster will no longer work) diff --git a/docs/source/advanced/hierarchy/provision/diskless_sn.rst b/docs/source/advanced/hierarchy/provision/diskless_sn.rst index 1413c246e8..4f521aa486 100644 --- a/docs/source/advanced/hierarchy/provision/diskless_sn.rst +++ b/docs/source/advanced/hierarchy/provision/diskless_sn.rst @@ -1,7 +1,7 @@ Diskless (Stateless) Installation ================================= -**Note: The stateless Service Node is not supported in ubuntu hierarchy cluster. For ubuntu, please skip this section.** +**Note: The stateless Service Node is not supported in ubuntu hierarchy cluster. For ubuntu, skip this section.** If you want, your Service Nodes can be stateless (diskless). The Service Node must contain not only the OS, but also the xCAT software and its dependencies. diff --git a/docs/source/advanced/index.rst b/docs/source/advanced/index.rst index dacf235d00..7193f3b717 100755 --- a/docs/source/advanced/index.rst +++ b/docs/source/advanced/index.rst @@ -16,6 +16,7 @@ Advanced Topics mixed_cluster/index.rst networks/index.rst ports/xcat_ports.rst + probe/index.rst raid/index.rst restapi/index.rst security/index.rst diff --git a/docs/source/advanced/kit/custom/using/addkitcomp.rst b/docs/source/advanced/kit/custom/using/addkitcomp.rst index b5b7acbaee..f716770b8b 100644 --- a/docs/source/advanced/kit/custom/using/addkitcomp.rst +++ b/docs/source/advanced/kit/custom/using/addkitcomp.rst @@ -63,4 +63,4 @@ If the kit does contain a deployment parameter file, the contents of the file wi addkitcomp -i vi /install/osimages//kits/KIT_DEPLOY_PARAMS.otherpkgs.pkglist -NOTE: Please be sure to know how changing any kit deployment parameters will impact the install of the product into the OS image. Many parameters include settings for automatic license acceptance and other controls to ensure proper unattended installs into a diskless image or remote installs into a diskful node. Changing these values will cause problems with genimage, updatenode, and other xCAT deployment commands. +NOTE: Be sure to know how changing any kit deployment parameters will impact the install of the product into the OS image. Many parameters include settings for automatic license acceptance and other controls to ensure proper unattended installs into a diskless image or remote installs into a diskful node. Changing these values will cause problems with genimage, updatenode, and other xCAT deployment commands. diff --git a/docs/source/advanced/kit/hpc/quickstart.rst b/docs/source/advanced/kit/hpc/quickstart.rst index 5a61742153..d768149074 100644 --- a/docs/source/advanced/kit/hpc/quickstart.rst +++ b/docs/source/advanced/kit/hpc/quickstart.rst @@ -101,7 +101,7 @@ The following software kits will be used to install the IBM HPC software stack o addkitcomp -a -i rhels7.2-ppc64le-install-compute \ essl-computenode-3264rtecuda-5.4.0-0-rhels-7.2-ppc64le - If the system doesn't have GPU and the CUDA toolkit is not needed, the adminstrator should not add the following kit components that requires the CUDA packages: ``essl-loginnode-5.4.0-0-rhels-7.2-ppc64le``, ``essl-computenode-3264rte-5.4.0-0-rhels-7.2-ppc64le`` and ``essl-computenode-3264rtecuda-5.4.0-0-rhels-7.2-ppc64le``. Please check the ESSL installation guide: http://www.ibm.com/support/knowledgecenter/SSFHY8_5.4.0/com.ibm.cluster.essl.v5r4.essl300.doc/am5il_xcatinstall.htm + If the system doesn't have GPU and the CUDA toolkit is not needed, the adminstrator should not add the following kit components that requires the CUDA packages: ``essl-loginnode-5.4.0-0-rhels-7.2-ppc64le``, ``essl-computenode-3264rte-5.4.0-0-rhels-7.2-ppc64le`` and ``essl-computenode-3264rtecuda-5.4.0-0-rhels-7.2-ppc64le``. Check the ESSL installation guide: http://www.ibm.com/support/knowledgecenter/SSFHY8_5.4.0/com.ibm.cluster.essl.v5r4.essl300.doc/am5il_xcatinstall.htm #. Add the **Parallel ESSL** kitcomponents to osimage. diff --git a/docs/source/advanced/kit/index.rst b/docs/source/advanced/kit/index.rst index 8f1325f5a5..83f4d44c1f 100644 --- a/docs/source/advanced/kit/index.rst +++ b/docs/source/advanced/kit/index.rst @@ -5,7 +5,7 @@ xCAT supports a unique software bundling concept called **software kits**. Soft Prebuilt software kits are available as a tar file which can be downloaded and then added to the xCAT installation. After the kits are added to xCAT, kit components are then added to specific xCAT osimages to automatically install the software bundled with the kit during OS deployment. In some instances, software kits may be provided as partial kits. Partial kits need additional effort to complete the kit before it can be used by xCAT. -Software kits are supported for both diskful and diskless image provisionig. +Software kits are supported for both diskful and diskless image provisioning. .. toctree:: :maxdepth: 2 diff --git a/docs/source/advanced/mixed_cluster/building_stateless_images.rst b/docs/source/advanced/mixed_cluster/building_stateless_images.rst index cc3a759654..7d11450954 100644 --- a/docs/source/advanced/mixed_cluster/building_stateless_images.rst +++ b/docs/source/advanced/mixed_cluster/building_stateless_images.rst @@ -5,9 +5,9 @@ A **stateless**, or **diskless**, provisioned nodes is one where the operating s To deploy stateless compute nodes, you must first create a stateless image. The "netboot" osimages created from ``copycds`` in the **osimage** table are sample osimage definitions that can be used for deploying stateless nodes. -In a homogenous cluster, the management node is the same hardware architecture and running the same Operating System (OS) as the compute nodes, so ``genimage`` can directly be executed from the management node. +In a homogeneous cluster, the management node is the same hardware architecture and running the same Operating System (OS) as the compute nodes, so ``genimage`` can directly be executed from the management node. -The issues arises in a heterogenous cluster, where the management node is running a different level operating system *or* hardware architecture as the compute nodes in which to deploy the image. The ``genimage`` command that builds stateless images depends on various utilities provided by the base operating system and needs to be run on a node with the same hardware architecture and *major* Operating System release as the nodes that will be booted from the image. +The issues arises in a heterogeneous cluster, where the management node is running a different level operating system *or* hardware architecture as the compute nodes in which to deploy the image. The ``genimage`` command that builds stateless images depends on various utilities provided by the base operating system and needs to be run on a node with the same hardware architecture and *major* Operating System release as the nodes that will be booted from the image. Same Operating System, Different Architecture --------------------------------------------- @@ -27,7 +27,7 @@ The following describes creating stateless images of the same Operating System, lsdef -t osimage -z rhels6.3-x86_64-netboot-compute | sed 's/^[^ ]\+:/mycomputeimage:/' | mkdef -z -#. To obtain the ``genimage`` command to execte on ``n01``, execute the ``genimage`` command with the ``--dryrun`` option: :: +#. To obtain the ``genimage`` command to execute on ``n01``, execute the ``genimage`` command with the ``--dryrun`` option: :: genimage --dryrun mycomputeimage diff --git a/docs/source/advanced/mixed_cluster/power/diskful.rst b/docs/source/advanced/mixed_cluster/power/diskful.rst index 40f9d4cb38..7381ffe139 100644 --- a/docs/source/advanced/mixed_cluster/power/diskful.rst +++ b/docs/source/advanced/mixed_cluster/power/diskful.rst @@ -26,7 +26,6 @@ Create a node definition for the x86_64 compute node, here is a sample: :: bmc=10.4.42.254 bmcpassword=PASSW0RD bmcusername=USERID - chain=runcmd=bmcsetup,shell cons=ipmi groups=all initrd=xcat/osimage/rhels6.6-x86_64-install-compute/initrd.img diff --git a/docs/source/advanced/networks/ethernet_switches/ethernet_switches.rst b/docs/source/advanced/networks/ethernet_switches/ethernet_switches.rst index 3fe88cf154..946a023622 100644 --- a/docs/source/advanced/networks/ethernet_switches/ethernet_switches.rst +++ b/docs/source/advanced/networks/ethernet_switches/ethernet_switches.rst @@ -1,7 +1,7 @@ Configure Ethernet Switches --------------------------- -It is recommended that spanning tree be set in the switches to portfast or edge-port for faster boot performance. Please see the relevant switch documentation as to how to configure this item. +It is recommended that spanning tree be set in the switches to portfast or edge-port for faster boot performance. See the relevant switch documentation as to how to configure this item. It is recommended that lldp protocol in the switches is enabled to collect the switch and port information for compute node during discovery process. @@ -71,9 +71,9 @@ Running Remote Commands in Parallel You can use xdsh to run parallel commands on Ethernet switches. The following shows how to configure xCAT to run xdsh on the switches: -**[Note]**:Configure the switch to allow **ssh** or **telnet**. This varies for switch to switch. Please refer to the switch command references to find out how to do it. +**[Note]**:Configure the switch to allow **ssh** or **telnet**. This varies for switch to switch. Refer to the switch command references to find out how to do it. -Add the switch in xCAT DB. Please refer to the "Discovering Switches" section if you want xCAT to discover and define the switches for you. :: +Add the switch in xCAT DB. Refer to the "Discovering Switches" section if you want xCAT to discover and define the switches for you. :: mkdef bntc125 groups=switch mgt=switch ip=10.4.25.1 nodetype=switch switchtype=BNT @@ -97,9 +97,9 @@ Set the ssh or telnet username an d password. :: xdsh bntc125 --devicetype EthSwitch::BNT "enable;configure terminal;vlan 3;end;show vlan" -Please note that you can run multiple switch commands, they are separated by comma. +Note that you can run multiple switch commands, they are separated by comma. -Please also note that --devicetype is used here. xCAT supports the following switch types out of the box: :: +Also note that --devicetype is used here. xCAT supports the following switch types out of the box: :: * BNT * Cisco @@ -178,7 +178,7 @@ The new configuration file will look like this: :: For **BNT** switches, the **command-to-set-term-length-to-0** is **terminal-length 0**. -Please make sure to add a semi-colon at the end of the "pre-command" line. +Make sure to add a semi-colon at the end of the "pre-command" line. Then you can run the xdsh like this: :: diff --git a/docs/source/advanced/networks/index.rst b/docs/source/advanced/networks/index.rst index 85621389c0..6ab539c0bf 100644 --- a/docs/source/advanced/networks/index.rst +++ b/docs/source/advanced/networks/index.rst @@ -4,7 +4,7 @@ Networks .. toctree:: :maxdepth: 2 - switchdiscover/index.rst ethernet_switches/index.rst + switchdiscover/index.rst infiniband/index.rst ipv6/index.rst diff --git a/docs/source/advanced/networks/infiniband/driver_and_installation.rst b/docs/source/advanced/networks/infiniband/driver_and_installation.rst deleted file mode 100644 index d9d10a596a..0000000000 --- a/docs/source/advanced/networks/infiniband/driver_and_installation.rst +++ /dev/null @@ -1,11 +0,0 @@ -IB Driver Preparation and Installation -====================================== - -xCAT provides sample postscripts to help you install the Mellanox OpenFabrics Enterprise Distribution (OFED) InfiniBand Driver. These scripts are located in ``opt/xcat/share/xcat/ib/scripts/Mellanox/``. You can use these scripts directly or change them to satisfy your own environment. **xCAT 2.11 drops support of mlnxofed_ib_install and recommends using version 2 of the script: mlnxofed_ib_install.v2**. - -.. toctree:: - :maxdepth: 2 - - mlnxofed_ib_install_v2_usage.rst - mlnxofed_ib_install_v1_usage.rst - diff --git a/docs/source/advanced/networks/infiniband/firmware_updates.rst b/docs/source/advanced/networks/infiniband/firmware_updates.rst index b48296e8f0..a963c33561 100644 --- a/docs/source/advanced/networks/infiniband/firmware_updates.rst +++ b/docs/source/advanced/networks/infiniband/firmware_updates.rst @@ -5,7 +5,7 @@ Firmware Updates Adapter Firmware Update ----------------------- -Please download the OFED IB adapter firmware from the Mellanox site `http://www.mellanox.com/page/firmware_table_IBM `_ . +Download the OFED IB adapter firmware from the Mellanox site `http://www.mellanox.com/page/firmware_table_IBM `_ . Obtain device id: :: diff --git a/docs/source/advanced/networks/infiniband/index.rst b/docs/source/advanced/networks/infiniband/index.rst index c525d6c950..cb92a7045c 100644 --- a/docs/source/advanced/networks/infiniband/index.rst +++ b/docs/source/advanced/networks/infiniband/index.rst @@ -1,13 +1,18 @@ InfiniBand (Mellanox) ===================== -xCAT offers a certain degree support for Mellanox InfiniBand product, it help you to configurate Mellanox InfiniBand products easily. For more information about Mellanox InfiniBand, please refer to `Mellanox official site `_. +xCAT has the ability to help with Mellanox InfiniBand (IB) adapter installation and network configuration as part of the node provisioning process. + .. toctree:: :maxdepth: 2 - driver_and_installation.rst + mlnxofed_ib_install_v2.rst network_configuration.rst switch_configuration.rst ufm_configuration.rst firmware_updates.rst + + + +For more information about Mellanox products, refer to http://www.mellanox.com. diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_configuration.rst b/docs/source/advanced/networks/infiniband/mlnxofed_configuration.rst new file mode 100644 index 0000000000..24e9e912ac --- /dev/null +++ b/docs/source/advanced/networks/infiniband/mlnxofed_configuration.rst @@ -0,0 +1,11 @@ +Configuration +============= + +The process to configure the osimage to install the Mellanox OFED Drivers for Diskful and Diskless scenarios are outlined below. + +.. toctree:: + :maxdepth: 2 + + mlnxofed_ib_install_v2_diskful.rst + mlnxofed_ib_install_v2_diskless.rst + diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_diskful.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_diskful.rst deleted file mode 100644 index 37da6def7d..0000000000 --- a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_diskful.rst +++ /dev/null @@ -1,53 +0,0 @@ -Configuration for Diskful Installation -====================================== - -1. Set script ``mlnxofed_ib_install`` as postbootscript :: - - chdef -p postbootscripts=mlnxofed_ib_install - -2. Specify dependence package **[required for RHEL and SLES]** - - a) Copy the pkglist to the custom directory :: - - cp /opt/xcat/share/xcat/install//compute...pkglist \ - /install/custom/install//compute...pkglist - - b) Edit your /install/custom/install//compute...pkglist and add one line:: - - #INCLUDE:/opt/xcat/share/xcat/ib/netboot//ib...pkglist# - - c) Make the related osimage use the customized pkglist :: - - chdef -t osimage -o --install-compute \ - pkglist=/install/custom/install//compute...pkglist - - Take RHEL 6.4 on x86_64 for example :: - - cp /opt/xcat/share/xcat/install/rh/compute.rhels6.x86_64.pkglist \ - /install/custom/install/rh/compute.rhels6.x86_64.pkglist - - Edit the ``/install/custom/install/rh/compute.rhels6.x86_64.pkglist`` and add below line - ``#INCLUDE:/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels6.x86_64.pkglist#`` - - Then ``/install/custom/install/rh/compute.rhels6.x86_64.pkglist`` looks like below :: - - #Please make sure there is a space between @ and group name - #INCLUDE:/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels6.x86_64.pkglist# - ntp - nfs-utils - net-snmp - rsync - yp-tools - openssh-server - util-linux-ng - - Then modify related osimage :: - - chdef -t osimage -o rhels6.4-x86_64-install-compute \ - pkglist=/install/custom/install/rh/compute.rhels6.x86_64.pkglist - -3. Install node :: - - nodeset osimage=--install-compute - rsetboot net - rpower reset diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_diskless.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_diskless.rst deleted file mode 100644 index fd1173186f..0000000000 --- a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_diskless.rst +++ /dev/null @@ -1,77 +0,0 @@ -Configuration for Diskless Installation -======================================= - -1. Specify dependence package **[required for RHEL and SLES]** - - a) Copy a correct pkglist file **shipped by xCAT** according your environment to the ``/install/custom/netboot//`` directory :: - - cp /opt/xcat/share/xcat/netboot//compute...pkglist \ - /install/custom/netboot//compute...pkglist - - b) Edit your ``/install/custom/netboot//.pkglist`` and add one line ``#INCLUDE:/opt/xcat/share/xcat/ib/netboot//ib...pkglist#`` - - Take RHEL 6.4 on x86_64 for example :: - - cp /opt/xcat/share/xcat/netboot/rh/compute.rhels6.x86_64.pkglist \ - /install/custom/netboot/rh/compute.rhels6.x86_64.pkglist - - Edit the ``/install/custom/netboot/rh/compute.rhels6.x86_64.pkglist`` and add below line - ``#INCLUDE:/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels6.x86_64.pkglist#`` - - Then ``/install/custom/netboot/rh/compute.rhels6.x86_64.pkglist`` looks like below :: - - #INCLUDE:/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels6.x86_64.pkglist# - bash - nfs-utils - openssl - dhclient - ..... - - -2. Prepare postinstall scripts - - a) Specify postinstall script **shipped by xCAT** :: - - mkdir -p /install/custom/netboot// - - cp /opt/xcat/share/xcat/netboot//.postinstall \ - /install/custom/netboot// - - chmod +x /install/custom/netboot//.postinstall - - Take RHEL 6.4 on x86_64 for example :: - - mkdir -p /install/custom/netboot/rh/ - cp /opt/xcat/share/xcat/netboot/rh/compute.rhels6.x86_64.postinstall \ - /install/custom/netboot/rh/ - chmod +x /install/custom/netboot/rh/compute.rhels6.x86_64.postinstall - - b) Edit ``/install/custom/netboot//.postinstall`` and add below line in the end: :: - - installroot=$1 ofeddir=/install/post/otherpkgs///ofed/ \ - NODESETSTATE=genimage mlnxofed_options=--force /install/postscripts/mlnxofed_ib_install - - -3. Set the related osimage use the customized pkglist and customized compute.postinsall - -* [RHEL/SLES] :: - - chdef -t osimage -o --netboot-compute \ - pkglist=/install/custom/netboot//compute...pkglist \ - postinstall=/install/custom/netboot//.postinstall - -* [Ubuntu] :: - - chdef -t osimage -o --netboot-compute \ - postinstall=/install/custom/netboot//.postinstall - -4. Generate and package image for diskless installation :: - - genimage --netboot-compute - packimage --netboot-compute - -5. Install node :: - - nodeset osimage=--netboot-compute - rsetboot net - rpower reset diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_preparation.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_preparation.rst deleted file mode 100644 index 340871befc..0000000000 --- a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_preparation.rst +++ /dev/null @@ -1,42 +0,0 @@ -Preparation -=========== - -Obtain the Mellanox OFED ISO file from `Mellanox official site `_ and mount it onto suggested target location on the xCAT MN according your OS and ARCH: :: - - mkdir -p /install/post/otherpkgs///ofed - - mount -o loop MLNX_OFED_LINUX----.iso \ - /install/post/otherpkgs///ofed - -Take sles11 sp1 for x86_64 as an example :: - - mkdir -p /install/post/otherpkgs/sles11.1/x86_64/ofed/ - - mount -o loop MLNX_OFED_LINUX-1.5.3-3.0.0-sles11sp1-x86_64.iso \ - /install/post/otherpkgs/sles11.1/x86_64/ofed/ - - -Take Ubuntu14.4.1 for Power8 LE as an example :: - - mkdir -p /install/post/otherpkgs/ubuntu14.04.1/ppc64el/ofed - - mount -o loop MLNX_OFED_LINUX-2.3-1.0.1-ubuntu14.04-ppc64le.iso \ - /install/post/otherpkgs/ubuntu14.04.1/ppc64el/ofed - - -**[NOTE]** - -* Mellanox provides OFED files with **tarball** and **ISO** two format, but for xCAT, we just support **ISO** format right now. - -Copy Sample script **mlnxofed_ib_install** shipped by xCAT into ``/install/postscripts`` before using, such as :: - - cp /opt/xcat/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install \ - /install/postscripts/mlnxofed_ib_install - -The **mlnxofed_ib_install** invokes a script ``mlnxofedinstall`` shipped by Mellanox OFED ISO. If you want to pass the argument to ``mlnxofedinstall``, you set the argument to the environment variable ``mlnxofed_options`` which could be read by **mlnxofed_ib_install**. For example: PPE requires the 32-bit version of libibverbs, but the default **mlnxofed_ib_install** will remove all the old ib related packages at first including the 32-bit version of libibverbs. In this case, you can set the environment variable ``mlnxofed_options=--force`` when running the **mlnxofed_ib_install**. For diskful, you should put the environment variable ``mlnxofed_options=--force`` in mypostscript.tmpl. myposcript.tmpl is in ``/opt/xcat/share/xcat/templates/mypostscript/`` by default. When customize it, you should copy it into ``/install/postscripts/myposcript.tmpl`` :: - - mlnxofed_options='--force' - export mlnxofed_options - - - \ No newline at end of file diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_usage.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_usage.rst deleted file mode 100644 index 79577bdbd3..0000000000 --- a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v1_usage.rst +++ /dev/null @@ -1,9 +0,0 @@ -Using mlnxofed_ib_install (drops support) -========================================= - -.. toctree:: - :maxdepth: 1 - - mlnxofed_ib_install_v1_preparation.rst - mlnxofed_ib_install_v1_diskful.rst - mlnxofed_ib_install_v1_diskless.rst \ No newline at end of file diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2.rst new file mode 100644 index 0000000000..5658f2d1b3 --- /dev/null +++ b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2.rst @@ -0,0 +1,13 @@ +Mellanox OFED Installation Script +================================= + +Mellanox provides a tested and packaged version of the OpenFabrics Enterprise Distribution (OFED) driver, named Mellanox OFED (MLNX_OFED). To assist with the installation of the MLNX_OFED driver, xCAT provids a sample postscript: ``mlnxofed_ib_install.v2``. + +.. toctree:: + :maxdepth: 2 + + mlnxofed_ib_install_v2_preparation.rst + mlnxofed_configuration.rst + mlnxofed_ib_verified_scenario_matrix.rst + mlnxofed_ib_known_issue.rst + diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_diskful.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_diskful.rst index 453e888a5d..0db6df69e0 100644 --- a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_diskful.rst +++ b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_diskful.rst @@ -1,169 +1,44 @@ -Configuration for Diskful Installation -======================================= - -1. Set script ``mlnxofed_ib_install`` as ``postbootscripts`` or ``postscripts`` :: - - chdef -p postbootscripts="mlnxofed_ib_install -p /install//" - - Or :: - - chdef -p postscripts="mlnxofed_ib_install -p /install//" - - xCAT simulates completely the way Mellanox scripts work by using ``postbootscripts``. This way need to reboot after drive installation to make Mellanox drivers work reliably just like Mellanox suggested. If you want to use the reboot after operating system installation to avoid reboot twice, you can using ``postscripts`` attribute to install Mellanox drivers. This way has been verified in limited scenarios. For more information please refer to :doc:`The Scenarios Have Been Verified `. You can try this way in other else scenarios if you needed. - -2. Specify dependency package - - Some dependencies need to be installed before running Mellanox scripts. These dependencies are different between different scenario. xCAT configurates these dependency packages by using ``pkglist`` attribute of ``osimage`` definition. Please refer to :doc:`Add Additional Software Packages ` for more information:: - - # lsdef -t osimage --install-compute - Object name: --install-compute - imagetype=linux - .... - pkgdir=/ - pkglist=//compute...pkglist - .... - - You can append the ib dependency packages list in the end of ``//compute...pkglist`` directly like below: :: - - #cat //compute...pkglist - @base - @x11 - openssl - ntp - rsyn - #ib part - createrepo - kernel-devel - kernel-source - .... - - - Or if you want to isolate InfiniBand dependency packages list into a separate file, after you edit this file, you can append the file in ``//compute...pkglist`` like below way: :: - - #cat //compute...pkglist - @base - @x11 - openssl - ntp - rsyn - #INCLUDE://# - - xCAT has shipped some ib pkglist files under ``/opt/xcat/share/xcat/ib/netboot//``, these pkglist files have been verified in sepecific scenario. Please refer to :doc:`The Scenarios Have Been Verified ` to judge if you can use it directly in your environment. If so, you can use it like below: :: - - #cat //compute...pkglist - @base - @x11 - openssl - ntp - rsyn - #INCLUDE:/opt/xcat/share/xcat/ib/netboot//ib...pkglist# - - Take rhels7.2 on ppc64le for example: :: - - # lsdef -t osimage rhels7.2-ppc64le-install-compute - Object name: rhels7.2-ppc64le-install-compute - imagetype=linux - osarch=ppc64le - osdistroname=rhels7.2-ppc64le - osname=Linux - osvers=rhels7.2 - otherpkgdir=/install/post/otherpkgs/rhels7.2/ppc64le - pkgdir=/install/rhels7.2/ppc64le - pkglist=/install/custom/install/rh/compute.rhels7.ib.pkglist - profile=compute - provmethod=install - template=/opt/xcat/share/xcat/install/rh/compute.rhels7.tmpl - - - **[Note]**: If the osimage definition was generated by xCAT command ``copycds``, default value ``/opt/xcat/share/xcat/install/rh/compute.rhels7.pkglist`` was assigned to ``pkglist`` attribute. ``/opt/xcat/share/xcat/install/rh/compute.rhels7.pkglist`` is the sample pkglist shipped by xCAT, recommend to make a copy of this sample and using the copy in real environment. In the above example, ``/install/custom/install/rh/compute.rhels7.ib.pkglist`` is a copy of ``/opt/xcat/share/xcat/install/rh/compute.rhels7.pkglist``. :: - - # cat /install/custom/install/rh/compute.rhels7.ib.pkglist - #Please make sure there is a space between @ and group name - wget - ntp - nfs-utils - net-snmp - rsync - yp-tools - openssh-server - util-linux - net-tools - #INCLUDE:/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels7.ppc64le.pkglist# - - - -3. Install node :: - - nodeset osimage=--install-compute - rsetboot net - rpower reset - - - After steps above, you can login target node and find the Mellanox InfiniBand drives are located under ``/lib/modules//extra/``. - - Issue ``ibv_devinfo`` command you can get the InfiniBand apater information :: - - # ibv_devinfo - hca_id: mlx5_0 - transport: InfiniBand (0) - fw_ver: 10.14.2036 - node_guid: f452:1403:0076:10e0 - sys_image_guid: f452:1403:0076:10e0 - vendor_id: 0x02c9 - vendor_part_id: 4113 - hw_ver: 0x0 - board_id: IBM1210111019 - phys_port_cnt: 2 - Device ports: - port: 1 - state: PORT_INIT (2) - max_mtu: 4096 (5) - active_mtu: 4096 (5) - sm_lid: 0 - port_lid: 65535 - port_lmc: 0x00 - link_layer: InfiniBand - - port: 2 - state: PORT_DOWN (1) - max_mtu: 4096 (5) - active_mtu: 4096 (5) - sm_lid: 0 - port_lid: 65535 - port_lmc: 0x00 - link_layer: InfiniBand - - Using ``service openibd status`` to verify if openibd works well. Below is the output in rhels7.2. :: - - - # service openibd status - HCA driver loaded - - Configured IPoIB devices: - ib0 ib1 - - Currently active IPoIB devices: - Configured Mellanox EN devices: - - Currently active Mellanox devices: - - The following OFED modules are loaded: - - rdma_ucm - rdma_cm - ib_addr - ib_ipoib - mlx4_core - mlx4_ib - mlx4_en - mlx5_core - mlx5_ib - ib_uverbs - ib_umad - ib_ucm - ib_sa - ib_cm - ib_mad - ib_core - - +Diskful Installation +==================== + +#. Prepare dependency packages in the pkglist + + In order for the Mellanox installation script to execute successfully, certain dependency packages are required to be installed on the compute node. xCAT provides sample package list files to help resolve these dependencies. The samples are located at ``/opt/xcat/share/xcat/ib/netboot//``. + + To use the ``/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels7.ppc64le.pkglist``, edit your existing ``pkglist`` file for the target osimage and add the following at the bottom: :: + + #INCLUDE:/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels7.ppc64le.pkglist# + +#. Configure the ``mlnxofed_ib_install`` script to install the MNLX_OFED drivers + + xCAT has a concept of postscripts that can be used to customize the node after the operating system is installed. + + Mellanox recommends that the operating system is rebooted after the drivers are installed, so xCAT recommends using the ``postscripts`` attribute to avoid the need for a second reboot. To invoke the ``mlnxofed_ib_install`` as a postscript :: + + chdef -t node -o \ + -p postscripts="mlnxofed_ib_install -p /install//" + + **[kernel mismatch issue]** The Mellanox OFED ISO is built againt a series of specific kernel version. If the version of the linux kernel does not match any of the Mellanox offered pre-built kernel modules, you can pass the ``--add-kernel-support`` argument to the Mellanox installation script to build the kernel modules based on the version you are using. :: + + chdef -t node -o \ + -p postscripts="mlnxofed_ib_install -p /install// \ + -m --add-kernel-support -end-" + +#. Provision the node + +#. Verification + + * The Mellanox IB drivers are located at: ``/lib/modules//extra/`` + + * Use the ``ibv_devinfo`` comamnd to obtain information about the InfiniBand adapter + + * Check the status of ``openibd`` service + + sysVinit: :: + + service openibd status + + systemd: :: + + systemctl status openibd.service + diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_diskless.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_diskless.rst index e9576024f6..ae1be14ca0 100644 --- a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_diskless.rst +++ b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_diskless.rst @@ -1,169 +1,64 @@ -Configuration for Diskless Installation -======================================= - -1. Specify dependency package - - Some dependencies need to be installed before running Mellanox scripts. These dependencies are different among different scenarios. xCAT can help user to install these dependency packages by adding these package names to the file specified by the ``pkglist`` attribute of the ``osimage`` definition. Please refer to :doc:`Add Additional Software Packages ` for more information:: - - # lsdef -t osimage --netboot-compute - Object name: --netboot-compute - imagetype=linux - .... - pkgdir=/ - pkglist=//compute...pkglist - .... - - You can append the ib dependency packages list in the end of ``//compute...pkglist`` directly like below: :: - - #cat //compute...pkglist - bash - nfs-utils - openssl - dhclient - kernel - ..... - - #ib part - createrepo - kernel-devel - kernel-source - .... - - - Or if you want to isolate InfiniBand dependency packages list into a separate file, after you edit this file, you can append the file in ``//compute...pkglist`` like below way: :: - - #cat //compute...pkglist - bash - nfs-utils - openssl - dhclient - kernel - ..... - #INCLUDE://# - - xCAT ships some InfiniBand pkglist files under ``/opt/xcat/share/xcat/ib/netboot//``, these pkglist files have been verified in sepecific scenario. Please refer to :doc:`The Scenarios Have Been Verified ` to judge if you can use it directly in your environment. If so, you can use it like below: :: - - #cat //compute...pkglist - bash - nfs-utils - openssl - dhclient - kernel - ..... - #INCLUDE:/opt/xcat/share/xcat/ib/netboot//ib...pkglist# - - -2. Prepare postinstall scripts - - Edit ``postinstall`` script to trigger InfniBand drvices installation during ``genimage``. Using below command to find out where the ``postinstall`` script is defined. :: - - # lsdef -t osimage --netboot-compute - Object name: --netboot-compute - .... - postinstall=/..postinstall - .... - - - - Edit ``/..postinstall`` and add below line in the end. :: - - /install/postscripts/mlnxofed_ib_install \ - -p /install// -i $1 -n genimage - - - **[Note]** Mellanox OFED ISO was built against a series of certain kernael versions, If the version of linux kernel you are using does not match with any of the Mellanox offered pre-built kernel modules, you can pass ``--add-kernel-support`` command line argument to Mellanox OFED installation script to build these kernel modules base on the version of linux kernel you are using. The line added into ``.postinstall`` should like below. :: - - /install/postscripts/mlnxofed_ib_install \ - -p /install// -m --add-kernel-support -end- -i $1 -n genimage - - - Take rhels7.2 on ppc64le for example: :: - - #lsdef -t osimage rhels7.2-ppc64le-netboot-compute - Object name: rhels7.2-ppc64le-netboot-compute - exlist=/opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.exlist - imagetype=linux - osarch=ppc64le - osdistroname=rhels7.2-ppc64le - osname=Linux - osvers=rhels7.2 - otherpkgdir=/install/post/otherpkgs/rhels7.2/ppc64le - permission=755 - pkgdir=/install/rhels7.2/ppc64le - pkglist=/install/custom/netboot/rh/compute.rhels7.ppc64le.pkglist - postinstall=/install/custom/netboot/rh/compute.rhels7.ppc64le.ib.postinstall - profile=compute - provmethod=netboot - rootimgdir=/install/netboot/rhels7.2/ppc64le/compute - - - **[Note]**: If the osimage definition was generated by xCAT command ``copycds``, default value ``/opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.pkglist`` was assigned to ``pkglist`` attribute. ``/opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.pkglist`` is the sample pkglist shipped by xCAT, recommend to make a copy of this sample and using the copy in real environment. In the above example, ``/install/custom/netboot/rh/compute.rhels7.ppc64le.pkglist`` is a copy of ``/opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.pkglist``. For the same reason, ``/install/custom/netboot/rh/compute.rhels7.ppc64le.ib.postinstall`` is a copy of ``/opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.postinstall``. - - ``compute.rhels7.ppc64le.pkglist`` looks like below: :: - - # cat /install/custom/netboot/rh/compute.rhels7.ppc64le.pkglist - bash - nfs-utils - openssl - dhclient - bc - ...... - lsvpd - irqbalance - procps-ng - parted - net-tools - #INCLUDE:/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels7.ppc64le.pkglist# - - ``compute.rhels7.ppc64le.ib.postinstall`` looks like below: :: - - # cat /install/custom/netboot/rh/compute.rhels7.ppc64le.ib.postinstall - #!/bin/sh - #-- Do not remove following line if you want to make use of CVS version tracking - ..... - # [ -r $workdir/$profile.$ext ] && cat $workdir/$profile.$ext | grep -E '^[[:space:]]*#.*[[:space:]]\$Id' >> $installroot/etc/IMGVERSION - #done - /install/postscripts/mlnxofed_ib_install -p /install/ofed/MLNX_OFED_LINUX-3.2-2.0.0.0-rhel7.2-ppc64le.iso -i $1 -n genimage - -3. Generate and package image for diskless installation :: - - genimage --netboot-compute - packimage --netboot-compute - -4. Install node :: - - nodeset osimage=--netboot-compute - rsetboot net - rpower reset - - After installation, you can login target ndoe and issue ``ibv_devinfo`` command to verify if your InfiniBand driver works well. if everything is fine, you can get the InfiniBand apater information. :: - - # ibv_devinfo - hca_id: mlx5_0 - transport: InfiniBand (0) - fw_ver: 10.14.2036 - node_guid: f452:1403:0076:10e0 - sys_image_guid: f452:1403:0076:10e0 - vendor_id: 0x02c9 - vendor_part_id: 4113 - hw_ver: 0x0 - board_id: IBM1210111019 - phys_port_cnt: 2 - Device ports: - port: 1 - state: PORT_INIT (2) - max_mtu: 4096 (5) - active_mtu: 4096 (5) - sm_lid: 0 - port_lid: 65535 - port_lmc: 0x00 - link_layer: InfiniBand - - port: 2 - state: PORT_DOWN (1) - max_mtu: 4096 (5) - active_mtu: 4096 (5) - sm_lid: 0 - port_lid: 65535 - port_lmc: 0x00 - link_layer: InfiniBand +Diskless Installation +===================== + +#. Prepare dependency packages in the pkglist + + In order for the Mellanox installation script to execute successfully, certain dependency packages are required to be installed on the compute node. xCAT provides sample package list files to help resolve these dependencies. The samples are located at ``/opt/xcat/share/xcat/ib/netboot//``. + + To use the ``/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels7.ppc64le.pkglist``, edit your existing ``pkglist`` file for the target osimage and add the following at the bottom: :: + + #INCLUDE:/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels7.ppc64le.pkglist# + +#. Configure the ``mlnxofed_ib_install`` script to install the MNLX_OFED drivers + + Edit the ``postinstall`` script on the osimage to invoke the ``mlnxofed_ib_install`` install script. + + For example, take ``rhels7.2-ppc64le-netboot-compute``: + + #. Find the path to the ``postinstall`` script: :: + + # lsdef -t osimage -o rhels7.2-ppc64le-netboot-compute -i postinstall + Object name: rhels7.2-ppc64le-netboot-compute + postinstall=/opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.postinstall + + #. Edit the ``/opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.postinstall`` and add the following: :: + + /install/postscripts/mlnxofed_ib_install \ + -p /install// -i $1 -n genimage + + *Note: The $1 is a argument that is passed to the the postinstall script at runtime.* + + **[kernel mismatch issue]** The Mellanox OFED ISO is built againt a series of specific kernel version. If the version of the linux kernel does not match any of the Mellanox offered pre-built kernel modules, you can pass the ``--add-kernel-support`` argument to the Mellanox installation script to build the kernel modules based on the version you are using. :: + + /install/postscripts/mlnxofed_ib_install \ + -p /install// -m --add-kernel-support -end- \ + -i $1 -n genimage + +#. Generate the diskless image + + Use the ``genimage`` command to generate the diskless image from the osimage definition :: + + genimage + + Use the ``packimage`` command to pack the diskless image for deployment :: + + packimage + +#. Provision the node + +#. Verification + + * The Mellanox IB drivers are located at: ``/lib/modules//extra/`` + + * Use the ``ibv_devinfo`` comamnd to obtain information about the InfiniBand adapter + + * Check the status of ``openibd`` service + + sysVinit: :: + + service openibd status + + systemd: :: + + systemctl status openibd.service + diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_preparation.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_preparation.rst index cff51e6a64..929bdf674d 100644 --- a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_preparation.rst +++ b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_preparation.rst @@ -1,46 +1,59 @@ -Preparation -=========== - -Obtain the Mellanox OFED ISO ----------------------------- - -Obtain the Mellanox OFED ISO file from `Mellanox official Download Page `_ and put it into one place under ``/install`` directory depending on your need. - -**[NOTE]** - -* Mellanox provides OFED drivers in **tarball** and **ISO image** formats. xCAT only supports the **iso** format at this time. -* Mellanox provides different OFED ISOs depending on operating system and machine architecture, named like MLNX_OFED_LINUX----.iso, you should download correct one according to your environment. -* Mellanox has some updates and known issues for echo OFED, please read `InfiniBand/VPI Software Overview `_ to understand these information. -* The Mellanox links offered above maybe outdate in future for Mellanox updates its web page, xCAT will keep updating for synchronization. If we don't update in time, please access `Mellanox web portal `_ to find ``Support/Education`` then ``InfiniBand/VPI Drivers`` lables. - -Prepare Install Script ----------------------- - -**mlnxofed_ib_install.v2** is a sample script, its framework can help you install Mellanox drives easily. But in specific scenario, some detail need to be modified to meet requirement, such like dependency package list. It has been verified in limited scenarios and can work as solution in these scenarios. For these scenarions information please refer to :doc:`The Scenarios Have Been Verified `. - -Copy **mlnxofed_ib_install.v2** into ``/install/postscripts`` and change name to **mlnxofed_ib_install** :: - - cp /opt/xcat/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 \ - /install/postscripts/mlnxofed_ib_install - - chmod +x /install/postscripts/mlnxofed_ib_install - -``mlnxofed_ib_install`` has some options, **'-p' is always needed**. -Below are the details of these options: - -* **-p**: [required]--the directory where the OFED iso file is located -* **-m**: [optional]--the mlnxofed_ib_install invokes a script ``mlnxofedinstall`` shipped by Mellanox OFED iso. Use this option to pass arguments to the ``mlnxofedinstall``. You must include ``-end-`` at the completion of the options to distinguish the option list. if you don't pass any argument to ``mlnxofedinstall``, **defualt value** ``--without-32bit --without-fw-update --force`` will be passed to ``mlnxofedinstall`` by xCAT. -* **-i**: [required for diskless]--the image root path -* **-n**: [required for diskless]--nodeset status, the value is 'genimage' - -In general you can use ``mlnxofed_ib_install`` like below :: - - mlnxofed_ib_install -p /install// - -If need to pass ``--without-32bit --without-fw-update --add-kernel-support --force`` to ``mlnxofedinstall``, refer to below command. :: - - mlnxofed_ib_install -p /install// \ - -m --without-32bit --without-fw-update --add-kernel-support --force -end- - -**[Note]** We recommend to update your firmware to the version Mellanox supported in its release notes to avoid unexpected problem when you install InfiniBand driver. - +Preparation +=========== + +Download MLNX_OFED ISO +---------------------- + +**xCAT only supports installation using the ISO format.** + +Download the Mellanox OFED ISO file `here (MLNX_OFED) `_. + + +Prepare Installation Script +--------------------------- + +The ``mlnxofed_ib_install.v2`` is a sample script intended to assist with the installation of the Mellanox OFED drivers. The following support matrix documents the limited number of scenarios that have been verified: :doc:`support matrix `. + +#. Copy the ``mlnxofed_ib_install.v2`` to ``/install/postscripts``, renaming to ``mlnxofed_ib_install``. :: + + cp /opt/xcat/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 \ + /install/postscripts/mlnxofed_ib_install + + # ensure the script has execute permission + chmod +x /install/postscripts/mlnxofed_ib_install + +#. Familarize the options available for the xCAT ``mlnxofed_ib_install`` script. + + +---------+------------------+----------------------------------------------------------+ + | Option | Required | Description | + +=========+==================+==========================================================+ + |``-p`` | Yes || The full path to the MLNX_OFED ISO image | + +---------+------------------+----------------------------------------------------------+ + |``-m`` | No || Use this option to pass arguments to the Mellanox OFED | + | | || installation script ``mlnxofedinstall``. | + | | || | + | | || The special keyword ``-end-`` must be added to the end | + | | || of the string to mark the completion of the option list | + | | || option list. | + | | || | + | | || If nothing is specified, xCAT passes the the following | + | | || ``--without-32bit --with out-fw-update --force`` | + +---------+------------------+----------------------------------------------------------+ + |``-i`` | For diskless || The image root path of the diskless image | + | | || | + +---------+------------------+----------------------------------------------------------+ + |``-n`` | For diskless || nodeset status, value is ``genimage`` | + | | || | + +---------+------------------+----------------------------------------------------------+ + + + A very basic usage of the install script: :: + + /install/postscripts/mlnxofed_ib_install -p /install// + + + To pass the ``--add-kernel-support`` option to ``mlnxofedinstall``, use the following command: :: + + /install/postscripts/mlnxofed_ib_install -p /install// \ + -m --without-32bit --without-fw-update --add-kernel-support --force -end- + diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_usage.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_usage.rst deleted file mode 100644 index 52d500fb3d..0000000000 --- a/docs/source/advanced/networks/infiniband/mlnxofed_ib_install_v2_usage.rst +++ /dev/null @@ -1,12 +0,0 @@ -Using mlnxofed_ib_install.v2 (Recommend) -========================================= - -.. toctree:: - :maxdepth: 1 - - mlnxofed_ib_install_v2_preparation.rst - mlnxofed_ib_install_v2_diskful.rst - mlnxofed_ib_install_v2_diskless.rst - mlnxofed_ib_verified_scenario_matrix.rst - mlnxofed_ib_known_issue.rst - diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_known_issue.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_known_issue.rst index c523de4fa6..2d337a5880 100644 --- a/docs/source/advanced/networks/infiniband/mlnxofed_ib_known_issue.rst +++ b/docs/source/advanced/networks/infiniband/mlnxofed_ib_known_issue.rst @@ -1,19 +1,19 @@ Known Issues ============ +Preventing upgrade of the Mellanox Drivers +------------------------------------------ -Known Issue 1 -------------- +On RedHat operating systems, after the Mellanox drivers are installed, you may have a requirement to update your operating system to a later version. +Some operating systems may ship InfiniBand drivers that are higher version than the Mellanox drivers you have installed and therefor may update the existing drivers. + +To prevent this from happening, add the following in the ``/etc/yum.conf`` :: -After you install mellanox derives in rhels7.2 successfully by xCAT, maybe you have new requirement to upgrade your operating system to higher version. In this case you probably hit such problem the IB adaptor drives shipped by operating system is higher than the Mellanox drives you have installed. That means the the Mellanox drives will be replaced by the drives shipped by operating system. If it's not the result you expect, you hope keep the Mellanox drives after operating system upgraded, please add below statement into ``/etc/yum.conf`` in your target node after you install mellanox derives successfully for the first time. :: - exclude=dapl* libib* ibacm infiniband* libmlx* librdma* opensm* ibutils* -Known Issue 2 -------------- +Development packages in SLES +---------------------------- -If you want to use ``--add-kernel-support`` attribute in sles12.1 and ppc64le scenario, you will find some dependency packages are not shipped by SLES Server DVDs, such like ``python-devel``, it's shipped in SDK DVDs. xCAT doesn't ship specific pkglist to support such scenario. If you have such requirement, please used ``otherpkglist`` and ``otherpkgs`` attributes to prepare dependency packages repository ahead. If you need help about ``otherpkglist`` and ``otherpkgs`` attributes, please refer to :doc:`Add Additional Software Packages `. +If using the ``--add-kernel-support`` attribute on SLES operating systems, you may find problems with installing some dependency packages which are not shipped by the SLES server DVDs. The development rpms are provided by the SDK DVDs. Refer to :doc:`Add Additional Software Packages ` to configure the SDK repositories. - - diff --git a/docs/source/advanced/networks/infiniband/mlnxofed_ib_verified_scenario_matrix.rst b/docs/source/advanced/networks/infiniband/mlnxofed_ib_verified_scenario_matrix.rst index d8a515de64..fd9bfded69 100644 --- a/docs/source/advanced/networks/infiniband/mlnxofed_ib_verified_scenario_matrix.rst +++ b/docs/source/advanced/networks/infiniband/mlnxofed_ib_verified_scenario_matrix.rst @@ -1,15 +1,52 @@ -The Scenarios Have Been Verified -================================= +MLNX_OFED Support Matrix +======================== + +The following ISO images and attributs have been verified by the xCAT Team. + +**RedHat Enterprise Linux** + ++----------------------------------+-------------------------------------------------------------------+ +| RHEL 7.2 (ppc64le) | ++==================================+===================================================================+ +| **OFED ISO** | MLNX_OFED_LINUX-3.2-2.0.0.0-rhel7.2-ppc64le.iso | ++----------------------------------+-------------------------------------------------------------------+ +| **Attribute Supported** | --without-32bit --without-fw-update --add-kernel-support --force | ++----------------------------------+-------------------------------------------------------------------+ +| **IB.pkglist** | ib.rhels7.ppc64le.pkglist | ++----------------------------------+-------------------------------------------------------------------+ + ++----------------------------------+-------------------------------------------------------------------+ +| RHEL 7.1 (ppc64) | ++==================================+===================================================================+ +| **OFED ISO** | MLNX_OFED_LINUX-3.2-2.0.0.0-rhel7.1-ppc64.iso | ++----------------------------------+-------------------------------------------------------------------+ +| **Attribute Supported** | --without-32bit --without-fw-update --add-kernel-support --force | ++----------------------------------+-------------------------------------------------------------------+ +| **IB.pkglist** | ib.rhels7.ppc64.pkglist | ++----------------------------------+-------------------------------------------------------------------+ -+---------------+---------+---------------------------------------------------+------------------------------------------------------------------+---------------------------+ -| OS version | Arch | Ofed version | Attribute supported by mlnx | IB.pkglist | -+===============+=========+===================================================+==================================================================+===========================+ -| rhels7.1 | ppc64 | MLNX_OFED_LINUX-3.2-2.0.0.0-rhel7.1-ppc64.iso |--without-32bit --without-fw-update --add-kernel-support --force | ib.rhels7.ppc64.pkglist | -+---------------+---------+---------------------------------------------------+------------------------------------------------------------------+---------------------------+ -| rhels7.2 | ppc64le | MLNX_OFED_LINUX-3.2-2.0.0.0-rhel7.2-ppc64le.iso |--without-32bit --without-fw-update --add-kernel-support --force | ib.rhels7.ppc64le.pkglist | -+---------------+---------+---------------------------------------------------+------------------------------------------------------------------+---------------------------+ -| sles12.1 | ppc64le |MLNX_OFED_LINUX-3.2-2.0.0.0-sles12sp1-ppc64le.iso |--without-32bit --without-fw-update --force | ib.sles12.ppc64le.pkglist | -+---------------+---------+---------------------------------------------------+------------------------------------------------------------------+---------------------------+ -| ubuntu14.04.3 | ppc64le |MLNX_OFED_LINUX-3.2-2.0.0.0-ubuntu14.04-ppc64le.iso|--without-32bit --without-fw-update --add-kernel-support --force |ib.ubuntu14.ppc64le.pkglist| -+---------------+---------+---------------------------------------------------+------------------------------------------------------------------+---------------------------+ +**Suse Linux Enterprise Server** + ++----------------------------------+-------------------------------------------------------------------+ +| SLES 12 (ppc64le) | ++==================================+===================================================================+ +| **OFED ISO** | MLNX_OFED_LINUX-3.2-2.0.0.0-sles12sp1-ppc64le.iso | ++----------------------------------+-------------------------------------------------------------------+ +| **Attribute Supported** | --without-32bit --without-fw-update --force | ++----------------------------------+-------------------------------------------------------------------+ +| **IB.pkglist** | ib.sles12.ppc64le.pkglist | ++----------------------------------+-------------------------------------------------------------------+ + + +**Ubuntu** + ++----------------------------------+-------------------------------------------------------------------+ +| Ubuntu14.04.3 (ppc64le) | ++==================================+===================================================================+ +| **OFED ISO** | MLNX_OFED_LINUX-3.2-2.0.0.0-ubuntu14.04-ppc64le.iso | ++----------------------------------+-------------------------------------------------------------------+ +| **Attribute Supported** | --without-32bit --without-fw-update --add-kernel-support --force | ++----------------------------------+-------------------------------------------------------------------+ +| **IB.pkglist** | ib.ubuntu14.ppc64le.pkglist | ++----------------------------------+-------------------------------------------------------------------+ diff --git a/docs/source/advanced/networks/infiniband/switch_configuration.rst b/docs/source/advanced/networks/infiniband/switch_configuration.rst index b1c6824bf5..58e50e0add 100644 --- a/docs/source/advanced/networks/infiniband/switch_configuration.rst +++ b/docs/source/advanced/networks/infiniband/switch_configuration.rst @@ -72,7 +72,7 @@ Use the following command to consolidate the syslog to the Management Node or Se Configure xdsh for Mellanox Switch ---------------------------------- -To run xdsh commands to the Mellanox Switch, you must use the --devicetype input flag to xdsh. In addition, for xCAT versions less than 2.8, you must add a configuration file, please see `Setup ssh connection to the Mellanox Switch`_ section. +To run xdsh commands to the Mellanox Switch, you must use the --devicetype input flag to xdsh. In addition, for xCAT versions less than 2.8, you must add a configuration file, see `Setup ssh connection to the Mellanox Switch`_ section. For the Mellanox Switch the ``--devicetype`` is ``IBSwitch::Mellanox``. See :doc:`xdsh man page ` for details. diff --git a/docs/source/advanced/networks/switchdiscover/index.rst b/docs/source/advanced/networks/switchdiscover/index.rst index 466d699168..73f7e81783 100644 --- a/docs/source/advanced/networks/switchdiscover/index.rst +++ b/docs/source/advanced/networks/switchdiscover/index.rst @@ -5,3 +5,4 @@ Switch Discover :maxdepth: 2 switches_discovery.rst + switch_based_switch_discovery.rst diff --git a/docs/source/advanced/networks/switchdiscover/switch_based_switch_discovery.rst b/docs/source/advanced/networks/switchdiscover/switch_based_switch_discovery.rst new file mode 100644 index 0000000000..f67b76d10e --- /dev/null +++ b/docs/source/advanced/networks/switchdiscover/switch_based_switch_discovery.rst @@ -0,0 +1,174 @@ +Switch-based Switch Discovery +============================= + +Currently, xCAT supports switch based hardware discovery, the servers are identified through the switches and switch ports they are directly connected to. A similar method can be used to discover switches using switch-based discovery within the user defined dynamic IP range. + +Pre-requirement +~~~~~~~~~~~~~~~ + +In order to do switch-based switch discovery, the admin + +1. Needs to manually setup and configure core-switch, SNMP v3 needs to be enabled in order for xCAT access to it. **username** and **userpassword** attributes are for the remote login. It can be for **ssh** or **telnet**. If it is for **telnet**, set protocol to “telnet”. If the **username** is blank, the **username** and **password** will be retrieved from the passwd table with “switch” as the key. SNMP attributes will used for SNMPv3 communication. **nodetype** has to be set to "switch" to differentiate between switch-based node discovery or switch-based switch discovery. Refer to switches table attributes. Example of core-switch definition: + +:: + + lsdef switch-10-5-23-1 + Object name: switch-10-5-23-1 + groups=switch + ip=10.5.23.1 + mac=ab:cd:ef:gh:dc + mgt=switch + nodetype=switch + password=admin + postbootscripts=otherpkgs + postscripts=syslog,remoteshell,syncfiles + protocol=telnet + snmpauth=sha + snmppassword=userpassword + snmpusername=snmpadmin + snmpversion=3 + switchtype=BNT + usercomment=IBM + username=root + + + +2. Predefine all top-rack switches which connect to core-switch. The attribute **ip** is static ip address for the switch. When ``switchdiscover --setup`` command is issued, this ip address will replace dhcp IP address on the switch. **nodetype=switch** needs to be set to differentiate between switch-based node discovery or switch-based switch discovery during discovery process. the attribute **switch** is hostname of core-switch and **switchport** is the port number in the core-switch that top-rack switch is connected to. + +:: + + lsdef switch-192-168-5-22 + objtype=node + groups=switch + ip=192.168.5.22 + mgt=switch + nodetype=switch + switch=switch-10-5-23-1 + switchport=45 + switchtype=BNT + + +3. Add switches to /etc/hosts for hostname lookup and xdsh command. :: + + makehosts switch-192-168-5-23 + makehosts switch-192-168-5-22 + + +4. Setup Dynamic IP range in network table for discovered switches to use. :: + + # tabdump networks + #netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,nameservers,ntpservers,logservers,dynamicrange,staticrange,staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain,mtu,comments,disable + "192_168_0_0-255_255_0_0","192.168.0.0","255.255.0.0","enP4p1s0f2","",,"192.168.3.29",,,,"192.168.5.150-192.168.5.170",,,,,,,,, + + +dhcp should be restarted after seting up dynamic IP range. + + +Discover Switches +~~~~~~~~~~~~~~~~~ + +xCAT supports **switchdiscover** command to discover the switches that are attached to the subnets on xCAT management node. Refer to http://xcat-docs.readthedocs.io/en/latest/advanced/networks/switchdiscover/switches_discovery.html for more info. + +For the switch-based switch discovery, we add **–setup** flag: :: + + + switchdiscover [noderange|--range ip_ranges][-s scan_methods] [--setup] + + +if **--setup** flag is specified, the command will perform following steps: + +1. Use snmp or nmap scan methods to find all switches in the dynamic IP ranges specified by --range, the available switches will be stored in switch hash table with hostname, switchtype, vendor info and mac address. + + +2. Based on mac address for each switch defined in the hash table, call **find_mac** subroutine. The **find_mac** subroutine will go thought the switch and switch ports and find matched mac address. + +* If discovered switch didn't find any predefined switch matches, it will log the message ``NO predefined switch matched``. +* If discovered switch matched with one of pre-defined switch, it will update the predefined switch with :: + + otherinterface=x.x.x.x (discovered ip) + state=matched + switchtype=type of switch + usercomment=vendor information + + +3. After switches are matched, the command will call config files to set up static IP address, hostname and enable the snmpv3. Currently, BNT and Mellanox switches are supported. The two config files are located in the **/opt/xcat/share/xcat/scripts/config.BNT** and **/opt/xcat/share/xcat/scripts/config.Mellanox**. the log message ``the switch type is not support for config`` is displayed if switchtype is something other than BNT or Mellanox. + +4. After discovery process, the predefined node attribute in the xCATdb will be updated. + +:: + + lsdef switch-192-168-5-22 + groups=switch + ip=192.168.5.22 + mac=a8:97:dc:02:92:00 + mgt=switch + nodetype=switch + password=admin + postbootscripts=otherpkgs + postscripts=syslog,remoteshell,syncfiles + protocol=telnet + snmpauth=sha + snmppassword=xcatadminpassw0rd@snmp + snmpusername=xcatadmin + snmpversion=3 + status=hostname_configed + statustime=08-31-2016 15:35:49 + supportedarchs=ppc64 + switch=switch-10-5-23-1 + switchport=45 + switchtype=BNT + usercomment=IBM Networking Operating System RackSwitch G8052 + username=root + + + +Configure switches +~~~~~~~~~~~~~~~~~~ + +The **switchdiscover** command with ``--setup`` flag will set up switches with static ip address, change the hostname from predefine switches and enable snmpv3 configuration. For other switches configuration, Refer to http://xcat-docs.readthedocs.io/en/latest/advanced/networks/ethernet_switches/ethernet_switches.html and http://xcat-docs.readthedocs.io/en/latest/advanced/networks/infiniband/switch_configuration.html + +These two config files are located in the **/opt/xcat/share/xcat/scripts**. The **switchdiscover** process will call the config files with ``--all`` option. User can call these scripts to setup one of options manually. + +1. **configBNT** is for configure BNT switches. + +:: + + ./configBNT --help + Usage: + configBNT [-?│-h│--help] + configBNT [--switches switchnames] [--all] + configBNT [--switches switchnames] [--ip] + configBNT [--switches switchnames] [--name ] + configBNT [--switches switchnames] [--snmp] [--user snmp_user] [--password snmp_password] [--group snmp_group] + configBNT [--switches switchnames] [--port port] [--vlan vlan] + +2. **configMellanox** is for configuring Mellanox switch. The script will configure ntp service on the switch with xCAT MN and will use rspconfig command to + * enable ssh + * enable snmp function on the switch + * enable the snmp trap + * set logging destination to xCAT MN + +:: + + ./configMellanox --help + Usage: + configMellonax [-?│-h│--help] + configMellonax [--switches switchnames] [--all] + configMellonax [--switches switchnames] [--ip] + configMellonax [--switches switchnames] [--name] + configMellonax [--switches switchnames] [--config] + + +Switch Status +~~~~~~~~~~~~~ + +During the switch-based switch discovery process, there are four states displayed. User may only see **switch_configed** status on node definition if discovery process succefully finished. + +**Matched** --- Discovered switch is matched to predefine switch, **otherinterfaces** attribute is updated to dhcp IP address, and mac address, **switch type** and **usercomment** also updated with vendor information for the predefined switch. + +**ip_configed** --- switch is set up to static ip address based on predefine switch IP address. If failure to set up IP address, the status will stay as **Matched**. + +**hostname_configed** -- switch host name is changed based on predefine switch hostname. If failure to change hostname on the switch, the status will stay as **ip_configed**. + +**switch_configed** -- snmpv3 is setup for the switches. This should be finial status after running ``switchdiscover --setup`` command. If failure to setup snmpv3, the status will stay as **hostname_configed**. + diff --git a/docs/source/advanced/networks/switchdiscover/switches_discovery.rst b/docs/source/advanced/networks/switchdiscover/switches_discovery.rst index 3163db74b3..295bad80e3 100644 --- a/docs/source/advanced/networks/switchdiscover/switches_discovery.rst +++ b/docs/source/advanced/networks/switchdiscover/switches_discovery.rst @@ -37,5 +37,5 @@ The discovery process works with the following four kind of switches: :: BNT Juniper -The ``switchdiscover`` command can display the output in xml format, stanza forma and normal list format. Please see the man pages for this command for details. +The ``switchdiscover`` command can display the output in xml format, stanza forma and normal list format. See the man pages for this command for details. diff --git a/docs/source/advanced/networks/vlan/vlan.rst b/docs/source/advanced/networks/vlan/vlan.rst index f1d116bb6f..0e3e3840c5 100644 --- a/docs/source/advanced/networks/vlan/vlan.rst +++ b/docs/source/advanced/networks/vlan/vlan.rst @@ -53,7 +53,7 @@ For example: :: This means port 42 of switch1 is connected to port 50 of switch2. And switch1 can be accessed using SNMP version 3 and switch 2 can be accessed using SNMP version 2. -Note: The **username** and the **password** on the switches table are NOT the same as SSH user name and password. You have to configure SNMP on the switch for these parameters and then fill up this table. Please use **tabdump switches -d** command to find out the meaning of each column. +Note: The **username** and the **password** on the switches table are NOT the same as SSH user name and password. You have to configure SNMP on the switch for these parameters and then fill up this table. Use **tabdump switches -d** command to find out the meaning of each column. **2. Populate the switch table** @@ -80,7 +80,7 @@ The interface eth1 is for the application network on node1, node2 and node3. Not **3. Configure the switch for SNMP access** -Please make sure that the MN can access the switch using SNMP and the switch is configured such that it has SNMP read and write permissions. +Make sure that the MN can access the switch using SNMP and the switch is configured such that it has SNMP read and write permissions. You can use **snmpwalk/snmpget** and **snmpset** commands on the mn to check. These commands are from **net-snmp-utils** rpm. @@ -215,7 +215,7 @@ For example: :: VLAN Security ------------- -To make the vlan more secure, the root guard and the bpdu guard are enabled for each ports within the vlan by **mkvlan** and **chvlan** commands. This way it guards the topology changes on the switch by the hackers who hack the STP. However, when the vlan is removed by the **rmvlan** and the **chvlan (-d)** commands, the root guard and the bpdu guard are not disabled because the code cannot tell if the guards were enabled by the admin or not. If you want to remove the gurads after the vlan is removed, you need to use the switch command line interface to do so. Please refer to the documents for the switch command line interfaces for details. +To make the vlan more secure, the root guard and the bpdu guard are enabled for each ports within the vlan by **mkvlan** and **chvlan** commands. This way it guards the topology changes on the switch by the hackers who hack the STP. However, when the vlan is removed by the **rmvlan** and the **chvlan (-d)** commands, the root guard and the bpdu guard are not disabled because the code cannot tell if the guards were enabled by the admin or not. If you want to remove the gurads after the vlan is removed, you need to use the switch command line interface to do so. Refer to the documents for the switch command line interfaces for details. Limitation ---------- diff --git a/docs/source/advanced/probe/detect_dhcpd.rst b/docs/source/advanced/probe/detect_dhcpd.rst new file mode 100644 index 0000000000..fe74494971 --- /dev/null +++ b/docs/source/advanced/probe/detect_dhcpd.rst @@ -0,0 +1,5 @@ +detect_dhcpd +============ + +**detect_dhcp** can be used to detect the dhcp server in a network for a specific mac address. + diff --git a/docs/source/advanced/probe/discovery.rst b/docs/source/advanced/probe/discovery.rst new file mode 100644 index 0000000000..611dba27ef --- /dev/null +++ b/docs/source/advanced/probe/discovery.rst @@ -0,0 +1,5 @@ +discovery +========= + +**discovery** can be used to probe the discovery process, including pre-check for required configuration and realtime monitor of discovery process. + diff --git a/docs/source/advanced/probe/image.rst b/docs/source/advanced/probe/image.rst new file mode 100644 index 0000000000..31d20dbfab --- /dev/null +++ b/docs/source/advanced/probe/image.rst @@ -0,0 +1,3 @@ +image +===== + diff --git a/docs/source/advanced/probe/index.rst b/docs/source/advanced/probe/index.rst new file mode 100644 index 0000000000..4e6932de7f --- /dev/null +++ b/docs/source/advanced/probe/index.rst @@ -0,0 +1,27 @@ +xCAT probe +========== + +To help identify some of the common issues with xCAT, a new tool suite is now available **xCAT probe**. + +You can use ``xcatprobe -l`` to list all valid subcommands, output will be as below :: + + # xcatprobe -l + osdeploy Probe operating system provision process. Supports two modes - 'Realtime monitor' and 'Replay history'. + xcatmn After xcat installation, use this command to check if xcat has been installed correctly and is + ready for use. Before using this command, install 'tftp', 'nslookup' and 'wget' commands. + switch-macmap To retrieve MAC address mapping for the specified switch, or all the switches defined in + 'switches' table in xCAT db. + ...... + +.. toctree:: + :maxdepth: 2 + + xcatmn.rst + detect_dhcpd.rst + image.rst + osdeploy.rst + discovery.rst + switch-macmap.rst + nodecheck.rst + osimagecheck.rst + diff --git a/docs/source/advanced/probe/nodecheck.rst b/docs/source/advanced/probe/nodecheck.rst new file mode 100644 index 0000000000..479846e759 --- /dev/null +++ b/docs/source/advanced/probe/nodecheck.rst @@ -0,0 +1,2 @@ +nodecheck +========= diff --git a/docs/source/advanced/probe/osdeploy.rst b/docs/source/advanced/probe/osdeploy.rst new file mode 100644 index 0000000000..546d331987 --- /dev/null +++ b/docs/source/advanced/probe/osdeploy.rst @@ -0,0 +1,99 @@ +osdeploy +======== + +**osdeploy** operating system provision process. Supports two modes - 'Realtime monitor' and 'Replay history'. + +Realtime monitor: This is a default. This tool with monitor provision state of the node. Trigger 'Realtime monitor' before rebooting target node to do provisioning. + +Replay history: Used after provisioning is finished to probe the previously completed provisioning. + +**Note**: Currently, hierarchical structure is not supported. + +Usage +----- + +:: + + xcatprobe osdeploy -h + xcatprobe osdeploy -n [-t ] [-V] + xcatprobe osdeploy -n -r [-V] + +Options: + +* **-n**: The range of nodes to be monitored or replayed. +* **-r**: Trigger 'Replay history' mode. Follow the duration of rolling back. Units are 'h' (hour) or 'm' (minute). If unit is not specified, hour will be used by default. +* **-t**: The maximum time to wait when doing monitor, unit is minutes. default is 60. +* **-V**: Output more information. + +``-r`` means replay history of OS provision, if no ``-r`` means to do realtime monitor. + +Realtime monitor +---------------- + +To monitor OS provisioning in real time, open at least 2 terminal windows. One to run ``osdeploy`` probe: :: + + xcatprobe osdeploy -n cn1 [-V] + +After some pre-checks, the probe will wait for provisioning information, similar to output below: :: + + # xcatprobe osdeploy -n c910f03c17k20 + The install NIC in current server is enp0s1 [INFO] + All nodes which will be deployed are valid [ OK ] + ------------------------------------------------------------- + Start capturing every message during OS provision process...... + ------------------------------------------------------------- + +Open second terminal window to run provisioning: :: + + nodeset cn1 osimage= + rpower cn1 boot + +When all the nodes complete provisioning, the probe will exit and display output similar to: :: + + # xcatprobe osdeploy -n c910f03c17k20 + The install NIC in current server is enp0s1 [INFO] + All nodes which will be deployed are valid [ OK ] + ------------------------------------------------------------- + Start capturing every message during OS provision process...... + ------------------------------------------------------------- + + [c910f03c17k20] Use command rinstall to reboot node c910f03c17k20 + [c910f03c17k20] Node status is changed to powering-on + [c910f03c17k20] Receive DHCPDISCOVER via enp0s1 + [c910f03c17k20] Send DHCPOFFER on 10.3.17.20 back to 42:d0:0a:03:11:14 via enp0s1 + [c910f03c17k20] DHCPREQUEST for 10.3.17.20 (10.3.5.4) from 42:d0:0a:03:11:14 via enp0s1 + [c910f03c17k20] Send DHCPACK on 10.3.17.20 back to 42:d0:0a:03:11:14 via enp0s1 + [c910f03c17k20] Via TFTP download /boot/grub2/grub2-c910f03c17k20 + [c910f03c17k20] Via TFTP download /boot/grub2/powerpc-ieee1275/normal.mod + ...... + [c910f03c17k20] Postscript: otherpkgs exited with code 0 + [c910f03c17k20] Node status is changed to booted + [c910f03c17k20] done + [c910f03c17k20] provision completed.(c910f03c17k20) + [c910f03c17k20] provision completed [ OK ] + All nodes specified to monitor, have finished OS provision process [ OK ] + ==================osdeploy_probe_report================= + All nodes provisioned successfully [ OK ] + + +If there is something wrong when provisioning, this probe will exit when timeout is reachedd or ``Ctrl+C`` is pressed by user. The maximum time can be set by using ``-t`` as below(default 30 minutes) :: + + + xcatprobe osdeploy -n cn1 -t 30 + +Replay history +-------------- + +To replay history of OS provision from 1 hour 20 minutes ago, use command as :: + + xcatprobe osdeploy -n cn1 -r 1h20m + +Outout will be similar to: :: + + # xcatprobe osdeploy -n c910f03c17k20 + The install NIC in current server is enp0s1 [INFO] + All nodes which will be deployed are valid [ OK ] + Start to scan logs which are later than *********, waiting for a while............. + ==================osdeploy_probe_report================= + All nodes provisioned successfully [ OK ] + diff --git a/docs/source/advanced/probe/osimagecheck.rst b/docs/source/advanced/probe/osimagecheck.rst new file mode 100644 index 0000000000..9bf8d6c81c --- /dev/null +++ b/docs/source/advanced/probe/osimagecheck.rst @@ -0,0 +1,2 @@ +osimagecheck +============ diff --git a/docs/source/advanced/probe/switch-macmap.rst b/docs/source/advanced/probe/switch-macmap.rst new file mode 100644 index 0000000000..bf600a2398 --- /dev/null +++ b/docs/source/advanced/probe/switch-macmap.rst @@ -0,0 +1,3 @@ +switch-macmap +============= + diff --git a/docs/source/advanced/probe/xcatmn.rst b/docs/source/advanced/probe/xcatmn.rst new file mode 100644 index 0000000000..469bffcf5c --- /dev/null +++ b/docs/source/advanced/probe/xcatmn.rst @@ -0,0 +1,56 @@ +xcatmn +====== + +**xcatmn** can be used to check if xcat has been installed correctly and is ready for use. + +**Note**: For several check items(eg. tftp service, dns service, http service), 'tftp', 'nslookup' and 'wget' are need. If not installed, a warning message will be displayed.. + +Command is as below :: + + xcatprobe xcatmn -i [-V] + +* **-i**: [Required] Specify the network interface name of provision network on management node. +* **-V**: Output more information for debug. + +For example, run command on Management Node :: + + xcatprobe xcatmn -i eth0 + +Output will be similar to: :: + + # xcatprobe xcatmn -i eth0 + [MN]: Sub process 'xcatd: SSL listener' is running [ OK ] + [MN]: Sub process 'xcatd: DB Access' is running [ OK ] + [MN]: Sub process 'xcatd: UDP listener' is running [ OK ] + [MN]: Sub process 'xcatd: install monitor' is running [ OK ] + [MN]: Sub process 'xcatd: Discovery worker' is running [ OK ] + [MN]: Sub process 'xcatd: Command log writer' is running [ OK ] + [MN]: xcatd is listening on port 3001 [ OK ] + [MN]: xcatd is listening on port 3002 [ OK ] + [MN]: 'lsxcatd -a' works [ OK ] + [MN]: The value of 'master' in 'site' table is an IP address [ OK ] + [MN]: NIC enp0s1 exists on current server [ OK ] + [MN]: Get IP address of NIC eth0 [ OK ] + [MN]: The IP *.*.*.* of eth0 equals the value of 'master' in 'site' table [ OK ] + [MN]: IP *.*.*.* of NIC eth0 is a static IP on current server [ OK ] + [MN]: *.*.*.* belongs to one of networks defined in 'networks' table [ OK ] + [MN]: There is domain definition in 'site' table [ OK ] + [MN]: There is a configuration in 'passwd' table for 'system' for node provisioning [ OK ] + [MN]: There is /install directory on current server [ OK ] + [MN]: There is /tftpboot directory on current server [ OK ] + [MN]: The free space of '/' is less than 12 G [ OK ] + [MN]: SELinux is disabled on current server [ OK ] + [MN]: Firewall is closed on current server [ OK ] + [MN]: HTTP service is ready on *.*.*.* [ OK ] + [MN]: TFTP service is ready on *.*.*.* [ OK ] + [MN]: DNS server is ready on *.*.*.* [ OK ] + [MN]: The size of /var/lib/dhcpd/dhcpd.leases is less than 100M [ OK ] + [MN]: DHCP service is ready on *.*.*.* [ OK ] + ======================do summary===================== + [MN]: Check on MN PASS. [ OK ] + +**[MN]** means that the verification is performed on the Management Node. Overall status of ``PASS`` or ``FAILED`` will be displayed after all items are verified.. + +Service Nodes are checked automatically for hierarchical clusters. + +For Service Nodes, the output will contain ``[SN:nodename]`` to distinguish different Service Nodes. diff --git a/docs/source/advanced/raid/hardware_raid.rst b/docs/source/advanced/raid/hardware_raid.rst index ca616790aa..d6e0f3c8e0 100644 --- a/docs/source/advanced/raid/hardware_raid.rst +++ b/docs/source/advanced/raid/hardware_raid.rst @@ -18,7 +18,7 @@ Following sections show how to use ``diskdiscover`` and ``configraid``, we assum Discovering disk devices ------------------------ -Command ``diskdiscover`` scans disk devices, it can get the overview of disks and RAID arrays information from compute node; The outputs contain useful information for ``configraid`` to configure RAID arrays, user can get ``pci_id``, ``pci_slot_name``, ``disk names``, ``RAID arrays`` and other informations from the outputs. It should be ran in xcat genesis system. It can be executed without input parameter or with pci_id, pci_id includes PCI vender and device ID. For example, power8 SAS adapter pci_id is ``1014:034a``, ``1014`` is vender info, ``034a`` is PCI-E IPR SAS Adapter, more info about pci_id refer to ``http://pci-ids.ucw.cz/read/PC/1014/``. +Command ``diskdiscover`` scans disk devices, it can get the overview of disks and RAID arrays information from compute node; The outputs contain useful information for ``configraid`` to configure RAID arrays, user can get ``pci_id``, ``pci_slot_name``, ``disk names``, ``RAID arrays`` and other informations from the outputs. It should be ran in xcat genesis system. It can be executed without input parameter or with pci_id, pci_id includes PCI vendor and device ID. For example, power8 SAS adapter pci_id is ``1014:034a``, ``1014`` is vendor info, ``034a`` is PCI-E IPR SAS Adapter, more info about pci_id refer to ``http://pci-ids.ucw.cz/read/PC/1014/``. Here are steps to use ``diskdiscover``: @@ -70,19 +70,19 @@ Here are the input parameters introduction: #. **delete_raid** : List raid arrays which should be removed. * If its value is all, all raid arrays detected should be deleted. - * If its value is a list of raid array names, these raid arrays will be deleted. Raid array names should be seperated by ``#``. + * If its value is a list of raid array names, these raid arrays will be deleted. Raid array names should be separated by ``#``. * If its value is null or there is no delete_raid, no raid array will be deleted. * If there is no delete_raid, the default value is null. #. **stripe_size** : It is optional used when creating RAID arrays. If stripe size is not specified, it will default to the recommended stripe size for the selected RAID level. -#. **create_raid** : To create a raid array, add a line beginning with create_raid, all attributes keys and values are seperated by ``#``. The formats are as followings: +#. **create_raid** : To create a raid array, add a line beginning with create_raid, all attributes keys and values are separated by ``#``. The formats are as followings: - * ``rl`` means RAID level, RAID level can be any supported RAID level for the given adapter, such as 0, 10, 5, 6. ``rl`` is a mandatory attribute for every create_raid. Supported RAID level is depend on pysical server's RAID adapter. + * ``rl`` means RAID level, RAID level can be any supported RAID level for the given adapter, such as 0, 10, 5, 6. ``rl`` is a mandatory attribute for every create_raid. Supported RAID level is depend on physical server's RAID adapter. * User can select disks based on following attributes value. User can find these value based on ``diskdiscover`` outputs as above section described. - a. ``pci_id`` is PCI vender and device ID. + a. ``pci_id`` is PCI vendor and device ID. b. ``pci_slot_name`` is the specified PCI location. If using ``pci_slot_name``, this RAID array will be created using disks from it. c. ``disk_names`` is a list of advanced format disk names. If using ``disk_names``, this RAID array will be created using these disks. @@ -139,7 +139,7 @@ Configuring RAID manually in xcat genesis system shell xdsh cn1 'configraid delete_raid=all create_raid="rl#0|pci_id#1014:034a|disk_num#2"' -Monitoring and debuging RAID configration process +Monitoring and debuging RAID configuration process '''''''''''''''''''''''''''''''''''''''''''''''''' #. Creating some RAID level arrays take very long time, for example, If user creates RAID 10, it will cost tens of minutes or hours. During this period, you can use xCAT xdsh command to monitor the progress of raid configuration. :: diff --git a/docs/source/advanced/restapi/restapi_setup/restapi_setup.rst b/docs/source/advanced/restapi/restapi_setup/restapi_setup.rst index a2abb44987..9855ef8489 100644 --- a/docs/source/advanced/restapi/restapi_setup/restapi_setup.rst +++ b/docs/source/advanced/restapi/restapi_setup/restapi_setup.rst @@ -44,7 +44,7 @@ Enabling the certificate functionality of https server is useful for the Rest AP The certificate for xcatd has already been generated when installing xCAT, it can be reused by the https server. To enable the server certificate authentication, the hostname of xCAT MN must be a fully qualified domain name (FQDN). The REST API client also must use this FQDN when accessing the https server. If the hostname of the xCAT MN is not a FQDN, you need to change the hostname first. -Typically the hostname of the xCAT MN is initially set to the NIC which faces to the cluster (usually an internal/private NIC). If you want to enable the REST API for public client, please set the hostname of xCAT MN to one of the public NIC. +Typically the hostname of the xCAT MN is initially set to the NIC which faces to the cluster (usually an internal/private NIC). If you want to enable the REST API for public client, set the hostname of xCAT MN to one of the public NIC. To change the hostname, edit /etc/sysconfig/network (RHEL) or /etc/HOSTNAME (SLES) and run: :: diff --git a/docs/source/advanced/security/security.rst b/docs/source/advanced/security/security.rst index 628bf6d167..a0be534edf 100644 --- a/docs/source/advanced/security/security.rst +++ b/docs/source/advanced/security/security.rst @@ -1,7 +1,7 @@ Transmission Channel -------------------- -The xCAT daemon uses SSL to only allow authorized users to run xCAT commands. All xCAT commands are initiated as an xCAT **client**, even when run commands from the xCAT management node. This **client** opens an SSL socket to the xCAT daemon, sends the command and receives responses through this one socket. xCAT has configured the certificate for root, if you nee to authorize other users, please refer to below section. +The xCAT daemon uses SSL to only allow authorized users to run xCAT commands. All xCAT commands are initiated as an xCAT **client**, even when run commands from the xCAT management node. This **client** opens an SSL socket to the xCAT daemon, sends the command and receives responses through this one socket. xCAT has configured the certificate for root, if you nee to authorize other users, refer to the section below. Create SSL Certificate So That User Can Be Authenticated By xCAT @@ -25,7 +25,7 @@ This will create the following files in the 's ``$HOME/.xcat`` direct Commands Access Control ----------------------- -Except SSL channel, xCAT only authorize root on the management node to run **xCAT** commands by default. But xCAT can be configured to allow both **non-root users** and **remote users** to run limited xCAT commands. For remote users, we mean the users who triggers the xCAT commands from other nodes and not have to login to the management node. xCAT uses the **policy** table to control who has authority to run specific xCAT commands. For a full explanation of the **policy** table, please refer to :doc:`policy ` man page. +Except SSL channel, xCAT only authorize root on the management node to run **xCAT** commands by default. But xCAT can be configured to allow both **non-root users** and **remote users** to run limited xCAT commands. For remote users, we mean the users who triggers the xCAT commands from other nodes and not have to login to the management node. xCAT uses the **policy** table to control who has authority to run specific xCAT commands. For a full explanation of the **policy** table, refer to :doc:`policy ` man page. Granting Users xCAT Privileges @@ -74,7 +74,7 @@ Below are the steps of how to set up a login node. 1. Install the xCAT client - In order to avoid stucking in dependence problem in different distro. We recommand to create repository first by referring to below links. + In order to avoid dependency problems on different distros, we recommend creating repository first by referring to links below. * :doc:`Configure xCAT Software Repository in RHEL` @@ -111,11 +111,11 @@ Below are the steps of how to set up a login node. The remote not-root user still needs to set up the credentials for communication with management node. By running the ``/opt/xcat/share/xcat/scripts/setup-local-client.sh `` command as root in management node, the credentials are generated in 's ``$HOME/.xcat`` directory in management node. These credential files must be copied to the 's ``$HOME/.xcat`` directory on the login node. **Note**: After ``scp``, in the login node, you must make sure the owner of the credentials is . - Setup your ``policy`` table on the managment node with the permissions that you would like the non-root id to have. + Setup your ``policy`` table on the management node with the permissions that you would like the non-root id to have. At this time, the non-root id should be able to execute any commands that have been set in the ``policy`` table from the Login Node. - If any remote shell commmands (psh,xdsh) are needed, then you need to follow `Extra Setup For Remote Commands`_. + If any remote shell commands (psh,xdsh) are needed, then you need to follow `Extra Setup For Remote Commands`_. Auditing @@ -142,7 +142,7 @@ Password Management xCAT is required to store passwords for various logons so that the application can login to the devices without having to prompt for a password. The issue is how to securely store these passwords. -Currently xCAT stores passwords in ``passwd`` table. You can store them as plaintext, you also can store them as MD5 ciphertext. +Currently xCAT stores passwords in ``passwd`` table. You can store them as plain text, you can also store them as MD5 ciphertext. Here is an example about how to store a MD5 encrypted password for root in ``passwd`` table. :: @@ -178,5 +178,5 @@ This setting of site.sshbetweennodes will only enable root ssh between nodes of Secure Zones ```````````` -You can set up multiple zones in an xCAT cluster. A node in the zone can ssh without password to any other node in the zone, but not to nodes in other zones. Please refer :doc:`Zones ` for more information. +You can set up multiple zones in an xCAT cluster. A node in the zone can ssh without password to any other node in the zone, but not to nodes in other zones. Refer to :doc:`Zones ` for more information. diff --git a/docs/source/advanced/sysclone/sysclone.rst b/docs/source/advanced/sysclone/sysclone.rst index 5aa301f80b..df3ed17c13 100644 --- a/docs/source/advanced/sysclone/sysclone.rst +++ b/docs/source/advanced/sysclone/sysclone.rst @@ -40,7 +40,7 @@ This document describes how to install and configure a template node (called gol Prepare the xCAT Management Node for Support Sysclone ````````````````````````````````````````````````````` -How to configure xCAT management node please refer to section :ref:`install_guides` +To configure xCAT management node refer to section :ref:`install_guides` For support Sysclone, we need to install some extra rpms on management node and the golden client. @@ -93,7 +93,7 @@ Install and Configure the Golden Client The Golden Client acts as a regular node for xCAT, just have some extra rpms to support clone. When you deploy golden client with xCAT, you just need to add a few additional definitions to the image which will be used to deploy golden client. -For information of how to install a regular node, please refer to section :ref:`Diskful Installation ` +For information of how to install a regular node, refer to section :ref:`Diskful Installation ` For support clone, add 'otherpkglist' and 'otherpkgdir' attributes to the image definition which will be used to deploy golden client, then deploy golden client as normal. then the golden client will have extra rpms to support clone. If you have deployed your golden client already, using 'updatenode' command to push these extra rpms to golden client. CentOS share the same pkglist file with RHEL. For example: @@ -121,7 +121,7 @@ For support clone, add 'otherpkglist' and 'otherpkgdir' attributes to the image chdef -t osimage -o -p otherpkgdir=/install/post/otherpkgs/rhels6.3/ppc64 updatenode -S -*[Note]: If you install systemimager RPMs on CentOS 6.5 node by above steps, you maybe hit failure. this is a known issue because some defect of CentOS6.5 itself. Please refer to known issue section for help.* +*[Note]: If you install systemimager RPMs on CentOS 6.5 node by above steps, you maybe hit failure. this is a known issue because some defect of CentOS6.5 itself. Refer to known issue section for help.* Capture Image from Golden Client ```````````````````````````````` @@ -159,7 +159,7 @@ If, at a later time, you need to make changes to the golden client (install new **[Limitation]**: In xcat2.8.5, this feature has limitation in RHEL and CentOS. when your delta changes related bootloader, it would encounter error. This issue will be fixed in xcat higher version. So up to now, in RHEL and CentOS, this feature just update files not related bootloader. -Update delta changes please follow below steps: +Update delta changes follow below steps: 1. Make changes to your golden node (install new rpms, change config files, etc.). @@ -199,7 +199,7 @@ Known Issue Can not install systemimager RPMs in CentOS6.5 by yum `````````````````````````````````````````````````````` -If you install systemimager RPMs on CentOS 6.5 node by yum, you maybe hit failure because some defect of CentOS6.5 itself. So please copy related RPMs to CentOS 6.5 node and install them by hand. +If you install systemimager RPMs on CentOS 6.5 node using yum, you may experience some problems due to CentOS6.5 itself. If that happens, copy related RPMs to CentOS 6.5 node and install them by hand. * **On management node**:: diff --git a/docs/source/developers/guides/code/builds.rst b/docs/source/developers/guides/code/builds.rst index 3b4447ed24..7afb55b1b2 100644 --- a/docs/source/developers/guides/code/builds.rst +++ b/docs/source/developers/guides/code/builds.rst @@ -12,7 +12,7 @@ Clone the xCAT project from `GitHub `_:: xcat-deps --------- -The ``xcat-deps`` package is currently owned and maintained by the core development on our internal servers. Please use the packages created at: http://xcat.org/download.html#xcat-dep +The ``xcat-deps`` package is currently owned and maintained by the core development on our internal servers. Use the packages created at: http://xcat.org/download.html#xcat-dep man pages diff --git a/docs/source/developers/guides/docs/doc_guidelines.rst b/docs/source/developers/guides/docs/doc_guidelines.rst index 3fe458d0ca..0a245fe01a 100644 --- a/docs/source/developers/guides/docs/doc_guidelines.rst +++ b/docs/source/developers/guides/docs/doc_guidelines.rst @@ -161,7 +161,7 @@ Add links to refer other web page is a very common way in writting document, it Add OS or ARCH Specific Contents -------------------------------- -When writing a common xCAT doc, we always encounter the case that certain small part of content needs to be OS or ARCH specific. In this case, please use the following format to add specific branches. +When writing a common xCAT doc, we always encounter the case that certain small part of content needs to be OS or ARCH specific. In this case, use the following format to add specific branches. The keyword in the **[]** can be an OS name or ARCH name, or any name which can distinguish the content from other part. diff --git a/docs/source/developers/license/index.rst b/docs/source/developers/license/index.rst index 949bcdd118..3725a1d9cc 100644 --- a/docs/source/developers/license/index.rst +++ b/docs/source/developers/license/index.rst @@ -3,7 +3,7 @@ Contributor and Maintainer Agreements We welcome developers willing to contribute to the xCAT project to help make it better. -Please follow the guidelines below. +Follow the guidelines below. .. toctree:: :maxdepth: 1 diff --git a/docs/source/developers/license/xcat_corporate_contributor_license_agreement.rst b/docs/source/developers/license/xcat_corporate_contributor_license_agreement.rst index d6cd3f678f..2e0ec40c63 100644 --- a/docs/source/developers/license/xcat_corporate_contributor_license_agreement.rst +++ b/docs/source/developers/license/xcat_corporate_contributor_license_agreement.rst @@ -7,7 +7,7 @@ In order to clarify the intellectual property license granted with Contributions This version of the Agreement allows an entity (the "Corporation") to submit Contributions to the xCAT Community, to authorize Contributions submitted by its designated employees to the xCAT Community, and to grant copyright and patent licenses thereto. -If you have not already done so, please complete and sign, then scan and email a PDF file of this Agreement to: **xcat-legal@lists.sourceforge.net**. Please read this document carefully before signing and keep a copy for your records. +If you have not already done so, complete and sign, then scan and email a PDF file of this Agreement to: **xcat-legal@lists.sourceforge.net**. Read this document carefully before signing and keep a copy for your records. Corporation name: ___________________________________________________ diff --git a/docs/source/developers/license/xcat_individual_contributor_license_agreement.rst b/docs/source/developers/license/xcat_individual_contributor_license_agreement.rst index a39e250d9a..d85e87a2fe 100644 --- a/docs/source/developers/license/xcat_individual_contributor_license_agreement.rst +++ b/docs/source/developers/license/xcat_individual_contributor_license_agreement.rst @@ -5,7 +5,7 @@ The xCAT Community Individual Contributor License Agreement ("Agreement") In order to clarify the intellectual property license granted with Contributions from any person or entity made for the benefit of the xCAT Community, a Contributor License Agreement ("CLA") must be on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the xCAT Community and its users; it does not change your rights to use your own Contributions for any other purpose. -If you have not already done so, please complete and sign, then scan and email a PDF file of this Agreement to: **xcat-legal@lists.sourceforge.net**. +If you have not already done so, complete and sign, then scan and email a PDF file of this Agreement to: **xcat-legal@lists.sourceforge.net**. diff --git a/docs/source/guides/admin-guides/basic_concepts/global_cfg/index.rst b/docs/source/guides/admin-guides/basic_concepts/global_cfg/index.rst index 052836083e..1ad7a72ff6 100644 --- a/docs/source/guides/admin-guides/basic_concepts/global_cfg/index.rst +++ b/docs/source/guides/admin-guides/basic_concepts/global_cfg/index.rst @@ -1,9 +1,9 @@ Global Configuration ==================== -All the xCAT global configurations are stored in site table, xCAT Admin can adjust the configuration by modifing the site attibute with ``tabedit``. +All the xCAT global configurations are stored in site table, xCAT Admin can adjust the configuration by modifying the site attribute with ``tabedit``. -This section only presents some key global configurations, for the complete reference on the xCAT global configurations, please refer to the ``tabdump -d site``. +This section only presents some key global configurations, for the complete reference on the xCAT global configurations, refer to the ``tabdump -d site``. Database Attributes @@ -71,7 +71,7 @@ Install/Deployment Attributes The local directory name used to hold the node deployment packages. * runbootscripts: - If set to ``yes`` the scripts listed in the postbootscripts attribute in the osimage and postscripts tables will be run during each reboot of stateful (diskful) nodes. This attribute has no effect on stateless nodes. Please run the following command after you change the value of this attribute :: + If set to ``yes`` the scripts listed in the postbootscripts attribute in the osimage and postscripts tables will be run during each reboot of stateful (diskful) nodes. This attribute has no effect on stateless nodes. Run the following command after you change the value of this attribute :: updatenode -P setuppostbootscripts @@ -83,9 +83,9 @@ Install/Deployment Attributes '0': disable debug mode '1': enable basic debug mode - '2': enalbe expert debug mode + '2': enable expert debug mode - For the details on 'basic debug mode' and 'expert debug mode', please refer to xCAT documentation. + For the details on 'basic debug mode' and 'expert debug mode', refer to xCAT documentation. Remoteshell Attributes diff --git a/docs/source/guides/admin-guides/basic_concepts/network_planning/index.rst b/docs/source/guides/admin-guides/basic_concepts/network_planning/index.rst index ef87c28d26..f889671315 100644 --- a/docs/source/guides/admin-guides/basic_concepts/network_planning/index.rst +++ b/docs/source/guides/admin-guides/basic_concepts/network_planning/index.rst @@ -19,7 +19,7 @@ For a cluster, several networks are necessary to enable the cluster management a * DHCP(Dynamic Host Configuration Protocol) - The dhcp server, usually the management node or service node, privides the dhcp service for the entire cluster. + The dhcp server, usually the management node or service node, provides the dhcp service for the entire cluster. * TFTP(Trivial File Transfer Protocol) diff --git a/docs/source/guides/admin-guides/basic_concepts/network_planning/xcat_net_planning.rst b/docs/source/guides/admin-guides/basic_concepts/network_planning/xcat_net_planning.rst index dbf66a9e1f..598173d119 100644 --- a/docs/source/guides/admin-guides/basic_concepts/network_planning/xcat_net_planning.rst +++ b/docs/source/guides/admin-guides/basic_concepts/network_planning/xcat_net_planning.rst @@ -54,7 +54,7 @@ It is important to note that some HA-related software like DRDB, Pacemaker, and HA Service Nodes ```````````````` -When you have NFS-based diskless (statelite) nodes, there is sometimes the motivation make the NFS serving highly available among all of the service nodes. This is not recommended because it is a very complex configuration. In our opinion, the complexity of this setup can nullify much of the availibility you hope to gain. If you need your compute nodes to be highly available, you should strongly consider stateful or stateless nodes. +When you have NFS-based diskless (statelite) nodes, there is sometimes the motivation make the NFS serving highly available among all of the service nodes. This is not recommended because it is a very complex configuration. In our opinion, the complexity of this setup can nullify much of the availability you hope to gain. If you need your compute nodes to be highly available, you should strongly consider stateful or stateless nodes. If you still have reasons to pursue HA service nodes: diff --git a/docs/source/guides/admin-guides/basic_concepts/node_type.rst b/docs/source/guides/admin-guides/basic_concepts/node_type.rst index 4f7a841695..2352862186 100644 --- a/docs/source/guides/admin-guides/basic_concepts/node_type.rst +++ b/docs/source/guides/admin-guides/basic_concepts/node_type.rst @@ -1,7 +1,7 @@ xCAT Cluster OS Running Type ============================ -Whether a node is a pyhsical server or a virtual machine, it needs to run an Operating System to support user applications. Generally, the OS is installed in the hard disk of the compute node. But xCAT also support the type that running OS in the RAM. +Whether a node is a physical server or a virtual machine, it needs to run an Operating System to support user applications. Generally, the OS is installed in the hard disk of the compute node. But xCAT also support the type that running OS in the RAM. This section gives the pros and cons of each OS running type, and describes the cluster characteristics that will impact from each. @@ -32,7 +32,7 @@ Nodes boot from a RAMdisk OS image downloaded from the xCAT mgmt node or service You can't use a large image with many different applications in the image for varied users, because it uses too much of the node's memory to store the ramdisk. (To mitigate this disadvantage, you can put your large application binaries and libraries in shared storage to reduce the ramdisk size. This requires some manual configuration of the image). - Each node can also have a local "scratch" disk for ``swap``, ``/tmp``, ``/var``, ``log`` files, dumps, etc. The purpose of the scratch disk is to provide a location for files that are written to by the node that can become quite large or for files that you don't want to disappear when the node reboots. There should be nothing put on the scratch disk that represents the node's "state", so that if the disk fails you can simply replace it and reboot the node. A scratch disk would typically be used for situations like: job scheduling preemption is required (which needs a lot of swap space), the applications write large temp files, or you want to keep gpfs log or trace files persistently. (As a partial alternative to using the scratch disk, customers can choose to put ``/tmp`` ``/var/tmp``, and log files (except GPFS logs files) in GPFS, but must be willing to accept the dependency on GPFS). This can be done by enabling the 'localdisk' support. For the details, please refer to the section [TODO Enabling the localdisk Option]. + Each node can also have a local "scratch" disk for ``swap``, ``/tmp``, ``/var``, ``log`` files, dumps, etc. The purpose of the scratch disk is to provide a location for files that are written to by the node that can become quite large or for files that you don't want to disappear when the node reboots. There should be nothing put on the scratch disk that represents the node's "state", so that if the disk fails you can simply replace it and reboot the node. A scratch disk would typically be used for situations like: job scheduling preemption is required (which needs a lot of swap space), the applications write large temp files, or you want to keep gpfs log or trace files persistently. (As a partial alternative to using the scratch disk, customers can choose to put ``/tmp`` ``/var/tmp``, and log files (except GPFS logs files) in GPFS, but must be willing to accept the dependency on GPFS). This can be done by enabling the 'localdisk' support. For the details, refer to the section [TODO Enabling the localdisk Option]. OSimage Definition diff --git a/docs/source/guides/admin-guides/basic_concepts/xcat_db/index.rst b/docs/source/guides/admin-guides/basic_concepts/xcat_db/index.rst index 29cfa8eb4e..b6351d6ca0 100644 --- a/docs/source/guides/admin-guides/basic_concepts/xcat_db/index.rst +++ b/docs/source/guides/admin-guides/basic_concepts/xcat_db/index.rst @@ -40,7 +40,7 @@ For a complete reference, see the man page for xcatdb: ``man xcatdb``. **Manipulate xCAT Database Tables** -xCAT offers 5 commands to manipulate the databse tables: +xCAT offers 5 commands to manipulate the database tables: * ``tabdump`` diff --git a/docs/source/guides/admin-guides/basic_concepts/xcat_db/regexp_db.rst b/docs/source/guides/admin-guides/basic_concepts/xcat_db/regexp_db.rst index 02bc88ed49..1e3c8482be 100644 --- a/docs/source/guides/admin-guides/basic_concepts/xcat_db/regexp_db.rst +++ b/docs/source/guides/admin-guides/basic_concepts/xcat_db/regexp_db.rst @@ -26,7 +26,7 @@ Another example is if "node1" is assigned the IP address "10.0.0.1", node2 is as #node,ip,hostnames,otherinterfaces,comments,disable "compute","|node(\d+)|10.0.0.($1+0)|",,,, -In this example, the regular expression in the ``ip`` attribute uses ``|`` to separate the 1st and 2nd part. This means that xCAT will allow arithmetic operations in the 2nd part. In the 1st part, ``(\d+)``, will match the number part of the node name and put that in a variable called ``$1``. The 2nd part is what value to give the ``ip`` attribute. In this case it will set it to the string "10.0.0." and the number that is in ``$1``. (Zero is added to ``$1`` just to remove any leading zeroes.) +In this example, the regular expression in the ``ip`` attribute uses ``|`` to separate the 1st and 2nd part. This means that xCAT will allow arithmetic operations in the 2nd part. In the 1st part, ``(\d+)``, will match the number part of the node name and put that in a variable called ``$1``. The 2nd part is what value to give the ``ip`` attribute. In this case it will set it to the string "10.0.0." and the number that is in ``$1``. (Zero is added to ``$1`` just to remove any leading zeros.) A more involved example is with the ``vm`` table. If your kvm nodes have node names c01f01x01v01, c01f02x03v04, etc., and the kvm host names are c01f01x01, c01f02x03, etc., then you might have an ``vm`` table like :: @@ -45,14 +45,14 @@ Before you panic, let me explain each column: ``|\D+(\d+)\D+(\d+)\D+(\d+)\D+(\d+)|dir:///install/vms/vm($4+0)|`` - This item is similar to the one above. This substituion pattern will produce the value for the 5th column (a list of storage files or devices to be used). Because this row was the match for "c01f02x03v04", the produced value is "dir:///install/vms/vm4". + This item is similar to the one above. This substitution pattern will produce the value for the 5th column (a list of storage files or devices to be used). Because this row was the match for "c01f02x03v04", the produced value is "dir:///install/vms/vm4". Just as the explained above, when the node definition "c01f02x03v04" is created with :: # mkdef -t node -o c01f02x03v04 groups=kvms 1 object definitions have been created or modified. -The generated node deinition is :: +The generated node definition is :: # lsdef c01f02x03v04 Object name: c01f02x03v04 diff --git a/docs/source/guides/admin-guides/basic_concepts/xcat_object/index.rst b/docs/source/guides/admin-guides/basic_concepts/xcat_object/index.rst index ea1e715dab..7c11a9e0a4 100644 --- a/docs/source/guides/admin-guides/basic_concepts/xcat_object/index.rst +++ b/docs/source/guides/admin-guides/basic_concepts/xcat_object/index.rst @@ -67,7 +67,7 @@ You can get the detail description of each object by ``man `` e.g. * **group Object** - **group** is an object which includes multiple **node object**. When you set **group** attribute for a **node object** to a group name like **x86_64**, the group **x86_64** is automatically genereated and the node is assigned to the group. + **group** is an object which includes multiple **node object**. When you set **group** attribute for a **node object** to a group name like **x86_64**, the group **x86_64** is automatically generated and the node is assigned to the group. The benefits of using **group object**: diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/acc_initrd_rootimg_gen.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/acc_initrd_rootimg_gen.rst index da723e72b5..273c6c13c9 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/deployment/acc_initrd_rootimg_gen.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/acc_initrd_rootimg_gen.rst @@ -18,15 +18,15 @@ The paralell compression tool ``pigz`` can be enabled by installing ``pigz`` pac EPEL has an ``epel-release`` package that includes gpg keys for package signing and repository information. Installing this package for your Enterprise Linux version should allow you to use normal tools such as ``yum`` to install packages and their dependencies. - Please refer to the http://fedoraproject.org/wiki/EPEL for more details on EPEL + Refer to the http://fedoraproject.org/wiki/EPEL for more details on EPEL 1) Enabling the ``pigz`` in ``genimage`` (only supported in RHELS6 or above) - ``pigz`` should be installed in the diskless rootimg. Please download ``pigz`` package from https://dl.fedoraproject.org/pub/epel/ , then customize the diskless osimage to install ``pigz`` as the additional packages, see :doc:`Install Additional Other Packages` for more details. + ``pigz`` should be installed in the diskless rootimg. Download ``pigz`` package from https://dl.fedoraproject.org/pub/epel/ , then customize the diskless osimage to install ``pigz`` as the additional packages, see :doc:`Install Additional Other Packages` for more details. 2) Enabeling the ``pigz`` in ``packimage`` - ``pigz`` should be installed on the management server. Please download ``pigz`` package from https://dl.fedoraproject.org/pub/epel/ , then install the ``pigz`` with ``yum`` or ``rpm``. + ``pigz`` should be installed on the management server. Download ``pigz`` package from https://dl.fedoraproject.org/pub/epel/ , then install the ``pigz`` with ``yum`` or ``rpm``. * **[UBUNTU]** diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/additionalpkg/nonubuntu_os_pkg.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/additionalpkg/nonubuntu_os_pkg.rst index 30384df3af..77651f2706 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/deployment/additionalpkg/nonubuntu_os_pkg.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/additionalpkg/nonubuntu_os_pkg.rst @@ -33,7 +33,7 @@ If you have newer updates to some of your operating system packages that you wou createrepo . chdef -t osimage --- pkgdir=/install//,/install/osupdates// -Note:If the objective node is not installed by xCAT,please make sure the correct osimage pkgdir attribute so that you could get the correct repository data. +Note:If the objective node is not installed by xCAT, make sure the correct osimage pkgdir attribute so that you could get the correct repository data. .. _File-Format-for-pkglist-label: diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/cfg_partition.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/cfg_partition.rst index 44e05eebd9..39f523947a 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/deployment/cfg_partition.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/cfg_partition.rst @@ -72,7 +72,7 @@ Here is partition definition file example for RedHat LVM partition in IBM Power .. BEGIN_partition_definition_file_example_RedHat_RAID1_for_IBM_Power_machines -Partition definition file example for RedHat RAID1 please refer to :doc:`Configure RAID before Deploy OS ` +To partition definition file example for RedHat RAID1 refer to :doc:`Configure RAID before Deploy OS ` .. END_partition_definition_file_example_RedHat_RAID1_for_IBM_Power_machines @@ -287,7 +287,7 @@ Here is partition definition file example for SLES standard partition in ppc64 m .. BEGIN_partition_definition_file_example_SLES_RAID1 -Partition definition file example for SLES RAID1 please refer to `Configure RAID before Deploy OS `_ +To partition definition file example for SLES RAID1 refer to `Configure RAID before Deploy OS `_ .. END_partition_definition_file_example_SLES_RAID1 diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/cfg_second_adapter.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/cfg_second_adapter.rst index a753b89599..a6abdd3e90 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/deployment/cfg_second_adapter.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/cfg_second_adapter.rst @@ -90,12 +90,12 @@ Other information about the network should be defined in the ``networks`` table. Use the ``tabedit`` command to add/modify the networks in the``networks`` table :: tabdump networks - #netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,nameservers,ntpservers,logservers,dynamicrange,staticrange,staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain,comments,disable + #netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,nameservers,ntpservers,logservers,dynamicrange,staticrange,staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain,mtu,comments,disable ... - "net11", "11.1.89.0", "255.255.255.0", "eth1",,,,,,,,,,,,,,, - "net12", "12.1.89.0", "255.255.255.0", "eth1",,,,,,,,,,,,,,, - "net13", "13.1.89.0", "255.255.255.0", "eth2",,,,,,,,,,,,,,, - "net14", "14.1.89.0", "255.255.255.0", "eth2",,,,,,,,,,,,,,, + "net11", "11.1.89.0", "255.255.255.0", "eth1",,,,,,,,,,,,,,,, + "net12", "12.1.89.0", "255.255.255.0", "eth1",,,,,,,,,,,,,,,, + "net13", "13.1.89.0", "255.255.255.0", "eth2",,,,,,,,,,,,,,,, + "net14", "14.1.89.0", "255.255.255.0", "eth2",,,,,,,,,,,,,,,, Option -r to remove the undefined NICS -------------------------------------- diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/create_img.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/create_img.rst index c07b65f786..a7dbc54ec2 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/deployment/create_img.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/create_img.rst @@ -53,6 +53,8 @@ For ubuntu ppc64le, the initrd.gz shipped with the ISO does not support network [ubuntu 16.04]: http://xcat.org/files/netboot/ubuntu16.04/ppc64el/mini.iso + [ubuntu 16.04.1]: http://xcat.org/files/netboot/ubuntu16.04.1/ppc64el/mini.iso + * Mount mini.iso :: mkdir /tmp/iso @@ -61,7 +63,7 @@ For ubuntu ppc64le, the initrd.gz shipped with the ISO does not support network * Copy the netboot initrd.gz to osimage :: mkdir -p /install//ppc64el/install/netboot - cp /tmp/iso/install/initrd.gz /install//ppc64el/installe/netboot + cp /tmp/iso/install/initrd.gz /install//ppc64el/install/netboot **[Below tips maybe helpful for you]** diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/enable_kdump.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/enable_kdump.rst index 5d23f2ebcd..85973cc1c4 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/deployment/enable_kdump.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/enable_kdump.rst @@ -150,7 +150,7 @@ Currently, only NFS is supported for the setup of kdump. If the dump attribute is not set, the kdump service will not be enabled. -Please make sure the NFS remote path(nfs:///) is exported and it is read-writeable to the node where kdump service is enabled. +Make sure the NFS remote path(nfs:///) is exported and it is read-writeable to the node where kdump service is enabled. How to trigger kernel panic on Linux ------------------------------------ @@ -163,11 +163,7 @@ Normally, kernel panic() will trigger booting into capture kernel. Once the kern #. For SLES10 the directory is / -For RHELS6 testing purposes, you can simulate the trigger through /proc interface: :: - - echo c > /proc/sysrq-trigger - -For SLES11.1 testing, you can use the following commands: :: +For Redhat and SLES11.1 testing, you can use the following commands: :: echo 1 > /proc/sys/kernel/sysrq echo c > /proc/sysrq-trigger diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/generate_img.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/generate_img.rst index 910ebf5818..a5dcf5382e 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/deployment/generate_img.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/generate_img.rst @@ -104,7 +104,7 @@ Skip this section if you want to use the image as is. * Modify .pkglist file to add or remove packges that are from the os distro -* Modify .otherpkgs.pkglist to add or remove packages from other sources. Please refer to ``Using_Updatenode`` for details +* Modify .otherpkgs.pkglist to add or remove packages from other sources. Refer to ``Using_Updatenode`` for details * For diskful, modify the .tmpl file to change the kickstart/autoyast configuration diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/prepostscripts/post_script.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/prepostscripts/post_script.rst index 05f1c432bc..47984faf8a 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/deployment/prepostscripts/post_script.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/prepostscripts/post_script.rst @@ -586,11 +586,11 @@ This is an example of the generated postscript for a servicenode install. It is export ENABLESSHBETWEENNODES NETWORKS_LINES=4 export NETWORKS_LINES - NETWORKS_LINE1='netname=public_net||net=8.112.154.64||mask=255.255.255.192||mgtifname=eth0||gateway=8.112.154.126||dhcpserver=||tftpserver=8.112.154.69||nameservers=8.112.8.1||ntpservers=||logservers=||dynamicrange=||staticrange=||staticrangeincrement=||nodehostname=||ddnsdomain=||vlanid=||domain=||disable=||comments=' + NETWORKS_LINE1='netname=public_net||net=8.112.154.64||mask=255.255.255.192||mgtifname=eth0||gateway=8.112.154.126||dhcpserver=||tftpserver=8.112.154.69||nameservers=8.112.8.1||ntpservers=||logservers=||dynamicrange=||staticrange=||staticrangeincrement=||nodehostname=||ddnsdomain=||vlanid=||domain=||mtu=||disable=||comments=' export NETWORKS_LINE2 - NETWORKS_LINE3='netname=sn21_net||net=10.2.1.0||mask=255.255.255.0||mgtifname=eth1||gateway=||dhcpserver=||tftpserver=||nameservers=10.2.1.100,10.2.1.101||ntpservers=||logservers=||dynamicrange=||staticrange=||staticrangeincrement=||nodehostname=||ddnsdomain=||vlanid=||domain=||disable=||comments=' + NETWORKS_LINE3='netname=sn21_net||net=10.2.1.0||mask=255.255.255.0||mgtifname=eth1||gateway=||dhcpserver=||tftpserver=||nameservers=10.2.1.100,10.2.1.101||ntpservers=||logservers=||dynamicrange=||staticrange=||staticrangeincrement=||nodehostname=||ddnsdomain=||vlanid=||domain=||mtu=||disable=||comments=' export NETWORKS_LINE3 - NETWORKS_LINE4='netname=sn22_net||net=10.2.2.0||mask=255.255.255.0||mgtifname=eth1||gateway=10.2.2.100||dhcpserver=10.2.2.100||tftpserver=10.2.2.100||nameservers=10.2.2.100||ntpservers=||logservers=||dynamicrange=10.2.2.120-10.2.2.250||staticrange=||staticrangeincrement=||nodehostname=||ddnsdomain=||vlanid=||domain=||disable=||comments=' + NETWORKS_LINE4='netname=sn22_net||net=10.2.2.0||mask=255.255.255.0||mgtifname=eth1||gateway=10.2.2.100||dhcpserver=10.2.2.100||tftpserver=10.2.2.100||nameservers=10.2.2.100||ntpservers=||logservers=||dynamicrange=10.2.2.120-10.2.2.250||staticrange=||staticrangeincrement=||nodehostname=||ddnsdomain=||vlanid=||domain=||mtu=||disable=||comments=' export NETWORKS_LINE4 NODE=xcatsn23 export NODE diff --git a/docs/source/guides/admin-guides/manage_clusters/common/kvm/manage_vm.rst b/docs/source/guides/admin-guides/manage_clusters/common/kvm/manage_vm.rst index 273307a5ba..cc7a1fc496 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/kvm/manage_vm.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/kvm/manage_vm.rst @@ -109,7 +109,7 @@ To create the virtual machine "vm1" with 20G hard disk on a hypervisor directory mkvm vm1 -s 20G -When "vm1" is created successfully, a VM hard disk file with a name like "vm1.sda.qcow2" will be found in the location specified by **vmstorage**. What's more, the **mac** attribute of "vm1" is set automatically, please check it with: :: +When "vm1" is created successfully, a VM hard disk file with a name like "vm1.sda.qcow2" will be found in the location specified by **vmstorage**. What's more, the **mac** attribute of "vm1" is set automatically, check it with: :: lsdef vm1 -i mac @@ -132,7 +132,7 @@ or running the following command on the kvm hypervisor "kvmhost1" :: Monitoring the Virtual Machine `````````````````````````````` -When the VM has been created and powered on, please choose one of the following methods to monitor and access it. +When the VM has been created and powered on, choose one of the following methods to monitor and access it. * Open the console on kvm hypervisor: :: diff --git a/docs/source/guides/admin-guides/manage_clusters/common/updatenode.rst b/docs/source/guides/admin-guides/manage_clusters/common/updatenode.rst index d9bcd36fd2..67444a2cd4 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/updatenode.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/updatenode.rst @@ -29,7 +29,7 @@ Installing Additional OS Distro Packages For packages from the OS distro, add the new package names (without the version number) in the .pkglist file. If you have newer updates to some of your operating system packages that you would like to apply to your OS image, you can place them in another directory, and add that directory to your osimage pkgdir attribute. How to add additional OS distro packages, go to :ref:`Install-Additional-OS-Packages-label` -Note:If the objective node is not installed by xCAT, please make sure the correct osimage pkgdir attribute so that you could get the correct repository data. +Note:If the objective node is not installed by xCAT, make sure the correct osimage pkgdir attribute so that you could get the correct repository data. Install Additional non-OS Packages `````````````````````````````````` @@ -132,8 +132,8 @@ Linux: xdsh -e /install/postscripts/xcatdsklspost -m is a comma separated postscript like ospkgs,otherpkgs etc. * wget is used in xcatdsklspost/xcataixpost to get all the postscripts from the to the node. You can check /tmp/wget.log file on the node to see if wget was successful or not. You need to make sure the /xcatpost directory has enough space to hold the postscripts. - * A file called /xcatpost/mypostscript (Linux) is created on the node which contains the environmental variables and scripts to be run. Please make sure this file exists and it contains correct info. You can also run this file on the node manually to debug. - * For ospkgs/otherpkgs, if /install is not mounted on the , it will download all the rpms from the to the node using wget. Please make sure /tmp and /xcatpost have enough space to hold the rpms and please check /tmp/wget.log for errors. - * For ospkgs/otherpkgs, If zypper or yum is installed on the node, it will be used the command to install the rpms. Please make sure to run createrepo on the source direcory on the every time a rpm is added or removed. Otherwise, the rpm command will be used, in this case, please make sure all the necessary depended rpms are copied in the same source directory. + * A file called /xcatpost/mypostscript (Linux) is created on the node which contains the environmental variables and scripts to be run. Make sure this file exists and it contains correct info. You can also run this file on the node manually to debug. + * For ospkgs/otherpkgs, if /install is not mounted on the , it will download all the rpms from the to the node using wget. Make sure /tmp and /xcatpost have enough space to hold the rpms and check /tmp/wget.log for errors. + * For ospkgs/otherpkgs, If zypper or yum is installed on the node, it will be used the command to install the rpms. Make sure to run createrepo on the source direcory on the every time a rpm is added or removed. Otherwise, the rpm command will be used, in this case, make sure all the necessary depended rpms are copied in the same source directory. * You can append -x on the first line of ospkgs/otherpkgs to get more debug info. diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/configure/networks.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/configure/networks.rst index 5c6feeacf2..1c7f6b28d3 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/configure/networks.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/configure/networks.rst @@ -4,9 +4,9 @@ Set attributes in the ``networks`` table #. Display the network settings defined in the xCAT ``networks`` table using: ``tabdump networks`` :: #netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,nameservers,ntpservers,logservers, - dynamicrange,staticrange,staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain, + dynamicrange,staticrange,staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain,mtu, comments,disable - "10_0_0_0-255_0_0_0","10.0.0.0","255.0.0.0","eth0","10.0.0.101",,"10.4.27.5",,,,,,,,,,,, + "10_0_0_0-255_0_0_0","10.0.0.0","255.0.0.0","eth0","10.0.0.101",,"10.4.27.5",,,,,,,,,,,,, A default network is created for the detected primary network using the same netmask and gateway. There may be additional network entries in the table for each network present on the management node where xCAT is installed. diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/config_environment.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/config_environment.rst index 79791d1555..18098e0c45 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/config_environment.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/config_environment.rst @@ -8,9 +8,9 @@ Configure network table Normally, there will be at least two entries for the two subnet on MN in ``networks`` table after xCAT is installed:: #tabdump networks - #netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,nameservers,ntpservers,logservers,dynamicrange,staticrange,staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain,comments,disable - "10_0_0_0-255_255_0_0","10.0.0.0","255.255.0.0","eth1","",,"10.0.1.1",,,,,,,,,,,, - "50_0_0_0-255_255_0_0","50.0.0.0","255.255.0.0","eth2","",,"50.0.1.1",,,,,,,,,,,, + #netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,nameservers,ntpservers,logservers,dynamicrange,staticrange,staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain,mtu,comments,disable + "10_0_0_0-255_255_0_0","10.0.0.0","255.255.0.0","eth1","",,"10.0.1.1",,,,,,,,,,,,, + "50_0_0_0-255_255_0_0","50.0.0.0","255.255.0.0","eth2","",,"50.0.1.1",,,,,,,,,,,,, Run the following command to add networks in ``networks`` table if there are no entries in it:: diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_defined.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_defined.rst index ca8e4c5714..d9fe7c2a0e 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_defined.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_defined.rst @@ -27,11 +27,11 @@ The BMC IP address is obtained by the open range dhcp server and the plan in thi #. Detect the BMCs and add the node definitions into xCAT. - Use the ``bmcdiscover`` command to discover the BMCs responding over an IP range and automatically write the output into the xCAT database. You **must** use the ``-t`` option to indicate node type is bmc and the ``-w`` option to automatically write the output into the xCAT database. + Use the ``bmcdiscover`` command to discover the BMCs responding over an IP range and automatically write the output into the xCAT database. You **must** use the ``-w`` option to automatically write the output into the xCAT database. To discover the BMC with an IP address of 172.30.0.1, use the command: :: - bmcdiscover --range 172.30.0.1 -t -z -w + bmcdiscover --range 172.30.0.1 -z -w The discovered nodes will be written to xCAT database: :: @@ -47,6 +47,7 @@ The BMC IP address is obtained by the open range dhcp server and the plan in thi postbootscripts=otherpkgs postscripts=syslog,remoteshell,syncfiles serial=10112CA + nodetype=mp #. **Pre-define** the compute nodes: @@ -84,6 +85,8 @@ The BMC IP address is obtained by the open range dhcp server and the plan in thi ip=10.1.2.1 + #. Remove ``nodetype`` and ``hwtype`` if defined in the ``predefined.stanza``. + #. Repeat for additional nodes in the ``predefined.stanza`` file based on the MTMS mapping. @@ -105,6 +108,9 @@ The BMC IP address is obtained by the open range dhcp server and the plan in thi chdef cn01 chain="runcmd=bmcsetup" +#. Set the target `osimage` into the chain table to automatically provision the operating system after the node discovery is complete. :: + + chdef cn01 -p chain="osimage=" #. Change the BMC IP address diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_dhcp.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_dhcp.rst index 7759e3c2ed..3634c067bf 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_dhcp.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/mtms/discovery_using_dhcp.rst @@ -82,6 +82,10 @@ The BMC IP address is obtained by the open range dhcp server and the plan is to chdef cn01 chain="runcmd=bmcsetup" +#. Set the target `osimage` into the chain table to automatically provision the operating system after the node discovery is complete. :: + + chdef cn01 -p chain="osimage=" + #. Define the compute nodes into xCAT: :: cat predefined.stanzas | mkdef -z diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery.rst index e30c834b11..d2ad595759 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery.rst @@ -22,7 +22,7 @@ The discovered PBMC node will be like this:: postscripts=syslog,remoteshell,syncfiles serial=10112CA -**Note**: Pls note that the PBMC node is just used to control the physical during hardware discovery process, it will be deleted after the correct server node object is found. +**Note**: Note that the PBMC node is just used to control the physical during hardware discovery process, it will be deleted after the correct server node object is found. Start discovery process ----------------------- diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery_with_bmcdiscover.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery_with_bmcdiscover.rst index d81c0cd5bc..f3388c855d 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery_with_bmcdiscover.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/pbmc_discovery_with_bmcdiscover.rst @@ -5,7 +5,7 @@ After environment is ready, and the server is powered, we can start server disco The following command can be used to discovery BMC within an IP range and write the discovered node definition into xCAT database:: - bmcdiscover -s nmap --range 50.0.100.1-100 -t -z -w + bmcdiscover -s nmap --range 50.0.100.1-100 -z -w The discovered BMC node will be like this:: @@ -27,7 +27,7 @@ The discovered BMC node will be like this:: 2. bmcdiscover will use username/password pair set in ``passwd`` table with **key** equal **ipmi**. If you'd like to use other username/password pair, you can use :: - bmcdiscover -s nmap --range 50.0.100.1-100 -t -z -w -u -p + bmcdiscover -s nmap --range 50.0.100.1-100 -z -w -u -p Start discovery process ----------------------- diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/seq_discovery.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/seq_discovery.rst index ea26332cc9..fbb43f7c62 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/seq_discovery.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/seq_discovery.rst @@ -18,10 +18,16 @@ Predefine a group of nodes with desired IP address for host and IP address for F nodeadd cn1 groups=powerLE,all chdef cn1 mgt=ipmi cons=ipmi ip=10.0.101.1 bmc=50.0.101.1 netboot=petitboot installnic=mac primarynic=mac -In order to do BMC configuration during the discovery process, set ``runcmd=bmcsetup``. For more info about chain, please refer to :doc:`Chain <../../../../../advanced/chain/index>` :: +In order to do BMC configuration during the discovery process, set ``runcmd=bmcsetup``. :: chdef cn1 chain="runcmd=bmcsetup" +Set the target `osimage` into the chain table to automatically provision the operating system after the node discovery is complete. :: + + chdef cn1 -p chain="osimage=" + +For more information about chain, refer to :doc:`Chain <../../../../../advanced/chain/index>` + Initialize the discovery process ```````````````````````````````` diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/switch_discovery.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/switch_discovery.rst index ad2c60a319..cb5c2d9f49 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/switch_discovery.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/discovery/switch_discovery.rst @@ -54,10 +54,16 @@ After switches are defined, the server node can be predefined with the following chdef cn1 mgt=ipmi cons=ipmi ip=10.0.101.1 bmc=50.0.101.1 netboot=petitboot installnic=mac primarynic=mac chdef cn1 switch=switch1 switchport=0 -In order to do BMC configuration during the discovery process, set ``runcmd=bmcsetup``. For more info about chain, please refer to :doc:`Chain <../../../../../advanced/chain/index>` :: +In order to do BMC configuration during the discovery process, set ``runcmd=bmcsetup``. :: chdef cn1 chain="runcmd=bmcsetup" +Set the target `osimage` into the chain table to automatically provision the operating system after the node discovery is complete. :: + + chdef cn1 -p chain="osimage=" + +For more information about chain, refer to :doc:`Chain <../../../../../advanced/chain/index>` + Add cn1 into DNS:: makehosts cn1 diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/management.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/management.rst index 85f2c22ec5..17c6af73e9 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/management.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/management.rst @@ -14,7 +14,7 @@ With xCAT, the end user can turn the beacon light on or off with the commands sh rbeacon cn1 on rbeacon cn1 off -Please notice, the current state of the beacon light can not be inquery remotely. As a workaround, one can always use the ``rbeacon`` command to turn all the beacon lights in one frame off, and then turn a particular beancon light on. :: +The current state of the beacon light can not be queried remotely. As a workaround, one can always use the ``rbeacon`` command to turn all the beacon lights in one frame off, and then turn a particular beacon light on. :: rbeacon a_group_of_cn off rbeacon cn5 on @@ -35,7 +35,7 @@ Or do a hardware reset, run :: rpower cn1 reset -Get the current rpower state of a machine, please refer to the example below. :: +Get the current rpower state of a machine, refer to the example below. :: # rpower cn1 state cn1: Running @@ -80,16 +80,16 @@ To get all the hardware information, which including the model type, serial numb rinv cn1 all -As an example, in order to get only the information of firmware version, the follwing command can be used. :: +As an example, in order to get only the information of firmware version, the following command can be used. :: rinv cn1 firm Remote Hardware Vitals `````````````````````` -Collect runtime information from running physical machine is also a big requirement for real life system administrators. This kind of information includes, temperature of CPU, internal voltage of paricular socket, wattage with workload, speed of cooling fan, et al. +Collect runtime information from running physical machine is also a big requirement for real life system administrators. This kind of information includes, temperature of CPU, internal voltage of particular socket, wattage with workload, speed of cooling fan, et al. -In order to get such information, please use ``rvitals`` command. Please also notice, this kind of information various among different model types of the machine. Thus, please check the actual output of the ``rvitals`` command against your machine, to verify which kinds of information can be get. The information may change due to the firmware updating of the machine. :: +In order to get such information, use ``rvitals`` command. This kind of information varies among different model types of the machine. Thus, check the actual output of the ``rvitals`` command against your machine, to verify which kinds of information can be extracted. The information may change after the firmware update of the machine. :: rvitals cn1 all @@ -115,7 +115,7 @@ Update node firmware to the version of the HPM file Configures Nodes' Service Processors ```````````````````````````````````` -Here comes the command, ``rspconfig``. It is used to configure the service processor of a physical machine. On a OpenPower system, the service processor is the BMC, Baseboard Management Controller. Various variables can be set through the command. But, please also notice, the actual configuration may change among different machine-model types. +Here comes the command, ``rspconfig``. It is used to configure the service processor of a physical machine. On a OpenPower system, the service processor is the BMC, Baseboard Management Controller. Various variables can be set through the command. Also notice, the actual configuration may change among different machine-model types. Examples diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/virtual_machines/FAQ.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/virtual_machines/FAQ.rst index 32686df620..7a00d46e6e 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/virtual_machines/FAQ.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/virtual_machines/FAQ.rst @@ -28,7 +28,7 @@ rpower fails with "Error: internal error Process exited while reading console lo Then restart the NFS services and try to power on the VM again... - **Note**: For stateless hypervisor, please purge the VM by ``rmvm -p vm1``, reboot the hypervisor and then create the VM. + **Note**: For stateless hypervisor, purge the VM by ``rmvm -p vm1``, reboot the hypervisor and then create the VM. rpower fails with "Error: internal error: process exited while connecting to monitor qemu: Permission denied" ------------------------------------------------------------------------------------------------------------- @@ -77,7 +77,7 @@ Error: Cannot communicate via libvirt to kvmhost1 The kvm related commands complain "Error: Cannot communicate via libvirt to kvmhost1" **Solution**: - Usually caused by incorrect ssh configuration between xCAT management node and hypervisor. Please make sure it is possible to access the hypervisor from management node via ssh without password. + Usually caused by incorrect ssh configuration between xCAT management node and hypervisor. Make sure it is possible to access the hypervisor from management node via ssh without password. Fail to ping the installed VM @@ -89,7 +89,7 @@ Fail to ping the installed VM ADDRCONF(NETDEV_UP): eth0 link is not ready. **Solutoin**: - Usually caused by the incorrect VM NIC model. Please try the following steps to specify "virtio": :: + Usually caused by the incorrect VM NIC model. Try the following steps to specify "virtio": :: rmvm vm1 chdef vm1 vmnicnicmodel=virtio diff --git a/docs/source/guides/admin-guides/manage_clusters/x86_64/index.rst b/docs/source/guides/admin-guides/manage_clusters/x86_64/index.rst index ac1e1a950f..88577cbae6 100644 --- a/docs/source/guides/admin-guides/manage_clusters/x86_64/index.rst +++ b/docs/source/guides/admin-guides/manage_clusters/x86_64/index.rst @@ -3,4 +3,4 @@ x86_64 This section is not available at this time. -Please refer to `xCAT Documentation `_ on SourceForge for information on System X servers. +Refer to `xCAT Documentation `_ on SourceForge for information on System X servers. diff --git a/docs/source/guides/admin-guides/references/man1/bmcdiscover.1.rst b/docs/source/guides/admin-guides/references/man1/bmcdiscover.1.rst index 00a06fb0c4..efe3bde5bf 100644 --- a/docs/source/guides/admin-guides/references/man1/bmcdiscover.1.rst +++ b/docs/source/guides/admin-guides/references/man1/bmcdiscover.1.rst @@ -23,7 +23,7 @@ SYNOPSIS \ **bmcdiscover**\ [\ **-v | -**\ **-version**\ ] -\ **bmcdiscover**\ [\ **-s**\ \ *scan_method*\ ] [\ **-u**\ \ *bmc_user*\ ] [\ **-p**\ \ *bmc_passwd*\ ] [\ **-z**\ ] [\ **-w**\ ] [\ **-t**\ ] \ **-**\ **-range**\ \ *ip_ranges*\ +\ **bmcdiscover**\ [\ **-s**\ \ *scan_method*\ ] [\ **-u**\ \ *bmc_user*\ ] [\ **-p**\ \ *bmc_passwd*\ ] [\ **-z**\ ] [\ **-w**\ ] \ **-**\ **-range**\ \ *ip_ranges*\ \ **bmcdiscover**\ \ **-u**\ \ *bmc_user*\ \ **-p**\ \ *bmc_passwd*\ \ **-i**\ \ *bmc_ip*\ \ **-**\ **-check**\ @@ -74,12 +74,6 @@ OPTIONS -\ **-t**\ - - Generate a BMC type node object - - - \ **-i|-**\ **-bmcip**\ BMC IP address. diff --git a/docs/source/guides/admin-guides/references/man1/chvlanports.1.rst b/docs/source/guides/admin-guides/references/man1/chvlanports.1.rst index 99f6a012f3..1f1e27fffe 100644 --- a/docs/source/guides/admin-guides/references/man1/chvlanports.1.rst +++ b/docs/source/guides/admin-guides/references/man1/chvlanports.1.rst @@ -47,7 +47,7 @@ OPTIONS -\ **-n|-**\ **-nodes**\ The nodes or groups to be added or removed. It takes the noderange format. Please check the man page for noderange for details. +\ **-n|-**\ **-nodes**\ The nodes or groups to be added or removed. It takes the noderange format. Check the man page for noderange for details. diff --git a/docs/source/guides/admin-guides/references/man1/chvm.1.rst b/docs/source/guides/admin-guides/references/man1/chvm.1.rst index 056aa31e36..01e9afc339 100644 --- a/docs/source/guides/admin-guides/references/man1/chvm.1.rst +++ b/docs/source/guides/admin-guides/references/man1/chvm.1.rst @@ -62,7 +62,7 @@ VMware/KVM specific: ==================== -\ **chvm**\ \ *noderange*\ [\ **-a**\ \ *size*\ ] [\ **-d**\ \ *disk*\ ] [\ **-p**\ \ *disk*\ ] [\ **-**\ **-resize**\ \ **disk**\ =\ *size*\ ] [\ **-**\ **-cpus**\ \ *count*\ ] [\ **-**\ **-mem**\ \ *memory*\ ] +\ **chvm**\ \ *noderange*\ [\ **-a**\ \ *size*\ ] [\ **-d**\ \ *disk*\ ] [\ **-p**\ \ *disk*\ ] [\ **-**\ **-resize**\ \ *disk*\ =\ *size*\ ] [\ **-**\ **-cpus**\ \ *count*\ ] [\ **-**\ **-mem**\ \ *memory*\ ] zVM specific: @@ -318,7 +318,7 @@ VMware/KVM specific: \ **-d**\ \ *disk*\ - Deregister the Hard disk but leave the backing files. Multiple can be done with comma separated values. The disks are specified by SCSI id. Size defaults to GB. + Deregister the Hard disk but leave the backing files. Multiple can be done with comma separated values. The disks are specified by SCSI id. @@ -330,13 +330,13 @@ VMware/KVM specific: \ **-p**\ \ *disk*\ - Purge the Hard disk. Deregisters and deletes the files. Multiple can be done with comma separated values. The disks are specified by SCSI id. Size defaults to GB. + Purge the Hard disk. Deregisters and deletes the files. Multiple can be done with comma separated values. The disks are specified by SCSI id. -\ **-**\ **-resize**\ \ **disk**\ =\ *size*\ +\ **-**\ **-resize**\ \ *disk*\ =\ *size*\ - Change the size of the Hard disk. The disk can never be set to less than it's current size. Multiple disks can be resized to \ *size*\ by using comma separated values on the left side of \ **=**\ . The disks are specified by SCSI id. Size defaults to GB. + Change the size of the Hard disk. The disk in \ *qcow2*\ format can not be set to less than it's current size. The disk in \ *raw*\ format can be resized smaller, use caution. Multiple disks can be resized by using comma separated \ *disk*\ \ **=**\ \ *size*\ pairs. The disks are specified by SCSI id. Size defaults to GB. @@ -838,7 +838,7 @@ The resource information after modification is similar to: lpar1: 128. -Note: The physical I/O resources specified with \ *add_physlots*\ will be appended to the specified partition. The physical I/O resources which are not specified but belonged to the partition will not be removed. For more information about \ *add_physlots*\ , please refer to lsvm(1)|lsvm.1. +Note: The physical I/O resources specified with \ *add_physlots*\ will be appended to the specified partition. The physical I/O resources which are not specified but belonged to the partition will not be removed. For more information about \ *add_physlots*\ , refer to lsvm(1)|lsvm.1. VMware/KVM specific: @@ -976,6 +976,14 @@ Output is similar to: gpok3: Replacing user entry of LNX3... Done +8. To resize virtual machine's disk sdb to 10G and sdc to 15G: + + +.. code-block:: perl + + chvm gpok3 --resize sdb=10G,sdc=15G + + ***** diff --git a/docs/source/guides/admin-guides/references/man1/genimage.1.rst b/docs/source/guides/admin-guides/references/man1/genimage.1.rst index f02131f386..6d0f8adfd4 100644 --- a/docs/source/guides/admin-guides/references/man1/genimage.1.rst +++ b/docs/source/guides/admin-guides/references/man1/genimage.1.rst @@ -46,7 +46,7 @@ for stateless: \ **packimage**\ for statelite: \ **liteimg**\ -Besides prompting for some paramter values, the \ **genimage**\ command takes default guesses for the parameters not specified or not defined in the \ *osimage*\ and \ *linuximage*\ tables. It also assumes default answers for questions from the yum/zypper command when installing rpms into the image. Please use \ **-**\ **-interactive**\ flag if you want the yum/zypper command to prompt you for the answers. +Besides prompting for some paramter values, the \ **genimage**\ command takes default guesses for the parameters not specified or not defined in the \ *osimage*\ and \ *linuximage*\ tables. It also assumes default answers for questions from the yum/zypper command when installing rpms into the image. Use \ **-**\ **-interactive**\ flag if you want the yum/zypper command to prompt you for the answers. If \ **-**\ **-onlyinitrd**\ is specified, genimage only regenerates the initrd for a stateless image to be used for a diskless install. diff --git a/docs/source/guides/admin-guides/references/man1/getmacs.1.rst b/docs/source/guides/admin-guides/references/man1/getmacs.1.rst index 68c38c47b4..05bfd6ff03 100644 --- a/docs/source/guides/admin-guides/references/man1/getmacs.1.rst +++ b/docs/source/guides/admin-guides/references/man1/getmacs.1.rst @@ -86,7 +86,7 @@ Display MAC only. The default is to write the first valid adapter MAC to the xCA \ **-D**\ -Perform discovery for mac address. By default, it will run ping test to test the connection between adapter and xCAT management node. Use '--noping' can skip the ping test to save time. Please be aware that in this way, the lpars will be reset. +Perform discovery for mac address. By default, it will run ping test to test the connection between adapter and xCAT management node. Use '--noping' can skip the ping test to save time. Be aware that in this way, the lpars will be reset. \ **-f**\ diff --git a/docs/source/guides/admin-guides/references/man1/imgcapture.1.rst b/docs/source/guides/admin-guides/references/man1/imgcapture.1.rst index 440f94d26d..d68369fe96 100644 --- a/docs/source/guides/admin-guides/references/man1/imgcapture.1.rst +++ b/docs/source/guides/admin-guides/references/man1/imgcapture.1.rst @@ -39,7 +39,7 @@ The \ **diskless**\ type: The attributes of osimage will be used to capture and prepare the root image. The \ **osver**\ , \ **arch**\ and \ **profile**\ attributes for the stateless/statelite image to be created are duplicated from the \ **node**\ 's attribute. If the \ **-p|-**\ **-profile**\ \ *profile*\ option is specified, the image will be created under "/<\ *installroot*\ >/netboot///<\ *profile*\ >/rootimg". -The default files/directories excluded in the image are specified by /opt/xcat/share/xcat/netboot//<\ *profile*\ >...imgcapture.exlist; also, you can put your customized file (<\ *profile*\ >...imgcapture.exlist) to /install/custom/netboot/. The directories in the default \ *.imgcapture.exlist*\ file are necessary to capture image from the diskful Linux node managed by xCAT, please don't remove it. +The default files/directories excluded in the image are specified by /opt/xcat/share/xcat/netboot//<\ *profile*\ >...imgcapture.exlist; also, you can put your customized file (<\ *profile*\ >...imgcapture.exlist) to /install/custom/netboot/. The directories in the default \ *.imgcapture.exlist*\ file are necessary to capture the image from the diskful Linux node managed by xCAT, don't remove it. The image captured will be extracted into the /<\ *installroot*\ >/netboot/<\ **osver**\ >/<\ **arch**\ >/<\ **profile**\ >/rootimg directory. diff --git a/docs/source/guides/admin-guides/references/man1/imgexport.1.rst b/docs/source/guides/admin-guides/references/man1/imgexport.1.rst index 24a989a612..94fe7f2374 100644 --- a/docs/source/guides/admin-guides/references/man1/imgexport.1.rst +++ b/docs/source/guides/admin-guides/references/man1/imgexport.1.rst @@ -41,7 +41,7 @@ For stateful: For stateless: kernel initrd.gz - rootimg.gz + rootimg.cpio.xz or rootimg.cpio.gz or rootimg.tar.xz or rootimg.tar.gz or rootimg.gz(for backward-compatibility) x.pkglist x.otherpkgs.pkglist x.synclist diff --git a/docs/source/guides/admin-guides/references/man1/imgimport.1.rst b/docs/source/guides/admin-guides/references/man1/imgimport.1.rst index a0ef47ede4..49384e7ebd 100644 --- a/docs/source/guides/admin-guides/references/man1/imgimport.1.rst +++ b/docs/source/guides/admin-guides/references/man1/imgimport.1.rst @@ -41,7 +41,7 @@ For stateful, the following files will be copied to the appropriate directories. For stateless, the following files will be copied to the appropriate directories. kernel initrd.gz - rootimg.gz + rootimg.cpio.xz or rootimg.cpio.gz or rootimg.tar.xz or rootimg.tar.gz or rootimg.gz(for backward-compatibility) x.pkglist x.otherpkgs.pkglist x.synclist diff --git a/docs/source/guides/admin-guides/references/man1/lsslp.1.rst b/docs/source/guides/admin-guides/references/man1/lsslp.1.rst index e4f5a028fe..0d16d5f506 100644 --- a/docs/source/guides/admin-guides/references/man1/lsslp.1.rst +++ b/docs/source/guides/admin-guides/references/man1/lsslp.1.rst @@ -31,7 +31,7 @@ DESCRIPTION *********** -The lsslp command discovers selected service types using the -s flag. All service types are returned if the -s flag is not specified. If a specific IP address is not specified using the -i flag, the request is sent out all available network adapters. The optional -r, -x, -z and --vpdtable flags format the output. If you can't receive all the hardware, please use -T to increase the waiting time. +The lsslp command discovers selected service types using the -s flag. All service types are returned if the -s flag is not specified. If a specific IP address is not specified using the -i flag, the request is sent out all available network adapters. The optional -r, -x, -z and --vpdtable flags format the output. If you can't receive all the hardware, use -T to increase the waiting time. NOTE: SLP broadcast requests will propagate only within the subnet of the network adapter broadcast IPs specified by the -i flag. @@ -41,7 +41,7 @@ OPTIONS ******* -\ **noderange**\ The nodes which the user want to discover. If the user specify the noderange, lsslp will just return the nodes in the node range. Which means it will help to add the new nodes to the xCAT database without modifying the existed definitions. But the nodes' name specified in noderange should be defined in database in advance. The specified nodes' type can be frame/cec/hmc/fsp/bpa. If the it is frame or cec, lsslp will list the bpa or fsp nodes within the nodes(bap for frame, fsp for cec). Please do not use noderange with the flag -s. +\ **noderange**\ The nodes which the user want to discover. If the user specify the noderange, lsslp will just return the nodes in the node range. Which means it will help to add the new nodes to the xCAT database without modifying the existed definitions. But the nodes' name specified in noderange should be defined in database in advance. The specified nodes' type can be frame/cec/hmc/fsp/bpa. If the it is frame or cec, lsslp will list the bpa or fsp nodes within the nodes(bap for frame, fsp for cec). Do not use noderange with the flag -s. \ **-i**\ IP(s) the command will send out (defaults to all available adapters). @@ -75,7 +75,7 @@ OPTIONS \ **-z**\ Stanza formated output. -\ **-I**\ Give the warning message for the nodes in database which have no SLP responses. Please note that this flag noly can be used after the database migration finished successfully. +\ **-I**\ Give the warning message for the nodes in database which have no SLP responses. Note that this flag noly can be used after the database migration finished successfully. ************ @@ -298,7 +298,7 @@ Output is similar to: bpa 9458-100 BPCF017 B-0 40.17.0.2 f17c00bpcb_a -8. To find the nodes within the user specified. Please make sure the noderange input have been defined in xCAT database. +8. To find the nodes within the user specified. Make sure the noderange input have been defined in xCAT database. .. code-block:: perl diff --git a/docs/source/guides/admin-guides/references/man1/makentp.1.rst b/docs/source/guides/admin-guides/references/man1/makentp.1.rst index 34f143dc12..715ce800f8 100644 --- a/docs/source/guides/admin-guides/references/man1/makentp.1.rst +++ b/docs/source/guides/admin-guides/references/man1/makentp.1.rst @@ -32,7 +32,7 @@ By default, it sets up the NTP server for xCAT management node. If -a flag is sp \ *site.ntpservers*\ -- the NTP servers for the service node and compute node to sync with. The keyword means that the node's NTP server is the node that is managing it (either its service node or the management node). -To setup NTP on the compute node, please add \ **setupntp**\ postscript to the \ *postscripts*\ table and run \ *updatenode node -P setupntp*\ command. +To setup NTP on the compute node, add \ **setupntp**\ postscript to the \ *postscripts*\ table and run \ *updatenode node -P setupntp*\ command. ******* diff --git a/docs/source/guides/admin-guides/references/man1/mkdocker.1.rst b/docs/source/guides/admin-guides/references/man1/mkdocker.1.rst index 4519489766..87559be1cc 100644 --- a/docs/source/guides/admin-guides/references/man1/mkdocker.1.rst +++ b/docs/source/guides/admin-guides/references/man1/mkdocker.1.rst @@ -54,7 +54,7 @@ OPTIONS \ **dockerflag**\ - A JSON string which will be used as parameters to create a docker. Please reference https://docs.docker.com/engine/reference/api/docker_remote_api_v1.22/ for more information about which parameters can be specified. + A JSON string which will be used as parameters to create a docker. Reference https://docs.docker.com/engine/reference/api/docker_remote_api_v1.22/ for more information about which parameters can be specified. Some useful flags are: diff --git a/docs/source/guides/admin-guides/references/man1/mkdsklsnode.1.rst b/docs/source/guides/admin-guides/references/man1/mkdsklsnode.1.rst index 7851f5f743..f1a4294e7a 100644 --- a/docs/source/guides/admin-guides/references/man1/mkdsklsnode.1.rst +++ b/docs/source/guides/admin-guides/references/man1/mkdsklsnode.1.rst @@ -61,7 +61,7 @@ You can use the force option to reinitialize a node if it already has resources After the mkdsklsnode command completes you can use the \ **lsnim**\ command to check the NIM node definition to see if it is ready for booting the node. ("lsnim -l "). -You can supply your own scripts to be run on the management node or on the service node (if their is hierarchy) for a node during the \ **mkdsklsnode**\ command. Such scripts are called \ **prescripts**\ . They should be copied to /install/prescripts dirctory. A table called \ *prescripts*\ is used to specify the scripts and their associated actions. The scripts to be run at the beginning of the \ **mkdsklsnode**\ command are stored in the 'begin' column of \ *prescripts*\ table. The scripts to be run at the end of the \ **mkdsklsnode**\ command are stored in the 'end' column of \ *prescripts*\ table. Please run 'tabdump prescripts -d' command for details. An example for the 'begin' or the 'end' column is: \ *diskless:myscript1,myscript2*\ . The following two environment variables will be passed to each script: NODES contains all the names of the nodes that need to run the script for and ACTION contains the current current nodeset action, in this case "diskless". If \ *#xCAT setting:MAX_INSTANCE=number*\ is specified in the script, the script will get invoked for each node in parallel, but no more than \ *number*\ of instances will be invoked at at a time. If it is not specified, the script will be invoked once for all the nodes. +You can supply your own scripts to be run on the management node or on the service node (if their is hierarchy) for a node during the \ **mkdsklsnode**\ command. Such scripts are called \ **prescripts**\ . They should be copied to /install/prescripts dirctory. A table called \ *prescripts*\ is used to specify the scripts and their associated actions. The scripts to be run at the beginning of the \ **mkdsklsnode**\ command are stored in the 'begin' column of \ *prescripts*\ table. The scripts to be run at the end of the \ **mkdsklsnode**\ command are stored in the 'end' column of \ *prescripts*\ table. Run 'tabdump prescripts -d' command for details. An example for the 'begin' or the 'end' column is: \ *diskless:myscript1,myscript2*\ . The following two environment variables will be passed to each script: NODES contains all the names of the nodes that need to run the script for and ACTION contains the current current nodeset action, in this case "diskless". If \ *#xCAT setting:MAX_INSTANCE=number*\ is specified in the script, the script will get invoked for each node in parallel, but no more than \ *number*\ of instances will be invoked at at a time. If it is not specified, the script will be invoked once for all the nodes. ******* diff --git a/docs/source/guides/admin-guides/references/man1/mkvlan.1.rst b/docs/source/guides/admin-guides/references/man1/mkvlan.1.rst index 05d9125f7e..e97321fbe5 100644 --- a/docs/source/guides/admin-guides/references/man1/mkvlan.1.rst +++ b/docs/source/guides/admin-guides/references/man1/mkvlan.1.rst @@ -66,7 +66,7 @@ For example: This command will automatically configure the cross-over ports if the given nodes are on different switches. -For added security, the root guard and bpdu guard will be enabled for the ports in this vlan. However, the guards will not be disabled if the ports are removed from the vlan using chvlan or rmvlan commands. To disable them, you need to use the switch command line interface. Please refer to the switch command line interface manual to see how to disable the root guard and bpdu guard for a port. +For added security, the root guard and bpdu guard will be enabled for the ports in this vlan. However, the guards will not be disabled if the ports are removed from the vlan using chvlan or rmvlan commands. To disable them, you need to use the switch command line interface. Refer to the switch command line interface manual to see how to disable the root guard and bpdu guard for a port. ********** @@ -83,7 +83,7 @@ OPTIONS -\ **-n|-**\ **-nodes**\ The nodes or groups to be included in the vlan. It can be stand alone nodes or KVM guests. It takes the noderange format. Please check the man page for noderange for details. +\ **-n|-**\ **-nodes**\ The nodes or groups to be included in the vlan. It can be stand alone nodes or KVM guests. It takes the noderange format. Check the man page for noderange for details. @@ -137,7 +137,7 @@ To start, the xCAT switches and switches table needs to be filled with switch an "node3","switch1","12",,"primary:eth0",, "node3","switch2","3",,"eth1",, -Please note that the interface value for the management (primary) network can be empty, the word "primary" or "primary:ethx". For other networks, the interface attribute must be specified. +Note that the interface value for the management (primary) network can be empty, the word "primary" or "primary:ethx". For other networks, the interface attribute must be specified. The following is an example of the switches table diff --git a/docs/source/guides/admin-guides/references/man1/mkvm.1.rst b/docs/source/guides/admin-guides/references/man1/mkvm.1.rst index 6791a9ce43..753ddd42e3 100644 --- a/docs/source/guides/admin-guides/references/man1/mkvm.1.rst +++ b/docs/source/guides/admin-guides/references/man1/mkvm.1.rst @@ -55,7 +55,7 @@ For KVM: \ **mkvm**\ \ *noderange*\ [\ **-s|-**\ **-size**\ \ *disksize*\ ] [\ **-**\ **-mem**\ \ *memsize*\ ] [\ **-**\ **-cpus**\ \ *cpucount*\ ] [\ **-f|-**\ **-force**\ ] -For Vmware: +For VMware: =========== @@ -81,13 +81,13 @@ For PPC (with HMC) specific: ============================ -The first form of mkvm command creates new partition(s) with the same profile/resources as the partition specified by \ *singlenode*\ . The -i and \ *noderange*\ specify the starting numeric partition number and the \ *noderange*\ for the newly created partitions, respectively. The LHEA port numbers and the HCA index numbers will be automatically increased if they are defined in the source partition. +The first form of \ **mkvm**\ command creates new partition(s) with the same profile/resources as the partition specified by \ *singlenode*\ . The -i and \ *noderange*\ specify the starting numeric partition number and the \ *noderange*\ for the newly created partitions, respectively. The LHEA port numbers and the HCA index numbers will be automatically increased if they are defined in the source partition. The second form of this command duplicates all the partitions from the source specified by \ *profile*\ to the destination specified by \ *destcec*\ . The source and destination CECs can be managed by different HMCs. -Please make sure the nodes in the \ *noderange*\ is defined in the \ *nodelist*\ table and the \ *mgt*\ is set to 'hmc' in the \ *nodehm*\ table before running this command. +Make sure the nodes in the \ *noderange*\ is defined in the \ *nodelist*\ table and the \ *mgt*\ is set to 'hmc' in the \ *nodehm*\ table before running this command. -Please note that the mkvm command currently only supports creating standard LPARs, not virtual LPARs working with VIOS server. +Note that the \ **mkvm**\ command currently only supports creating standard LPARs, not virtual LPARs working with VIOS server. For PPC (using Direct FSP Management) specific: @@ -99,20 +99,18 @@ With option \ *full*\ , a partition using all the resources on a normal power ma If no option is specified, a partition using the parameters specified with attributes such as 'vmcpus', 'vmmory', 'vmphyslots', 'vmothersetting', 'vmnics', 'vmstorage' will be created. Those attributes can either be specified with '\*def' commands running before or be specified with this command. -For KVM and Vmware: +For KVM and VMware: =================== -The mkvm command creates new virtual machine(s) with the \ *disksize*\ size of hard disk, \ *memsize*\ size of memory and \ *cpucount*\ number of cpu. - -For KVM: If \ **-f | -**\ **-force**\ is specified, the storage will be destroyed first if it existed. +The \ **mkvm**\ command creates new virtual machine(s) with the \ *disksize*\ size of hard disk, \ *memsize*\ size of memory and \ *cpucount*\ number of cpu. For zVM: ======== -The first form of mkvm creates a new virtual machine based on a directory entry. +The first form of \ **mkvm**\ creates a new virtual machine based on a directory entry. The second form of this creates a new virtual machine with the same profile/resources as the specified node (cloning). @@ -158,7 +156,7 @@ OPTIONS \ **-f|-**\ **-force**\ - If \ **-f|-**\ **-force**\ is specified, the storage will be destroyed first if it existed. + If the storage already exists, remove it before creating a new virtual machine. diff --git a/docs/source/guides/admin-guides/references/man1/monadd.1.rst b/docs/source/guides/admin-guides/references/man1/monadd.1.rst index ec75b7c627..df2c69af8b 100644 --- a/docs/source/guides/admin-guides/references/man1/monadd.1.rst +++ b/docs/source/guides/admin-guides/references/man1/monadd.1.rst @@ -41,7 +41,7 @@ Parameters \ *name*\ is the name of the monitoring plug-in module. For example, if the the \ *name*\ is called \ *xxx*\ , then the actual file name that the xcatd looks for is \ */opt/xcat/lib/perl/xCAT_monitoring/xxx.pm*\ . Use \ *monls -a*\ command to list all the monitoring plug-in modules that can be used. -\ *settings*\ is the monitoring plug-in specific settings. It is used to customize the behavior of the plug-in or configure the 3rd party software. Format: \ *-s key-value -s key=value ...*\ Please note that the square brackets are needed here. Use \ *monls name -d*\ command to look for the possbile setting keys for a plug-in module. +\ *settings*\ is the monitoring plug-in specific settings. It is used to customize the behavior of the plug-in or configure the 3rd party software. Format: \ *-s key-value -s key=value ...*\ Note that the square brackets are needed here. Use \ *monls name -d*\ command to look for the possbile setting keys for a plug-in module. ******* diff --git a/docs/source/guides/admin-guides/references/man1/monrm.1.rst b/docs/source/guides/admin-guides/references/man1/monrm.1.rst index 85cf6e0453..27d4563b92 100644 --- a/docs/source/guides/admin-guides/references/man1/monrm.1.rst +++ b/docs/source/guides/admin-guides/references/man1/monrm.1.rst @@ -75,7 +75,7 @@ EXAMPLES monrm gangliamon -Please note that gangliamon must have been registered in the xCAT \ *monitoring*\ table. For a list of registered plug-in modules, use command \ **monls**\ . +Note that gangliamon must have been registered in the xCAT \ *monitoring*\ table. For a list of registered plug-in modules, use command \ **monls**\ . ***** diff --git a/docs/source/guides/admin-guides/references/man1/monstop.1.rst b/docs/source/guides/admin-guides/references/man1/monstop.1.rst index 45a7ce47e2..4a0502ba4f 100644 --- a/docs/source/guides/admin-guides/references/man1/monstop.1.rst +++ b/docs/source/guides/admin-guides/references/man1/monstop.1.rst @@ -79,7 +79,7 @@ EXAMPLES monstop gangliamon -Please note that gangliamon must have been registered in the xCAT \ *monitoring*\ table. For a list of registered plug-in modules, use command \ *monls*\ . +Note that gangliamon must have been registered in the xCAT \ *monitoring*\ table. For a list of registered plug-in modules, use command \ *monls*\ . ***** diff --git a/docs/source/guides/admin-guides/references/man1/nimnodeset.1.rst b/docs/source/guides/admin-guides/references/man1/nimnodeset.1.rst index 021aad1e7f..8c03d0fd78 100644 --- a/docs/source/guides/admin-guides/references/man1/nimnodeset.1.rst +++ b/docs/source/guides/admin-guides/references/man1/nimnodeset.1.rst @@ -64,7 +64,7 @@ This command will also create a NIM script resource to enable the xCAT support f After the \ **nimnodeset**\ command completes you can use the \ **lsnim**\ command to check the NIM node definition to see if it is ready for booting the node. ("lsnim -l "). -You can supply your own scripts to be run on the management node or on the service node (if their is hierarchy) for a node during the \ **nimnodeset**\ command. Such scripts are called \ **prescripts**\ . They should be copied to /install/prescripts dirctory. A table called \ *prescripts*\ is used to specify the scripts and their associated actions. The scripts to be run at the beginning of the \ **nimnodeset**\ command are stored in the 'begin' column of \ *prescripts*\ table. The scripts to be run at the end of the \ **nimnodeset**\ command are stored in the 'end' column of \ *prescripts*\ table. Please run 'tabdump prescripts -d' command for details. An example for the 'begin' or the 'end' column is: \ *standalone:myscript1,myscript2*\ . The following two environment variables will be passed to each script: NODES contains all the names of the nodes that need to run the script for and ACTION contains the current nodeset action, in this case "standalone". If \ *#xCAT setting:MAX_INSTANCE=number*\ is specified in the script, the script will get invoked for each node in parallel, but no more than \ *number*\ of instances will be invoked at at a time. If it is not specified, the script will be invoked once for all the nodes. +You can supply your own scripts to be run on the management node or on the service node (if their is hierarchy) for a node during the \ **nimnodeset**\ command. Such scripts are called \ **prescripts**\ . They should be copied to /install/prescripts dirctory. A table called \ *prescripts*\ is used to specify the scripts and their associated actions. The scripts to be run at the beginning of the \ **nimnodeset**\ command are stored in the 'begin' column of \ *prescripts*\ table. The scripts to be run at the end of the \ **nimnodeset**\ command are stored in the 'end' column of \ *prescripts*\ table. Run 'tabdump prescripts -d' command for details. An example for the 'begin' or the 'end' column is: \ *standalone:myscript1,myscript2*\ . The following two environment variables will be passed to each script: NODES contains all the names of the nodes that need to run the script for and ACTION contains the current nodeset action, in this case "standalone". If \ *#xCAT setting:MAX_INSTANCE=number*\ is specified in the script, the script will get invoked for each node in parallel, but no more than \ *number*\ of instances will be invoked at at a time. If it is not specified, the script will be invoked once for all the nodes. ******* diff --git a/docs/source/guides/admin-guides/references/man1/packimage.1.rst b/docs/source/guides/admin-guides/references/man1/packimage.1.rst index 13510d4b11..5be66f428d 100644 --- a/docs/source/guides/admin-guides/references/man1/packimage.1.rst +++ b/docs/source/guides/admin-guides/references/man1/packimage.1.rst @@ -23,7 +23,7 @@ SYNOPSIS \ **packimage [-v| -**\ **-version]**\ -\ **packimage**\ \ *imagename*\ +\ **packimage**\ [\ **-m | -**\ **-method**\ \ *cpio|tar*\ ] [\ **-c | -**\ **-compress**\ \ *gzip|pigz|xz*\ ] \ *imagename*\ *********** @@ -31,12 +31,9 @@ DESCRIPTION *********** -Packs the stateless image from the chroot file system into a file system to be -sent to the node for a diskless install. -The install dir is setup by using "installdir" attribute set in the site table. -The nodetype table "profile" attribute for the node should reflect the profile of the install image. +Packs the stateless image from the chroot file system into a file to be sent to the node for a diskless boot. -This command will get all the necessary os image definition files from the \ *osimage*\ and \ *linuximage*\ tables. +Note: For an osimage that is deployed on a cluster, running packimage will overwrite the existing rootimage file and be unavailable to the compute nodes while the command executes. ********** @@ -44,7 +41,7 @@ PARAMETERS ********** -\ *imagename*\ specifies the name of a os image definition to be used. The specification for the image is stored in the \ *osimage*\ table and \ *linuximage*\ table. +\ *imagename*\ specifies the name of a OS image definition to be used. The specification for the image is stored in the \ *osimage*\ table and \ *linuximage*\ table. ******* @@ -56,13 +53,9 @@ OPTIONS \ **-v**\ Command Version. -\ **-o**\ Operating system (fedora8, rhel5, sles10,etc) +\ **-m| -**\ **-method**\ Archive Method (cpio,tar,squashfs, default is cpio) -\ **-p**\ Profile (compute,service) - -\ **-a**\ Architecture (ppc64,x86_64,etc) - -\ **-m**\ Method (cpio,txc,squashfs, default is cpio) +\ **-c| -**\ **-compress**\ Compress Method (pigz,gzip,xz, default is pigz/gzip) ************ @@ -80,7 +73,7 @@ EXAMPLES ******** -1. To pack the osimage rhels7.1-x86_64-netboot-compute: +1. To pack the osimage 'rhels7.1-x86_64-netboot-compute': .. code-block:: perl @@ -88,6 +81,14 @@ EXAMPLES packimage rhels7.1-x86_64-netboot-compute +2. To pack the osimage 'rhels7.1-x86_64-netboot-compute' with "tar" to archive and "pigz" to compress: + + +.. code-block:: perl + + packimage -m tar -c pigz rhels7.1-x86_64-netboot-compute + + ***** FILES diff --git a/docs/source/guides/admin-guides/references/man1/rcons.1.rst b/docs/source/guides/admin-guides/references/man1/rcons.1.rst index fb0ff4b51f..df8e0853f4 100644 --- a/docs/source/guides/admin-guides/references/man1/rcons.1.rst +++ b/docs/source/guides/admin-guides/references/man1/rcons.1.rst @@ -35,7 +35,7 @@ multiple read-only instances of the console, plus console logging. If \ *conserver-host*\ is specified, the conserver daemon on that host will be contacted, instead of on the local host. -To exit the console session, enter: e c . +To exit the console session, enter: e c . *************** diff --git a/docs/source/guides/admin-guides/references/man1/rflash.1.rst b/docs/source/guides/admin-guides/references/man1/rflash.1.rst index b405c6975e..8df12fca52 100644 --- a/docs/source/guides/admin-guides/references/man1/rflash.1.rst +++ b/docs/source/guides/admin-guides/references/man1/rflash.1.rst @@ -73,7 +73,7 @@ PPC (with HMC) specific: ======================== -The \ **rflash**\ command uses the \ **xdsh**\ command to connect to the HMC controlling the given managed system and perform the updates. Before run \ **rflash**\ , please use \ **rspconfig**\ to check if the related HMC ssh is enabled. If enable a HMC ssh connection, please use \ **rspconfig**\ comamnd. +The \ **rflash**\ command uses the \ **xdsh**\ command to connect to the HMC controlling the given managed system and perform the updates. Before running \ **rflash**\ , use \ **rspconfig**\ to check if the related HMC ssh is enabled. To enable a HMC ssh connection, use \ **rspconfig**\ comamnd. \ **Warning!**\ This command may take considerable time to complete, depending on the number of systems being updated and the workload on the target HMC. In particular, power subsystem updates may take an hour or more if there are many attached managed systems. @@ -91,7 +91,7 @@ Any previously activated code on the affected systems will be automatically acce \ **IMPORTANT!**\ If the power subsystem is recycled, all of its attached managed systems will be recycled. -If it outputs \ **"Timeout waiting for prompt"**\ during the upgrade, please set the \ **"ppctimeout"**\ larger in the \ **site**\ table. After the upgrade, remeber to change it back. If run the \ **"rflash"**\ command on an AIX management node, need to make sure the value of \ **"useSSHonAIX"**\ is \ **"yes"**\ in the site table. +If it outputs \ **"Timeout waiting for prompt"**\ during the upgrade, set the \ **"ppctimeout"**\ larger in the \ **site**\ table. After the upgrade, remeber to change it back. If run the \ **"rflash"**\ command on an AIX management node, need to make sure the value of \ **"useSSHonAIX"**\ is \ **"yes"**\ in the site table. PPC (using Direct FSP Management) specific: diff --git a/docs/source/guides/admin-guides/references/man1/rinv.1.rst b/docs/source/guides/admin-guides/references/man1/rinv.1.rst index 0b5388f4bc..cb7675e8df 100644 --- a/docs/source/guides/admin-guides/references/man1/rinv.1.rst +++ b/docs/source/guides/admin-guides/references/man1/rinv.1.rst @@ -28,6 +28,13 @@ BMC/MPA specific: \ **rinv**\ \ *noderange*\ {\ **pci | model | serial | asset | vpd | mprom | deviceid | guid | firm | diag | bios | mparom | mac | all**\ } +OpenPOWER server specific: +========================== + + +\ **rinv**\ \ *noderange*\ {\ **model | serial | deviceid | uuid | guid | vpd | mprom | firm | all**\ } + + PPC (with HMC) specific: ======================== @@ -184,6 +191,12 @@ Calling \ **rinv**\ for VMware will display the UUID/GUID, nuumber of CPUs, amo +\ **uuid**\ + + Retrieves the universally unique identifier + + + \ **guid**\ Retrieves the global unique identifier diff --git a/docs/source/guides/admin-guides/references/man1/rmvlan.1.rst b/docs/source/guides/admin-guides/references/man1/rmvlan.1.rst index 38223b4577..67b48992a1 100644 --- a/docs/source/guides/admin-guides/references/man1/rmvlan.1.rst +++ b/docs/source/guides/admin-guides/references/man1/rmvlan.1.rst @@ -33,7 +33,7 @@ DESCRIPTION The \ **rmvlan**\ command removes the given vlan ID from the cluster. It removes the vlan id from all the swithces involved, deconfigures the nodes so that vlan adaptor (tag) will be remved, cleans up /etc/hosts, DNS and database tables for the given vlan. -For added security, the root guard and bpdu guard were enabled for the ports in this vlan by mkvlan and chvlan commands. However, the guards will not be disabled by this command. To disable them, you need to use the switch command line interface. Please refer to the switch command line interface manual to see how to disable the root guard and bpdu guard for a port. +For added security, the root guard and bpdu guard were enabled for the ports in this vlan by mkvlan and chvlan commands. However, the guards will not be disabled by this command. To disable them, you need to use the switch command line interface. Refer to the switch command line interface manual to see how to disable the root guard and bpdu guard for a port. ********** diff --git a/docs/source/guides/admin-guides/references/man1/rpower.1.rst b/docs/source/guides/admin-guides/references/man1/rpower.1.rst index 0c7585b882..86239842f3 100644 --- a/docs/source/guides/admin-guides/references/man1/rpower.1.rst +++ b/docs/source/guides/admin-guides/references/man1/rpower.1.rst @@ -200,7 +200,7 @@ OPTIONS Don't try to run \ **wake**\ against the 'on' state node, it would cause the node gets to 'off' state. - For some of xCAT hardware such as NeXtScale, it may need to enable S3 before using \ **wake**\ . The following steps can be used to enable S3. Please reference pasu(1)|pasu.1 for "pasu" usage. + For some of xCAT hardware such as NeXtScale, it may need to enable S3 before using \ **wake**\ . The following steps can be used to enable S3. Reference pasu(1)|pasu.1 for "pasu" usage. .. code-block:: perl diff --git a/docs/source/guides/admin-guides/references/man1/rspconfig.1.rst b/docs/source/guides/admin-guides/references/man1/rspconfig.1.rst index 911a802225..38df32d0a6 100644 --- a/docs/source/guides/admin-guides/references/man1/rspconfig.1.rst +++ b/docs/source/guides/admin-guides/references/man1/rspconfig.1.rst @@ -38,7 +38,7 @@ BMC specific: ============= -\ **rspconfig**\ \ *noderange*\ {\ **ip | netmask | gateway | backupgateway | garp**\ } +\ **rspconfig**\ \ *noderange*\ {\ **vlan | ip | netmask | gateway | backupgateway | garp**\ } \ **rspconfig**\ \ *noderange*\ \ **garp**\ =\ *time*\ @@ -80,16 +80,12 @@ FSP/CEC specific: ================= -\ **rspconfig**\ \ *noderange*\ {\ **autopower | iocap | dev | celogin1 | decfg | memdecfg | procdecfg | time | date | spdump | sysdump | network**\ } +\ **rspconfig**\ \ *noderange*\ {\ **autopower | iocap | decfg | memdecfg | procdecfg | time | date | spdump | sysdump | network**\ } \ **rspconfig**\ \ *noderange*\ \ **autopower**\ ={\ **enable | disable**\ } \ **rspconfig**\ \ *noderange*\ \ **iocap**\ ={\ **enable | disable**\ } -\ **rspconfig**\ \ *noderange*\ \ **dev**\ ={\ **enable | disable**\ } - -\ **rspconfig**\ \ *noderange*\ \ **celogin1**\ ={\ **enable | disable**\ } - \ **rspconfig**\ \ *noderange*\ \ **time**\ =\ *hh:mm:ss*\ \ **rspconfig**\ \ *noderange*\ \ **date**\ =\ *mm:dd:yyyy*\ @@ -142,7 +138,7 @@ BPA/Frame Specific: =================== -\ **rspconfig**\ \ *noderange*\ {\ **network | dev | celogin1**\ } +\ **rspconfig**\ \ *noderange*\ {\ **network**\ } \ **rspconfig**\ \ *noderange*\ \ **network**\ ={\ **nic,**\ \*} @@ -150,10 +146,6 @@ BPA/Frame Specific: \ **rspconfig**\ \ *noderange*\ \ **network**\ ={\ **nic,0.0.0.0**\ } -\ **rspconfig**\ \ *noderange*\ \ **dev**\ ={\ **enable | disable**\ } - -\ **rspconfig**\ \ *noderange*\ \ **celogin1**\ ={\ **enable | disable**\ } - \ **rspconfig**\ \ *noderange*\ \ **HMC_passwd**\ ={\ *currentpasswd,newpasswd*\ } \ **rspconfig**\ \ *noderange*\ \ **admin_passwd**\ ={\ *currentpasswd,newpasswd*\ } @@ -255,7 +247,7 @@ DESCRIPTION \ **rspconfig**\ configures various settings in the nodes' service processors. If only a keyword is specified, without the \ **=**\ , it displays the current value. -For options \ **autopower | iocap | dev | celogin1 | decfg | memdecfg | procdecfg | time | date | spdump | sysdump | network**\ , user need to use \ *chdef -t site enableASMI=yes*\ to enable ASMI first. For options \ **dev | celogin1**\ , user also need to contact IBM service to get the dynamic password for 'celogin' and put it in passwd table. After completed the command, user should use \ *chdef -t site enableASMI=no*\ to disable ASMI. +For options \ **autopower | iocap | decfg | memdecfg | procdecfg | time | date | spdump | sysdump | network**\ , user need to use \ *chdef -t site enableASMI=yes*\ to enable ASMI first. ******* @@ -396,15 +388,9 @@ OPTIONS -\ **dev**\ ={\ **enable**\ | \ **disable**\ } +\ **vlan**\ - Enable or disable the CEC|Frame 'dev' account or display account status if no value specified. - - - -\ **celogin1**\ ={\ **enable**\ | \ **disable**\ } - - Enable or disable the CEC|Frame 'celogin1' account or display account status if no value specified. + Get or set vlan ID. For get vlan ID, if vlan is not enabled, 'BMC VLAN disabled' will be outputed. For set vlan ID, the valid value are [1-4096]. diff --git a/docs/source/guides/admin-guides/references/man1/rvitals.1.rst b/docs/source/guides/admin-guides/references/man1/rvitals.1.rst index 878ab39f52..74cb1bc39b 100644 --- a/docs/source/guides/admin-guides/references/man1/rvitals.1.rst +++ b/docs/source/guides/admin-guides/references/man1/rvitals.1.rst @@ -28,8 +28,8 @@ FSP/LPAR (with HMC) specific: \ **rvitals**\ \ *noderange*\ {\ **temp | voltage | lcds | all**\ } -CEC/LPAR/Frame (using Direct FSP Management ) specific: -======================================================= +CEC/LPAR/Frame (using Direct FSP Management) specific: +====================================================== \ **rvitals**\ \ *noderange*\ {\ **rackenv | lcds | all**\ } [\ **-V**\ | \ **-**\ **-verbose**\ ] @@ -56,6 +56,13 @@ BMC specific: \ **rvitals**\ \ *noderange*\ {\ **temp | voltage | wattage | fanspeed | power | leds | all**\ } +OpenPOWER server specific: +========================== + + +\ **rvitals**\ \ *noderange*\ {\ **temp | voltage | wattage | fanspeed | power | leds | all**\ } + + ******************* \ **Description**\ diff --git a/docs/source/guides/admin-guides/references/man1/sinv.1.rst b/docs/source/guides/admin-guides/references/man1/sinv.1.rst index fa9a7004f1..f1274c9d65 100644 --- a/docs/source/guides/admin-guides/references/man1/sinv.1.rst +++ b/docs/source/guides/admin-guides/references/man1/sinv.1.rst @@ -167,8 +167,8 @@ Command Protocol can be used. See man \ **xdsh**\ for more details. xCAT ships some default configuration files for Ethernet switches and and IB switches under \ */opt/xcat/share/xcat/devicetype*\ directory. If you want to overwrite - any of the configuration files, please copy it to \ */var/opt/xcat/*\ - directory and cutomize it. + any of the configuration files, copy them to \ */var/opt/xcat/*\ + directory and cutomize. For example, \ *base/IBSwitch/Qlogic/config*\ is the configuration file location if devicetype is specified as IBSwitch::Qlogic. xCAT will first search config file using \ */var/opt/xcat/*\ as the base. diff --git a/docs/source/guides/admin-guides/references/man1/switchdiscover.1.rst b/docs/source/guides/admin-guides/references/man1/switchdiscover.1.rst index 0c2ed8cce4..1ba9aff9b2 100644 --- a/docs/source/guides/admin-guides/references/man1/switchdiscover.1.rst +++ b/docs/source/guides/admin-guides/references/man1/switchdiscover.1.rst @@ -15,7 +15,7 @@ SYNOPSIS \ **switchdiscover [-v| -**\ **-version]**\ -\ **switchdiscover**\ [\ *noderange*\ | \ **-**\ **-range**\ \ *ip_ranges*\ ] \ **[-V] [-w][-r|-x|-z][-s**\ \ *scan_methods*\ ] +\ **switchdiscover**\ [\ *noderange*\ | \ **-**\ **-range**\ \ *ip_ranges*\ ] \ **[-V] [-w][-r|-x|-z][-s**\ \ *scan_methods*\ \ **-**\ **-setup**\ ] *********** @@ -25,11 +25,13 @@ DESCRIPTION The switchdiscover command scans the subnets and discovers all the swithches on the subnets. The command takes a list of subnets as input. The default subnets are the ones that the xCAT management node is on. It uses nmap command as default to discover the switches. However, you can specify other discovery methods such as lldp or snmp with \ **-s**\ flag. You can write the discovered switches into xCAT database with \ **-w**\ flag. This command supports may output formats such as xml(\ **-x**\ ), raw(\ **-r**\ ) and stanza(\ **-z**\ ) in addition to the default format. +\ **-**\ **-setup**\ flag is for switch-based switch discovery. It will find all the discovered switches on the subnets, then match them with predefined switches in the xCATDB. Next, it will set discovered switches with static ip address and hostname based on the predefined switch. It will also enable snmpv3 configuration. The details of the process are defined in the http://xcat-docs.readthedocs.io/en/latest/advanced/networks/switchdiscover/switches_discovery.html. + To view all the switches defined in the xCAT databasee use \ **lsdef -w "nodetype=switch"**\ command. -For lldp method, please make sure that lldpd package is installed and lldpd is running on the xCAT management node. lldpd comes from xcat-dep packge or you can get it from http://vincentbernat.github.io/lldpd/installation.html. +For lldp method, make sure that lldpd package is installed and lldpd is running on the xCAT management node. lldpd comes from xcat-dep packge or you can get it from http://vincentbernat.github.io/lldpd/installation.html. -For snmp method, please make sure that snmpwalk command is installed and snmp is enabled for switches. To install snmpwalk, "yum install net-snmp-utils" for redhat and sles, "apt-get install snmp" for Ubuntu. +For snmp method, make sure that snmpwalk command is installed and snmp is enabled for switches. To install snmpwalk, "yum install net-snmp-utils" for redhat and sles, "apt-get install snmp" for Ubuntu. ******* @@ -110,6 +112,12 @@ OPTIONS +\ **-**\ **-setup**\ + + Process switch-based switch discovery. Update discovered switch's ip address, hostname and enable snmpv3 configuration based on the predefined switch. + + + ************ RETURN VALUE @@ -149,9 +157,7 @@ EXAMPLES -3. - - To use lldp method to discover the switches: +3. To use lldp method to discover the switches: .. code-block:: perl @@ -161,6 +167,16 @@ EXAMPLES +4. To process switch-based switch discovery, the core switch has to be configured and top-of-rack (edge) switch has to be predefine into xCAT databse with attribute \ **switch**\ and \ **switchport**\ to core switch: + + + .. code-block:: perl + + switchdiscover --range 192.168.5.150-170 -s snmp --setup + + + + ***** FILES diff --git a/docs/source/guides/admin-guides/references/man1/xdsh.1.rst b/docs/source/guides/admin-guides/references/man1/xdsh.1.rst index d89998b0e5..fb84e802b4 100644 --- a/docs/source/guides/admin-guides/references/man1/xdsh.1.rst +++ b/docs/source/guides/admin-guides/references/man1/xdsh.1.rst @@ -234,8 +234,8 @@ running commands, are terminated (SIGTERM). xCAT ships some default configuration files for Ethernet switches and and IB switches under \ */opt/xcat/share/xcat/devicetype*\ directory. If you want to overwrite - any of the configuration files, please copy it to \ */var/opt/xcat/*\ - directory and cutomize it. + any of the configuration files, copy them to \ */var/opt/xcat/*\ + directory and cutomize. For example, \ *base/IBSwitch/Qlogic/config*\ is the configuration file location if devicetype is specified as IBSwitch::Qlogic. xCAT will first search config file using \ */var/opt/xcat/*\ as the base. diff --git a/docs/source/guides/admin-guides/references/man3/noderange.3.rst b/docs/source/guides/admin-guides/references/man3/noderange.3.rst index 8d80914bcd..da8266d5e1 100644 --- a/docs/source/guides/admin-guides/references/man3/noderange.3.rst +++ b/docs/source/guides/admin-guides/references/man3/noderange.3.rst @@ -191,28 +191,20 @@ In plain English, a node or group name is in \ **xCAT Node Name Format**\ i from the begining there are: -\* - - one or more alpha characters of any case and any number of "-" in any combination - +\* one or more alpha characters of any case and any number of "-" in any combination -\* - - followed by one or more numbers - + +\* followed by one or more numbers -\* - - then optionally followed by one alpha character of any case or "-" - + +\* then optionally followed by one alpha character of any case or "-" -\* - - followed by any combination of case mixed alphanumerics and "-" - + +\* followed by any combination of case mixed alphanumerics and "-" + \ **noderange**\ supports node/group names in \ *any*\ format. \ **xCAT Node Name Format**\ is diff --git a/docs/source/guides/admin-guides/references/man5/chain.5.rst b/docs/source/guides/admin-guides/references/man5/chain.5.rst index 0b9ae1cb0e..37ac50f226 100644 --- a/docs/source/guides/admin-guides/references/man5/chain.5.rst +++ b/docs/source/guides/admin-guides/references/man5/chain.5.rst @@ -56,7 +56,7 @@ chain Attributes: \ **chain**\ - A comma-delimited chain of actions to be performed automatically when this node is discovered. ("Discovered" means a node booted, but xCAT and DHCP did not recognize the MAC of this node. In this situation, xCAT initiates the discovery process, the last step of which is to run the operations listed in this chain attribute, one by one.) Valid values: boot, runcmd=, runimage=, shell, standby. (Default - same as no chain - it will do only the discovery.). Example, for BMC machines use: runcmd=bmcsetup,shell. + A comma-delimited chain of actions to be performed automatically when this node is discovered for the first time. (xCAT and the DHCP server do not recognize the MAC address of the node when xCAT initializes the discovery process.) The last step in this process is to run the operations listed in the chain attribute, one by one. Valid values: boot, runcmd=, runimage=, shell, standby. For example, to have the genesis kernel pause to the shell, use chain=shell. diff --git a/docs/source/guides/admin-guides/references/man5/ipmi.5.rst b/docs/source/guides/admin-guides/references/man5/ipmi.5.rst index 88fe0488c6..1912e186ca 100644 --- a/docs/source/guides/admin-guides/references/man5/ipmi.5.rst +++ b/docs/source/guides/admin-guides/references/man5/ipmi.5.rst @@ -96,7 +96,7 @@ ipmi Attributes: \ **taggedvlan**\ - Have bmcsetup place the BMC on the specified vlan tag on a shared netwirk interface. Some network devices may be incompatible with this option + bmcsetup script will configure the network interface of the BMC to be tagged to the VLAN specified. diff --git a/docs/source/guides/admin-guides/references/man5/linuximage.5.rst b/docs/source/guides/admin-guides/references/man5/linuximage.5.rst index 662d6b48b1..e49d27e555 100644 --- a/docs/source/guides/admin-guides/references/man5/linuximage.5.rst +++ b/docs/source/guides/admin-guides/references/man5/linuximage.5.rst @@ -92,7 +92,17 @@ linuximage Attributes: \ **postinstall**\ - The fully qualified name of the script file that will be run at the end of the genimage command. It could be set to multiple paths. The multiple paths must be separated by ",". It is used for diskless image only. + Only supported in diskless image only. The fully qualified name of the scripts running in non-chroot mode after the package installation but before initrd generation during genimage. If multiple scripts are specified, they should be speperated with comma ",". A set of osimage attributes are exported as the environment variables to be used in the postinstall scripts: + IMG_ARCH(The architecture of the osimage, such as "ppc64le","x86_64"), + IMG_NAME(The name of the osimage, such as "rhels7.3-ppc64le-netboot-compute"), + IMG_OSVER(The os release of the osimage, such as "rhels7.3","sles11.4"), + IMG_KERNELVERSION(the "kernelver" attribute of the osimage), + IMG_PROFILE(the profile of the osimage, such as "service","compute"), + IMG_PKGLIST(the "pkglist" attribute of the osimage), + IMG_PKGDIR(the "pkgdir" attribute of the osimage), + IMG_OTHERPKGLIST(the "otherpkglist" attribute of the osimage), + IMG_OTHERPKGDIR(the "otherpkgdir" attribute of the osimage), + IMG_ROOTIMGDIR(the "rootimgdir" attribute of the osimage) diff --git a/docs/source/guides/admin-guides/references/man5/litefile.5.rst b/docs/source/guides/admin-guides/references/man5/litefile.5.rst index c745c46bec..3691949ad9 100644 --- a/docs/source/guides/admin-guides/references/man5/litefile.5.rst +++ b/docs/source/guides/admin-guides/references/man5/litefile.5.rst @@ -57,11 +57,11 @@ litefile Attributes: tmpfs - It is the default option if you leave the options column blank. It provides a file or directory for the node to use when booting, its permission will be the same as the original version on the server. In most cases, it is read-write; however, on the next statelite boot, the original version of the file or directory on the server will be used, it means it is non-persistent. This option can be performed on files and directories.. - rw - Same as Above.Its name "rw" does NOT mean it always be read-write, even in most cases it is read-write. Please do not confuse it with the "rw" permission in the file system. + rw - Same as Above.Its name "rw" does NOT mean it always be read-write, even in most cases it is read-write. Do not confuse it with the "rw" permission in the file system. persistent - It provides a mounted file or directory that is copied to the xCAT persistent location and then over-mounted on the local file or directory. Anything written to that file or directory is preserved. It means, if the file/directory does not exist at first, it will be copied to the persistent location. Next time the file/directory in the persistent location will be used. The file/directory will be persistent across reboots. Its permission will be the same as the original one in the statelite location. It requires the statelite table to be filled out with a spot for persistent statelite. This option can be performed on files and directories. - con - The contents of the pathname are concatenated to the contents of the existing file. For this directive the searching in the litetree hierarchy does not stop when the first match is found. All files found in the hierarchy will be concatenated to the file when found. The permission of the file will be "-rw-r--r--", which means it is read-write for the root user, but readonly for the others. It is non-persistent, when the node reboots, all changes to the file will be lost. It can only be performed on files. Please do not use it for one directory. + con - The contents of the pathname are concatenated to the contents of the existing file. For this directive the searching in the litetree hierarchy does not stop when the first match is found. All files found in the hierarchy will be concatenated to the file when found. The permission of the file will be "-rw-r--r--", which means it is read-write for the root user, but readonly for the others. It is non-persistent, when the node reboots, all changes to the file will be lost. It can only be performed on files. Do not use it for one directory. ro - The file/directory will be overmounted read-only on the local file/directory. It will be located in the directory hierarchy specified in the litetree table. Changes made to this file or directory on the server will be immediately seen in this file/directory on the node. This option requires that the file/directory to be mounted must be available in one of the entries in the litetree table. This option can be performed on files and directories. diff --git a/docs/source/guides/admin-guides/references/man5/monitoring.5.rst b/docs/source/guides/admin-guides/references/man5/monitoring.5.rst index 1f81769388..6ea1f73d3f 100644 --- a/docs/source/guides/admin-guides/references/man5/monitoring.5.rst +++ b/docs/source/guides/admin-guides/references/man5/monitoring.5.rst @@ -38,7 +38,7 @@ monitoring Attributes: \ **name**\ - The name of the monitoring plug-in module. The plug-in must be put in /opt/xcat/lib/perl/xCAT_monitoring/. See the man page for monstart for details. + The name of the monitoring plug-in module. The plug-in must be put in /lib/perl/xCAT_monitoring/. See the man page for monstart for details. diff --git a/docs/source/guides/admin-guides/references/man5/monsetting.5.rst b/docs/source/guides/admin-guides/references/man5/monsetting.5.rst index 6200b8925c..d14541ee0e 100644 --- a/docs/source/guides/admin-guides/references/man5/monsetting.5.rst +++ b/docs/source/guides/admin-guides/references/man5/monsetting.5.rst @@ -38,7 +38,7 @@ monsetting Attributes: \ **name**\ - The name of the monitoring plug-in module. The plug-in must be put in /opt/xcat/lib/perl/xCAT_monitoring/. See the man page for monstart for details. + The name of the monitoring plug-in module. The plug-in must be put in /lib/perl/xCAT_monitoring/. See the man page for monstart for details. diff --git a/docs/source/guides/admin-guides/references/man5/networks.5.rst b/docs/source/guides/admin-guides/references/man5/networks.5.rst index 085d6b7154..b9ab582089 100644 --- a/docs/source/guides/admin-guides/references/man5/networks.5.rst +++ b/docs/source/guides/admin-guides/references/man5/networks.5.rst @@ -19,7 +19,7 @@ SYNOPSIS ******** -\ **networks Attributes:**\ \ *netname*\ , \ *net*\ , \ *mask*\ , \ *mgtifname*\ , \ *gateway*\ , \ *dhcpserver*\ , \ *tftpserver*\ , \ *nameservers*\ , \ *ntpservers*\ , \ *logservers*\ , \ *dynamicrange*\ , \ *staticrange*\ , \ *staticrangeincrement*\ , \ *nodehostname*\ , \ *ddnsdomain*\ , \ *vlanid*\ , \ *domain*\ , \ *comments*\ , \ *disable*\ +\ **networks Attributes:**\ \ *netname*\ , \ *net*\ , \ *mask*\ , \ *mgtifname*\ , \ *gateway*\ , \ *dhcpserver*\ , \ *tftpserver*\ , \ *nameservers*\ , \ *ntpservers*\ , \ *logservers*\ , \ *dynamicrange*\ , \ *staticrange*\ , \ *staticrangeincrement*\ , \ *nodehostname*\ , \ *ddnsdomain*\ , \ *vlanid*\ , \ *domain*\ , \ *mtu*\ , \ *comments*\ , \ *disable*\ *********** @@ -136,6 +136,12 @@ networks Attributes: +\ **mtu**\ + + The default MTU for the network + + + \ **comments**\ Any user-written notes. diff --git a/docs/source/guides/admin-guides/references/man5/nodehm.5.rst b/docs/source/guides/admin-guides/references/man5/nodehm.5.rst index 39d61c12e9..e3978e25e9 100644 --- a/docs/source/guides/admin-guides/references/man5/nodehm.5.rst +++ b/docs/source/guides/admin-guides/references/man5/nodehm.5.rst @@ -110,7 +110,7 @@ nodehm Attributes: \ **consoleondemand**\ - This overrides the value from site.consoleondemand; (0=no, 1=yes). Default is the result from site.consoleondemand. + This overrides the value from site.consoleondemand. Set to 'yes', 'no', '1' (equivalent to 'yes'), or '0' (equivalent to 'no'). If not set, the default is the value from site.consoleondemand. diff --git a/docs/source/guides/admin-guides/references/man5/nodelist.5.rst b/docs/source/guides/admin-guides/references/man5/nodelist.5.rst index 25bf8c3776..bb70e22b4c 100644 --- a/docs/source/guides/admin-guides/references/man5/nodelist.5.rst +++ b/docs/source/guides/admin-guides/references/man5/nodelist.5.rst @@ -50,7 +50,7 @@ nodelist Attributes: \ **status**\ - The current status of this node. This attribute will be set by xCAT software. Valid values: defined, booting, netbooting, booted, discovering, configuring, installing, alive, standingby, powering-off, unreachable. If blank, defined is assumed. The possible status change sequences are: For installation: defined->[discovering]->[configuring]->[standingby]->installing->booting->booted->[alive], For diskless deployment: defined->[discovering]->[configuring]->[standingby]->netbooting->booted->[alive], For booting: [alive/unreachable]->booting->[alive], For powering off: [alive]->powering-off->[unreachable], For monitoring: alive->unreachable. Discovering and configuring are for x Series discovery process. Alive and unreachable are set only when there is a monitoring plug-in start monitor the node status for xCAT. Please note that the status values will not reflect the real node status if you change the state of the node from outside of xCAT (i.e. power off the node using HMC GUI). + The current status of this node. This attribute will be set by xCAT software. Valid values: defined, booting, netbooting, booted, discovering, configuring, installing, alive, standingby, powering-off, unreachable. If blank, defined is assumed. The possible status change sequences are: For installation: defined->[discovering]->[configuring]->[standingby]->installing->booting->booted->[alive], For diskless deployment: defined->[discovering]->[configuring]->[standingby]->netbooting->booted->[alive], For booting: [alive/unreachable]->booting->[alive], For powering off: [alive]->powering-off->[unreachable], For monitoring: alive->unreachable. Discovering and configuring are for x Series discovery process. Alive and unreachable are set only when there is a monitoring plug-in start monitor the node status for xCAT. Note that the status values will not reflect the real node status if you change the state of the node from outside of xCAT (i.e. power off the node using HMC GUI). diff --git a/docs/source/guides/admin-guides/references/man5/site.5.rst b/docs/source/guides/admin-guides/references/man5/site.5.rst index 35c59d2b70..0b547c4093 100644 --- a/docs/source/guides/admin-guides/references/man5/site.5.rst +++ b/docs/source/guides/admin-guides/references/man5/site.5.rst @@ -274,7 +274,7 @@ site Attributes: runbootscripts: If set to 'yes' the scripts listed in the postbootscripts attribute in the osimage and postscripts tables will be run during each reboot of stateful (diskful) nodes. This attribute has no - effect on stateless and statelite nodes. Please run the following + effect on stateless and statelite nodes. Run the following command after you change the value of this attribute: 'updatenode -P setuppostbootscripts' @@ -309,7 +309,7 @@ site Attributes: '1': enable basic debug mode '2': enable expert debug mode For the details on 'basic debug mode' and 'expert debug mode', - please refer to xCAT documentation. + refer to xCAT documentation. -------------------- REMOTESHELL ATTRIBUTES diff --git a/docs/source/guides/admin-guides/references/man5/switches.5.rst b/docs/source/guides/admin-guides/references/man5/switches.5.rst index 5cdb6d33e8..86b4ec0f7a 100644 --- a/docs/source/guides/admin-guides/references/man5/switches.5.rst +++ b/docs/source/guides/admin-guides/references/man5/switches.5.rst @@ -74,19 +74,19 @@ switches Attributes: \ **linkports**\ - The ports that connect to other switches. Currently, this column is only used by vlan configuration. The format is: "port_number:switch,port_number:switch...". Please refer to the switch table for details on how to specify the port numbers. + The ports that connect to other switches. Currently, this column is only used by vlan configuration. The format is: "port_number:switch,port_number:switch...". Refer to the switch table for details on how to specify the port numbers. \ **sshusername**\ - The remote login user name. It can be for ssh or telnet. If it is for telnet, please set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. + The remote login user name. It can be for ssh or telnet. If it is for telnet, set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. \ **sshpassword**\ - The remote login password. It can be for ssh or telnet. If it is for telnet, please set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. + The remote login password. It can be for ssh or telnet. If it is for telnet, set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. diff --git a/docs/source/guides/admin-guides/references/man5/vm.5.rst b/docs/source/guides/admin-guides/references/man5/vm.5.rst index f16c9f3d23..604429dad2 100644 --- a/docs/source/guides/admin-guides/references/man5/vm.5.rst +++ b/docs/source/guides/admin-guides/references/man5/vm.5.rst @@ -197,7 +197,7 @@ vm Attributes: \ **physlots**\ - Specify the physical slots drc index that will assigned to the partition, the delimiter is ',', and the drc index must started with '0x'. For more details, please reference to manpage of 'lsvm'. + Specify the physical slots drc index that will assigned to the partition, the delimiter is ',', and the drc index must started with '0x'. For more details, reference manpage for 'lsvm'. diff --git a/docs/source/guides/admin-guides/references/man7/group.7.rst b/docs/source/guides/admin-guides/references/man7/group.7.rst index f2d4078606..9515ac052b 100644 --- a/docs/source/guides/admin-guides/references/man7/group.7.rst +++ b/docs/source/guides/admin-guides/references/man7/group.7.rst @@ -19,7 +19,7 @@ SYNOPSIS ******** -\ **group Attributes:**\ \ *addkcmdline*\ , \ *arch*\ , \ *authdomain*\ , \ *bmc*\ , \ *bmcpassword*\ , \ *bmcport*\ , \ *bmcusername*\ , \ *cfgmgr*\ , \ *cfgmgtroles*\ , \ *cfgserver*\ , \ *chain*\ , \ *chassis*\ , \ *cmdmapping*\ , \ *cons*\ , \ *conserver*\ , \ *consoleondemand*\ , \ *cpucount*\ , \ *cputype*\ , \ *currchain*\ , \ *currstate*\ , \ *dhcpinterfaces*\ , \ *disksize*\ , \ *displayname*\ , \ *dockercpus*\ , \ *dockerflag*\ , \ *dockerhost*\ , \ *dockermemory*\ , \ *dockernics*\ , \ *domainadminpassword*\ , \ *domainadminuser*\ , \ *domaintype*\ , \ *getmac*\ , \ *groupname*\ , \ *grouptype*\ , \ *hcp*\ , \ *height*\ , \ *hostcluster*\ , \ *hostinterface*\ , \ *hostmanager*\ , \ *hostnames*\ , \ *hosttype*\ , \ *hwtype*\ , \ *id*\ , \ *initrd*\ , \ *installnic*\ , \ *interface*\ , \ *ip*\ , \ *iscsipassword*\ , \ *iscsiserver*\ , \ *iscsitarget*\ , \ *iscsiuserid*\ , \ *kcmdline*\ , \ *kernel*\ , \ *linkports*\ , \ *mac*\ , \ *membergroups*\ , \ *members*\ , \ *memory*\ , \ *mgt*\ , \ *micbridge*\ , \ *michost*\ , \ *micid*\ , \ *miconboot*\ , \ *micpowermgt*\ , \ *micvlog*\ , \ *migrationdest*\ , \ *monserver*\ , \ *mpa*\ , \ *mtm*\ , \ *nameservers*\ , \ *netboot*\ , \ *nfsdir*\ , \ *nfsserver*\ , \ *nicaliases*\ , \ *niccustomscripts*\ , \ *nicdevices*\ , \ *nicextraparams*\ , \ *nichostnameprefixes*\ , \ *nichostnamesuffixes*\ , \ *nicips*\ , \ *nicnetworks*\ , \ *nicsadapter*\ , \ *nictypes*\ , \ *nimserver*\ , \ *nodetype*\ , \ *ondiscover*\ , \ *os*\ , \ *osvolume*\ , \ *otherinterfaces*\ , \ *ou*\ , \ *parent*\ , \ *passwd.HMC*\ , \ *passwd.admin*\ , \ *passwd.celogin*\ , \ *passwd.general*\ , \ *passwd.hscroot*\ , \ *password*\ , \ *postbootscripts*\ , \ *postscripts*\ , \ *power*\ , \ *pprofile*\ , \ *prescripts-begin*\ , \ *prescripts-end*\ , \ *primarynic*\ , \ *productkey*\ , \ *profile*\ , \ *protocol*\ , \ *provmethod*\ , \ *rack*\ , \ *room*\ , \ *routenames*\ , \ *serial*\ , \ *serialflow*\ , \ *serialport*\ , \ *serialspeed*\ , \ *servicenode*\ , \ *setupconserver*\ , \ *setupdhcp*\ , \ *setupftp*\ , \ *setupipforward*\ , \ *setupldap*\ , \ *setupnameserver*\ , \ *setupnfs*\ , \ *setupnim*\ , \ *setupntp*\ , \ *setupproxydhcp*\ , \ *setuptftp*\ , \ *sfp*\ , \ *side*\ , \ *slot*\ , \ *slotid*\ , \ *slots*\ , \ *snmpauth*\ , \ *snmppassword*\ , \ *snmpprivacy*\ , \ *snmpusername*\ , \ *snmpversion*\ , \ *storagcontroller*\ , \ *storagetype*\ , \ *supernode*\ , \ *supportedarchs*\ , \ *supportproxydhcp*\ , \ *switch*\ , \ *switchinterface*\ , \ *switchport*\ , \ *switchtype*\ , \ *switchvlan*\ , \ *syslog*\ , \ *termport*\ , \ *termserver*\ , \ *tftpdir*\ , \ *tftpserver*\ , \ *unit*\ , \ *urlpath*\ , \ *usercomment*\ , \ *userid*\ , \ *username*\ , \ *vmbeacon*\ , \ *vmbootorder*\ , \ *vmcfgstore*\ , \ *vmcluster*\ , \ *vmcpus*\ , \ *vmhost*\ , \ *vmmanager*\ , \ *vmmaster*\ , \ *vmmemory*\ , \ *vmnicnicmodel*\ , \ *vmnics*\ , \ *vmothersetting*\ , \ *vmphyslots*\ , \ *vmstorage*\ , \ *vmstoragecache*\ , \ *vmstorageformat*\ , \ *vmstoragemodel*\ , \ *vmtextconsole*\ , \ *vmvirtflags*\ , \ *vmvncport*\ , \ *webport*\ , \ *wherevals*\ , \ *xcatmaster*\ +\ **group Attributes:**\ \ *addkcmdline*\ , \ *arch*\ , \ *authdomain*\ , \ *bmc*\ , \ *bmcpassword*\ , \ *bmcport*\ , \ *bmcusername*\ , \ *bmcvlantag*\ , \ *cfgmgr*\ , \ *cfgmgtroles*\ , \ *cfgserver*\ , \ *chain*\ , \ *chassis*\ , \ *cmdmapping*\ , \ *cons*\ , \ *conserver*\ , \ *consoleondemand*\ , \ *cpucount*\ , \ *cputype*\ , \ *currchain*\ , \ *currstate*\ , \ *dhcpinterfaces*\ , \ *disksize*\ , \ *displayname*\ , \ *dockercpus*\ , \ *dockerflag*\ , \ *dockerhost*\ , \ *dockermemory*\ , \ *dockernics*\ , \ *domainadminpassword*\ , \ *domainadminuser*\ , \ *domaintype*\ , \ *getmac*\ , \ *groupname*\ , \ *grouptype*\ , \ *hcp*\ , \ *height*\ , \ *hostcluster*\ , \ *hostinterface*\ , \ *hostmanager*\ , \ *hostnames*\ , \ *hosttype*\ , \ *hwtype*\ , \ *id*\ , \ *initrd*\ , \ *installnic*\ , \ *interface*\ , \ *ip*\ , \ *iscsipassword*\ , \ *iscsiserver*\ , \ *iscsitarget*\ , \ *iscsiuserid*\ , \ *kcmdline*\ , \ *kernel*\ , \ *linkports*\ , \ *mac*\ , \ *membergroups*\ , \ *members*\ , \ *memory*\ , \ *mgt*\ , \ *micbridge*\ , \ *michost*\ , \ *micid*\ , \ *miconboot*\ , \ *micpowermgt*\ , \ *micvlog*\ , \ *migrationdest*\ , \ *monserver*\ , \ *mpa*\ , \ *mtm*\ , \ *nameservers*\ , \ *netboot*\ , \ *nfsdir*\ , \ *nfsserver*\ , \ *nicaliases*\ , \ *niccustomscripts*\ , \ *nicdevices*\ , \ *nicextraparams*\ , \ *nichostnameprefixes*\ , \ *nichostnamesuffixes*\ , \ *nicips*\ , \ *nicnetworks*\ , \ *nicsadapter*\ , \ *nictypes*\ , \ *nimserver*\ , \ *nodetype*\ , \ *ondiscover*\ , \ *os*\ , \ *osvolume*\ , \ *otherinterfaces*\ , \ *ou*\ , \ *parent*\ , \ *passwd.HMC*\ , \ *passwd.admin*\ , \ *passwd.celogin*\ , \ *passwd.general*\ , \ *passwd.hscroot*\ , \ *password*\ , \ *postbootscripts*\ , \ *postscripts*\ , \ *power*\ , \ *pprofile*\ , \ *prescripts-begin*\ , \ *prescripts-end*\ , \ *primarynic*\ , \ *productkey*\ , \ *profile*\ , \ *protocol*\ , \ *provmethod*\ , \ *rack*\ , \ *room*\ , \ *routenames*\ , \ *serial*\ , \ *serialflow*\ , \ *serialport*\ , \ *serialspeed*\ , \ *servicenode*\ , \ *setupconserver*\ , \ *setupdhcp*\ , \ *setupftp*\ , \ *setupipforward*\ , \ *setupldap*\ , \ *setupnameserver*\ , \ *setupnfs*\ , \ *setupnim*\ , \ *setupntp*\ , \ *setupproxydhcp*\ , \ *setuptftp*\ , \ *sfp*\ , \ *side*\ , \ *slot*\ , \ *slotid*\ , \ *slots*\ , \ *snmpauth*\ , \ *snmppassword*\ , \ *snmpprivacy*\ , \ *snmpusername*\ , \ *snmpversion*\ , \ *storagcontroller*\ , \ *storagetype*\ , \ *supernode*\ , \ *supportedarchs*\ , \ *supportproxydhcp*\ , \ *switch*\ , \ *switchinterface*\ , \ *switchport*\ , \ *switchtype*\ , \ *switchvlan*\ , \ *syslog*\ , \ *termport*\ , \ *termserver*\ , \ *tftpdir*\ , \ *tftpserver*\ , \ *unit*\ , \ *urlpath*\ , \ *usercomment*\ , \ *userid*\ , \ *username*\ , \ *vmbeacon*\ , \ *vmbootorder*\ , \ *vmcfgstore*\ , \ *vmcluster*\ , \ *vmcpus*\ , \ *vmhost*\ , \ *vmmanager*\ , \ *vmmaster*\ , \ *vmmemory*\ , \ *vmnicnicmodel*\ , \ *vmnics*\ , \ *vmothersetting*\ , \ *vmphyslots*\ , \ *vmstorage*\ , \ *vmstoragecache*\ , \ *vmstorageformat*\ , \ *vmstoragemodel*\ , \ *vmtextconsole*\ , \ *vmvirtflags*\ , \ *vmvncport*\ , \ *webport*\ , \ *wherevals*\ , \ *xcatmaster*\ *********** @@ -121,6 +121,12 @@ group Attributes: +\ **bmcvlantag**\ (ipmi.taggedvlan) + + bmcsetup script will configure the network interface of the BMC to be tagged to the VLAN specified. + + + \ **cfgmgr**\ (cfgmgt.cfgmgr) The name of the configuration manager service. Currently 'chef' and 'puppet' are supported services. @@ -141,7 +147,7 @@ group Attributes: \ **chain**\ (chain.chain) - A comma-delimited chain of actions to be performed automatically when this node is discovered. ("Discovered" means a node booted, but xCAT and DHCP did not recognize the MAC of this node. In this situation, xCAT initiates the discovery process, the last step of which is to run the operations listed in this chain attribute, one by one.) Valid values: boot, runcmd=, runimage=, shell, standby. (Default - same as no chain - it will do only the discovery.). Example, for BMC machines use: runcmd=bmcsetup,shell. + A comma-delimited chain of actions to be performed automatically when this node is discovered for the first time. (xCAT and the DHCP server do not recognize the MAC address of the node when xCAT initializes the discovery process.) The last step in this process is to run the operations listed in the chain attribute, one by one. Valid values: boot, runcmd=, runimage=, shell, standby. For example, to have the genesis kernel pause to the shell, use chain=shell. @@ -171,7 +177,7 @@ group Attributes: \ **consoleondemand**\ (nodehm.consoleondemand) - This overrides the value from site.consoleondemand; (0=no, 1=yes). Default is the result from site.consoleondemand. + This overrides the value from site.consoleondemand. Set to 'yes', 'no', '1' (equivalent to 'yes'), or '0' (equivalent to 'no'). If not set, the default is the value from site.consoleondemand. @@ -419,7 +425,7 @@ group Attributes: \ **linkports**\ (switches.linkports) - The ports that connect to other switches. Currently, this column is only used by vlan configuration. The format is: "port_number:switch,port_number:switch...". Please refer to the switch table for details on how to specify the port numbers. + The ports that connect to other switches. Currently, this column is only used by vlan configuration. The format is: "port_number:switch,port_number:switch...". Refer to the switch table for details on how to specify the port numbers. @@ -739,7 +745,7 @@ group Attributes: or - The remote login password. It can be for ssh or telnet. If it is for telnet, please set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. + The remote login password. It can be for ssh or telnet. If it is for telnet, set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. @@ -1142,7 +1148,7 @@ group Attributes: or - The remote login user name. It can be for ssh or telnet. If it is for telnet, please set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. + The remote login user name. It can be for ssh or telnet. If it is for telnet, set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. @@ -1220,7 +1226,7 @@ group Attributes: \ **vmphyslots**\ (vm.physlots) - Specify the physical slots drc index that will assigned to the partition, the delimiter is ',', and the drc index must started with '0x'. For more details, please reference to manpage of 'lsvm'. + Specify the physical slots drc index that will assigned to the partition, the delimiter is ',', and the drc index must started with '0x'. For more details, reference manpage for 'lsvm'. diff --git a/docs/source/guides/admin-guides/references/man7/monitoring.7.rst b/docs/source/guides/admin-guides/references/man7/monitoring.7.rst index 8f74ca22cc..8c7953e7f3 100644 --- a/docs/source/guides/admin-guides/references/man7/monitoring.7.rst +++ b/docs/source/guides/admin-guides/references/man7/monitoring.7.rst @@ -53,7 +53,7 @@ monitoring Attributes: \ **name**\ (monitoring.name) - The name of the monitoring plug-in module. The plug-in must be put in /opt/xcat/lib/perl/xCAT_monitoring/. See the man page for monstart for details. + The name of the monitoring plug-in module. The plug-in must be put in /lib/perl/xCAT_monitoring/. See the man page for monstart for details. diff --git a/docs/source/guides/admin-guides/references/man7/network.7.rst b/docs/source/guides/admin-guides/references/man7/network.7.rst index 4a59f71ca3..644e12908d 100644 --- a/docs/source/guides/admin-guides/references/man7/network.7.rst +++ b/docs/source/guides/admin-guides/references/man7/network.7.rst @@ -19,7 +19,7 @@ SYNOPSIS ******** -\ **network Attributes:**\ \ *ddnsdomain*\ , \ *dhcpserver*\ , \ *domain*\ , \ *dynamicrange*\ , \ *gateway*\ , \ *logservers*\ , \ *mask*\ , \ *mgtifname*\ , \ *nameservers*\ , \ *net*\ , \ *netname*\ , \ *nodehostname*\ , \ *ntpservers*\ , \ *staticrange*\ , \ *staticrangeincrement*\ , \ *tftpserver*\ , \ *usercomment*\ , \ *vlanid*\ +\ **network Attributes:**\ \ *ddnsdomain*\ , \ *dhcpserver*\ , \ *domain*\ , \ *dynamicrange*\ , \ *gateway*\ , \ *logservers*\ , \ *mask*\ , \ *mgtifname*\ , \ *mtu*\ , \ *nameservers*\ , \ *net*\ , \ *netname*\ , \ *nodehostname*\ , \ *ntpservers*\ , \ *staticrange*\ , \ *staticrangeincrement*\ , \ *tftpserver*\ , \ *usercomment*\ , \ *vlanid*\ *********** @@ -87,6 +87,12 @@ network Attributes: +\ **mtu**\ (networks.mtu) + + The default MTU for the network + + + \ **nameservers**\ (networks.nameservers) A comma delimited list of DNS servers that each node in this network should use. This value will end up in the nameserver settings of the /etc/resolv.conf on each node in this network. If this attribute value is set to the IP address of an xCAT node, make sure DNS is running on it. In a hierarchical cluster, you can also set this attribute to "" to mean the DNS server for each node in this network should be the node that is managing it (either its service node or the management node). Used in creating the DHCP network definition, and DNS configuration. diff --git a/docs/source/guides/admin-guides/references/man7/node.7.rst b/docs/source/guides/admin-guides/references/man7/node.7.rst index 19171544f7..1ff923cbb9 100644 --- a/docs/source/guides/admin-guides/references/man7/node.7.rst +++ b/docs/source/guides/admin-guides/references/man7/node.7.rst @@ -19,7 +19,7 @@ SYNOPSIS ******** -\ **node Attributes:**\ \ *addkcmdline*\ , \ *appstatus*\ , \ *appstatustime*\ , \ *arch*\ , \ *authdomain*\ , \ *bmc*\ , \ *bmcpassword*\ , \ *bmcport*\ , \ *bmcusername*\ , \ *cfgmgr*\ , \ *cfgmgtroles*\ , \ *cfgserver*\ , \ *chain*\ , \ *chassis*\ , \ *cmdmapping*\ , \ *cons*\ , \ *conserver*\ , \ *consoleondemand*\ , \ *cpucount*\ , \ *cputype*\ , \ *currchain*\ , \ *currstate*\ , \ *dhcpinterfaces*\ , \ *disksize*\ , \ *displayname*\ , \ *dockercpus*\ , \ *dockerflag*\ , \ *dockerhost*\ , \ *dockermemory*\ , \ *dockernics*\ , \ *domainadminpassword*\ , \ *domainadminuser*\ , \ *domaintype*\ , \ *getmac*\ , \ *groups*\ , \ *hcp*\ , \ *height*\ , \ *hidden*\ , \ *hostcluster*\ , \ *hostinterface*\ , \ *hostmanager*\ , \ *hostnames*\ , \ *hosttype*\ , \ *hwtype*\ , \ *id*\ , \ *initrd*\ , \ *installnic*\ , \ *interface*\ , \ *ip*\ , \ *iscsipassword*\ , \ *iscsiserver*\ , \ *iscsitarget*\ , \ *iscsiuserid*\ , \ *kcmdline*\ , \ *kernel*\ , \ *linkports*\ , \ *mac*\ , \ *memory*\ , \ *mgt*\ , \ *micbridge*\ , \ *michost*\ , \ *micid*\ , \ *miconboot*\ , \ *micpowermgt*\ , \ *micvlog*\ , \ *migrationdest*\ , \ *monserver*\ , \ *mpa*\ , \ *mtm*\ , \ *nameservers*\ , \ *netboot*\ , \ *nfsdir*\ , \ *nfsserver*\ , \ *nicaliases*\ , \ *niccustomscripts*\ , \ *nicdevices*\ , \ *nicextraparams*\ , \ *nichostnameprefixes*\ , \ *nichostnamesuffixes*\ , \ *nicips*\ , \ *nicnetworks*\ , \ *nicsadapter*\ , \ *nictypes*\ , \ *nimserver*\ , \ *node*\ , \ *nodetype*\ , \ *ondiscover*\ , \ *os*\ , \ *osvolume*\ , \ *otherinterfaces*\ , \ *ou*\ , \ *parent*\ , \ *passwd.HMC*\ , \ *passwd.admin*\ , \ *passwd.celogin*\ , \ *passwd.general*\ , \ *passwd.hscroot*\ , \ *password*\ , \ *postbootscripts*\ , \ *postscripts*\ , \ *power*\ , \ *pprofile*\ , \ *prescripts-begin*\ , \ *prescripts-end*\ , \ *primarynic*\ , \ *primarysn*\ , \ *productkey*\ , \ *profile*\ , \ *protocol*\ , \ *provmethod*\ , \ *rack*\ , \ *room*\ , \ *routenames*\ , \ *serial*\ , \ *serialflow*\ , \ *serialport*\ , \ *serialspeed*\ , \ *servicenode*\ , \ *setupconserver*\ , \ *setupdhcp*\ , \ *setupftp*\ , \ *setupipforward*\ , \ *setupldap*\ , \ *setupnameserver*\ , \ *setupnfs*\ , \ *setupnim*\ , \ *setupntp*\ , \ *setupproxydhcp*\ , \ *setuptftp*\ , \ *sfp*\ , \ *side*\ , \ *slot*\ , \ *slotid*\ , \ *slots*\ , \ *snmpauth*\ , \ *snmppassword*\ , \ *snmpprivacy*\ , \ *snmpusername*\ , \ *snmpversion*\ , \ *status*\ , \ *statustime*\ , \ *storagcontroller*\ , \ *storagetype*\ , \ *supernode*\ , \ *supportedarchs*\ , \ *supportproxydhcp*\ , \ *switch*\ , \ *switchinterface*\ , \ *switchport*\ , \ *switchtype*\ , \ *switchvlan*\ , \ *syslog*\ , \ *termport*\ , \ *termserver*\ , \ *tftpdir*\ , \ *tftpserver*\ , \ *unit*\ , \ *updatestatus*\ , \ *updatestatustime*\ , \ *urlpath*\ , \ *usercomment*\ , \ *userid*\ , \ *username*\ , \ *vmbeacon*\ , \ *vmbootorder*\ , \ *vmcfgstore*\ , \ *vmcluster*\ , \ *vmcpus*\ , \ *vmhost*\ , \ *vmmanager*\ , \ *vmmaster*\ , \ *vmmemory*\ , \ *vmnicnicmodel*\ , \ *vmnics*\ , \ *vmothersetting*\ , \ *vmphyslots*\ , \ *vmstorage*\ , \ *vmstoragecache*\ , \ *vmstorageformat*\ , \ *vmstoragemodel*\ , \ *vmtextconsole*\ , \ *vmvirtflags*\ , \ *vmvncport*\ , \ *webport*\ , \ *xcatmaster*\ , \ *zonename*\ +\ **node Attributes:**\ \ *addkcmdline*\ , \ *appstatus*\ , \ *appstatustime*\ , \ *arch*\ , \ *authdomain*\ , \ *bmc*\ , \ *bmcpassword*\ , \ *bmcport*\ , \ *bmcusername*\ , \ *bmcvlantag*\ , \ *cfgmgr*\ , \ *cfgmgtroles*\ , \ *cfgserver*\ , \ *chain*\ , \ *chassis*\ , \ *cmdmapping*\ , \ *cons*\ , \ *conserver*\ , \ *consoleondemand*\ , \ *cpucount*\ , \ *cputype*\ , \ *currchain*\ , \ *currstate*\ , \ *dhcpinterfaces*\ , \ *disksize*\ , \ *displayname*\ , \ *dockercpus*\ , \ *dockerflag*\ , \ *dockerhost*\ , \ *dockermemory*\ , \ *dockernics*\ , \ *domainadminpassword*\ , \ *domainadminuser*\ , \ *domaintype*\ , \ *getmac*\ , \ *groups*\ , \ *hcp*\ , \ *height*\ , \ *hidden*\ , \ *hostcluster*\ , \ *hostinterface*\ , \ *hostmanager*\ , \ *hostnames*\ , \ *hosttype*\ , \ *hwtype*\ , \ *id*\ , \ *initrd*\ , \ *installnic*\ , \ *interface*\ , \ *ip*\ , \ *iscsipassword*\ , \ *iscsiserver*\ , \ *iscsitarget*\ , \ *iscsiuserid*\ , \ *kcmdline*\ , \ *kernel*\ , \ *linkports*\ , \ *mac*\ , \ *memory*\ , \ *mgt*\ , \ *micbridge*\ , \ *michost*\ , \ *micid*\ , \ *miconboot*\ , \ *micpowermgt*\ , \ *micvlog*\ , \ *migrationdest*\ , \ *monserver*\ , \ *mpa*\ , \ *mtm*\ , \ *nameservers*\ , \ *netboot*\ , \ *nfsdir*\ , \ *nfsserver*\ , \ *nicaliases*\ , \ *niccustomscripts*\ , \ *nicdevices*\ , \ *nicextraparams*\ , \ *nichostnameprefixes*\ , \ *nichostnamesuffixes*\ , \ *nicips*\ , \ *nicnetworks*\ , \ *nicsadapter*\ , \ *nictypes*\ , \ *nimserver*\ , \ *node*\ , \ *nodetype*\ , \ *ondiscover*\ , \ *os*\ , \ *osvolume*\ , \ *otherinterfaces*\ , \ *ou*\ , \ *parent*\ , \ *passwd.HMC*\ , \ *passwd.admin*\ , \ *passwd.celogin*\ , \ *passwd.general*\ , \ *passwd.hscroot*\ , \ *password*\ , \ *postbootscripts*\ , \ *postscripts*\ , \ *power*\ , \ *pprofile*\ , \ *prescripts-begin*\ , \ *prescripts-end*\ , \ *primarynic*\ , \ *primarysn*\ , \ *productkey*\ , \ *profile*\ , \ *protocol*\ , \ *provmethod*\ , \ *rack*\ , \ *room*\ , \ *routenames*\ , \ *serial*\ , \ *serialflow*\ , \ *serialport*\ , \ *serialspeed*\ , \ *servicenode*\ , \ *setupconserver*\ , \ *setupdhcp*\ , \ *setupftp*\ , \ *setupipforward*\ , \ *setupldap*\ , \ *setupnameserver*\ , \ *setupnfs*\ , \ *setupnim*\ , \ *setupntp*\ , \ *setupproxydhcp*\ , \ *setuptftp*\ , \ *sfp*\ , \ *side*\ , \ *slot*\ , \ *slotid*\ , \ *slots*\ , \ *snmpauth*\ , \ *snmppassword*\ , \ *snmpprivacy*\ , \ *snmpusername*\ , \ *snmpversion*\ , \ *status*\ , \ *statustime*\ , \ *storagcontroller*\ , \ *storagetype*\ , \ *supernode*\ , \ *supportedarchs*\ , \ *supportproxydhcp*\ , \ *switch*\ , \ *switchinterface*\ , \ *switchport*\ , \ *switchtype*\ , \ *switchvlan*\ , \ *syslog*\ , \ *termport*\ , \ *termserver*\ , \ *tftpdir*\ , \ *tftpserver*\ , \ *unit*\ , \ *updatestatus*\ , \ *updatestatustime*\ , \ *urlpath*\ , \ *usercomment*\ , \ *userid*\ , \ *username*\ , \ *vmbeacon*\ , \ *vmbootorder*\ , \ *vmcfgstore*\ , \ *vmcluster*\ , \ *vmcpus*\ , \ *vmhost*\ , \ *vmmanager*\ , \ *vmmaster*\ , \ *vmmemory*\ , \ *vmnicnicmodel*\ , \ *vmnics*\ , \ *vmothersetting*\ , \ *vmphyslots*\ , \ *vmstorage*\ , \ *vmstoragecache*\ , \ *vmstorageformat*\ , \ *vmstoragemodel*\ , \ *vmtextconsole*\ , \ *vmvirtflags*\ , \ *vmvncport*\ , \ *webport*\ , \ *xcatmaster*\ , \ *zonename*\ *********** @@ -133,6 +133,12 @@ node Attributes: +\ **bmcvlantag**\ (ipmi.taggedvlan) + + bmcsetup script will configure the network interface of the BMC to be tagged to the VLAN specified. + + + \ **cfgmgr**\ (cfgmgt.cfgmgr) The name of the configuration manager service. Currently 'chef' and 'puppet' are supported services. @@ -153,7 +159,7 @@ node Attributes: \ **chain**\ (chain.chain) - A comma-delimited chain of actions to be performed automatically when this node is discovered. ("Discovered" means a node booted, but xCAT and DHCP did not recognize the MAC of this node. In this situation, xCAT initiates the discovery process, the last step of which is to run the operations listed in this chain attribute, one by one.) Valid values: boot, runcmd=, runimage=, shell, standby. (Default - same as no chain - it will do only the discovery.). Example, for BMC machines use: runcmd=bmcsetup,shell. + A comma-delimited chain of actions to be performed automatically when this node is discovered for the first time. (xCAT and the DHCP server do not recognize the MAC address of the node when xCAT initializes the discovery process.) The last step in this process is to run the operations listed in the chain attribute, one by one. Valid values: boot, runcmd=, runimage=, shell, standby. For example, to have the genesis kernel pause to the shell, use chain=shell. @@ -183,7 +189,7 @@ node Attributes: \ **consoleondemand**\ (nodehm.consoleondemand) - This overrides the value from site.consoleondemand; (0=no, 1=yes). Default is the result from site.consoleondemand. + This overrides the value from site.consoleondemand. Set to 'yes', 'no', '1' (equivalent to 'yes'), or '0' (equivalent to 'no'). If not set, the default is the value from site.consoleondemand. @@ -431,7 +437,7 @@ node Attributes: \ **linkports**\ (switches.linkports) - The ports that connect to other switches. Currently, this column is only used by vlan configuration. The format is: "port_number:switch,port_number:switch...". Please refer to the switch table for details on how to specify the port numbers. + The ports that connect to other switches. Currently, this column is only used by vlan configuration. The format is: "port_number:switch,port_number:switch...". Refer to the switch table for details on how to specify the port numbers. @@ -745,7 +751,7 @@ node Attributes: or - The remote login password. It can be for ssh or telnet. If it is for telnet, please set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. + The remote login password. It can be for ssh or telnet. If it is for telnet, set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. @@ -1026,7 +1032,7 @@ node Attributes: \ **status**\ (nodelist.status) - The current status of this node. This attribute will be set by xCAT software. Valid values: defined, booting, netbooting, booted, discovering, configuring, installing, alive, standingby, powering-off, unreachable. If blank, defined is assumed. The possible status change sequences are: For installation: defined->[discovering]->[configuring]->[standingby]->installing->booting->booted->[alive], For diskless deployment: defined->[discovering]->[configuring]->[standingby]->netbooting->booted->[alive], For booting: [alive/unreachable]->booting->[alive], For powering off: [alive]->powering-off->[unreachable], For monitoring: alive->unreachable. Discovering and configuring are for x Series discovery process. Alive and unreachable are set only when there is a monitoring plug-in start monitor the node status for xCAT. Please note that the status values will not reflect the real node status if you change the state of the node from outside of xCAT (i.e. power off the node using HMC GUI). + The current status of this node. This attribute will be set by xCAT software. Valid values: defined, booting, netbooting, booted, discovering, configuring, installing, alive, standingby, powering-off, unreachable. If blank, defined is assumed. The possible status change sequences are: For installation: defined->[discovering]->[configuring]->[standingby]->installing->booting->booted->[alive], For diskless deployment: defined->[discovering]->[configuring]->[standingby]->netbooting->booted->[alive], For booting: [alive/unreachable]->booting->[alive], For powering off: [alive]->powering-off->[unreachable], For monitoring: alive->unreachable. Discovering and configuring are for x Series discovery process. Alive and unreachable are set only when there is a monitoring plug-in start monitor the node status for xCAT. Note that the status values will not reflect the real node status if you change the state of the node from outside of xCAT (i.e. power off the node using HMC GUI). @@ -1178,7 +1184,7 @@ node Attributes: or - The remote login user name. It can be for ssh or telnet. If it is for telnet, please set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. + The remote login user name. It can be for ssh or telnet. If it is for telnet, set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. @@ -1256,7 +1262,7 @@ node Attributes: \ **vmphyslots**\ (vm.physlots) - Specify the physical slots drc index that will assigned to the partition, the delimiter is ',', and the drc index must started with '0x'. For more details, please reference to manpage of 'lsvm'. + Specify the physical slots drc index that will assigned to the partition, the delimiter is ',', and the drc index must started with '0x'. For more details, reference manpage for 'lsvm'. diff --git a/docs/source/guides/admin-guides/references/man7/osimage.7.rst b/docs/source/guides/admin-guides/references/man7/osimage.7.rst index a889274745..287d406b61 100644 --- a/docs/source/guides/admin-guides/references/man7/osimage.7.rst +++ b/docs/source/guides/admin-guides/references/man7/osimage.7.rst @@ -313,7 +313,17 @@ osimage Attributes: \ **postinstall**\ (linuximage.postinstall) - The fully qualified name of the script file that will be run at the end of the genimage command. It could be set to multiple paths. The multiple paths must be separated by ",". It is used for diskless image only. + Only supported in diskless image only. The fully qualified name of the scripts running in non-chroot mode after the package installation but before initrd generation during genimage. If multiple scripts are specified, they should be speperated with comma ",". A set of osimage attributes are exported as the environment variables to be used in the postinstall scripts: + IMG_ARCH(The architecture of the osimage, such as "ppc64le","x86_64"), + IMG_NAME(The name of the osimage, such as "rhels7.3-ppc64le-netboot-compute"), + IMG_OSVER(The os release of the osimage, such as "rhels7.3","sles11.4"), + IMG_KERNELVERSION(the "kernelver" attribute of the osimage), + IMG_PROFILE(the profile of the osimage, such as "service","compute"), + IMG_PKGLIST(the "pkglist" attribute of the osimage), + IMG_PKGDIR(the "pkgdir" attribute of the osimage), + IMG_OTHERPKGLIST(the "otherpkglist" attribute of the osimage), + IMG_OTHERPKGDIR(the "otherpkgdir" attribute of the osimage), + IMG_ROOTIMGDIR(the "rootimgdir" attribute of the osimage) diff --git a/docs/source/guides/admin-guides/references/tools/reorgtbls.rst b/docs/source/guides/admin-guides/references/tools/reorgtbls.rst index 1830cb636f..a544a13e9a 100644 --- a/docs/source/guides/admin-guides/references/tools/reorgtbls.rst +++ b/docs/source/guides/admin-guides/references/tools/reorgtbls.rst @@ -8,7 +8,7 @@ reorgtbls Usage: --V - Verbose mode --h - usage - --t -comma delimitated list of tables. + --t -comma delimited list of tables. Without this flag it reorgs all tables in the xcatdb database . Author: Lissa Valletta diff --git a/docs/source/guides/admin-guides/references/tools/test_hca_state.rst b/docs/source/guides/admin-guides/references/tools/test_hca_state.rst index 6771e8f405..abe5e67818 100644 --- a/docs/source/guides/admin-guides/references/tools/test_hca_state.rst +++ b/docs/source/guides/admin-guides/references/tools/test_hca_state.rst @@ -26,7 +26,7 @@ test_hca_state Having consistent OFED settings, and even HCA firmware, can be very important for a properly functioning InfiniBand fabric. This tool can help you confirm that your nodes are using the settings you - want, and if any nodes have settings descrepancies. + want, and if any nodes have settings discrepancies. Example output: diff --git a/docs/source/guides/install-guides/apt/automatic_install.rst b/docs/source/guides/install-guides/apt/automatic_install.rst new file mode 100644 index 0000000000..84dd06fd8f --- /dev/null +++ b/docs/source/guides/install-guides/apt/automatic_install.rst @@ -0,0 +1,6 @@ +Automatic Install Using ``go-xcat`` +=================================== + +.. include:: ../common_sections.rst + :start-after: BEGIN_automatic_install + :end-before: END_automatic_install diff --git a/docs/source/guides/install-guides/apt/configure_xcat.rst b/docs/source/guides/install-guides/apt/configure_xcat.rst index 435b57ba98..887ef327fc 100644 --- a/docs/source/guides/install-guides/apt/configure_xcat.rst +++ b/docs/source/guides/install-guides/apt/configure_xcat.rst @@ -12,14 +12,20 @@ From the xCAT download page, find the build you want to install and add to ``/et To configure the xCAT development build, add the following line to ``/etc/apt/sources.list``: :: - deb http://xcat.org/files/xcat/repos/apt/devel/core-snap trusty main + [For x86_64 servers] + deb [arch=amd64] http://xcat.org/files/xcat/repos/apt/devel/core-snap trusty main + [For ppc64el servers] + deb [arch=ppc64el] http://xcat.org/files/xcat/repos/apt/devel/core-snap trusty main **[xcat-dep]** To configure the xCAT deps online repository, add the following line to ``/etc/apt/sources.list``: :: - deb http://xcat.org/files/xcat/repos/apt/xcat-dep trusty main + [For x86_64 servers] + deb [arch=amd64] http://xcat.org/files/xcat/repos/apt/xcat-dep trusty main + [For ppc64el servers] + deb [arch=ppc64el] http://xcat.org/files/xcat/repos/apt/xcat-dep trusty main If using internet repositories, continue to the next step to install xCAT. diff --git a/docs/source/guides/install-guides/apt/install.rst b/docs/source/guides/install-guides/apt/install.rst index 06a597a7e5..0396dd0bae 100644 --- a/docs/source/guides/install-guides/apt/install.rst +++ b/docs/source/guides/install-guides/apt/install.rst @@ -2,15 +2,11 @@ Installing xCAT =============== .. include:: ../common_sections.rst - :start-after: BEGIN_install_xcat_introduction - :end-before: END_install_xcat_introduction - -xCAT is installed by configuring software repositories for ``xcat-core`` and ``xcat-dep`` and using apt-get package manager. The repositories can be publically hosted or locally hosted. + :start-after: BEGIN_installation_methods + :end-before: END_installation_methods .. toctree:: :maxdepth: 2 - configure_xcat.rst - install_xcat.rst - verify_xcat.rst - update_xcat.rst + automatic_install.rst + manual_install.rst diff --git a/docs/source/guides/install-guides/apt/manual_install.rst b/docs/source/guides/install-guides/apt/manual_install.rst new file mode 100644 index 0000000000..0f048e5f0f --- /dev/null +++ b/docs/source/guides/install-guides/apt/manual_install.rst @@ -0,0 +1,16 @@ +Manual Install Using Software Repositories +========================================== + +.. include:: ../common_sections.rst + :start-after: BEGIN_install_xcat_introduction + :end-before: END_install_xcat_introduction + +xCAT is installed by configuring software repositories for ``xcat-core`` and ``xcat-dep`` and using yum package manager. The repositories can be publicly hosted or locally hosted. + +.. toctree:: + :maxdepth: 2 + + configure_xcat.rst + install_xcat.rst + verify_xcat.rst + update_xcat.rst diff --git a/docs/source/guides/install-guides/common_sections.rst b/docs/source/guides/install-guides/common_sections.rst index 8405326751..d4fdad136f 100644 --- a/docs/source/guides/install-guides/common_sections.rst +++ b/docs/source/guides/install-guides/common_sections.rst @@ -52,6 +52,28 @@ xCAT consists of two software packages: ``xcat-core`` and ``xcat-dep`` .. END_install_xcat_introduction +.. BEGIN_installation_methods + +The following sections describe the different methods for installing xCAT. + +.. END_installation_methods + +.. BEGIN_automatic_install + +``go-xcat`` is a tool that can be used to fully install or update xCAT. ``go-xcat`` will automatically download the correct package manager repository file from xcat.org and use the public repository to install xCAT. If the xCAT management node does not have internet connectivity, use process described in the Manual Installation section of the guide. + +#. Download the ``go-xcat`` tool using ``wget``: :: + + wget http://xcat.org/files/go-xcat -O - >/tmp/go-xcat + chmod +x /tmp/go-xcat + +#. Run the ``go-xcat`` tool: :: + + /tmp/go-xcat install # installs the latest stable version of xCAT + /tmp/go-xcat -x devel install # installs the latest development version of xCAT + +.. END_automatic_install + .. BEGIN_configure_xcat_local_repo_xcat-core_RPM **[xcat-core]** diff --git a/docs/source/guides/install-guides/maintenance/uninstall_xcat.rst b/docs/source/guides/install-guides/maintenance/uninstall_xcat.rst index 8a2721aecd..bfc60691f1 100644 --- a/docs/source/guides/install-guides/maintenance/uninstall_xcat.rst +++ b/docs/source/guides/install-guides/maintenance/uninstall_xcat.rst @@ -58,7 +58,7 @@ Remove xCAT Files dpkg -l | awk '/xcat/ { print $2 }' - If you want to remove more cleanly. below list maybe helpful for you. They are the packages list of xcat installation tarball. These list are the whole RPMs list, it's possible for some RPMs not to be installed due to them are not suitable for your environment. Please do judgment by yourself. + If you want to remove more cleanly, the list bleow maybe helpful. Listed are the packages of xcat installation tarball. Some RPMs may not to be installed in a specific environment. * XCAT Core Packages list (xcat-core): diff --git a/docs/source/guides/install-guides/yum/automatic_install.rst b/docs/source/guides/install-guides/yum/automatic_install.rst new file mode 100644 index 0000000000..84dd06fd8f --- /dev/null +++ b/docs/source/guides/install-guides/yum/automatic_install.rst @@ -0,0 +1,6 @@ +Automatic Install Using ``go-xcat`` +=================================== + +.. include:: ../common_sections.rst + :start-after: BEGIN_automatic_install + :end-before: END_automatic_install diff --git a/docs/source/guides/install-guides/yum/install.rst b/docs/source/guides/install-guides/yum/install.rst index f21dddef41..0396dd0bae 100644 --- a/docs/source/guides/install-guides/yum/install.rst +++ b/docs/source/guides/install-guides/yum/install.rst @@ -2,15 +2,11 @@ Installing xCAT =============== .. include:: ../common_sections.rst - :start-after: BEGIN_install_xcat_introduction - :end-before: END_install_xcat_introduction - -xCAT is installed by configuring software repositories for ``xcat-core`` and ``xcat-dep`` and using yum package manager. The repositories can be publically hosted or locally hosted. + :start-after: BEGIN_installation_methods + :end-before: END_installation_methods .. toctree:: :maxdepth: 2 - configure_xcat.rst - install_xcat.rst - verify_xcat.rst - update_xcat.rst + automatic_install.rst + manual_install.rst diff --git a/docs/source/guides/install-guides/yum/manual_install.rst b/docs/source/guides/install-guides/yum/manual_install.rst new file mode 100644 index 0000000000..0f048e5f0f --- /dev/null +++ b/docs/source/guides/install-guides/yum/manual_install.rst @@ -0,0 +1,16 @@ +Manual Install Using Software Repositories +========================================== + +.. include:: ../common_sections.rst + :start-after: BEGIN_install_xcat_introduction + :end-before: END_install_xcat_introduction + +xCAT is installed by configuring software repositories for ``xcat-core`` and ``xcat-dep`` and using yum package manager. The repositories can be publicly hosted or locally hosted. + +.. toctree:: + :maxdepth: 2 + + configure_xcat.rst + install_xcat.rst + verify_xcat.rst + update_xcat.rst diff --git a/docs/source/guides/install-guides/zypper/automatic_install.rst b/docs/source/guides/install-guides/zypper/automatic_install.rst new file mode 100644 index 0000000000..84dd06fd8f --- /dev/null +++ b/docs/source/guides/install-guides/zypper/automatic_install.rst @@ -0,0 +1,6 @@ +Automatic Install Using ``go-xcat`` +=================================== + +.. include:: ../common_sections.rst + :start-after: BEGIN_automatic_install + :end-before: END_automatic_install diff --git a/docs/source/guides/install-guides/zypper/install.rst b/docs/source/guides/install-guides/zypper/install.rst index fc8a462352..0396dd0bae 100644 --- a/docs/source/guides/install-guides/zypper/install.rst +++ b/docs/source/guides/install-guides/zypper/install.rst @@ -2,16 +2,11 @@ Installing xCAT =============== .. include:: ../common_sections.rst - :start-after: BEGIN_install_xcat_introduction - :end-before: END_install_xcat_introduction - -xCAT is installed by configuring software repositories for ``xcat-core`` and ``xcat-dep`` and using zypper package manager. The repositories can be publically hosted or locally hosted. - + :start-after: BEGIN_installation_methods + :end-before: END_installation_methods .. toctree:: :maxdepth: 2 - configure_xcat.rst - install_xcat.rst - verify_xcat.rst - update_xcat.rst + automatic_install.rst + manual_install.rst diff --git a/docs/source/guides/install-guides/zypper/manual_install.rst b/docs/source/guides/install-guides/zypper/manual_install.rst new file mode 100644 index 0000000000..0f048e5f0f --- /dev/null +++ b/docs/source/guides/install-guides/zypper/manual_install.rst @@ -0,0 +1,16 @@ +Manual Install Using Software Repositories +========================================== + +.. include:: ../common_sections.rst + :start-after: BEGIN_install_xcat_introduction + :end-before: END_install_xcat_introduction + +xCAT is installed by configuring software repositories for ``xcat-core`` and ``xcat-dep`` and using yum package manager. The repositories can be publicly hosted or locally hosted. + +.. toctree:: + :maxdepth: 2 + + configure_xcat.rst + install_xcat.rst + verify_xcat.rst + update_xcat.rst diff --git a/docs/source/help.rst b/docs/source/help.rst index abbac5ecf2..15e0dde1e7 100644 --- a/docs/source/help.rst +++ b/docs/source/help.rst @@ -9,4 +9,4 @@ For support, we encourage the use of the GitHub issues system. * `documentation `_ issues can be opened against xcat-core project -The older email list is still availble: xcat-user@list.sourceforge.net +The older email list is still available: xcat-user@list.sourceforge.net diff --git a/docs/source/index.rst b/docs/source/index.rst index fb662bd60f..d507a22b71 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -18,7 +18,7 @@ renderfarms, online gaming infrastructure, and whatever tomorrows next buzzword You've reached xCAT documentation site, The main page product page is http://xcat.org **xCAT** is an open source project hosted on `GitHub `_. -Go to GitHub to view the source, open issues, ask questions, and particpate in the project. +Go to GitHub to view the source, open issues, ask questions, and participate in the project. Enjoy! diff --git a/docs/source/overview/architecture.rst b/docs/source/overview/architecture.rst index a0c7863a9b..07004e6726 100644 --- a/docs/source/overview/architecture.rst +++ b/docs/source/overview/architecture.rst @@ -9,7 +9,7 @@ xCAT Management Node (xCAT Mgmt Node): The server where xCAT software is installed and used as the single point to perform system management over the entire cluster. On this node, a database is configured to store the xCAT node definitions. Network services (dhcp, tftp, http, etc) are enabled to respond in Operating system deployment. Service Node: - One or more defined "slave" servers operating under the Management Node to assist in system management to reduce the load (cpu, network badnwidth) when using a single Management Node. This concept is necessary when managing very large clusters. + One or more defined "slave" servers operating under the Management Node to assist in system management to reduce the load (cpu, network bandwidth) when using a single Management Node. This concept is necessary when managing very large clusters. Compute Node: The compute nodes are the target servers which xCAT is managing. diff --git a/docs/source/overview/differentiators.rst b/docs/source/overview/differentiators.rst index b975bce9e5..f84bf0a8a8 100644 --- a/docs/source/overview/differentiators.rst +++ b/docs/source/overview/differentiators.rst @@ -8,7 +8,7 @@ Differentiators * Open Source - Eclipse Public License. Support contracts are also available, please contact IBM. + Eclipse Public License. Support contracts are also available, contact IBM. * Supports Multiple Operating Systems diff --git a/docs/source/overview/features.rst b/docs/source/overview/features.rst index c15ac84712..176d6b82a0 100644 --- a/docs/source/overview/features.rst +++ b/docs/source/overview/features.rst @@ -51,6 +51,7 @@ Features * Parallel ping #. Integrate xCAT in Cloud + * Openstack * SoftLayer diff --git a/docs/source/overview/quick_start.rst b/docs/source/overview/quick_start.rst index 7c64ee80b4..8bf22dfae7 100644 --- a/docs/source/overview/quick_start.rst +++ b/docs/source/overview/quick_start.rst @@ -65,7 +65,7 @@ When managing a cluster with hundreds or thousands of nodes, operating on many n #. Contribute to xCAT (Optional) -While using xCAT, if you find something (code, documentation, ...) that can be improved and you want to contribute that to xCAT, please do that for your and other xCAT users benefit. And welcome to xCAT community! +While using xCAT, if you find something (code, documentation, ...) that can be improved and you want to contribute that to xCAT, do that for your and other xCAT users benefit. And welcome to xCAT community! Refer to the :doc:`/developers/index` to learn how to contribute to xCAT community. diff --git a/docs/source/overview/xcat2_release.rst b/docs/source/overview/xcat2_release.rst index 1f128f8558..7a8d7dc9fb 100644 --- a/docs/source/overview/xcat2_release.rst +++ b/docs/source/overview/xcat2_release.rst @@ -14,6 +14,22 @@ xCAT 2.12.x |xCAT |New OS |New |New Feature | |Version | |Hardware | | +=================================+===============+=============+==================================+ +|| xCAT 2.12.3 | | |- GitHub Issues resolved | +|| 2016/09/30 | | |- rinv options for OpenPower | +|| | | |- switch based switch discovery | +| `2.12.3 Release Notes `_ | | |- mkdef takes file redirection | +| | | | | ++---------------------------------+---------------+-------------+----------------------------------+ +|| xCAT 2.12.2 |- UBT 16.04.1 | |- nodeset offline | +|| 2016/08/19 | | |- Enhance: node status update | +|| | | |- Support Bond for install nics | +| `2.12.2 Release Notes `_ | | | | +| | | | | ++---------------------------------+---------------+-------------+----------------------------------+ || xCAT 2.12.1 | | |- New xCAT install tool: go-xcat | || 2016/07/08 | | |- New opt: mkdef/lsdef --template | || | | |- Support rinstall for all OS/ARCH| diff --git a/docs/source/security/2015/20150312_openssl.rst b/docs/source/security/2015/20150312_openssl.rst new file mode 100644 index 0000000000..aa9a9e0963 --- /dev/null +++ b/docs/source/security/2015/20150312_openssl.rst @@ -0,0 +1,20 @@ +2015-03-12 - OpenSSL Vulnerabilities (FREAK) +============================================= + +OpenSSL announced security fixes on 01/08/15 in the following bulletin: https://www-origin.openssl.org/news/secadv/20150108.txt + +Advisory CVEs +------------- + +* CVE-2015-0204 **RSA silently downgrades to EXPORT_RSA [Client]** (Severity: Low) + +FREAK vulnerability CVE-2015-0204 is involved when 'RSA_EXPORT' ssl cipher suit is used in ssl server/client. + +Action +------ + +xCAT does not use RSA_EXPORT ciphers for ssl communication by default. However, xCAT does allow user to choose the ciphers from the site.xcatsslciphers attribute. + +Make sure you do not put RSA_EXPORT related ciphers in this attribute. + +It is recommended that you upgrade openssl to 1.0.1L and upper version for the fix of this problem. Go to the os distribution to get the latest openssl package. diff --git a/docs/source/security/2015/20150324_openssl.rst b/docs/source/security/2015/20150324_openssl.rst new file mode 100644 index 0000000000..d7080600b2 --- /dev/null +++ b/docs/source/security/2015/20150324_openssl.rst @@ -0,0 +1,12 @@ +2015-03-24 - OpenSSL Vulnerabilities +==================================== + +OpenSSL 1.0.2 introduced the "multiblock" performance improvement. This feature only applies on 64 bit x86 architecture platforms that support AES NI instructions. A defect in the implementation of "multiblock" can cause a segmentation fault within OpenSSL, thus enabling a potential DoS attack. + +This issue affects OpenSSL version: 1.0.2 + + +Action +------ + +xCAT uses OpenSSL for client-server communication but **does not** ship it. Upgrade OpenSSL to 1.0.2a or higher. diff --git a/docs/source/security/2015/20150403_openssl.rst b/docs/source/security/2015/20150403_openssl.rst new file mode 100644 index 0000000000..12262015cf --- /dev/null +++ b/docs/source/security/2015/20150403_openssl.rst @@ -0,0 +1,14 @@ +2015-04-03 - OpenSSL Vulnerabilities (BAR MITZVAH) +================================================== + +The RC4 Bar mitzvah attack is an attack on the SSL/TLS protocols when both the client and server have RC4 enabled. + +* http://www.darkreading.com/attacks-breaches/ssl-tls-suffers-bar-mitzvah-attack-/d/d-id/1319633 +* http://www.imperva.com/docs/HII_Attacking_SSL_when_using_RC4.pdf. + +Action +------ + +xCAT uses OpenSSL shipped with OS distribution for client-server communication. It does not use RC4 ciphers explicitly. However, it allows user to specify xcatsslciphers on the site table for ssl communication. It is recommended that the user not specify RC4 ciphers to avoid the Bar mitzvah attack. + +It is also recommended that the user go to the OS distribution to get latest OpenSSL package for the fix of this problem. diff --git a/docs/source/security/2015/20150519_openssl.rst b/docs/source/security/2015/20150519_openssl.rst new file mode 100644 index 0000000000..35220c4d0e --- /dev/null +++ b/docs/source/security/2015/20150519_openssl.rst @@ -0,0 +1,27 @@ +2015-05-19 - OpenSSL Vulnerabilities (VENOM) +============================================ + +Advisory CVEs +------------- + +* CVE-2015-3456 - **(aka VENOM) is a security flaw in the QEMU's Floppy Disk Controller (FDC) emulation.** + +VENOM vulnerability could expose virtual machines on unpatched host systems + +A new vulnerability known as VENOM has been discovered, which could allow an attacker to escape a guest virtual machine (VM) and access the host system along with other VMs running on this system. The VENOM bug could potentially allow an attacker to steal sensitive data on any of the virtual machines on this system and gain elevated access to the host''''s local network and its systems. + +The VENOM bug (CVE-2015-3456) exists in the virtual Floppy Disk Controller for the open-source hypervisor QEMU, which is installed by default in a number of virtualization infrastructures such as Xen hypervisors, the QEMU client, and Kernel-based Virtual Machine (KVM). VENOM does not affect VMware, Microsoft Hyper-V, and Bochs hypervisors. + +* QEMU: http://git.qemu.org/?p=qemu.git;a=commitdiff;h=e907746266721f305d67bc0718795fedee2e824c +* Xen Project: http://xenbits.xen.org/xsa/advisory-133.html +* Red Hat: https://access.redhat.com/articles/1444903 +* SUSE: https://www.suse.com/support/kb/doc.php?id=7016497 +* Ubuntu: http://www.ubuntu.com/usn/usn-2608-1/ + + +Action +------ + +xCAT does not ship any rpms that have QEMU component directly. However xCAT does make system calls to QEMU when doing KVM/Xen visualization. If you are using xCAT to manage KVM or Xen hosts and quests, get the latest rpms that have QEMU component from the os distro and do a upgrade on both xCAT management node and the KVM/Xen hosts. + + diff --git a/docs/source/security/2015/20150520_openssl.rst b/docs/source/security/2015/20150520_openssl.rst new file mode 100644 index 0000000000..9bb2ae6bda --- /dev/null +++ b/docs/source/security/2015/20150520_openssl.rst @@ -0,0 +1,20 @@ +2015-05-20 - OpenSSL Vulnerabilities (LOGJAM) +============================================= + +A Logjam vulnerability attacks openssl and web services on weak (512-bit) Diffie-Hellman key groups. Refer to the following documents for details. + +Main site: https://weakdh.org/ + +Server test: https://weakdh.org/sysadmin.html + +Refer to the following openssl link for more details regarding the fix: https://www.openssl.org/blog/blog/2015/05/20/logjam-freak-upcoming-changes/ + + OpenSSL 1.0.2 users should upgrade to 1.0.2b + OpenSSL 1.0.1 users should upgrade to 1.0.1n + +Action +------ + +xCAT uses OpenSSL for client-server communication but **does not** ship it. It uses the default ciphers from openssl. It also allows the user to customize it through site.xcatsslversion and site.xcatsslciphers. Make sure you do not enable DH or DHE ciphers. + +Get the latest openssl package from the os distros and upgrade it on all the xCAT management nodes, the service nodes and xCAT client nodes. diff --git a/docs/source/security/2015/20151203_openssl.rst b/docs/source/security/2015/20151203_openssl.rst new file mode 100644 index 0000000000..da5e9e7725 --- /dev/null +++ b/docs/source/security/2015/20151203_openssl.rst @@ -0,0 +1,42 @@ +2015-12-03 - OpenSSL Vulnerabilities +==================================== + +OpenSSL announced security fixes on 12/03/15 in the following bulletin: http://openssl.org/news/secadv/20151203.txt + +Advisory CVEs +------------- + +* CVE-2015-3193 - **BN_mod_exp may produce incorrect results on x86_64** (Severity:Moderate) + + OpenSSL 1.0.2 users should upgrade to 1.0.2e + +* CVE-2015-3194 - **Certificate verify crash with missing PSS parameter** (Severity:Moderate) + + OpenSSL 1.0.2 users should upgrade to 1.0.2e + OpenSSL 1.0.1 users should upgrade to 1.0.1q + +* CVE-2015-3195 - **X509_ATTRIBUTE memory leak** (Severity:Moderate) + + OpenSSL 1.0.2 users should upgrade to 1.0.2e + OpenSSL 1.0.1 users should upgrade to 1.0.1q + OpenSSL 1.0.0 users should upgrade to 1.0.0t + OpenSSL 0.9.8 users should upgrade to 0.9.8zh + +* CVE-2015-3196 - **Race condition handling PSK identify hint** (Severity:Low) + + OpenSSL 1.0.2 users should upgrade to 1.0.2d + OpenSSL 1.0.1 users should upgrade to 1.0.1p + OpenSSL 1.0.0 users should upgrade to 1.0.0t + +* CVE-2015-1794 - **Anon DH ServerKeyExchange with 0 p parameter** (Severity:Low) + + OpenSSL 1.0.2 users should upgrade to 1.0.2e + + +Action +------ + +xCAT uses OpenSSL for client-server communication but **does not** ship it. + +It is recommended to keep your OpenSSL levels up-to-date with the indicated versions in the security bulletins to prevent any potential security threats. + diff --git a/docs/source/security/2015/index.rst b/docs/source/security/2015/index.rst new file mode 100644 index 0000000000..4da7c19287 --- /dev/null +++ b/docs/source/security/2015/index.rst @@ -0,0 +1,12 @@ +2015 Notices +============ + +.. toctree:: + :maxdepth: 1 + + 20151203_openssl.rst + 20150520_openssl.rst + 20150519_openssl.rst + 20150403_openssl.rst + 20150324_openssl.rst + 20150312_openssl.rst diff --git a/docs/source/security/2016/20160815_openssl.rst b/docs/source/security/2016/20160815_openssl.rst new file mode 100644 index 0000000000..1a99c972d8 --- /dev/null +++ b/docs/source/security/2016/20160815_openssl.rst @@ -0,0 +1,18 @@ +2016-08-16 - OpenSSL Vulnerabilities +==================================== + +This vulnerability has no fix available at this time (other then mentioned patches below) + +Issue: https://bugzilla.redhat.com/show_bug.cgi?id=1359615 + +Patch: https://github.com/openssl/openssl/commit/0ed26acce328ec16a3aa635f1ca37365e8c7403a + +Advisory CVEs +------------- + +`CVE-2016-2180 `_ - OpenSSL is vulnerable to a denial of service, caused by an out-of-bounds read in the TS_OBJ_print_bio function. + +Action +------ + +xCAT uses OpenSSL for client-server communication but **does not** ship it. It is highly recommended to keep your OpenSSL levels up-to-date to prevent any potential security threats. diff --git a/docs/source/security/2016/20160824_openssl.rst b/docs/source/security/2016/20160824_openssl.rst new file mode 100644 index 0000000000..fdf724cc97 --- /dev/null +++ b/docs/source/security/2016/20160824_openssl.rst @@ -0,0 +1,31 @@ +2016-08-24 - OpenSSL Vulnerabilities (Sweet32) +============================================== + +**SWEET32: Birthday attacks against TLS ciphers with 64bit block size** + +**CVE-2016-2183** + +Description: OpenSSL could allow a remote attacker to obtain sensitive information, caused by an error in the in the Triple-DES on 64-bit block cipher, used as a part of the SSL/TLS protocol. By capturing large amounts of encrypted traffic between the SSL/TLS server and the client, a remote attacker able to conduct a man-in-the-middle attack could exploit this vulnerability to recover the plaintext data and obtain sensitive information. + +**CVE-2016-6329** + +Description: OpenVPN could allow a remote attacker to obtain sensitive information, caused by an error in the in the Triple-DES on 64-bit block cipher, used as a part of the SSL/TLS protocol. By capturing large amounts of encrypted traffic between the SSL/TLS server and the client, a remote attacker able to conduct a man-in-the-middle attack could exploit this vulnerability to recover the plaintext data and obtain sensitive information. + + +A detailed description of this issue can be seen in the following blog posting: https://www.openssl.org/blog/blog/2016/08/24/sweet32/ + + +Advisory CVEs +------------- + +* CVE-2016-2183 +* CVE-2016-6329 + +Action +------ + +xCAT uses OpenSSL for client-server communication but **does not** ship it. + +It is highly recommended to keep your OpenSSL levels up-to-date with the indicated versions in the security bulletins to prevent any potential security threats. Obtain the updated software packages from your Operating system distribution channels. + + diff --git a/docs/source/security/2016/index.rst b/docs/source/security/2016/index.rst index 3017c40ddd..43cebeb617 100644 --- a/docs/source/security/2016/index.rst +++ b/docs/source/security/2016/index.rst @@ -4,6 +4,8 @@ .. toctree:: :maxdepth: 1 + 20160824_openssl.rst + 20160815_openssl.rst 20160503_openssl.rst 20160301_openssl.rst 20160128_openssl.rst diff --git a/docs/source/security/index.rst b/docs/source/security/index.rst index 9952ab44f8..4f9535ac92 100644 --- a/docs/source/security/index.rst +++ b/docs/source/security/index.rst @@ -5,3 +5,4 @@ Security Notices :maxdepth: 2 2016/index.rst + 2015/index.rst diff --git a/makegenesisbuilderrpm b/makegenesisbuilderrpm index 12b3b312eb..ae6d3d0298 100755 --- a/makegenesisbuilderrpm +++ b/makegenesisbuilderrpm @@ -1,5 +1,7 @@ #!/bin/sh -VER=`cat Version` +VER=`git describe` +VER=${VER/-/.post} +VER=${VER/-/.} rpmbuild --version > /dev/null if [ $? -gt 0 ] then @@ -20,4 +22,4 @@ cp LICENSE.html $RPMROOT/BUILD cp xCAT-genesis-builder.spec $RPMROOT/SOURCES cd - rm -f $RPMROOT/SRPMS/xCAT-genesis-builder-$VER*rpm $RPMROOT/RPMS/*/xCAT-genesis-builder-$VER*rpm -rpmbuild -ba xCAT-genesis-builder/xCAT-genesis-builder.spec +rpmbuild -ba xCAT-genesis-builder/xCAT-genesis-builder.spec --define "version $VER" --define "release 1" diff --git a/makerpm b/makerpm index c3cd442dfd..912ddf3db6 100755 --- a/makerpm +++ b/makerpm @@ -50,11 +50,12 @@ function makenoarch { mkdir -p ${CURDIR}/xCAT-probe/lib/perl/xCAT/ cp -f ${CURDIR}/perl-xCAT/xCAT/NetworkUtils.pm ${CURDIR}/xCAT-probe/lib/perl/xCAT/ cp -f ${CURDIR}/perl-xCAT/xCAT/GlobalDef.pm ${CURDIR}/xCAT-probe/lib/perl/xCAT/ + cp -f ${CURDIR}/perl-xCAT/xCAT/ServiceNodeUtils.pm ${CURDIR}/xCAT-probe/lib/perl/xCAT/ fi tar --exclude .svn -czf $RPMROOT/SOURCES/$RPMNAME-$VER.tar.gz $RPMNAME rm -f $RPMROOT/SRPMS/$RPMNAME-$VER*rpm $RPMROOT/RPMS/noarch/$RPMNAME-$VER*rpm - rpmbuild $QUIET -ta $RPMROOT/SOURCES/$RPMNAME-$VER.tar.gz + rpmbuild $QUIET -ta $RPMROOT/SOURCES/$RPMNAME-$VER.tar.gz --define "version $VER" RC=$? if [ $RPMNAME = "xCAT-UI" ]; then @@ -136,7 +137,7 @@ function makexcat { rm -f $RPMROOT/SRPMS/$RPMNAME-$VER*rpm $RPMROOT/RPMS/$ARCH/$RPMNAME-$VER*rpm echo "Building $RPMROOT/RPMS/$ARCH/$RPMNAME-$VER-snap*.$ARCH.rpm $EMBEDTXT..." - rpmbuild $QUIET -ba $RPMNAME/$RPMNAME.spec $TARGET + rpmbuild $QUIET -ba $RPMNAME/$RPMNAME.spec $TARGET --define "version $VER" RC=$? fi } @@ -169,7 +170,7 @@ function makegenesis { cd - >/dev/null rm -f $RPMROOT/SRPMS/$RPMNAME-$VER*rpm $RPMROOT/RPMS/noarch/$RPMNAME-$VER*rpm echo "Building $RPMROOT/RPMS/noarch/$RPMNAME-$VER-snap*.noarch.rpm $EMBEDTXT..." - rpmbuild $QUIET -ba $DIR/$RPMNAME.spec + rpmbuild $QUIET -ba $DIR/$RPMNAME.spec --define "version $VER" } function makegenesisscripts { @@ -189,7 +190,7 @@ function makegenesisscripts { cd - >/dev/null rm -f $RPMROOT/SRPMS/$RPMNAME-$ARCH-$VER*rpm $RPMROOT/RPMS/noarch/$RPMNAME-$ARCH-$VER*rpm echo "Building $RPMROOT/RPMS/noarch/$RPMNAME-$ARCH-$VER-snap*.noarch.rpm $EMBEDTXT..." - rpmbuild $QUIET -ba $DIR/$RPMNAME.spec $TARGET + rpmbuild $QUIET -ba $DIR/$RPMNAME.spec $TARGET --define "version $VER" } @@ -212,7 +213,13 @@ if [ -z "$1" ]; then fi OSNAME=$(uname) -VER=`cat Version` +if [ -z "$XCATVER" ] ; then + VER=`cat Version` +else + VER=$XCATVER + REL="--define" + EASE='release 1' +fi if [ "$VERBOSE" = "1" -o "$VERBOSE" = "yes" ];then QUIET="" else diff --git a/perl-xCAT/perl-xCAT.spec b/perl-xCAT/perl-xCAT.spec index 0cef475eea..b1bb442741 100644 --- a/perl-xCAT/perl-xCAT.spec +++ b/perl-xCAT/perl-xCAT.spec @@ -1,11 +1,11 @@ Summary: xCAT perl libraries Name: perl-xCAT -Version: %(cat Version) -Release: snap%(date +"%Y%m%d%H%M") +Version: %{?version:%{version}}%{!?version:%(cat Version)} +Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")} Epoch: 4 License: EPL Group: System Environment/Libraries -Source: perl-xCAT-%(cat Version).tar.gz +Source: perl-xCAT-%{version}.tar.gz Packager: IBM Corp. Vendor: IBM Corp. Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} diff --git a/perl-xCAT/xCAT/Client.pm b/perl-xCAT/xCAT/Client.pm index b460d5f38c..9aa8cfd0ed 100644 --- a/perl-xCAT/xCAT/Client.pm +++ b/perl-xCAT/xCAT/Client.pm @@ -838,7 +838,7 @@ sub submit_request { #----- end added to Client.pm -----# if (ref $_->{'_xcatdest'} and (ref $_->{'_xcatdest'}) eq 'ARRAY') { - _->{'_xcatdest'} = $_->{'_xcatdest'}->[0]; + $_->{'_xcatdest'} = $_->{'_xcatdest'}->[0]; } if ($onlyone and not($_->{'_xcatdest'} and xCAT::NetworkUtils->thishostisnot($_->{'_xcatdest'}))) { $SIG{CHLD} = 'DEFAULT'; diff --git a/perl-xCAT/xCAT/DBobjUtils.pm b/perl-xCAT/xCAT/DBobjUtils.pm index 6f9c9e3f54..5400fb7c8a 100755 --- a/perl-xCAT/xCAT/DBobjUtils.pm +++ b/perl-xCAT/xCAT/DBobjUtils.pm @@ -990,7 +990,7 @@ sub setobjdefs } xCAT::MsgUtils->message("I", $rsp, $::callback); $checkedattrs{$attr_name} = 1; - if ($invalidattr->{$attr_name}->{valid} ne 1) { + if ($invalidattr->{$attr_name}->{valid} != 1) { $invalidattr->{$attr_name}->{valid} = 0; $invalidattr->{$attr_name}->{condition} = "\'$check_attr=$check_value\'"; } @@ -999,7 +999,7 @@ sub setobjdefs } if (!($objhash{$objname}{$check_attr} =~ /\b$check_value\b/) && !($DBattrvals{$objname}{$check_attr} =~ /\b$check_value\b/)) { - if ($invalidattr->{$attr_name}->{valid} ne 1) { + if ($invalidattr->{$attr_name}->{valid} != 1) { $invalidattr->{$attr_name}->{valid} = 0; $invalidattr->{$attr_name}->{condition} = "\'$check_attr=$check_value\'"; @@ -1126,7 +1126,7 @@ sub setobjdefs my $rsp; foreach my $att (keys %$invalidattr) { - if ($invalidattr->{$att}->{valid} ne 1) { + if ($invalidattr->{$att}->{valid} != 1) { my $tt = $invalidattr->{$att}->{valid}; push @{ $rsp->{data} }, "Cannot set the attr=\'$att\' attribute unless $invalidattr->{$att}->{condition}."; xCAT::MsgUtils->message("E", $rsp, $::callback); diff --git a/perl-xCAT/xCAT/FSPbootseq.pm b/perl-xCAT/xCAT/FSPbootseq.pm index 8f6ba2e750..3d81f73b55 100644 --- a/perl-xCAT/xCAT/FSPbootseq.pm +++ b/perl-xCAT/xCAT/FSPbootseq.pm @@ -21,8 +21,7 @@ sub parse_args { my $cmd = $request->{command}; my $args = $request->{arg}; my $node = $request->{node}; - my $vers = - my @VERSION = qw( 2.6 ); + my @VERSION = qw( 2.6 ); my @dev = qw(hfi net); ############################################# diff --git a/perl-xCAT/xCAT/FSPvm.pm b/perl-xCAT/xCAT/FSPvm.pm index c935b488b7..15badd5186 100644 --- a/perl-xCAT/xCAT/FSPvm.pm +++ b/perl-xCAT/xCAT/FSPvm.pm @@ -1874,11 +1874,11 @@ sub query_cec_info_actions { if (@$values[1] =~ /^$/) { next; } - if ($usage eq 1 or $usage eq 2) { + if ($usage == 1 or $usage == 2) { &parse_part_get_info(\%hash, @$values[1], $lparid); } - if ($usage eq 0 or $usage eq 2) { + if ($usage == 0 or $usage == 2) { if ($lparid) { if ($action eq "lpar_lhea_mac") { my @output = split /\n/, @$values[1]; @@ -1941,10 +1941,10 @@ sub query_cec_info_actions { push @array, [ $name, @$values[1], @$values[2] ]; } } - if ($usage eq 0 or $usage eq 2) { + if ($usage == 0 or $usage == 2) { #return $data; - if ($usage eq 2) { + if ($usage == 2) { %$lpar_hash = %hash; } return \@array; diff --git a/perl-xCAT/xCAT/LparNetbootExp.pm b/perl-xCAT/xCAT/LparNetbootExp.pm index 56a47ce34d..e5f1284ac5 100755 --- a/perl-xCAT/xCAT/LparNetbootExp.pm +++ b/perl-xCAT/xCAT/LparNetbootExp.pm @@ -99,12 +99,12 @@ sub nc_msg my $msg = shift; my $rsp; - if ($verbose eq 1) { + if ($verbose == 1) { $rsp->{data}->[0] = $msg; xCAT::MsgUtils->message("I", $rsp, $::CALLBACK); } - if ($verbose eq 2) { + if ($verbose == 2) { $rsp->{data}->[0] = $msg; xCAT::MsgUtils->message("E", $rsp, $::CALLBACK); } @@ -468,7 +468,7 @@ sub get_phandle { } ], ); - return 1 if ($rc eq 1); + return 1 if ($rc == 1); # Next, the 'ls' command is sent. The result is a display of the entire # device tree. The code then looks at the @@ -552,7 +552,7 @@ sub get_phandle { } ], ); - return 1 if ($rc eq 1); + return 1 if ($rc == 1); if ($result[2] =~ /(\w*)\:(\s*)\/(\S*)/) { my $x1 = $1; @@ -698,7 +698,7 @@ sub get_adap_prop { # state 7, done $done[7] = 1; - while ($done[$state] eq 0) { + while ($done[$state] == 0) { nc_msg($verbose, "Status: command is $cmd[$state]\n"); send_command($verbose, $rconsole, $cmd[$state]); @result = (); @@ -706,7 +706,7 @@ sub get_adap_prop { $timeout, [ qr/$pattern[$state]/i, sub { - if ($state eq 1) { + if ($state == 1) { if ($rconsole->before() =~ /-\d+/) { nc_msg($verbose, "Status: Error getting adapter property for phandle=$phandle.\n"); $state = 7; @@ -750,12 +750,12 @@ sub get_adap_prop { } ] ); - return 1 if ($rc eq 1); + return 1 if ($rc == 1); # After state 3, the network type is parsed and the connector # type extracted. If the type hasn't been found, add it to # the list of supported connector types. - if ($state eq 4) { + if ($state == 4) { # Build the adapter properties from the string #regexp .*,(.*),(.*),(.*) $nw_type dummy nw_speed nw_conn nw_duplex @@ -784,7 +784,7 @@ sub get_adap_prop { # state variable is left alone. if not, the state variable is # set to 2, causing a loop back to the step where the # decode-string command is sent. - if ($state eq 5) { + if ($state == 5) { if ($result[3] =~ /2 > \.s \w+ (\w*)/) { $state = 2 if ($1 != 0); } @@ -899,14 +899,14 @@ sub get_mac_addr { # state 4, all done $done[4] = 1; - while ($done[$state] eq 0) { + while ($done[$state] == 0) { @result = (); send_command($verbose, $rconsole, $cmd[$state]); @result = $rconsole->expect( $timeout, [ qr/$pattern[$state]/ => sub { - if ($state eq 1) { + if ($state == 1) { if ($rconsole->before() =~ /-\d+/) { nc_msg($verbose, "Status: Error getting MAC address for phandle=$phandle.\n"); $rconsole->clear_accum(); @@ -990,11 +990,11 @@ sub get_mac_addr { } ], ); - return undef if ($rc eq 1); + return undef if ($rc == 1); } # if the state is 0, 1, or 2, an error occurred and the join will fail - if ($state eq 4) { + if ($state == 4) { if ($result[2] =~ /dump-mac\s*(\w*)\s*ok/) { $mac_address = $1; } @@ -1097,7 +1097,7 @@ sub get_adaptr_loc { $timeout, [ qr/$pattern[$state]/ => sub { - if ($state eq 1) { + if ($state == 1) { if ($rconsole->before() =~ /-\d+/) { nc_msg($verbose, "Status: Error getting adapter location for phandle=$phandle."); $rconsole->clear_accum(); @@ -1178,7 +1178,7 @@ sub get_adaptr_loc { } ], ); - return undef if ($rc eq 1); + return undef if ($rc == 1); } # Did we find one or more adapters? @@ -1353,7 +1353,7 @@ sub ping_server { # Get the list of properties for this adapter # $adap_prop_list_array = get_adap_prop($phandle, $rconsole, $node, $verbose); - if ($adap_prop_list_array eq 1) { + if ($adap_prop_list_array == 1) { nc_msg($verbose, "ERROR return from get_adap_prop\n"); return 1; } @@ -1444,23 +1444,23 @@ sub ping_server { ], ); - return 1 if ($rc eq 1); + return 1 if ($rc == 1); - if ($state eq 1) { + if ($state == 1) { $adap_conn = $adap_conn_list[$j]; $cmd[1] = "\" ethernet,$adap_speed,$adap_conn,$adap_duplex\" encode-string \" chosen-network-type\" property\r"; nc_msg($verbose, "Status: Trying connector type $adap_conn\n"); $j++; } - if ((($tty_do_ping eq 1) && ($state eq 4)) || ($tty_do_ping != 1) && ($state eq 3)) { + if ((($tty_do_ping == 1) && ($state == 4)) || ($tty_do_ping != 1) && ($state == 3)) { $ping_debug = $result[2]; } - if ((($tty_do_ping eq 1) && ($state eq 5)) || ($tty_do_ping != 1) && ($state eq 4)) { - if (($tty_do_ping eq 1) && ($state eq 5)) { + if ((($tty_do_ping == 1) && ($state == 5)) || ($tty_do_ping != 1) && ($state == 4)) { + if (($tty_do_ping == 1) && ($state == 5)) { #$ping_rc = $result[2]; $stack_level = length($result[4]); - } elsif (($state eq 4) && ($tty_do_ping != 1) && ($result[2] =~ /PING SUCCESS/)) { + } elsif (($state == 4) && ($tty_do_ping != 1) && ($result[2] =~ /PING SUCCESS/)) { $ping_rc = 0; #} elsif ( $result[2] =~ /unknown word/ ) { @@ -1497,7 +1497,7 @@ sub ping_server { if ($ping_rc eq 0) { nc_msg($verbose, "# $full_path_name ping successful.\n"); - } elsif ($ping_rc eq 1) { + } elsif ($ping_rc == 1) { nc_msg($verbose, "# $full_path_name ping unsuccessful.\n"); nc_msg($verbose, "# $full_path_name ping unsuccessful.\n"); nc_msg($verbose, "$ping_debug\n"); @@ -1711,7 +1711,7 @@ sub set_disk_boot { [ qr/$pattern[$state]/ => sub { $rconsole->clear_accum(); - if ($state eq 4) { + if ($state == 4) { if ($expect_out[6] eq "None") { $state = 8; } @@ -1744,7 +1744,7 @@ sub set_disk_boot { } ], ); - if ($rc eq 1) { + if ($rc == 1) { return 1; } else { return 0; @@ -1898,25 +1898,25 @@ sub boot_network { sub { $rconsole->clear_accum(); my @expect_out = shift; - if ($state eq 2) { - if ($set_boot_order eq 1) { + if ($state == 2) { + if ($set_boot_order == 1) { ######################################## # Set network as boot device ######################################## $cmd[3] = "setenv boot-device $net_device[$newstate[3]]\r"; - } elsif ($set_boot_order eq 2) { + } elsif ($set_boot_order == 2) { ######################################## # Set network as 1st boot device,disk as 2nd boot device ######################################## $boot_device_bk = $expect_out[1]; $cmd[3] = "setenv boot-device $net_device[$newstate[3]] $boot_device_bk\r"; - } elsif ($set_boot_order eq 3) { + } elsif ($set_boot_order == 3) { ######################################## # Set disk as 1st boot device,network as 2nd boot device ######################################## $boot_device_bk = $expect_out[1]; $cmd[3] = "setenv boot-device $boot_device_bk $net_device[$newstate[3]]\r"; - } elsif ($set_boot_order eq 4) { + } elsif ($set_boot_order == 4) { ######################################## # set disk as boot device ######################################## @@ -1973,7 +1973,7 @@ sub boot_network { } ], ); - return 1 if ($rc eq 1); + return 1 if ($rc == 1); } return 0; } @@ -2363,7 +2363,7 @@ sub Firmware_Dump { } ], ); - return 1 if ($rc eq 1); + return 1 if ($rc == 1); } return 0; } @@ -2846,7 +2846,7 @@ sub lparnetbootexp return [1]; } unless ($output =~ /Success/) { - if ($retry_count eq 3) { + if ($retry_count == 3) { nc_msg($verbose, "Power off failed, msg is $output.\n"); return [1]; } @@ -2874,7 +2874,7 @@ sub lparnetbootexp return [1]; } unless ($output =~ /Success/) { - if ($retry_count eq 3) { + if ($retry_count == 3) { nc_msg($verbose, "Power off failed, msg is $output.\n"); return [1]; } @@ -2988,7 +2988,7 @@ sub lparnetbootexp sub { $rconsole->send("\r"); $retry_count++; - if ($retry_count eq 9) { + if ($retry_count == 9) { nc_msg($verbose, "Timeout waiting for ok prompt; exiting.\n"); $rconsole->soft_close(); $rc = 1; @@ -3003,7 +3003,7 @@ sub lparnetbootexp } ], ); - return [1] if ($rc eq 1); + return [1] if ($rc == 1); } @@ -3033,10 +3033,10 @@ sub lparnetbootexp nc_msg($verbose, "begin to run get_phandle"); while (!$done) { my $result = get_phandle($rconsole, $node, $verbose); - if ($result eq 1) { + if ($result == 1) { $retry_count++; $rconsole->send("\r"); - if ($retry_count eq 3) { + if ($retry_count == 3) { nc_msg($verbose, "Unable to obtain network adapter information. Quitting.\n"); return [1]; } @@ -3053,7 +3053,7 @@ sub lparnetbootexp ############################## nc_msg($verbose, "begin to run multiple_open_dev"); my $result = xCAT::LparNetbootExp->multiple_open_dev($rconsole, $node, $verbose); - if ($result eq 1) { + if ($result == 1) { nc_msg($verbose, "Unable to obtain network adapter information. Quitting.\n"); return [1]; } @@ -3230,7 +3230,7 @@ sub lparnetbootexp } $mac_address = get_mac_addr($phandle_array[$i], $rconsole, $node, $verbose); if ($macaddress =~ /$mac_address/) { - if (($discovery eq 1) && !$discoverynoping) { + if (($discovery == 1) && !$discoverynoping) { unless ($adap_type[$i] eq "hfi-ent") { $ping_rc = ping_server($phandle_array[$i], $full_path_name_array[$i], $rconsole, $node, $mac_address, $verbose, $adap_speed, $adap_duplex, $list_type, $server_ip, $client_ip, $gateway_ip); } @@ -3281,7 +3281,7 @@ sub lparnetbootexp for ($i = 0 ; $i < $adapter_found ; $i++) { nc_msg($verbose, " begint to boot from first adapter in the device tree \n"); if ($adap_type[$i] eq $list_type) { - if (($discovery eq 1) && !$discoverynoping) { + if (($discovery == 1) && !$discoverynoping) { $ping_rc = ping_server($phandle_array[$i], $full_path_name_array[$i], $rconsole, $node, $mac_address, $verbose, $adap_speed, $adap_duplex, $list_type, $server_ip, $client_ip, $gateway_ip); unless ($ping_rc eq 0) { return [1]; @@ -3318,7 +3318,7 @@ sub lparnetbootexp # Need to retry network boot because of intermittant network failure # after partition reboot. Force partition to stop at Open Firmware prompt. ########################################################################### - if ($result eq 5) { + if ($result == 5) { $timeout = 300; $rconsole->expect( @@ -3360,7 +3360,7 @@ sub lparnetbootexp } ], ); - return [1] if ($rc eq 1); + return [1] if ($rc == 1); nc_msg($verbose, "# bootp sent over network.\n"); $rc = Boot($rconsole, $node, $verbose); #, @expect_out); unless ($rc eq 0) { diff --git a/perl-xCAT/xCAT/MacMap.pm b/perl-xCAT/xCAT/MacMap.pm index 23eb69e912..077c4d21b6 100644 --- a/perl-xCAT/xCAT/MacMap.pm +++ b/perl-xCAT/xCAT/MacMap.pm @@ -288,6 +288,10 @@ sub dump_mac_info { $self->{callback} = $callback; } my $community = "public"; + my @snmpcs = xCAT::TableUtils->get_site_attribute("snmpc"); + my $tmp = $snmpcs[0]; + if (defined($tmp)) { $community = $tmp } + my $dump_all_switches = 0; my %switches_to_dump = (); if (!defined($noderange)) { @@ -366,6 +370,7 @@ sub find_mac { my $self = shift; my $mac = shift; my $cachedonly = shift; + my $discover_switch=shift; # For now HARDCODE (TODO, configurable?) a cache as stale after five minutes # Also, if things are changed in the config, our cache could be wrong, @@ -390,7 +395,7 @@ sub find_mac { #If requesting a cache only check or the cache is a mere 20 seconds old #don't bother querying switches if ($cachedonly or ($self->{timestamp} > (time() - 20))) { return undef; } - $self->refresh_table; #not cached or stale cache, refresh + $self->refresh_table($discover_switch); #not cached or stale cache, refresh if ($self->{mactable}->{ lc($mac) }) { return $self->{mactable}->{ lc($mac) }; } @@ -426,6 +431,7 @@ sub fill_switchparms { sub refresh_table { my $self = shift; + my $discover_switch = shift; my $curswitch; $self->{mactable} = {}; $self->{switchtab} = xCAT::Table->new('switch', -create => 1); @@ -469,7 +475,23 @@ sub refresh_table { #Build hash of switch port names per switch $self->{switches} = {}; + + #get nodetype from nodetype table, build a temp hash + my $typehash; + my $ntable = xCAT::Table->new('nodetype'); + if ($ntable) { + $typehash = $ntable->getAllNodeAttribs(['node','nodetype'], 1); + } + foreach my $entry (@entries) { + # if we are doing switch discovery and the node is not a switch, skip + # if we are NOT doing switch discovery, and the node is a switch, skip + my $ntype = $typehash->{$entry->{node}}->[0]->{nodetype}; + if ( (($discover_switch) and ( $ntype ne "switch")) + or ( !($discover_switch) and ( $ntype eq "switch")) ){ + xCAT::MsgUtils->message("S", "refresh_table: skip $entry->{node} and $entry->{switch}"); + next; + } if (defined($entry->{switch}) and $entry->{switch} ne "" and defined($entry->{port}) and $entry->{port} ne "") { if (!$self->{switches}->{ $entry->{switch} }->{ $entry->{port} }) diff --git a/perl-xCAT/xCAT/NetworkUtils.pm b/perl-xCAT/xCAT/NetworkUtils.pm index d523dc8f38..ed4694a70d 100755 --- a/perl-xCAT/xCAT/NetworkUtils.pm +++ b/perl-xCAT/xCAT/NetworkUtils.pm @@ -770,7 +770,7 @@ sub classful_networks_for_net_and_mask my @results; my $bitstoeven = (8 - ($mask % 8)); - if ($bitstoeven eq 8) { $bitstoeven = 0; } + if ($bitstoeven == 8) { $bitstoeven = 0; } my $resultmask = $mask + $bitstoeven; if ($given_mask) { @@ -828,7 +828,7 @@ sub my_hexnets } (my $curnet, my $maskbits) = split /\//, $elems[2]; my $bitstoeven = (4 - ($maskbits % 4)); - if ($bitstoeven eq 4) { $bitstoeven = 0; } + if ($bitstoeven == 4) { $bitstoeven = 0; } my $padbits = (32 - ($bitstoeven + $maskbits)); my $numchars = int(($maskbits + $bitstoeven) / 4); my $curmask = 2**$maskbits - 1 << (32 - $maskbits); diff --git a/perl-xCAT/xCAT/PPCcfg.pm b/perl-xCAT/xCAT/PPCcfg.pm index 9c0f1c2af1..cae3b79075 100644 --- a/perl-xCAT/xCAT/PPCcfg.pm +++ b/perl-xCAT/xCAT/PPCcfg.pm @@ -50,9 +50,7 @@ sub parse_args { "general_passwd", "*_passwd", "hostname", - "resetnet", - "dev", - "celogin1" + "resetnet" ); my @bpa = ( "frame", @@ -63,9 +61,7 @@ sub parse_args { "general_passwd", "*_passwd", "hostname", - "resetnet", - "dev", - "celogin1" + "resetnet" ); my @ppc = ( "sshcfg" @@ -169,16 +165,6 @@ sub parse_args { return (usage("No argument specified for '$_'")); } } - { - if ($request->{dev} eq '1' && $request->{other} eq '1') { - return (usage("Invalid command arrays")); - } - - # my $result = parse_dev_option( $request, \%cmds); - # if ($result) { - # return ( usage($result)); - # } - } #################################### # Return method to invoke #################################### @@ -216,25 +202,6 @@ sub parse_args { return (\%opt); } - -sub parse_dev_option { - my $req = shift; - my $cmds = shift; - foreach my $cmd (keys %$cmds) { - if ($cmd =~ /^(dev|celogin1)$/) { - if ($cmds->{$cmd} and ($cmds->{$cmd} !~ /^(enable|disable)$/i)) { - return ("Invalid argument " . $cmds->{$cmd} . " for " . $cmd); - } - $req->{dev} = 1; - } else { - $req->{other} = 1; - } - } - if ($req->{dev} eq '1' && $req->{other} eq '1') { - return ("Invalid command arrays"); - } - return undef; -} ########################################################################## # Parse the command line optional arguments ########################################################################## @@ -324,14 +291,6 @@ sub parse_option { } } - if ($command eq 'dev' or $command eq 'celogin1') { - if ($value !~ /^(enable|disable)$/i) { - return ("Invalid argument '$value'"); - } - $request->{dev} = 1; - } else { - $request->{other} = 1; - } return undef; } diff --git a/perl-xCAT/xCAT/PPCdb.pm b/perl-xCAT/xCAT/PPCdb.pm index 464ac4b34c..af6eebeadf 100644 --- a/perl-xCAT/xCAT/PPCdb.pm +++ b/perl-xCAT/xCAT/PPCdb.pm @@ -1209,7 +1209,7 @@ sub get_host { if ($tmpmtm eq $mtm and $tmpsn eq $sn and $tmptype eq $type) { if ($oldnode =~ /^Server\-/) { #judge if need to change node's name if ($oldnode =~ /(\-A)$/) { - $nodename = s/(\-A)$//; + $nodename =~ s/(\-A)$//; # should send a warning here $$flagref = 1; diff --git a/perl-xCAT/xCAT/PPCfsp.pm b/perl-xCAT/xCAT/PPCfsp.pm index 081ac42174..be754ee57c 100644 --- a/perl-xCAT/xCAT/PPCfsp.pm +++ b/perl-xCAT/xCAT/PPCfsp.pm @@ -38,9 +38,7 @@ my %cmds = ( autopower => [ "Auto Power Restart", \&autopower ], sysdump => [ "System Dump", \&sysdump ], spdump => [ "Service Processor Dump", \&spdump ], - network => [ "Network Configuration", \&netcfg ], - dev => [ "Service Processor Command Line", \&devenable ], - celogin1 => [ "Service Processor Command Line", \&ce1enable ] }, + network => [ "Network Configuration", \&netcfg ]}, ); @@ -216,55 +214,6 @@ sub connect { } -sub ce1enable { - return &loginenable($_[0], $_[1], $_[2], "celogin1"); -} - -sub devenable { - return &loginenable($_[0], $_[1], $_[2], "dev"); -} -my %cmdline_for_log = ( - dev => { - enable => "registry -Hw nets/DevEnabled 1", - disable => "registry -Hw nets/DevEnabled 0", - check_pwd => "registry -l DevPwdFile", - create_pwd => "netsDynPwdTool --create dev FipSdev", - password => "FipSdev" - }, - celogin1 => { - enable => "registry -Hw nets/CE1Enabled 1", - disable => "registry -Hw nets/CE1Enabled 0", - check_pwd => "registry -l Ce1PwdFile", - create_pwd => "netsDynPwdTool --create celogin1 FipSce1", - password => "FipSce1" - }, -); - -sub send_command { - my $ua = shift; - my $server = shift; - my $id = shift; - my $log_name = shift; - my $cmd = shift; - my $cmd_line = $cmdline_for_log{$log_name}{$cmd}; - if (!defined($cmd_line)) { - return undef; - } - my $res = $ua->post("https://$server/cgi-bin/cgi", - [ form => $id, - cmd => $cmd_line, - submit => "Execute" ] - ); - - if (!$res->is_success()) { - return undef; - } - if ($res->content =~ /(not allowed.*\.|Invalid entry)/) { - return undef; - } - return $res->content; -} - sub loginstate { my $ua = shift; my $server = shift; @@ -282,55 +231,6 @@ sub loginstate { } } -sub loginenable { - my $exp = shift; - my $request = shift; - my $id = shift; - my $log_name = shift; - my $ua = @$exp[0]; - my $server = @$exp[1]; - - my $value = $request->{method}{$log_name}; - if (!defined($value)) { - return &loginstate($ua, $server, $log_name); - } - my $url = "https://$server/cgi-bin/cgi?form=$id"; - my $res = $ua->get($url); - if (!$res->is_success()) { - return ([ RC_ERROR, $res->status_line ]); - } - - $res = &send_command($ua, $server, $id, $log_name, $value); - if (!defined($res)) { - return ([ RC_ERROR, "Send command Failed" ]); - } - if ($value =~ m/^disable$/) { - my $out = sprintf("%9s: Disabled", $log_name); - return ([ SUCCESS, $out ]); - } - - #check password# - $res = &send_command($ua, $server, $id, $log_name, "check_pwd"); - if (!defined($res)) { - return ([ RC_ERROR, "Send command Failed" ]); - } - my $password = undef; - if ($res =~ m/\[\d+([a-zA-Z]+)\d+\]/) { - $password = $1; - } else { - - # create password # - $res = &send_command($ua, $server, $id, $log_name, "create_pwd"); - if (!defined($res)) { - return ([ RC_ERROR, "Send command Failed" ]); - } - $password = $cmdline_for_log{$log_name}{password}; - print "create password for $log_name is '$cmdline_for_log{$log_name}{password}'\n"; - } - my $out = sprintf("%9s: Enabled, password: $password", $log_name); - return ([ SUCCESS, $out ]); -} - sub disconnect { my $exp = shift; diff --git a/perl-xCAT/xCAT/ProfiledNodeUtils.pm b/perl-xCAT/xCAT/ProfiledNodeUtils.pm index d65ea1cdd0..dc351df6ac 100644 --- a/perl-xCAT/xCAT/ProfiledNodeUtils.pm +++ b/perl-xCAT/xCAT/ProfiledNodeUtils.pm @@ -1261,7 +1261,7 @@ sub check_nicips { $nic = $nic_and_ips[0]; $nic_ip = $nic_and_ips[1]; - if (exists $nics_hash{$nic} or $len ne 2) { + if (exists $nics_hash{$nic} or $len != 2) { $errmsg = "The specified nicips is incorrect. It must be formatted correctly, in the form: !,!,..."; return (1, "", $errmsg); } diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 772ea45934..056437d7cc 100755 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -10,7 +10,7 @@ use xCAT::ExtTab; # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # -# When making additions or deletions to this file please be sure to +# When making additions or deletions to this file be sure to # modify BOTH the tabspec and defspec definitions. This includes # adding descriptions for any new attributes. # @@ -154,9 +154,9 @@ use xCAT::ExtTab; file => "The full pathname of the file. e.g: /etc/hosts. If the path is a directory, then it should be terminated with a '/'. ", options => "Options for the file:\n\n" . qq{ tmpfs - It is the default option if you leave the options column blank. It provides a file or directory for the node to use when booting, its permission will be the same as the original version on the server. In most cases, it is read-write; however, on the next statelite boot, the original version of the file or directory on the server will be used, it means it is non-persistent. This option can be performed on files and directories..\n\n} . -qq{ rw - Same as Above.Its name "rw" does NOT mean it always be read-write, even in most cases it is read-write. Please do not confuse it with the "rw" permission in the file system. \n\n} . +qq{ rw - Same as Above.Its name "rw" does NOT mean it always be read-write, even in most cases it is read-write. Do not confuse it with the "rw" permission in the file system. \n\n} . qq{ persistent - It provides a mounted file or directory that is copied to the xCAT persistent location and then over-mounted on the local file or directory. Anything written to that file or directory is preserved. It means, if the file/directory does not exist at first, it will be copied to the persistent location. Next time the file/directory in the persistent location will be used. The file/directory will be persistent across reboots. Its permission will be the same as the original one in the statelite location. It requires the statelite table to be filled out with a spot for persistent statelite. This option can be performed on files and directories. \n\n} . -qq{ con - The contents of the pathname are concatenated to the contents of the existing file. For this directive the searching in the litetree hierarchy does not stop when the first match is found. All files found in the hierarchy will be concatenated to the file when found. The permission of the file will be "-rw-r--r--", which means it is read-write for the root user, but readonly for the others. It is non-persistent, when the node reboots, all changes to the file will be lost. It can only be performed on files. Please do not use it for one directory.\n\n} . +qq{ con - The contents of the pathname are concatenated to the contents of the existing file. For this directive the searching in the litetree hierarchy does not stop when the first match is found. All files found in the hierarchy will be concatenated to the file when found. The permission of the file will be "-rw-r--r--", which means it is read-write for the root user, but readonly for the others. It is non-persistent, when the node reboots, all changes to the file will be lost. It can only be performed on files. Do not use it for one directory.\n\n} . qq{ ro - The file/directory will be overmounted read-only on the local file/directory. It will be located in the directory hierarchy specified in the litetree table. Changes made to this file or directory on the server will be immediately seen in this file/directory on the node. This option requires that the file/directory to be mounted must be available in one of the entries in the litetree table. This option can be performed on files and directories.\n\n} . qq{ link - It provides one file/directory for the node to use when booting, it is copied from the server, and will be placed in tmpfs on the booted node. In the local file system of the booted node, it is one symbolic link to one file/directory in tmpfs. And the permission of the symbolic link is "lrwxrwxrwx", which is not the real permission of the file/directory on the node. So for some application sensitive to file permissions, it will be one issue to use "link" as its option, for example, "/root/.ssh/", which is used for SSH, should NOT use "link" as its option. It is non-persistent, when the node is rebooted, all changes to the file/directory will be lost. This option can be performed on files and directories. \n\n} . qq{ link,con - It works similar to the "con" option. All the files found in the litetree hierarchy will be concatenated to the file when found. The final file will be put to the tmpfs on the booted node. In the local file system of the booted node, it is one symbolic link to the file/directory in tmpfs. It is non-persistent, when the node is rebooted, all changes to the file will be lost. The option can only be performed on files. \n\n} . @@ -232,7 +232,7 @@ qq{ link,ro - The file is readonly, and will be placed in tmpfs on the booted no 'datacenter' => "Optionally specify a datacenter for the VM to exist in (only applicable to VMWare)", 'cluster' => 'Specify to the underlying virtualization infrastructure a cluster membership for the hypervisor.', 'vidproto' => "Request a specific protocol for remote video access be set up. For example, spice in KVM.", -'physlots' => "Specify the physical slots drc index that will assigned to the partition, the delimiter is ',', and the drc index must started with '0x'. For more details, please reference to manpage of 'lsvm'.", +'physlots' => "Specify the physical slots drc index that will assigned to the partition, the delimiter is ',', and the drc index must started with '0x'. For more details, reference manpage for 'lsvm'.", 'vidmodel' => "Model of video adapter to provide to guest. For example, qxl in KVM", 'vidpassword' => "Password to use instead of temporary random tokens for VNC and SPICE access", 'storagecache' => "Select caching scheme to employ. E.g. KVM understands 'none', 'writethrough' and 'writeback'", @@ -358,7 +358,7 @@ passed as argument rather than by table value', node => 'The node name or group name.', currstate => 'The current or next chain step to be executed on this node by xCAT-genesis. Set by xCAT during node discovery or as a result of nodeset.', currchain => 'The chain steps still left to do for this node. This attribute will be automatically adjusted by xCAT while xCAT-genesis is running on the node (either during node discovery or a special operation like firmware update). During node discovery, this attribute is initialized from the chain attribute and updated as the chain steps are executed.', - chain => 'A comma-delimited chain of actions to be performed automatically when this node is discovered. ("Discovered" means a node booted, but xCAT and DHCP did not recognize the MAC of this node. In this situation, xCAT initiates the discovery process, the last step of which is to run the operations listed in this chain attribute, one by one.) Valid values: boot, runcmd=, runimage=, shell, standby. (Default - same as no chain - it will do only the discovery.). Example, for BMC machines use: runcmd=bmcsetup,shell.', + chain => 'A comma-delimited chain of actions to be performed automatically when this node is discovered for the first time. (xCAT and the DHCP server do not recognize the MAC address of the node when xCAT initializes the discovery process.) The last step in this process is to run the operations listed in the chain attribute, one by one. Valid values: boot, runcmd=, runimage=, shell, standby. For example, to have the genesis kernel pause to the shell, use chain=shell.', ondiscover => 'This attribute is currently not used by xCAT. The "nodediscover" operation is always done during node discovery.', comments => 'Any user-written notes.', disable => "Set to 'yes' or '1' to comment out this row.", @@ -435,7 +435,7 @@ passed as argument rather than by table value', 2 2 Third interface on ML2 or mezzanine adapter 2 3 Fourth interface on ML2 or mezzanine adapter', - taggedvlan => 'Have bmcsetup place the BMC on the specified vlan tag on a shared netwirk interface. Some network devices may be incompatible with this option', + taggedvlan => 'bmcsetup script will configure the network interface of the BMC to be tagged to the VLAN specified.', bmcid => 'Unique identified data used by discovery processes to distinguish known BMCs from unrecognized BMCs', username => 'The BMC userid. If not specified, the key=ipmi row in the passwd table is used as the default.', password => 'The BMC password. If not specified, the key=ipmi row in the passwd table is used as the default.', @@ -537,7 +537,7 @@ passed as argument rather than by table value', }, }, networks => { - cols => [qw(netname net mask mgtifname gateway dhcpserver tftpserver nameservers ntpservers logservers dynamicrange staticrange staticrangeincrement nodehostname ddnsdomain vlanid domain comments disable)], + cols => [qw(netname net mask mgtifname gateway dhcpserver tftpserver nameservers ntpservers logservers dynamicrange staticrange staticrangeincrement nodehostname ddnsdomain vlanid domain mtu comments disable)], keys => [qw(net mask)], tablespace => 'XCATTBS16K', table_desc => 'Describes the networks in the cluster and info necessary to set up nodes on that network.', @@ -559,6 +559,7 @@ passed as argument rather than by table value', ddnsdomain => 'A domain to be combined with nodename to construct FQDN for DDNS updates induced by DHCP. This is not passed down to the client as "domain"', vlanid => 'The vlan ID if this network is within a vlan.', domain => 'The DNS domain name (ex. cluster.com).', + mtu => 'The default MTU for the network', comments => 'Any user-written notes.', disable => "Set to 'yes' or '1' to comment out this row.", }, @@ -595,7 +596,7 @@ passed as argument rather than by table value', serialflow => "The flow control value of the serial port for this node. For SOL this is typically 'hard'.", getmac => 'The method to use to get MAC address of the node with the getmac command. If not set, the mgt attribute will be used. Valid values: same as values for mgmt attribute.', cmdmapping => 'The fully qualified name of the file that stores the mapping between PCM hardware management commands and xCAT/third-party hardware management commands for a particular type of hardware device. Only used by PCM.', - consoleondemand => 'This overrides the value from site.consoleondemand; (0=no, 1=yes). Default is the result from site.consoleondemand.', + consoleondemand => "This overrides the value from site.consoleondemand. Set to 'yes', 'no', '1' (equivalent to 'yes'), or '0' (equivalent to 'no'). If not set, the default is the value from site.consoleondemand.", comments => 'Any user-written notes.', disable => "Set to 'yes' or '1' to comment out this row.", }, @@ -608,7 +609,7 @@ passed as argument rather than by table value', descriptions => { node => 'The hostname of a node in the cluster.', groups => "A comma-delimited list of groups this node is a member of. Group names are arbitrary, except all nodes should be part of the 'all' group. Internal group names are designated by using __. For example, __Unmanaged, could be the internal name for a group of nodes that is not managed by xCAT. Admins should avoid using the __ characters when defining their groups.", - status => 'The current status of this node. This attribute will be set by xCAT software. Valid values: defined, booting, netbooting, booted, discovering, configuring, installing, alive, standingby, powering-off, unreachable. If blank, defined is assumed. The possible status change sequences are: For installation: defined->[discovering]->[configuring]->[standingby]->installing->booting->booted->[alive], For diskless deployment: defined->[discovering]->[configuring]->[standingby]->netbooting->booted->[alive], For booting: [alive/unreachable]->booting->[alive], For powering off: [alive]->powering-off->[unreachable], For monitoring: alive->unreachable. Discovering and configuring are for x Series discovery process. Alive and unreachable are set only when there is a monitoring plug-in start monitor the node status for xCAT. Please note that the status values will not reflect the real node status if you change the state of the node from outside of xCAT (i.e. power off the node using HMC GUI).', + status => 'The current status of this node. This attribute will be set by xCAT software. Valid values: defined, booting, netbooting, booted, discovering, configuring, installing, alive, standingby, powering-off, unreachable. If blank, defined is assumed. The possible status change sequences are: For installation: defined->[discovering]->[configuring]->[standingby]->installing->booting->booted->[alive], For diskless deployment: defined->[discovering]->[configuring]->[standingby]->netbooting->booted->[alive], For booting: [alive/unreachable]->booting->[alive], For powering off: [alive]->powering-off->[unreachable], For monitoring: alive->unreachable. Discovering and configuring are for x Series discovery process. Alive and unreachable are set only when there is a monitoring plug-in start monitor the node status for xCAT. Note that the status values will not reflect the real node status if you change the state of the node from outside of xCAT (i.e. power off the node using HMC GUI).', statustime => "The data and time when the status was updated.", appstatus => "A comma-delimited list of application status. For example: 'sshd=up,ftp=down,ll=down'", appstatustime => 'The date and time when appstatus was updated.', @@ -689,9 +690,9 @@ passed as argument rather than by table value', password => 'The password string for SNMPv3 or community string for SNMPv1/SNMPv2. Falls back to passwd table, and site snmpc value if using SNMPv1/SNMPv2.', privacy => 'The privacy protocol to use for v3. xCAT will use authNoPriv if this is unspecified. DES is recommended to use if v3 enabled, as it is the most readily available.', auth => 'The authentication protocol to use for SNMPv3. SHA is assumed if v3 enabled and this is unspecified', - linkports => 'The ports that connect to other switches. Currently, this column is only used by vlan configuration. The format is: "port_number:switch,port_number:switch...". Please refer to the switch table for details on how to specify the port numbers.', - sshusername => 'The remote login user name. It can be for ssh or telnet. If it is for telnet, please set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key.', - sshpassword => 'The remote login password. It can be for ssh or telnet. If it is for telnet, please set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key.', + linkports => 'The ports that connect to other switches. Currently, this column is only used by vlan configuration. The format is: "port_number:switch,port_number:switch...". Refer to the switch table for details on how to specify the port numbers.', + sshusername => 'The remote login user name. It can be for ssh or telnet. If it is for telnet, set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key.', + sshpassword => 'The remote login password. It can be for ssh or telnet. If it is for telnet, set protocol to "telnet". If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key.', protocol => 'Protocol for running remote commands for the switch. The valid values are: ssh, telnet. ssh is the default. If the sshusername is blank, the username, password and protocol will be retrieved from the passwd table with "switch" as the key. The passwd.comments attribute is used for protocol.', switchtype => 'The type of switch. It is used to identify the file name that implements the functions for this switch. The valid values are: Mellanox, Cisco, BNT and Juniper.', }, @@ -773,7 +774,17 @@ passed as argument rather than by table value', otherpkglist => 'The fully qualified name of the file that stores non-distro package lists that will be included in the image. It could be set to multiple paths. The multiple paths must be separated by ",".', otherpkgdir => 'The base directory where the non-distro packages are stored. Only 1 local directory supported at present.', exlist => 'The fully qualified name of the file that stores the file names and directory names that will be excluded from the image during packimage command. It is used for diskless image only.', - postinstall => 'The fully qualified name of the script file that will be run at the end of the genimage command. It could be set to multiple paths. The multiple paths must be separated by ",". It is used for diskless image only.', + postinstall => 'Only supported in diskless image only. The fully qualified name of the scripts running in non-chroot mode after the package installation but before initrd generation during genimage. If multiple scripts are specified, they should be speperated with comma ",". A set of osimage attributes are exported as the environment variables to be used in the postinstall scripts: + IMG_ARCH(The architecture of the osimage, such as "ppc64le","x86_64"), + IMG_NAME(The name of the osimage, such as "rhels7.3-ppc64le-netboot-compute"), + IMG_OSVER(The os release of the osimage, such as "rhels7.3","sles11.4"), + IMG_KERNELVERSION(the "kernelver" attribute of the osimage), + IMG_PROFILE(the profile of the osimage, such as "service","compute"), + IMG_PKGLIST(the "pkglist" attribute of the osimage), + IMG_PKGDIR(the "pkgdir" attribute of the osimage), + IMG_OTHERPKGLIST(the "otherpkglist" attribute of the osimage), + IMG_OTHERPKGDIR(the "otherpkgdir" attribute of the osimage), + IMG_ROOTIMGDIR(the "rootimgdir" attribute of the osimage)', rootimgdir => 'The directory name where the image is stored. It is generally used for diskless image. it also can be used in sysclone environment to specify where the image captured from golden client is stored. in sysclone environment, rootimgdir is generally assigned to some default value by xcat, but you can specify your own store directory. just one thing need to be noticed, wherever you save the image, the name of last level directory must be the name of image. for example, if your image name is testimage and you want to save this image under home directoy, rootimgdir should be assigned to value /home/testimage/', kerneldir => 'The directory name where the 3rd-party kernel is stored. It is used for diskless image only.', nodebootif => 'The network interface the stateless/statelite node will boot over (e.g. eth0)', @@ -1104,7 +1115,7 @@ passed as argument rather than by table value', " runbootscripts: If set to 'yes' the scripts listed in the postbootscripts\n" . " attribute in the osimage and postscripts tables will be run during\n" . " each reboot of stateful (diskful) nodes. This attribute has no\n" . -" effect on stateless and statelite nodes. Please run the following\n" . +" effect on stateless and statelite nodes. Run the following\n" . " command after you change the value of this attribute: \n" . " 'updatenode -P setuppostbootscripts'\n\n" . " precreatemypostscripts: (yes/1 or no/0). Default is no. If yes, it will \n" . @@ -1134,7 +1145,7 @@ passed as argument rather than by table value', " '1': enable basic debug mode\n" . " '2': enable expert debug mode\n" . " For the details on 'basic debug mode' and 'expert debug mode',\n" . - " please refer to xCAT documentation.\n\n" . + " refer to xCAT documentation.\n\n" . " --------------------\n" . "REMOTESHELL ATTRIBUTES\n" . " --------------------\n" . @@ -2341,6 +2352,11 @@ my @nodeattrs = ( tabentry => 'ipmi.password', access_tabentry => 'ipmi.node=attr:node', }, + { attr_name => 'bmcvlantag', + only_if => 'mgt=ipmi', + tabentry => 'ipmi.taggedvlan', + access_tabentry => 'ipmi.node=attr:node', + }, ################ # mp table # ################ @@ -3320,6 +3336,10 @@ push(@{ $defspec{node}->{'attrs'} }, @nodeattrs); tabentry => 'networks.staticrangeincrement', access_tabentry => 'networks.netname=attr:netname', }, + { attr_name => 'mtu', + tabentry => 'networks.mtu', + access_tabentry => 'networks.netname=attr:netname', + }, { attr_name => 'usercomment', tabentry => 'networks.comments', access_tabentry => 'networks.netname=attr:netname', diff --git a/perl-xCAT/xCAT/Usage.pm b/perl-xCAT/xCAT/Usage.pm index 523ba6acb6..5dfb9494c2 100755 --- a/perl-xCAT/xCAT/Usage.pm +++ b/perl-xCAT/xCAT/Usage.pm @@ -60,14 +60,16 @@ my %usage = ( rvitals [-h|--help|-v|--version] FSP/LPAR (with HMC) specific: rvitals noderange {temp|voltage|lcds|all} - CEC/LPAR/Frame (using Direct FSP Management)specific: + CEC/LPAR/Frame (using Direct FSP Management) specific: rvitals noderange {rackenv|lcds|all} MPA specific: rvitals noderange {temp|voltage|wattage|fanspeed|power|leds|summary|all} Blade specific: rvitals noderange {temp|wattage|fanspeed|leds|summary|all} BMC specific: - rvitals noderange {temp|voltage|wattage|fanspeed|power|leds|lcds|summary|all} + rvitals noderange {temp|voltage|wattage|fanspeed|power|leds|all} + OpenPOWER server specific: + rvitals noderange {temp|voltage|wattage|fanspeed|power|leds|all} MIC specific: rvitals noderange {thermal|all}", "reventlog" => @@ -79,20 +81,22 @@ my %usage = ( rinv [all|model|serial] [-V|--verbose] rinv [-h|--help|-v|--version] BMC specific: - rinv [mprom|deviceid|uuid|guid|vpd [-t]|all [-t]] + rinv [mprom|deviceid|uuid|guid|vpd|all] + OpenPOWER server specific: + rinv [model|serial|deviceid|uuid|guid|vpd|mprom|firm|all] MPA specific: - rinv [firm|bios|diag|mprom|sprom|mparom|mac|mtm [-t]] + rinv [firm|bios|diag|mprom|sprom|mparom|mac|mtm] PPC specific(with HMC): - rinv [all|bus|config|serial|model|firm [-t]] + rinv [all|bus|config|serial|model|firm] PPC specific(using Direct FSP Management): rinv [firm] rinv [deconfig [-x]] Blade specific: - rinv [all|serial|mac|bios|diag|mprom|mparom|firm|mtm [-t]] + rinv [all|serial|mac|bios|diag|mprom|mparom|firm|mtm] IBM Flex System Compute Node specific: rinv [firm] VMware specific: - rinv + rinv [-t] zVM specific: rinv noderange [all|config] MIC specific: @@ -187,10 +191,6 @@ my %usage = ( HMC specific: rspconfig [sshcfg] rspconfig [sshcfg=] - CEC|Frame(using ASM)Specific: - rspconfig [dev|celogin1] - rspconfig [dev=]| - rspconfig [celogin1=] ", "getmacs" => "Usage: @@ -305,7 +305,7 @@ my %usage = ( [-u] [--range IPranges][-t tries][--vpdtable][-C counts][-T timeout]", "switchdiscover" => "Usage: switchdiscover [-h|--help|-v|--version] - switchdiscover [|--range ipranges] [-s scan_methods] [-r|-x|-z] [-w] [-V|--verbose]", + switchdiscover [|--range ipranges] [-s scan_methods] [-r|-x|-z] [-w] [-V|--verbose] [--setup]", "switchprobe" => "Usage: switchprobe [] [-V|--verbose | -c|--check]", "makentp" => diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index 427893ae87..d158858f24 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -1179,6 +1179,7 @@ sub runxcmd { my $save_CALLBACK = $::CALLBACK; + my $save_callback = $::callback; my ($class, $cmd, $subreq, $exitcode, $refoutput) = @_; $::RUNCMD_RC = 0; @@ -1248,7 +1249,7 @@ sub runxcmd } $::CALLBACK = $save_CALLBACK; # in case the subreq call changed it - + $::callback = $save_callback; # To keep $::callback also since some module use this global variable if ($::RUNCMD_RC) { my $displayerror = 1; @@ -3361,6 +3362,7 @@ my %MTM_P6P7 = ( '9117-MMB' => 1, '9179-MHB' => 1, '9119-FHB' => 1, + '9125-F2C' => 1, ); #----------------------------------------------------------------------------- diff --git a/perl-xCAT/xCAT/data/discinfo.pm b/perl-xCAT/xCAT/data/discinfo.pm index 88252d8594..43272157d0 100755 --- a/perl-xCAT/xCAT/data/discinfo.pm +++ b/perl-xCAT/xCAT/data/discinfo.pm @@ -95,8 +95,10 @@ require Exporter; "1384196516.465862" => "rhelhpc6.5", #x86_64, RHEL ComputeNode "1411733344.599861" => "rhelhpc6.6", #x86_64, RHEL ComputeNode "1435823078.264564" => "rhelhpc6.7", #x86_64, RHEL ComputeNode + "1460645249.741799" => "rhelhpc6.8", #x86_64, RHEL ComputeNode "1399449226.140088" => "rhelhpc7.0", #x86_64, RHEL ComputeNode "1424360759.772760" => "rhelhpc7.1", #x86_64, RHEL ComputeNode + "1446216863.725127" => "rhelhpc7.2", #x86_64, RHEL ComputeNode "1194015916.783841" => "fedora8", "1194015385.299901" => "fedora8", "1210112435.291709" => "fedora9", diff --git a/xCAT-IBMhpc/xCAT-IBMhpc.spec b/xCAT-IBMhpc/xCAT-IBMhpc.spec index 1410729826..32ed7f3d82 100644 --- a/xCAT-IBMhpc/xCAT-IBMhpc.spec +++ b/xCAT-IBMhpc/xCAT-IBMhpc.spec @@ -1,11 +1,11 @@ Summary: Install and configuration utilities for IBM HPC products in an xCAT cluster Name: xCAT-IBMhpc -Version: %(cat Version) -Release: snap%(date +"%Y%m%d%H%M") +Version: %{?version:%{version}}%{!?version:%(cat Version)} +Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")} Epoch: 4 License: EPL Group: Applications/System -Source: xCAT-IBMhpc-%(cat Version).tar.gz +Source: xCAT-IBMhpc-%{version}.tar.gz Packager: IBM Corp. Vendor: IBM Corp. Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} @@ -23,8 +23,8 @@ BuildArch: noarch #Requires: %endif -Requires: perl-xCAT >= %{epoch}:%(cat Version) -Requires: xCAT-client >= %{epoch}:%(cat Version|cut -d. -f 1,2) +Requires: perl-xCAT >= %{epoch}:%{version} +Requires: xCAT-client >= %{epoch}:%{version} Provides: xCAT-IBMhpc = %{epoch}:%{version} diff --git a/xCAT-OpenStack-baremetal/xCAT-OpenStack-baremetal.spec b/xCAT-OpenStack-baremetal/xCAT-OpenStack-baremetal.spec index 8546e6ad19..c82d9b36e3 100644 --- a/xCAT-OpenStack-baremetal/xCAT-OpenStack-baremetal.spec +++ b/xCAT-OpenStack-baremetal/xCAT-OpenStack-baremetal.spec @@ -1,7 +1,7 @@ Summary: Executables and data of the xCAT baremetal driver for OpenStack Name: xCAT-OpenStack-baremetal -Version: %(cat Version) -Release: snap%(date +"%Y%m%d%H%M") +Version: %{?version:%{version}}%{!?version:%(cat Version)} +Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")} Epoch: 4 License: IBM Group: Applications/System diff --git a/xCAT-OpenStack/xCAT-OpenStack.spec b/xCAT-OpenStack/xCAT-OpenStack.spec index 7f18179514..b1fae31bef 100644 --- a/xCAT-OpenStack/xCAT-OpenStack.spec +++ b/xCAT-OpenStack/xCAT-OpenStack.spec @@ -1,7 +1,7 @@ Summary: Meta-Metapackage for a common, default xCAT management node setup with OpenStack Name: xCAT-OpenStack -Version: %(cat Version) -Release: snap%(date +"%Y%m%d%H%M") +Version: %{?version:%{version}}%{!?version:%(cat Version)} +Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")} License: EPL Group: Applications/System Vendor: IBM Corp. @@ -10,7 +10,7 @@ Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} Prefix: /opt/xcat BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root #BuildArch: noarch -Source: xCAT-OpenStack-%(cat Version).tar.gz +Source: xCAT-OpenStack-%{version}.tar.gz Provides: xCAT-OpenStack = %{version} Requires: xCAT diff --git a/xCAT-SoftLayer/xCAT-SoftLayer.spec b/xCAT-SoftLayer/xCAT-SoftLayer.spec index 2000b5e91c..7166d1e9d3 100644 --- a/xCAT-SoftLayer/xCAT-SoftLayer.spec +++ b/xCAT-SoftLayer/xCAT-SoftLayer.spec @@ -1,11 +1,11 @@ Summary: Utilities to make xCAT work in a SoftLayer environment Name: xCAT-SoftLayer -Version: %(cat Version) -Release: snap%(date +"%Y%m%d%H%M") +Version: %{?version:%{version}}%{!?version:%(cat Version)} +Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")} Epoch: 4 License: EPL Group: Applications/System -Source: xCAT-SoftLayer-%(cat Version).tar.gz +Source: xCAT-SoftLayer-%{version}.tar.gz Packager: IBM Corp. Vendor: IBM Corp. Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} @@ -15,7 +15,6 @@ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root BuildArch: noarch %endif Requires: xCAT-server -#Requires: xCAT-server >= %{epoch}:%(cat Version|cut -d. -f 1,2) # perl-ExtUtils-MakeMaker, perl-CPAN, perl-Test-Harness are only available in rhel. # When this rpm supports being installed in sles, need to add these to xcat-dep. diff --git a/xCAT-UI/etc/apache2/conf.d/xcat-ui.conf.apach22 b/xCAT-UI/etc/apache2/conf.d/xcat-ui.conf.apach22 new file mode 100644 index 0000000000..11d5b3445e --- /dev/null +++ b/xCAT-UI/etc/apache2/conf.d/xcat-ui.conf.apach22 @@ -0,0 +1,15 @@ +Alias /xcat "/opt/xcat/ui" +PHPINIDir "/opt/xcat/ui" + +# Redirect all http request to https +RewriteEngine On +RewriteCond %{SERVER_PORT} 80 +RewriteCond %{HTTPS} !=on +RewriteRule ^/?xcat/(.*) https://%{SERVER_NAME}/xcat/$1 [R,L] + + + Options FollowSymLinks + AllowOverride None + Order allow,deny + Allow from all + diff --git a/xCAT-UI/etc/apache2/conf.d/xcat-ui.conf.apach24 b/xCAT-UI/etc/apache2/conf.d/xcat-ui.conf.apach24 new file mode 100644 index 0000000000..c6a9de3258 --- /dev/null +++ b/xCAT-UI/etc/apache2/conf.d/xcat-ui.conf.apach24 @@ -0,0 +1,14 @@ +Alias /xcat "/opt/xcat/ui" +PHPINIDir "/opt/xcat/ui" + +# Redirect all http request to https +RewriteEngine On +RewriteCond %{SERVER_PORT} 80 +RewriteCond %{HTTPS} !=on +RewriteRule ^/?xcat/(.*) https://%{SERVER_NAME}/xcat/$1 [R,L] + + + Options +FollowSymLinks + AllowOverride None + Require all granted + diff --git a/xCAT-UI/xCAT-UI.spec b/xCAT-UI/xCAT-UI.spec index e0be817db8..0881b8f8ab 100644 --- a/xCAT-UI/xCAT-UI.spec +++ b/xCAT-UI/xCAT-UI.spec @@ -1,14 +1,14 @@ Summary: Web Client for xCAT 2 Name: xCAT-UI -Version: %(cat Version) -Release: snap%(date +"%Y%m%d%H%M") +Version: %{?version:%{version}}%{!?version:%(cat Version)} +Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")} License: EPL Group: Applications/System URL: http://xcat.org Packager: IBM Vendor: IBM -Source: xCAT-UI-%(cat Version).tar.gz +Source: xCAT-UI-%{version}.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root %ifos linux BuildArch: noarch diff --git a/xCAT-UI/xcat/plugins/web.pm b/xCAT-UI/xcat/plugins/web.pm index c94b9c18dd..cd74bde6b2 100644 --- a/xCAT-UI/xcat/plugins/web.pm +++ b/xCAT-UI/xcat/plugins/web.pm @@ -1982,8 +1982,8 @@ sub web_summary { while (my ($key, $value) = each(%{$attrs})) { web_attrcount($value->[0]->{'os'}, \%oshash); web_attrcount($value->[0]->{'arch'}, \%archhash); - web_attrcount($value->[0]->{'provmethod'},, \%provhash); - web_attrcount($value->[0]->{'nodetype'},, \%typehash); + web_attrcount($value->[0]->{'provmethod'}, \%provhash); + web_attrcount($value->[0]->{'nodetype'}, \%typehash); } $attrs = $nodelistTab->getNodesAttribs(\@nodes, ['status']); diff --git a/xCAT-buildkit/xCAT-buildkit.spec b/xCAT-buildkit/xCAT-buildkit.spec index 766465817e..6809507c73 100644 --- a/xCAT-buildkit/xCAT-buildkit.spec +++ b/xCAT-buildkit/xCAT-buildkit.spec @@ -1,11 +1,11 @@ Summary: xCAT buildkit tools and sample kit Name: xCAT-buildkit -Version: %(cat Version) -Release: snap%(date +"%Y%m%d%H%M") +Version: %{?version:%{version}}%{!?version:%(cat Version)} +Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")} Epoch: 4 License: EPL Group: Applications/System -Source: xCAT-buildkit-%(cat Version).tar.gz +Source: xCAT-buildkit-%{version}.tar.gz Packager: IBM Corp. Vendor: IBM Corp. Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} diff --git a/xCAT-client/bin/genimage b/xCAT-client/bin/genimage index 6d803705fd..1030b7ae07 100755 --- a/xCAT-client/bin/genimage +++ b/xCAT-client/bin/genimage @@ -188,7 +188,7 @@ if ((!$imagename) && (!$os)) { } } - if ($#oses eq -1) { + if ($#oses == -1) { print "There are no OS repositories in $installdir. Please run copycds for the OS first.\n"; exit 1; } @@ -266,7 +266,7 @@ if ((!$imagename) && (!$profile)) { $seen{$f}++; } @profiles = sort keys %seen; - if ($#profiles eq -1) { + if ($#profiles == -1) { print "There are no profiles in $::XCATROOT/share/xcat/netboot/$osfamily.\n"; exit 1; } @@ -293,7 +293,7 @@ if ((!$imagename) && (!$profile)) { $match = 1; } } - if ($match eq 1) { + if ($match == 1) { last; } } diff --git a/xCAT-client/bin/mysqlsetup b/xCAT-client/bin/mysqlsetup index 5a4ccbf8c6..e242ed930d 100755 --- a/xCAT-client/bin/mysqlsetup +++ b/xCAT-client/bin/mysqlsetup @@ -405,12 +405,8 @@ if (($::INIT) && ($::xcatrunningmysql == 0)) my $cmd = "grep master $sitefile"; my @output = xCAT::Utils->runcmd($cmd, -1); my $hname; - if ($::RUNCMD_RC != 0) # no entry in site table - { - $hname = `hostname`; - chomp $hname; - } - else # from site.master + # from site.master + if ($::RUNCMD_RC == 0 ) { (my $attr, my $master) = split(",", $output[0]); (my $q, $hname) = split("\"", $master); @@ -418,6 +414,11 @@ if (($::INIT) && ($::xcatrunningmysql == 0)) } + if( "$hname" eq ""){ + $hname = `hostname`; + chomp $hname; + } + #my ($name, $aliases, $addrtype, $length, @addrs) = gethostbyname($hname); my $ipaddr = xCAT::NetworkUtils->getipaddr($hname); if ($ipaddr) @@ -915,7 +916,13 @@ sub initmysqldb } else { - $cmd = "/usr/bin/mysql_install_db --user=mysql"; + my $sqlcmd = "/usr/bin/mysql_install_db"; + if (!(-x ($sqlcmd))) { + xCAT::MsgUtils->message("E", "$sqlcmd is not available, please install required mysql/mariadb packages"); + exit(1); + } + + $cmd = "$sqlcmd --user=mysql"; } xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0) diff --git a/xCAT-client/bin/tcons b/xCAT-client/bin/tcons index c7f5ea4fb4..cc0af755d6 100755 --- a/xCAT-client/bin/tcons +++ b/xCAT-client/bin/tcons @@ -1,7 +1,7 @@ #!/bin/sh f=1 p=0 -for i in `nodels $1`; do +for i in `nodels "$1"`; do if [ "$f" = 1 ]; then f=0 qdate=$((`date +%s`+5)) diff --git a/xCAT-client/bin/xcatDBcmds b/xCAT-client/bin/xcatDBcmds index e646932b36..ff9bc9e739 100755 --- a/xCAT-client/bin/xcatDBcmds +++ b/xCAT-client/bin/xcatDBcmds @@ -69,7 +69,7 @@ if ((($^O =~ /^linux/i) && ($ENV{'SHELL'} =~ /\/ksh$/)) || !defined($ENV{'TERM'} } else { - if (-p STDIN) { + unless (-t STDIN) { while () { $data .= $_; } $cmdref->{stdin}->[0] = $data; } diff --git a/xCAT-client/pods/man1/bmcdiscover.1.pod b/xCAT-client/pods/man1/bmcdiscover.1.pod index 09abbe40c4..3d4058f51e 100644 --- a/xCAT-client/pods/man1/bmcdiscover.1.pod +++ b/xCAT-client/pods/man1/bmcdiscover.1.pod @@ -8,7 +8,7 @@ B [B<-?>|B<-h>|B<--help>] B [B<-v>|B<--version>] -B [B<-s> I] [B<-u> I] [B<-p> I] [B<-z>] [B<-w>] [B<-t>] B<--range> I +B [B<-s> I] [B<-u> I] [B<-p> I] [B<-z>] [B<-w>] B<--range> I B B<-u> I B<-p> I B<-i> I B<--check> @@ -45,10 +45,6 @@ List the data returned in xCAT stanza format Write to the xCAT database. -=item B<-t> - -Generate a BMC type node object - =item B<-i|--bmcip> BMC IP address. diff --git a/xCAT-client/pods/man1/chvm.1.pod b/xCAT-client/pods/man1/chvm.1.pod index 4a52a7a38b..99ec573f7d 100644 --- a/xCAT-client/pods/man1/chvm.1.pod +++ b/xCAT-client/pods/man1/chvm.1.pod @@ -38,7 +38,7 @@ B I [B<--devdetach> I...] =head2 VMware/KVM specific: -B I [B<-a> I] [B<-d> I] [B<-p> I] [B<--resize> B=I] [B<--cpus> I] [B<--mem> I] +B I [B<-a> I] [B<-d> I] [B<-p> I] [B<--resize> I=I] [B<--cpus> I] [B<--mem> I] =head2 zVM specific: @@ -236,7 +236,7 @@ Set the number of CPUs. =item B<-d> I -Deregister the Hard disk but leave the backing files. Multiple can be done with comma separated values. The disks are specified by SCSI id. Size defaults to GB. +Deregister the Hard disk but leave the backing files. Multiple can be done with comma separated values. The disks are specified by SCSI id. =item B<--mem> I @@ -244,11 +244,11 @@ Set the memory, defaults to MB. =item B<-p> I -Purge the Hard disk. Deregisters and deletes the files. Multiple can be done with comma separated values. The disks are specified by SCSI id. Size defaults to GB. +Purge the Hard disk. Deregisters and deletes the files. Multiple can be done with comma separated values. The disks are specified by SCSI id. -=item B<--resize> B=I +=item B<--resize> I=I -Change the size of the Hard disk. The disk can never be set to less than it's current size. Multiple disks can be resized to I by using comma separated values on the left side of B<=>. The disks are specified by SCSI id. Size defaults to GB. +Change the size of the Hard disk. The disk in I format can not be set to less than it's current size. The disk in I format can be resized smaller, use caution. Multiple disks can be resized by using comma separated IB<=>I pairs. The disks are specified by SCSI id. Size defaults to GB. =back @@ -572,7 +572,7 @@ The resource information after modification is similar to: lpar1: 1/2/2 lpar1: 128. -Note: The physical I/O resources specified with I will be appended to the specified partition. The physical I/O resources which are not specified but belonged to the partition will not be removed. For more information about I, please refer to L. +Note: The physical I/O resources specified with I will be appended to the specified partition. The physical I/O resources which are not specified but belonged to the partition will not be removed. For more information about I, refer to L. =head2 VMware/KVM specific: @@ -640,6 +640,10 @@ Output is similar to: gpok3: Replacing user entry of LNX3... Done +8. To resize virtual machine's disk sdb to 10G and sdc to 15G: + + chvm gpok3 --resize sdb=10G,sdc=15G + =head1 FILES /opt/xcat/bin/chvm diff --git a/xCAT-client/pods/man1/genimage.1.pod b/xCAT-client/pods/man1/genimage.1.pod index 7438a83299..7d24146045 100644 --- a/xCAT-client/pods/man1/genimage.1.pod +++ b/xCAT-client/pods/man1/genimage.1.pod @@ -29,7 +29,7 @@ for stateless: B for statelite: B -Besides prompting for some paramter values, the B command takes default guesses for the parameters not specified or not defined in the I and I tables. It also assumes default answers for questions from the yum/zypper command when installing rpms into the image. Please use B<--interactive> flag if you want the yum/zypper command to prompt you for the answers. +Besides prompting for some paramter values, the B command takes default guesses for the parameters not specified or not defined in the I and I tables. It also assumes default answers for questions from the yum/zypper command when installing rpms into the image. Use B<--interactive> flag if you want the yum/zypper command to prompt you for the answers. If B<--onlyinitrd> is specified, genimage only regenerates the initrd for a stateless image to be used for a diskless install. diff --git a/xCAT-client/pods/man1/getmacs.1.pod b/xCAT-client/pods/man1/getmacs.1.pod index 110d6ba544..68572339f8 100644 --- a/xCAT-client/pods/man1/getmacs.1.pod +++ b/xCAT-client/pods/man1/getmacs.1.pod @@ -54,7 +54,7 @@ Display MAC only. The default is to write the first valid adapter MAC to the xCA B<-D> -Perform discovery for mac address. By default, it will run ping test to test the connection between adapter and xCAT management node. Use '--noping' can skip the ping test to save time. Please be aware that in this way, the lpars will be reset. +Perform discovery for mac address. By default, it will run ping test to test the connection between adapter and xCAT management node. Use '--noping' can skip the ping test to save time. Be aware that in this way, the lpars will be reset. B<-f> diff --git a/xCAT-client/pods/man1/imgcapture.1.pod b/xCAT-client/pods/man1/imgcapture.1.pod index 7dbd35c31a..96b0b44a31 100644 --- a/xCAT-client/pods/man1/imgcapture.1.pod +++ b/xCAT-client/pods/man1/imgcapture.1.pod @@ -20,7 +20,7 @@ The B type: The attributes of osimage will be used to capture and prepare the root image. The B, B and B attributes for the stateless/statelite image to be created are duplicated from the B's attribute. If the B<-p|--profile> I option is specified, the image will be created under "/>/netboot///>/rootimg". -The default files/directories excluded in the image are specified by /opt/xcat/share/xcat/netboot//>...imgcapture.exlist; also, you can put your customized file (>...imgcapture.exlist) to /install/custom/netboot/. The directories in the default I<.imgcapture.exlist> file are necessary to capture image from the diskful Linux node managed by xCAT, please don't remove it. +The default files/directories excluded in the image are specified by /opt/xcat/share/xcat/netboot//>...imgcapture.exlist; also, you can put your customized file (>...imgcapture.exlist) to /install/custom/netboot/. The directories in the default I<.imgcapture.exlist> file are necessary to capture the image from the diskful Linux node managed by xCAT, don't remove it. The image captured will be extracted into the />/netboot/>/>/>/rootimg directory. diff --git a/xCAT-client/pods/man1/imgexport.1.pod b/xCAT-client/pods/man1/imgexport.1.pod index 9b45f46380..d3a1c26485 100644 --- a/xCAT-client/pods/man1/imgexport.1.pod +++ b/xCAT-client/pods/man1/imgexport.1.pod @@ -23,7 +23,7 @@ For stateful: For stateless: kernel initrd.gz - rootimg.gz + rootimg.cpio.xz or rootimg.cpio.gz or rootimg.tar.xz or rootimg.tar.gz or rootimg.gz(for backward-compatibility) x.pkglist x.otherpkgs.pkglist x.synclist diff --git a/xCAT-client/pods/man1/imgimport.1.pod b/xCAT-client/pods/man1/imgimport.1.pod index 0d89f089ee..b674ea0489 100644 --- a/xCAT-client/pods/man1/imgimport.1.pod +++ b/xCAT-client/pods/man1/imgimport.1.pod @@ -22,7 +22,7 @@ For stateful, the following files will be copied to the appropriate directories. For stateless, the following files will be copied to the appropriate directories. kernel initrd.gz - rootimg.gz + rootimg.cpio.xz or rootimg.cpio.gz or rootimg.tar.xz or rootimg.tar.gz or rootimg.gz(for backward-compatibility) x.pkglist x.otherpkgs.pkglist x.synclist diff --git a/xCAT-client/pods/man1/lsslp.1.pod b/xCAT-client/pods/man1/lsslp.1.pod index b93181db49..81d5cfdef3 100755 --- a/xCAT-client/pods/man1/lsslp.1.pod +++ b/xCAT-client/pods/man1/lsslp.1.pod @@ -13,13 +13,13 @@ B [I] [B<-V>] [B<-i> I] B<[-w] [-r|-x|-z] [-n] [-s =head1 DESCRIPTION -The lsslp command discovers selected service types using the -s flag. All service types are returned if the -s flag is not specified. If a specific IP address is not specified using the -i flag, the request is sent out all available network adapters. The optional -r, -x, -z and --vpdtable flags format the output. If you can't receive all the hardware, please use -T to increase the waiting time. +The lsslp command discovers selected service types using the -s flag. All service types are returned if the -s flag is not specified. If a specific IP address is not specified using the -i flag, the request is sent out all available network adapters. The optional -r, -x, -z and --vpdtable flags format the output. If you can't receive all the hardware, use -T to increase the waiting time. NOTE: SLP broadcast requests will propagate only within the subnet of the network adapter broadcast IPs specified by the -i flag. =head1 OPTIONS -B The nodes which the user want to discover. If the user specify the noderange, lsslp will just return the nodes in the node range. Which means it will help to add the new nodes to the xCAT database without modifying the existed definitions. But the nodes' name specified in noderange should be defined in database in advance. The specified nodes' type can be frame/cec/hmc/fsp/bpa. If the it is frame or cec, lsslp will list the bpa or fsp nodes within the nodes(bap for frame, fsp for cec). Please do not use noderange with the flag -s. +B The nodes which the user want to discover. If the user specify the noderange, lsslp will just return the nodes in the node range. Which means it will help to add the new nodes to the xCAT database without modifying the existed definitions. But the nodes' name specified in noderange should be defined in database in advance. The specified nodes' type can be frame/cec/hmc/fsp/bpa. If the it is frame or cec, lsslp will list the bpa or fsp nodes within the nodes(bap for frame, fsp for cec). Do not use noderange with the flag -s. B<-i> IP(s) the command will send out (defaults to all available adapters). @@ -54,7 +54,7 @@ B<-x> XML format. B<-z> Stanza formated output. -B<-I> Give the warning message for the nodes in database which have no SLP responses. Please note that this flag noly can be used after the database migration finished successfully. +B<-I> Give the warning message for the nodes in database which have no SLP responses. Note that this flag noly can be used after the database migration finished successfully. =head1 RETURN VALUE @@ -227,7 +227,7 @@ Output is similar to: bpa 9458-100 BPCF017 B-0 40.17.0.2 f17c00bpcb_a -8. To find the nodes within the user specified. Please make sure the noderange input have been defined in xCAT database. +8. To find the nodes within the user specified. Make sure the noderange input have been defined in xCAT database. lsslp CEC1-CEC3 or lsslp CEC1,CEC2,CEC3 diff --git a/xCAT-client/pods/man1/makentp.1.pod b/xCAT-client/pods/man1/makentp.1.pod index 81bae817be..eab9c1cb59 100755 --- a/xCAT-client/pods/man1/makentp.1.pod +++ b/xCAT-client/pods/man1/makentp.1.pod @@ -28,7 +28,7 @@ I -- the NTP servers for the service node and compute node to s =back -To setup NTP on the compute node, please add B postscript to the I table and run I command. +To setup NTP on the compute node, add B postscript to the I table and run I command. =head1 OPTIONS diff --git a/xCAT-client/pods/man1/mkdocker.1.pod b/xCAT-client/pods/man1/mkdocker.1.pod index 95479f4044..1f9ee535c1 100644 --- a/xCAT-client/pods/man1/mkdocker.1.pod +++ b/xCAT-client/pods/man1/mkdocker.1.pod @@ -29,7 +29,7 @@ The command that the instance will run based on the B specified. The B -A JSON string which will be used as parameters to create a docker. Please reference https://docs.docker.com/engine/reference/api/docker_remote_api_v1.22/ for more information about which parameters can be specified. +A JSON string which will be used as parameters to create a docker. Reference https://docs.docker.com/engine/reference/api/docker_remote_api_v1.22/ for more information about which parameters can be specified. Some useful flags are: diff --git a/xCAT-client/pods/man1/mkdsklsnode.1.pod b/xCAT-client/pods/man1/mkdsklsnode.1.pod index 9437186eab..5e0a95278d 100644 --- a/xCAT-client/pods/man1/mkdsklsnode.1.pod +++ b/xCAT-client/pods/man1/mkdsklsnode.1.pod @@ -45,7 +45,7 @@ You can use the force option to reinitialize a node if it already has resources After the mkdsklsnode command completes you can use the B command to check the NIM node definition to see if it is ready for booting the node. ("lsnim -l "). -You can supply your own scripts to be run on the management node or on the service node (if their is hierarchy) for a node during the B command. Such scripts are called B. They should be copied to /install/prescripts dirctory. A table called I is used to specify the scripts and their associated actions. The scripts to be run at the beginning of the B command are stored in the 'begin' column of I table. The scripts to be run at the end of the B command are stored in the 'end' column of I table. Please run 'tabdump prescripts -d' command for details. An example for the 'begin' or the 'end' column is: I. The following two environment variables will be passed to each script: NODES contains all the names of the nodes that need to run the script for and ACTION contains the current current nodeset action, in this case "diskless". If I<#xCAT setting:MAX_INSTANCE=number> is specified in the script, the script will get invoked for each node in parallel, but no more than I of instances will be invoked at at a time. If it is not specified, the script will be invoked once for all the nodes. +You can supply your own scripts to be run on the management node or on the service node (if their is hierarchy) for a node during the B command. Such scripts are called B. They should be copied to /install/prescripts dirctory. A table called I is used to specify the scripts and their associated actions. The scripts to be run at the beginning of the B command are stored in the 'begin' column of I table. The scripts to be run at the end of the B command are stored in the 'end' column of I table. Run 'tabdump prescripts -d' command for details. An example for the 'begin' or the 'end' column is: I. The following two environment variables will be passed to each script: NODES contains all the names of the nodes that need to run the script for and ACTION contains the current current nodeset action, in this case "diskless". If I<#xCAT setting:MAX_INSTANCE=number> is specified in the script, the script will get invoked for each node in parallel, but no more than I of instances will be invoked at at a time. If it is not specified, the script will be invoked once for all the nodes. =head1 OPTIONS diff --git a/xCAT-client/pods/man1/mkvm.1.pod b/xCAT-client/pods/man1/mkvm.1.pod index b4d4f0e192..700521841a 100644 --- a/xCAT-client/pods/man1/mkvm.1.pod +++ b/xCAT-client/pods/man1/mkvm.1.pod @@ -28,7 +28,7 @@ B I [B I] [B I] [ B I [B<-s|--size> I] [B<--mem> I] [B<--cpus> I] [B<-f|--force>] -=head2 For Vmware: +=head2 For VMware: B I [B<-s>|B<--size> I] [B<--mem> I] [B<--cpus> I] @@ -42,13 +42,13 @@ B I [I] [B I] =head2 For PPC (with HMC) specific: -The first form of mkvm command creates new partition(s) with the same profile/resources as the partition specified by I. The -i and I specify the starting numeric partition number and the I for the newly created partitions, respectively. The LHEA port numbers and the HCA index numbers will be automatically increased if they are defined in the source partition. +The first form of B command creates new partition(s) with the same profile/resources as the partition specified by I. The -i and I specify the starting numeric partition number and the I for the newly created partitions, respectively. The LHEA port numbers and the HCA index numbers will be automatically increased if they are defined in the source partition. The second form of this command duplicates all the partitions from the source specified by I to the destination specified by I. The source and destination CECs can be managed by different HMCs. -Please make sure the nodes in the I is defined in the I table and the I is set to 'hmc' in the I table before running this command. +Make sure the nodes in the I is defined in the I table and the I is set to 'hmc' in the I table before running this command. -Please note that the mkvm command currently only supports creating standard LPARs, not virtual LPARs working with VIOS server. +Note that the B command currently only supports creating standard LPARs, not virtual LPARs working with VIOS server. =head2 For PPC (using Direct FSP Management) specific: @@ -56,15 +56,13 @@ With option I, a partition using all the resources on a normal power machi If no option is specified, a partition using the parameters specified with attributes such as 'vmcpus', 'vmmory', 'vmphyslots', 'vmothersetting', 'vmnics', 'vmstorage' will be created. Those attributes can either be specified with '*def' commands running before or be specified with this command. -=head2 For KVM and Vmware: +=head2 For KVM and VMware: -The mkvm command creates new virtual machine(s) with the I size of hard disk, I size of memory and I number of cpu. +The B command creates new virtual machine(s) with the I size of hard disk, I size of memory and I number of cpu. -For KVM: If B<-f>|B<--force> is specified, the storage will be destroyed first if it existed. - =head2 For zVM: -The first form of mkvm creates a new virtual machine based on a directory entry. +The first form of B creates a new virtual machine based on a directory entry. The second form of this creates a new virtual machine with the same profile/resources as the specified node (cloning). @@ -96,7 +94,7 @@ The option I is used to specify the partition that will be created is a VI =item B<-f|--force> -If B<-f|--force> is specified, the storage will be destroyed first if it existed. +If the storage already exists, remove it before creating a new virtual machine. =item B<-i> diff --git a/xCAT-client/pods/man1/monadd.1.pod b/xCAT-client/pods/man1/monadd.1.pod index 8c336ffc38..1e587afddf 100644 --- a/xCAT-client/pods/man1/monadd.1.pod +++ b/xCAT-client/pods/man1/monadd.1.pod @@ -20,7 +20,7 @@ This command is used to register a monitoring plug-in module to monitor the xCAT I is the name of the monitoring plug-in module. For example, if the the I is called I, then the actual file name that the xcatd looks for is I. Use I command to list all the monitoring plug-in modules that can be used. -I is the monitoring plug-in specific settings. It is used to customize the behavior of the plug-in or configure the 3rd party software. Format: I<-s key-value -s key=value ...> Please note that the square brackets are needed here. Use I command to look for the possbile setting keys for a plug-in module. +I is the monitoring plug-in specific settings. It is used to customize the behavior of the plug-in or configure the 3rd party software. Format: I<-s key-value -s key=value ...> Note that the square brackets are needed here. Use I command to look for the possbile setting keys for a plug-in module. =head1 OPTIONS diff --git a/xCAT-client/pods/man1/monrm.1.pod b/xCAT-client/pods/man1/monrm.1.pod index a38793e115..d535317b93 100644 --- a/xCAT-client/pods/man1/monrm.1.pod +++ b/xCAT-client/pods/man1/monrm.1.pod @@ -39,7 +39,7 @@ B<-v | --version> Command Version. monrm gangliamon -Please note that gangliamon must have been registered in the xCAT I table. For a list of registered plug-in modules, use command B. +Note that gangliamon must have been registered in the xCAT I table. For a list of registered plug-in modules, use command B. diff --git a/xCAT-client/pods/man1/monstop.1.pod b/xCAT-client/pods/man1/monstop.1.pod index 0d0511bfea..230b8cd91c 100644 --- a/xCAT-client/pods/man1/monstop.1.pod +++ b/xCAT-client/pods/man1/monstop.1.pod @@ -46,7 +46,7 @@ B<-v | -version> Command Version. monstop gangliamon -Please note that gangliamon must have been registered in the xCAT I table. For a list of registered plug-in modules, use command I. +Note that gangliamon must have been registered in the xCAT I table. For a list of registered plug-in modules, use command I. diff --git a/xCAT-client/pods/man1/nimnodeset.1.pod b/xCAT-client/pods/man1/nimnodeset.1.pod index 6b3ad0b913..2e9b9835f0 100644 --- a/xCAT-client/pods/man1/nimnodeset.1.pod +++ b/xCAT-client/pods/man1/nimnodeset.1.pod @@ -41,7 +41,7 @@ This command will also create a NIM script resource to enable the xCAT support f After the B command completes you can use the B command to check the NIM node definition to see if it is ready for booting the node. ("lsnim -l "). -You can supply your own scripts to be run on the management node or on the service node (if their is hierarchy) for a node during the B command. Such scripts are called B. They should be copied to /install/prescripts dirctory. A table called I is used to specify the scripts and their associated actions. The scripts to be run at the beginning of the B command are stored in the 'begin' column of I table. The scripts to be run at the end of the B command are stored in the 'end' column of I table. Please run 'tabdump prescripts -d' command for details. An example for the 'begin' or the 'end' column is: I. The following two environment variables will be passed to each script: NODES contains all the names of the nodes that need to run the script for and ACTION contains the current nodeset action, in this case "standalone". If I<#xCAT setting:MAX_INSTANCE=number> is specified in the script, the script will get invoked for each node in parallel, but no more than I of instances will be invoked at at a time. If it is not specified, the script will be invoked once for all the nodes. +You can supply your own scripts to be run on the management node or on the service node (if their is hierarchy) for a node during the B command. Such scripts are called B. They should be copied to /install/prescripts dirctory. A table called I is used to specify the scripts and their associated actions. The scripts to be run at the beginning of the B command are stored in the 'begin' column of I table. The scripts to be run at the end of the B command are stored in the 'end' column of I table. Run 'tabdump prescripts -d' command for details. An example for the 'begin' or the 'end' column is: I. The following two environment variables will be passed to each script: NODES contains all the names of the nodes that need to run the script for and ACTION contains the current nodeset action, in this case "standalone". If I<#xCAT setting:MAX_INSTANCE=number> is specified in the script, the script will get invoked for each node in parallel, but no more than I of instances will be invoked at at a time. If it is not specified, the script will be invoked once for all the nodes. =head1 OPTIONS diff --git a/xCAT-client/pods/man1/packimage.1.pod b/xCAT-client/pods/man1/packimage.1.pod index c2f8bdc5c5..5b2b2a8374 100644 --- a/xCAT-client/pods/man1/packimage.1.pod +++ b/xCAT-client/pods/man1/packimage.1.pod @@ -8,20 +8,17 @@ B B -B I +B [B<-m>|B<--method> I] [B<-c>|B<--compress> I] I =head1 DESCRIPTION -Packs the stateless image from the chroot file system into a file system to be -sent to the node for a diskless install. -The install dir is setup by using "installdir" attribute set in the site table. -The nodetype table "profile" attribute for the node should reflect the profile of the install image. +Packs the stateless image from the chroot file system into a file to be sent to the node for a diskless boot. -This command will get all the necessary os image definition files from the I and I tables. +Note: For an osimage that is deployed on a cluster, running packimage will overwrite the existing rootimage file and be unavailable to the compute nodes while packimage is running. =head1 PARAMETERS -I specifies the name of a os image definition to be used. The specification for the image is stored in the I table and I table. +I specifies the name of a OS image definition to be used. The specification for the image is stored in the I table and I table. =head1 OPTIONS @@ -30,13 +27,9 @@ B<-h> Display usage message. B<-v> Command Version. -B<-o> Operating system (fedora8, rhel5, sles10,etc) +B<-m| --method> Archive Method (cpio,tar,squashfs, default is cpio) -B<-p> Profile (compute,service) - -B<-a> Architecture (ppc64,x86_64,etc) - -B<-m> Method (cpio,txc,squashfs, default is cpio) +B<-c| --compress> Compress Method (pigz,gzip,xz, default is pigz/gzip) =head1 RETURN VALUE @@ -47,10 +40,13 @@ B<-m> Method (cpio,txc,squashfs, default is cpio) =head1 EXAMPLES -1. To pack the osimage rhels7.1-x86_64-netboot-compute: +1. To pack the osimage 'rhels7.1-x86_64-netboot-compute': packimage rhels7.1-x86_64-netboot-compute +2. To pack the osimage 'rhels7.1-x86_64-netboot-compute' with "tar" to archive and "pigz" to compress: + + packimage -m tar -c pigz rhels7.1-x86_64-netboot-compute =head1 FILES diff --git a/xCAT-client/pods/man1/rcons.1.pod b/xCAT-client/pods/man1/rcons.1.pod index 384a7bb676..f6b80b19fd 100644 --- a/xCAT-client/pods/man1/rcons.1.pod +++ b/xCAT-client/pods/man1/rcons.1.pod @@ -16,7 +16,7 @@ multiple read-only instances of the console, plus console logging. If I is specified, the conserver daemon on that host will be contacted, instead of on the local host. -To exit the console session, enter: e c . +To exit the console session, enter: e c . =head1 B diff --git a/xCAT-client/pods/man1/rflash.1.pod b/xCAT-client/pods/man1/rflash.1.pod index 440caebf8e..9f501f3cfa 100644 --- a/xCAT-client/pods/man1/rflash.1.pod +++ b/xCAT-client/pods/man1/rflash.1.pod @@ -40,7 +40,7 @@ The command will update firmware for NeXtScale FPC when given an FPC node and th =head2 PPC (with HMC) specific: -The B command uses the B command to connect to the HMC controlling the given managed system and perform the updates. Before run B, please use B to check if the related HMC ssh is enabled. If enable a HMC ssh connection, please use B comamnd. +The B command uses the B command to connect to the HMC controlling the given managed system and perform the updates. Before running B, use B to check if the related HMC ssh is enabled. To enable a HMC ssh connection, use B comamnd. B This command may take considerable time to complete, depending on the number of systems being updated and the workload on the target HMC. In particular, power subsystem updates may take an hour or more if there are many attached managed systems. @@ -58,7 +58,7 @@ Any previously activated code on the affected systems will be automatically acce B If the power subsystem is recycled, all of its attached managed systems will be recycled. -If it outputs B<"Timeout waiting for prompt"> during the upgrade, please set the B<"ppctimeout"> larger in the B table. After the upgrade, remeber to change it back. If run the B<"rflash"> command on an AIX management node, need to make sure the value of B<"useSSHonAIX"> is B<"yes"> in the site table. +If it outputs B<"Timeout waiting for prompt"> during the upgrade, set the B<"ppctimeout"> larger in the B table. After the upgrade, remeber to change it back. If run the B<"rflash"> command on an AIX management node, need to make sure the value of B<"useSSHonAIX"> is B<"yes"> in the site table. =head2 PPC (using Direct FSP Management) specific: diff --git a/xCAT-client/pods/man1/rinv.1.pod b/xCAT-client/pods/man1/rinv.1.pod index c70e21cb31..2a0540235d 100644 --- a/xCAT-client/pods/man1/rinv.1.pod +++ b/xCAT-client/pods/man1/rinv.1.pod @@ -10,6 +10,10 @@ B [B<-h>|B<--help>|B<-v>|B<--version>] B I {B|B|B|B|B|B|B|B|B|B|B|B|B|B} +=head2 OpenPOWER server specific: + +B I {B|B|B|B|B|B|B|B|B} + =head2 PPC (with HMC) specific: B I {B|B|B|B|B|B} @@ -118,6 +122,10 @@ Retrieves mprom firmware level Retrieves device identification. Usually device, manufacturing and product ids. +=item B + +Retrieves the universally unique identifier + =item B Retrieves the global unique identifier diff --git a/xCAT-client/pods/man1/rpower.1.pod b/xCAT-client/pods/man1/rpower.1.pod index c81492af35..a15206d670 100644 --- a/xCAT-client/pods/man1/rpower.1.pod +++ b/xCAT-client/pods/man1/rpower.1.pod @@ -123,7 +123,7 @@ Wake up the target nodes which is in B state. Don't try to run B against the 'on' state node, it would cause the node gets to 'off' state. -For some of xCAT hardware such as NeXtScale, it may need to enable S3 before using B. The following steps can be used to enable S3. Please reference L for "pasu" usage. +For some of xCAT hardware such as NeXtScale, it may need to enable S3 before using B. The following steps can be used to enable S3. Reference L for "pasu" usage. [root@xcatmn home]# echo "set Power.S3Enable Enable" > power-setting [root@xcatmn home]# pasu -b power-setting node01 diff --git a/xCAT-client/pods/man1/rspconfig.1.pod b/xCAT-client/pods/man1/rspconfig.1.pod index e2f89c4b1c..783eed89e5 100644 --- a/xCAT-client/pods/man1/rspconfig.1.pod +++ b/xCAT-client/pods/man1/rspconfig.1.pod @@ -18,7 +18,7 @@ B I B={B | I} =head2 BMC specific: -B I {B|B|B|B|B} +B I {B|B|B|B|B|B} B I B=I