From be9ca503fec0280303655c26ddcd887448851c12 Mon Sep 17 00:00:00 2001 From: chenglch Date: Thu, 17 Sep 2015 22:55:14 -0400 Subject: [PATCH] Add hierarchy doc phrase 2 Delete ubuntu ppc64le section in the diskfull installation document. --- .../appendix_a_setup_backup_service_nodes.rst | 2 +- .../hierarchy/define_service_node.rst | 10 +- .../hierarchy/service_node_for_diskfull.rst | 112 +++++++----------- 3 files changed, 51 insertions(+), 73 deletions(-) diff --git a/docs/source/advanced/hierarchy/appendix_a_setup_backup_service_nodes.rst b/docs/source/advanced/hierarchy/appendix_a_setup_backup_service_nodes.rst index 8798d1939..1673dc1d3 100644 --- a/docs/source/advanced/hierarchy/appendix_a_setup_backup_service_nodes.rst +++ b/docs/source/advanced/hierarchy/appendix_a_setup_backup_service_nodes.rst @@ -83,7 +83,7 @@ rhsn. lsdef cn4 | grep servicenode. :: servicenode=service1,rhsn -f a service node is offline ( e.g. service1), then you will see errors on +If a service node is offline ( e.g. service1), then you will see errors on your xdcp command, and yet if rhsn is online then the xdcp will actually work. This may be a little confusing. For example, here service1 is offline, but we are able to use rhsn to complete the xdcp. :: diff --git a/docs/source/advanced/hierarchy/define_service_node.rst b/docs/source/advanced/hierarchy/define_service_node.rst index 47bee6e7b..3e432c3d1 100644 --- a/docs/source/advanced/hierarchy/define_service_node.rst +++ b/docs/source/advanced/hierarchy/define_service_node.rst @@ -45,7 +45,7 @@ appropriate for SNs. Display the list of osimages and choose one with lsdef -t osimage For this example, let's assume you chose the stateful osimage definition for -rhels 6.3: rhels6.3-x86_64-install-service . If you want to modify any of the +rhels 7: rhels7-x86_64-install-service . If you want to modify any of the osimage attributes (e.g. ``kickstart/autoyast`` template, pkglist, etc), make a copy of the osimage definition and also copy to ``/install/custom`` any files it points to that you are modifying. @@ -53,12 +53,12 @@ any files it points to that you are modifying. Now set some of the common attributes for the SNs at the group level: :: chdef -t group service arch=x86_64 \ - os=rhels6.3 \ + os=rhels7 \ nodetype=osi profile=service \ netboot=xnba installnic=mac \ primarynic=mac \ - provmethod=rhels6.3-x86_64-install-service + provmethod=rhels7-x86_64-install-service Add Service Nodes to the servicenode Table ------------------------------------------ @@ -305,7 +305,7 @@ the keyword. Here is an example: The ipforward attribute should be enabled on all the xcatmaster nodes that will be acting as default gateways. You can set ipforward to 1 in the servicenode table or add the line "net.ipv4.ip_forward = 1" in file -``/etc/sysctl``.conf and then run "sysctl -p /etc/sysctl.conf" manually to +``/etc/sysctl.conf`` and then run "sysctl -p /etc/sysctl.conf" manually to enable the ipforwarding. Note:If using service node pools, the networks table dhcpserver attribute can @@ -339,7 +339,7 @@ ethernet network adapters connected to the HW service VLAN be configured. Configuring Secondary Adapters ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -o configure secondary adapters, see `Configuring_Secondary_Adapters +To configure secondary adapters, see `Configuring_Secondary_Adapters `_ diff --git a/docs/source/advanced/hierarchy/service_node_for_diskfull.rst b/docs/source/advanced/hierarchy/service_node_for_diskfull.rst index d8af3abdc..d783eb256 100644 --- a/docs/source/advanced/hierarchy/service_node_for_diskfull.rst +++ b/docs/source/advanced/hierarchy/service_node_for_diskfull.rst @@ -17,15 +17,15 @@ xCAT Management Node**. Copy the files to the Management Node (MN) and untar them in the appropriate sub-directory of ``/install/post/otherpkgs`` **Note for the appropriate directory below, check the -``otherpkgdir=/install/post/otherpkgs/rhels6.4/ppc64`` attribute of the +``otherpkgdir=/install/post/otherpkgs/rhels7/x86_64`` attribute of the osimage defined for the servicenode.** -For example ubuntu14.04.1-ppc64el-install-service **** :: +For example, for osimage rhels7-x86_64-install-service :: - mkdir -p /install/post/otherpkgs/ubuntu14.04.1/ppc64el/ - cd /install/post/otherpkgs/ubuntu14.04.1/ppc64el/ - tar jxvf core-rpms-snap.tar.bz2 - tar jxvf xcat-dep-ubuntu*.tar.bz2 + mkdir -p /install/post/otherpkgs/**rhels7**/x86_64/xcat + cd /install/post/otherpkgs/**rhels7**/x86_64/xcat + tar jxvf core-rpms-snap.tar.bz2 + tar jxvf xcat-dep-*.tar.bz2 Next, add rpm names into your own version of service...otherpkgs.pkglist file. In most cases, you can find an @@ -33,38 +33,19 @@ initial copy of this file under /opt/xcat/share/xcat/install/ . If not, copy one from a similar platform. :: - mkdir -p /install/custom/install/ubuntu/ - cp /opt/xcat/share/xcat/install/ubuntu/service.ubuntu.otherpkgs.pkglist/\ - install/custom/install/ubuntu/service.ubuntu.otherpkgs.pkglist - vi /install/custom/install/ubuntu/service.ubuntu.otherpkgs.pkglist + mkdir -p /install/custom/install/rh + cp /opt/xcat/share/xcat/install/rh/service.rhels7.x86_64.otherpkgs.pkglist \ + /install/custom/install/rh + vi /install/custom/install/rh/service.rhels7.x86_64.otherpkgs.pkglist Make sure the following entries are included in the -``/install/custom/install/ubuntu/service.ubuntu.otherpkgs.pkglist``: +/install/custom/install/rh/service.rhels7.x86_64.otherpkgs.pkglist: :: - mariadb-client - mariadb-common - xcatsn + xCATsn conserver-xcat - -The "pkgdir" should include the online/local ubuntu official mirror with the -following command: -:: - - chdef -t osimage -o ubuntu14.04.1-ppc64el-install-service \ - -p pkgdir="http://ports.ubuntu.com/ubuntu-ports trusty main, \ - http://ports.ubuntu.com/ubuntu-ports trusty-updates main, \ - http://ports.ubuntu.com/ubuntu-ports trusty universe, \ - http://ports.ubuntu.com/ubuntu-ports trusty-updates universe" - -plus the "otherpkgdir" should include the mirror under otherpkgdir on MN, this -can be done with: :: - - chdef -t osimage -o ubuntu14.04.1-ppc64el-install-service -p \ - otherpkgdir="http:// < Name or ip of Management Node > \ - /install/post/otherpkgs/ubuntu14.04.1/ppc64el/xcat-core/ \ - trusty main, http://< Name or ip of Management Node > \ - /install/post/otherpkgs/ubuntu14.04.1/ppc64el/xcat-dep/ trusty main" + perl-Net-Telnet + perl-Expect **Note: you will be installing the xCAT Service Node rpm xCATsn meta-package on the Service Node, not the xCAT Management Node meta-package. Do not install @@ -72,45 +53,41 @@ both.** Update the rhels6 RPM repository (rhels6 only) ---------------------------------------------- - * This section could be removed after the powerpc-utils-1.2.2-18.el6.ppc64.rpm is built in the base rhels6 ISO. * The direct rpm download link is: - ftp://linuxpatch.ncsa.uiuc.edu/PERCS/powerpc-utils-1.2.2-18.el6.ppc64.rpm -* The update steps are as following: :: + ``ftp://linuxpatch.ncsa.uiuc.edu/PERCS/powerpc-utils-1.2.2-18.el6.ppc64.rpm`` +* The update steps are as following: + - put the new rpm in the base OS packages + :: - put the new rpm in the base OS packages - cd /install/rhels6/ppc64/Server/Packages - mv powerpc-utils-1.2.2-17.el6.ppc64.rpm /tmp - cp /tmp/powerpc-utils-1.2.2-18.el6.ppc64.rpm - # make sure that the rpm is be readable by other users - chmod +r powerpc-utils-1.2.2-18.el6.ppc64.rpm + cd /install/rhels6/ppc64/Server/Packages + mv powerpc-utils-1.2.2-17.el6.ppc64.rpm /tmp + cp /tmp/powerpc-utils-1.2.2-18.el6.ppc64.rpm . + # make sure that the rpm is be readable by other users + chmod +r powerpc-utils-1.2.2-18.el6.ppc64.rpm +* create the repodata :: + cd /install/rhels6/ppc64/Server + ls -al repodata/ + total 14316 + dr-xr-xr-x 2 root root 4096 Jul 20 09:34 . + dr-xr-xr-x 3 root root 4096 Jul 20 09:34 .. + -r--r--r-- 1 root root 1305862 Sep 22 2010 20dfb74c144014854d3b16313907ebcf30c9ef63346d632369a19a4add8388e7-other.sqlite.bz2 + -r--r--r-- 1 root root 1521372 Sep 22 2010 57b3c81512224bbb5cebbfcb6c7fd1f7eb99cca746c6c6a76fb64c64f47de102-primary.xml.gz + -r--r--r-- 1 root root 2823613 Sep 22 2010 5f664ea798d1714d67f66910a6c92777ecbbe0bf3068d3026e6e90cc646153e4-primary.sqlite.bz2 + -r--r--r-- 1 root root 1418180 Sep 22 2010 7cec82d8ed95b8b60b3e1254f14ee8e0a479df002f98bb557c6ccad5724ae2c8-other.xml.gz + -r--r--r-- 1 root root 194113 Sep 22 2010 90cbb67096e81821a2150d2b0a4f3776ab1a0161b54072a0bd33d5cadd1c234a-comps-rhel6-Server.xml.gz + **-r--r--r-- 1 root root 1054944 Sep 22 2010 98462d05248098ef1724eddb2c0a127954aade64d4bb7d4e693cff32ab1e463c-comps-rhel6-Server.xml** + -r--r--r-- 1 root root 3341671 Sep 22 2010 bb3456b3482596ec3aa34d517affc42543e2db3f4f2856c0827d88477073aa45-filelists.sqlite.bz2 + -r--r--r-- 1 root root 2965960 Sep 22 2010 eb991fd2bb9af16a24a066d840ce76365d396b364d3cdc81577e4cf6e03a15ae-filelists.xml.gz + -r--r--r-- 1 root root 3829 Sep 22 2010 repomd.xml + -r--r--r-- 1 root root 2581 Sep 22 2010 TRANS.TBL + createrepo \ + -g repodata /98462d05248098ef1724eddb2c0a127954aade64d4bb7d4e693cff32ab1e463c-comps-rhel6-Server.xml -* create the repodata - -:: - - cd /install/rhels6/ppc64/Server - ls -al repodata/ - total 14316 - dr-xr-xr-x 2 root root 4096 Jul 20 09:34 . - dr-xr-xr-x 3 root root 4096 Jul 20 09:34 .. - -r--r--r-- 1 root root 1305862 Sep 22 2010 20dfb74c144014854d3b16313907ebcf30c9ef63346d632369a19a4add8388e7-other.sqlite.bz2 - -r--r--r-- 1 root root 1521372 Sep 22 2010 57b3c81512224bbb5cebbfcb6c7fd1f7eb99cca746c6c6a76fb64c64f47de102-primary.xml.gz - -r--r--r-- 1 root root 2823613 Sep 22 2010 5f664ea798d1714d67f66910a6c92777ecbbe0bf3068d3026e6e90cc646153e4-primary.sqlite.bz2 - -r--r--r-- 1 root root 1418180 Sep 22 2010 7cec82d8ed95b8b60b3e1254f14ee8e0a479df002f98bb557c6ccad5724ae2c8-other.xml.gz - -r--r--r-- 1 root root 194113 Sep 22 2010 90cbb67096e81821a2150d2b0a4f3776ab1a0161b54072a0bd33d5cadd1c234a-comps-rhel6-Server.xml.gz - **-r--r--r-- 1 root root 1054944 Sep 22 2010 98462d05248098ef1724eddb2c0a127954aade64d4bb7d4e693cff32ab1e463c-comps-rhel6-Server.xml** - -r--r--r-- 1 root root 3341671 Sep 22 2010 bb3456b3482596ec3aa34d517affc42543e2db3f4f2856c0827d88477073aa45-filelists.sqlite.bz2 - -r--r--r-- 1 root root 2965960 Sep 22 2010 eb991fd2bb9af16a24a066d840ce76365d396b364d3cdc81577e4cf6e03a15ae-filelists.xml.gz - -r--r--r-- 1 root root 3829 Sep 22 2010 repomd.xml - -r--r--r-- 1 root root 2581 Sep 22 2010 TRANS.TBL - createrepo -g repodata \ - /98462d05248098ef1724eddb2c0a127954aade64d4bb7d4e693cff32ab1e463c-comps-rhel6-Server.xml - - Note: you should use comps-rhel6-Server.xml with its key as the group file. +**Note:** you should use comps-rhel6-Server.xml with its key as the group file. Set the node status to ready for installation --------------------------------------------- @@ -122,14 +99,15 @@ service node. :: For example :: - nodeset service osimage="ubuntu14.04.1-ppc64el-install-service" + nodeset osimage="rhels7-x86_64-install-service" Initialize network boot to install Service Nodes ------------------------------------------------ :: - rnetboot service + rsetboot net + rpower boot Monitor the Installation ------------------------