Home
Scripting Toolkit for Linux V1.7
Contents
1. unzip 6 00 25 70 x86_64 rpm unzip coreutils 8 4 37 el6 1686 rpm id which 2 19 6 el6 1686 rpm which RHEL 6 6 tools32 InxUtils rhel66 zip 3 0 1 el6 1686 rpm zip AO unzip 6 0 1 e16 i686 rpm unzip coreutils 8 4 37 el6 x86_64 rpm id which 2 19 6 el6 x86_64 rpm which RHEL 6 4 tools64 InxUtils rhel66 nue zip 3 0 1 el6 x86 64 rpm zip unzip 6 0 1 el6 x86_64 rpm unzip User Guide 35 Setup of the Linux Deployment Environment coreutils 8 4 37 e16 1586 rpm id which 2 19 6 e16 i686 rpm which RHEL 6 7 8 tools32 InxUtils rhel67 286 zip 3 0 1 el6 i686 rpm zip unzip 6 0 1 e16 i686 rpm unzip coreutils 8 4 37 e16 x86_64 rpm id RHEL 6 7 x64 ee tools64 InxUtils rhel67 zip 3 0 1 el6 x86_64 rpm zip unzip 6 0 1 el6 x86_64 rpm unzip coreutils 8 22 11 e17 x86_64 rpm id which 2 20 7 el7 x86_64 rpm which RHEL 7 1 2 tools64 InxUtils rhel71 zip 3 0 10 el7 x86_64 rpm zip unzip 6 0 13 el7 x86_64 rpm unzip 5 4 4 Customize the RMC configuration file To configure the integrated Remote Management Controller iRMC for several PRIMERGY servers e g the IP address an overall configuration file can be used You can find an example file with the name stkScu clg in the repository folder script32 Adapt this file to your needs and copy it to the directory lt reposRoot gt hwProf lt chassisType gt See stkScu cfg for documentation 5 5 Setting up a NFS Server On the s
2. 5 User Guide 2 Scripting Toolkit Linux 2 1 About This Guide This user guide is intended as a reference for using the ServerView Scripting Toolkit Linux for deployment of PRIMERGY servers 2 2 Target Audience This guide 16 targeted at experienced administrators who are familiar with the servers of the PRIMERGY family from Fujitsu Technology Solutions and have a good knowledge of Linux and the installation guides of RedHat Enterprise Linux or SUSE Linux Enterprise Server 2 3 Safety Notes Caution Improper use of the toolkit utilities can result in loss of critical data Because of the potential risk of data loss only experienced individuals should use the toolkit utilities Before using the toolkit you must take all necessary precautions to ensure that mission critical systems remain online if a failure occurs 7 User Guide Scripting Toolkit Linux 24 Notational Conventions The following notational conventions are used in this manual Typewriter text Indicates elements of the syntax that must be entered exactly as shown in the Syntax section Italics Indicates variables arguments or file names Indicates an optional entry an option or argument enclosed in square brackets may be specified i e the entry is not mandatory Indicates an alternative option none one or more of several options or arguments can be specified Indicates that one or more options or arguments can be specifi
3. 10 tanque AB gt 10 Preparing the ServerView Scripting Toolkit repository 11 ServerView Scripting Toolkit Linux 13 A 13 A 13 3222 2 13 13 __ __ 22333 _ ____ 13 FACIET OTO ee 14 PP Tn 14 Sample En aaa ted 14 Setup of the Linux Deployment Environment 47 4 4 19 Customize the Initial 19 Unpack the Initial Ramdisk from ServerView Installation Manager 20 Insert STK start and configuration 21 Add M Kernel DD GGUS a E 22 Generate a customized Initial 22 Use the customized Initial Ramdisk to boot from 23 Using RedHat Enterprise LINUX 23 ana 24 Use the customized Initial Ramdisk in PXE boot environment 25 Using RedHat Enterpise APP a aa 25 User Guide 5 3 2 5 4 5 4 1 5 4 2 5 4 3 5 4 4 55 6 1 6 2 6 2 1 9 2 2 6 2 3 6 2 4 6 3 6 4 6 5 6 5 1 6 5 2 6 5 3 8 1 8 2 8 3 8 4 User Guide
4. 48 23 0 5 4 2 6 SLES12 SPO Install or unpack the packages glibc 2 19 17 72 libstdc 6 4 8 3 1212056 6 3 libstdc 6 4 8 3 1212056 6 3 libfreebl3 3 16 4 5 2 libgcc_51 4 8 3 1212056 6 3 User Guide SLES 11 SP4 x64 lt reposRoot gt tools64 lib sles1 1504 ld linux so 2 libaudit so 0 libc so 6 libcrypt so 1 libdl so 2 libm so 6 libnsl so 1 libnss compat so 2 libnss files so 2 libpamc so 0 libpam_misc so 0 libpam so 0 libpthread so 0 libresolv so 2 Tibrt so 1l libstdc so 5 libstdc so 6 33 Setup of the Linux Deployment Environment libopenss 1_0_0 1 0 1i 2 12 1 1 8 11 57 and copy the following library files to the directory lt reposRoot gt tools64 lib sles12sp0 in the ServerView Scripting Toolkit repository 1ib64 ld 2 19 50 libG4 libc 2 19 50 lib64 libcrypt 2 19 50 lib64 libdl 2 19 50 lib64 libfreeb 3 so lib64 libgcc s so 1 1ib64 libm 2 19 50 libG4 libnsl 2 79 50 lib64 libnss compat 2 19 50 lib64 libnss files 2 19 50 lib64 libpam so 0 83 1 lib64 libpam misc so 0 82 0 lib64 libpamc so 0 82 1 lib64 libpthread 2 19 50 libG4 libresolv 2 19 50 libG4 librt 2 19 50 usr libG4 libstdc so 6 0 19 usr libG4 libstdc so 6 0 19 Add the following softlinks in directory lt reposRoot gt tools64 lib sles12sp0 8 14 2 19 50 ld linux so 2 1106 2 19 809 11 50 6 liberypt 2 19 s0 libcrypt so 1 s 11041 2 19 50 libdl so 2 s libm 2 19 so libm so 6
5. folder the initial ramdisk delivered with the ServerView Installation Manager ServerView IM DVD will unpacked and customized lt work gt SVIMdir This folder will hold the appropriate initial ramdisk from the ServerView Installation Manager DVD itself 19 User Guide Setup of the Linux Deployment Environment The following steps are necessary before generating a customized initial ramdisk see next chapter e insert the start script files from the ServerView Scripting Toolkit into the initial ramdisk e inserta kickstart file for RHEL or an autoyast profile file for SLES into the initial ramdisk This file will run the ServerView Scripting Toolkit start scripts after system boot as a preinstallation script With this kickstart file for RHEL or autoyast profile file for SLES you can define all the parameters for a complete Linux installation Note The kickstart files delivered with the ServerView Scripting Toolkit are basic examples which cannot be expected to work in all environments Adapt if necessary e insert the kernel object files mptctl ko ipmi_si ko ipmi_msghandler ko into the initial ramdisk These kernel objects are needed for RAID configuration with Serverview RAID Manager or the configuration of the RMC with the ServerView Environment and Enclosure Control Daemon Control Program respectively 5 1 1 Unpack the Initial Ramdisk from ServerView Installation Manager On the SVIM DVD look fo
6. libe 2 12 80 liberypt 2 12 86 LiBbal 2 12 85 m libm 2 12 so s libnss files 2 12 so libpam so 0 82 2 libpam misc so 0 82 0 s libpthread 2 12 so 8 libresolv 2 12 so T9 Librt 2 12 80 s libstdct so 5 0 7 s libstdc s0 6 0 13 5 85 3 858 Um 3 8 8 83 81 8 s libtinfo so 5 7 5 4 2 3 RHEL 7 Update 1 From folder Packages on the OS DVD install or unpack the packages audit libs 2 4 1 5 e 7 x86_64 glibc 2 17 78 el7 x86_64 libgcc 4 8 3 9 el7 x86_64 libstdc 4 8 3 9 017 x86_64 30 libgec_s 4 4 7 20120601 so 1 li li 11 11 Setup of the Linux Deployment Environment ld linux so 2 baudit so 1 bc so 6 bcrypt so 1 bdl so 2 5 50 1 libm so 6 libnss files so 2 libpam so 0 libpam_misc so 0 libpthread so 0 libresolv so 2 librt so 1 libstdc so 5 libstdc so 6 libtinfo so 5 User Guide Setup of the Linux Deployment Environment ncurses libs 5 9 13 2013051 I el7 x86 64 nss softokn freebl 3 16 2 3 9 e 7 x06 64 pam 1 1 8 12 el7 x86 64 rpm and copy the following library files to the directory in the ServerView Scripting Toolkit repository reposRoot tools64 lib rhel7 1 lib64 ld 2 17 50 lib64 libaudit so 1 0 0 lib64 libc 2 17 50 lib64 liberypt 2 17 50 lib64 libdl 2 17 50 lib64 libgcc s 4 8 3 2014091 1 50 1 lib64 libm 2 17 50 lib64 libnss_files 2 17 50 lib64 libpthread 2 17 50 lib64 libresolv
7. stkDirAddOnSw Folder where the additional software is located within the repository stkSvRaidDir Folder where ServerView RAID Manager is located within the AddOn software folder stkSvAgentsDir Folder where ServerView Agents are is located within the AddOn software folder 4 2 1 8 OSunattend file location stkYastProfile Location of the SLES unattend file within the initial ramdisk stkKickStart Location of the RHEL unattend file within the initial ramdisk User Guide 17 5 Setup of the Linux Deployment Environment After installation the ServerView Scripting Toolkit main folder contains the toolkit s subdirectories doc hwProf scripts32 svimDVD tools32 and too s64 In this document this folder will be called the ServerView Scripting Toolkit repository and will be referred to as lt reposRoot gt Create a folder with pathname lt work gt Here all the work will be done to create the customized initial ramdisk and the bootable ISO image containing this ramdisk Notes It is recommended to set up the Linux Deployment Environment as user root This document assumes the initial ramdisks to be customized are the same as on ServerView IM V11 15 07 The base for these initial ramdisks may change in later versions of ServerView IM Check version txt for the initial ramdisk version and adapt the customization accordingly 5 1 Customize the Initial Ramdisk Create the subdirectories lt work gt adaptiniRamDir In this
8. xml splash silent or like this for RHEL 7 default linux label linux kernel linux append initrd initrd autoyast file stk stkYastProfile xml splash silent install lt PathToInstallationSource gt 26 User Guide Setup of the Linux Deployment Environment 5 4 Prepare the STK repository Note Check version txt for the initial ramdisk version and adapt the preparations accordingly 5 4 1 Add PRIMERGY Driver Module Packages The table following shows for each supported Linux OS the archive s that must be copied to their target directory in the ServerView Scripting Toolkit repository from their path on the SVIM DVD lt DVDroot gt Unix Linux lt LinuxType gt lt Distribution gt Remotelnstallation 05 name of archive target directory in repository SLES11 SP4 x86 kmp_3 0 101 63 default tgz svimDVD sles11sp4 SLES11 SP4 x64 kmp_3 0 101 63 default tgz svimDVD sles11sp4 x64 SLES12 SPO x64 kmp_3 12 28 4 default tgz svimDVD sles12sp0 x64 RHEL 6 6 x86 kmp_2 6 32 504 el6 1686 tgz a imDVD rhel66 RHEL 6 6 x64 kmp_2 6 32 504 el6 x86_64 tqz RHEL 6 7 x86 kmp_2 6 32 573 el6 1686 tgz imDVD rhel67 RHEL 6 7 x64 2 6 32 573 e16 x86 64 tgz RHEL 7 1 kmp_3 10 0 229 el7 x86_64 tgz svimDVD rhel71 Note The KMP file s contain the drivers for the OS to be installed Make sure to keep them as much up to date as possible User Guide 27 Setup of the Linux Deployment Environment 5 4 2 Add Lin
9. 2 17 50 lib64 librt 2 17 50 usr lib64 libfreebl3 so usr lib64 libtinfo so 5 9 usr lib64 libpam so 0 83 1 usr lib64 libbam misc so 0 82 0 usr lib64 libstdc 50 6 0 19 Add the following softlinks in directory 83 5 due ug ts lt reposRoot gt foo s64 lib rhel70 14 2 17 50 libaudit so 1 0 0 libc 2 17 so libcrypt 2 17 so libdl 2 17 so 11 5 4 8 3 20140911 50 1 libm 2 17 so libnss files 2 17 so libpam so 0 83 1 libpam misc so 0 82 0 libpthread 2 17 so libresolv 2 17 so T3brt 2 10775459 User Guide li li li li Tr li li li li Ii ld linux so 2 baudit so 1 bc so 6 bcrypt so 1 bdl so 2 libgcc_s so 1 bm so 6 bnss files so 2 bpam so 0 bpam misc so 0 bpthread so 0 bresolv so 2 128021 31 Setup of the Linux Deployment Environment ln s libstdc s0 6 0 19 libstdc so 6 In s libtinfo so 5 9 libtinfo so 5 5 4 2 4 Other RHEL versions Using the above chapters as reference adapt the RHEL package and library versions to the RHEL version to be used 5 4 2 5 SLES11 SP4 Install or unpack the packages SLES 11 SP4 x86 SLES 11 SP4 x64 audit libs 1 8 0 34 1 audit libs 32bit 1 8 0 34 1 glibc 2 11 3 17 84 1 glibc 32bit 2 11 3 17 84 1 libstdc 33 3 3 3 11 9 libstdc 33 32bit 3 3 3 11 9 libstdc 6 4 8 3 1212056 2 17 libstdc 6 32bit 4 8 3 1212056 2 17 libfreeb 3 3 17 3 0 8 11 libfreebl3 32bit 3 3 17 3 0 8 11 libgcc_51 4 8
10. 3 12 28 4 x86_64 rpm rpm2cpio kernel default 3 12 28 4 x86 64 rpm cpio 14 cp p lib modules default kernel drivers message fusion mptctl ko lib modules x86_64 kernel drivers char ipmi ipmi_si ko lib modules x86 64 kernel drivers char ipmi ipmi devintf ko lib modules x86_64 kernel drivers char ipmi ipmi_msghandler kol SWORK adaptIniRamDir stk 6 2 4 Generate the customized intitial ramdisk SWORK adaptIniRamDir find H newc olgzip gt WORK adaptBootIsoDir isolinux initrd 6 3 Adapt the PXE Server Refer to the SLES12 Documentation Chapter 11 3 3 Using PXE Boot for information on how to set up your PXE Server Replace initrd with your customized intital ramdisk generated in file 3WORK initrd Replace linux with Unix Linux SuSE SLES 12SP0 X86 64 Remotelnstallation vmlinuz se 12 from the SVIM DVD User Guide 41 Example Configuring and Installing a PRIMERGY Server Overwrite the file pxelinux cfg default with this content default linux label linux kernel linux append initrd initrd autoyast file stk stkYastProfile xml splash silent install ftp 192 168 44 25 SLES12SP0 6 4 Generate the ISO image for a bootable CD mkdir WORK adaptBootLoaderDir cd SWORK adaptBootLoaderDir Get the files for the bootable CD wget r 10 nH cut dirs 3 ftp 192 168 44 25 SLES12SP0 boot Replace the original intital ramdisk with your customized one cp SWORK initrd WORK adaptBootLoaderDir
11. 3 1212056 2 17 libgcc_51 32bit 4 8 3 1212056 2 17 libopenss 0_9_8 0 9 8j 0 70 1 libopenssi0_9 8 0 9 8j 0 70 1 pam 1 1 5 0 15 9 pam 32bit 1 1 5 0 15 9 and copy the following library files to the directory SLES 11 SP4 x86 SLES 11 SP4 x64 lt reposRoot gt tools32 lib sles1 1504 lt reposRoot gt tools64 lib sles1 1504 in the ServerView Scripting Toolkit repository lib ld 2 1 7 3 50 lib libaudit so 0 0 0 lib libc 2 1 1 3 50 lib libcrypt 2 11 3 50 lib libdl 2 1 1 3 50 libflibfreebl3 so lib libgcc s so 1 lib libm 2 11 3 50 lib libnsl 2 11 3 50 lib libnss compat 2 11 3 so lib libnss files 2 11 3 so lib libpam so 0 83 1 32 User Guide Setup of the Linux Deployment Environment lib libpam misc so 0 82 0 lib libpamc so 0 82 1 lib libpthread 2 1 1 3 50 lib libresolv 2 1 1 3 50 libflibrt 2 11 3 50 usr lib libcrypto 50 0 9 8 ust libflibstdc 50 5 0 7 usr lib libstdc 50 6 0 19 Add the following softlinks in directory SLES 11 SP4 x86 lt reposRoot gt tools32 lib sles11sp4 1472 11 3 80 s libaudit so 0 0 0 e Jibc 2 11 3 80 eS diberypts2 113 86 s libdl 2 11 3 so libm 2 11 3 so s libnsl 2 11 3 so s libnss compat 2 11 3 so libnss files 2 11 3 so 8 libpamoc so 0 82 1 libpam misc so 0 82 0 8 dibpam so 0 83 1 s libpthread 2 11 3 so libresolv 2 11 3 so 8 dibrt 2 11 3 80 Ji bstdc so 5 0 7 s libstdott so 6 0 19 0233 S dd ts Sa xc UE 93
12. 4 4 7 20120601 50 1 11 s so 1 lm s libm 2 12 50 libm so 6 ln s libnss files 2 12 so libnss files so 2 In s libpam so 0 52 2 libpam so 0 In s libpam misc so 0 82 0 libpam misc so 0 ln s libpthread 2 12 so libpthread so 0 ln s libresolv 2 12 80 libresolv so 2 ln es librt 2 12 860 librt so 1 ln s libstdctt so 5 0 7 libstdc so 5 ln s libstdc s0 6 0 13 libstdc so 6 in 8 libtinfo so 5 7 libtinfo so 5 5 4 2 2 RHEL 6 Update 7 From folder Packages on the OS DVD install or unpack the packages audit libs 2 3 1 5 el6 i686 compat libstdc 33 3 2 3 69 el6 i686 glibc 2 12 1 166 e 6 1686 libgcc 4 4 1 16 e 6 1686 libstdc 4 4 1 16 e 6 1686 ncurses libs 5 7 4 20090207 e16 1686 nss softokn freebl 3 14 3 22 e16 1686 1 1 1 20 616 686 and copy the following library files to the directory lt reposRoot gt 100 532 lib rhel67 in the ServerView Scripting Toolkit repository lib ld 2 12 50 Nib libaudit so 1 0 0 libflibc 2 12 50 libfliberypt 2 12 50 User Guide 29 lib libdl 2 12 50 lib libfreebl3 so libflibgec_S 4 4 7 20120601 50 1 libflibm 2 12 50 libflibnss_files 2 12 50 lib libpam so 0 82 2 lib libpam misc so 0 82 0 lib libpthread 2 12 50 Iib libresolv 2 12 50 2 12 50 lib libtinfo 50 5 7 usr libflibstdc 50 5 0 7 usr libflibstdc 50 6 0 13 Add the following softlinks in directory lt reposRoot gt to0 s32 lib rhel67 es 42412285 libaudit so 1 0 0 as
13. Contents Using SUSE Linux Enterprise T ee 26 Prepare the STE repost idad 27 Add PRIMERGY Driver Module Packages nennen 27 Add Unix systemi ans src 28 A EAEE PANEER 35 Customize the RMC configuration 4 36 36 Example Configuring and Installing a PRIMERGY 39 Unpack ServerView Scripting Toolkit tgz in lt gt 39 Customize 4113 EE oo S 39 Unpack Initial Ramdisk from ServerView IM ener 39 II 40 Add the kernel objects to the Initial Ramdisk enne 41 Generate the customized intitial ramdisk eene 4 PAE SAMET aaa 41 Generate the 150 image for a bootable 42 Prepare te SK 2 gt gt M MM 43 Add PRIMERGY Kernel Modul Packages ooooocociononnconcononnocncorennannonronoornnncoronrnnnoos 43 Adad Linux estem I anna 43 44 ___ ___ 2 2222 __ _ _ 47 PA 49 Supported Operating Syslems une 49 Supported PRIMERGY SOS us 49 Released Utilities Versions iia 51 a 51 4 1 Preface T
14. EL 6 7 x86 x64 RHEL 7 1 x64 SLES11 SP4 x86 x64 SLES12 SPO x64 8 2 Supported PRIMERGY Systems Blade Systems BX62056 BX92051 BX92052 BX92053 BX92054 2252 BX92452 BX92453 BX92454 BX96051 BX2560M1 BX2560M2 BX2580M1 BX2580M2 Cloud Systems 49 12251 25051 25052 27051 27052 X272S1 2550 1 CX2550M2 2570 1 CX2570M2 User Guide Addendum Micro Systems e MX13051 MX130 52 Rack Systems RX10055 RX100S6 RX10057 RX100S7p RX100S8 RX20057 RX200S8 RX30057 RX30058 RX35057 RX35058 RX50057 RX60056 RX90051 RX90052 RX1330M1 RX1330M2 RX2510M1 RX2510M2 RX2520M1 RX2520M2 RX2530M1 RX2530M2 RX2540M1 RX2540M2 RX2560M1 RX4770M1 RX4770M2 RX4770M3 Storage Systems e 5 13151 SX150 S8 5 350 58 Tower Systems 10051 10052 10053 10053 120 12051 12052 12053 12053 14051 14051 14052 15057 15058 20057 0057 0058 1310 1 1310 2 1320 1 1320 2 1330 1 2540 1 2560 1 50 User Guide Addendum 8 3 Released Utilities Versions ServerView RAID amCLI V6 2 8 ServerView Agents Linux eecd eecdcp DeskView BIOS Management Linux deskflash biosset 1 62 0056 NVRAM_Read_Write_CX400 1 0 5 8 4 Restrictions The following restrictions apply to V1 7 of the ServerView Scripting Toolkit e BIOS cannot be sav
15. S or FTP pathname for the Linux Distribution installation tree and all other parameters for an unattended kickstart installation With the pre RHEL respectively the lt source gt SLES keyword and the following command 2 gt amp 1 stk stkProfile sh gt stk stkMessages log the ServerView Scripting Toolkit start files will be executed after system boot User Guide 21 Setup of the Linux Deployment Environment When installing SUSE Linux Enterprise Server add a softlink to the autoyast profile in the root folder of the initial ramdisk Otherwise the SLES installation program cannot find the autoyast profile 5 1 3 Add the Kernel Objects To be able to use ServerView RAID to configure RAID controllers the kernel object mptctl ko is required For the configuration of the iRMC the IPMI kernel objects jomi _si ko pmi_devintf ko and ipmi msghandler ko are required Unpack the package kernel version el version arch pm RHEL kernel default version arch rpm SLES from your Linux DVD and copy the kernel objects lib modules version kernel drivers char pmi ipmi_si ko lib modules version kernel drivers char ipm ipmi devintf ko lib modules version kernel drivers char ipmi ipmi msghandler ko to the stk directory of the unpacked initial ramdisk lt work gt adaptiniRamDir stk 5 1 4 Generate a customized Initial Ramdisk Change to directory lt work gt adaptinikamDir and generate the customized initia
16. User Manual English FUJITSU ServerView Suite Scripting Toolkit for Linux V1 7 User Guide September 2015 Edition O Copyright Fujitsu Technology Solutions GmbH 2015 All hardware and software names used are trademarks of their respective manufacturers All rights including rights of translation reproduction by printing copying or similar methods in part or in whole are reserved Offenders will be liable for damages All rights including rights created by patent grant or registration of a utility model or design are reserved Delivery subject to availability Right of technical modification reserved Contents 24 2 2 2 3 2 4 3 1 3 2 3 2 1 3 2 2 3 2 3 4 1 4 1 1 4 1 2 4 1 3 4 1 4 4 1 5 4 2 4 2 1 5d 51 4 5 1 2 5 1 3 5 1 4 5 2 Dad 522 5 3 5 3 1 e 5 Scripting Toolkit Linux cian RARA RARA 7 About TS 4 _2 _ 92 gt 7 F IIlXg p comp i 8 M il m 9 Delivery Installation tette ens 9 The Linux Deployment 10 The Initial Ramdisk for ServerView Scripting Toolkit
17. _64 which 2 20 3 180 x86 64 rpm 44 User Guide Example Configuring and Installing a PRIMERGY Server wget q nH cut dirs 5 ftp 192 168 44 25 SL12SP0 suse x86_64 zip 3 0 15 18 x86_64 rpm Unpack these packages rpm2cpio coreutils 8 22 5 17 x86 64 rpm cpio id rpm2cpio which 2 20 3 180 x86 64 rpm cpio id rpm2cpio unzip 6 00 25 70 x86 64 rpm cpio id rpm2cpio zip 3 0 15 18 x86 64 rpm cpio id Copy the packages to the repository library cd usr bin cp id which zip S REPOSROOT tools64 lnxUtils slesi2spO0 User Guide 45 7 ServerView Utilities For detailed information on the use of the utilities please refer to the Tools Documentation Caution Utilities marked are unsupported Unsupported utilities are part of this release for the benefit of supporting individual customer setups Each utility is provided as is These utilities are not guaranteed to work in all possible configurations and must be thoroughly tested before being used in mission critical environments These utilities are distributed with the ServerView Scripting Toolkit e BIOS configuration e DeskView DeskFlash DeskView BiosSet e NVRAM Read Write 400 e BMC iRMC configuration e Environment and Enclosure Control Daemon eecd e Environment and Enclosure Control Daemon Control Program eecdcp e RAID configuration e ServerView RAID amCLI 47 User Guide 8 Addendum 8 1 Supported Operating Systems RHEL 6 6 x86 x64 RH
18. a target server 4 2 1 Sample Script Structure e stkProfile sh Start of deployment process e setEnv sh newSetenv sh Deployment environment configuration see batch file for details mss sh System detection and identification ms sh Master script deployment process control 9 svRaid sh Script for RAID configuration called from ms sh e stkBios sh Script for BIOS settings called from ms sh e svSrvCtrl sh Script for configuration of management controller BMC RSB called from ms sh 14 User Guide ServerView Scripting Toolkit Linux stkAddOn sh stkPostInstall sh Scri pts to manage the installation of additional software after OS installation e stkFunctions sh stkBiosFunctions sh stkRaidFunctions sh The se files contain functions used in the script files e stkKickstart cfg stkYastProfile xml Unattended installation example files e stkScu cfg SCU BMC RSB configuration example file Notes All scripts are documented in the comments Please refer to the scripts for detailed information about the scripting process The kickstart files delivered with the ServerView Scripting Toolkit are basic examples which cannot be expected to work in all environments Adapt if necessary 4 2 1 1 Shell variables The scripting process itself uses shell variables to configure the deployment environment and control t he scripting actions The following list provides a sh
19. boot x86 64 loader initrd Overwrite the file WORK adaptBootLoaderDir boot x86 64 loader isolinux cfg with this content default linux label linux kernel linux append initrd initrd autoyast file stk stkYastProfile xml splash silent install ftp 192 168 44 25 SLES12SP0 Generate the ISO file stkSLES12SP0 iso cd WORK mkisofs o stkSLES12SP0 iso b boot x86 64 loader isolinux bin no emul boot boot load size 4 boot info table R J v T adaptBootLoaderDir 42 User Guide Example Configuring and Installing a PRIMERGY Server 6 5 Prepare the STK Repository 6 5 1 Add PRIMERGY Kernel Modul Packages The archives containing the PRIMERGY Kernel Module Packages for SLES12 SPO x86_64 are located on the SVIM DVD under the pathname Unix Linux SuSE SLES 12 X86 64 Remotelnstallation in the file kmp_3 12 28 4 default tgz Copy these files to directory SREPOSROOT svimDVD sles 1250 6 5 2 Add Linux System Libraries Make sure that the packages glibc 2 19 17 72 libstdc 6 4 8 3 1212056 6 3 libstdc 6 4 8 3 1212056 6 3 libfreebl3 3 16 4 5 2 libgcc_51 4 8 3 1212056 6 3 libopenss 1_0_0 1 0 1i 2 12 are installed e g using rpm q lt pkgname gt and copy the following library files to the directory SREPOSROOT tools64 lib sles 12sp0 in the ServerView Scripting Toolkit repository cd REPOSROOT tools64 lib slesl2sp0 cp lib64 1d 2 19 so cp 1ib64 libc 2 19 s0 cp lib64 libcrypt 2 19 so cp 1ib64 lib
20. d1 2 19 so 1ib64 libfreebl3 so lib64 libgco s so l cp lib64 libm 2 19 so User Guide 43 Example Configuring and Installing a PRIMERGY Server lib64 libnsl 2 19 so lib64 libnss compat 2 19 so p lib64 libnss files 2 19 so p lib64 libpam so 0 83 1 lib64 libpam misc so 0 82 0 lib64 libpamc so 0 82 1 p lib64 libpthread 2 19 so p lib64 libresolv 2 19 so p lib64 librt 2 19 so usr lib64 libstdct so 6 0 19 usr lib64 libstdctt so 6 0 19 6 0 05 20 6 Q 7 Add these softlinks In s 14 2 19 50 ld linux so 2 In s libc 2 19 so libc so 6 ln s liberypt 2 19 50 libcrypt so 1 ln s 11041 2 19 50 libdl so 2 In s libm 2 19 so libm so 6 In s libns1 2 19 so libnsl so 1 ln s libnss compat 2 19 so libnss compat so 2 ln s libnss files 2 19 so libnss files so 2 In s libpamc so 0 82 1 libpamc so 0 In s libpam misc so 0 82 0 libpam misc so 0 ln s libpam so 0 83 1 libpam so 0 ln s libpthread 2 19 so libpthread so 0 in s libresolv 2 19 so libresolv so 2 In s librt 2 19 so librt so 1 ln s libstdct so 6 0 19 libstdc so 5 ln s libstdct so 6 0 19 libstdct so 6 6 5 3 Add Linux Utilities mkdir tmp lnxUtils cd tmp 1nxUtils Get the package files containing id and and which wget q nH cut dirs 5 ftp 192 168 44 25 SL12SP0 suse x86 64 coreutils 8 22 5 17 x86 64 rpm wget q nH cut dirs 5 ftp 192 168 44 25 SL12SP0 suse x86
21. ed several times Bold Used for highlighting in the text Quotes Indicates cross references to other chapters or manuals Warning sign indicating that your health the correct functioning of your system or the security of your data may be at risk if you ignore the information given at this point Indicates additional information notes and hints User Guide 3 Overview The scripting toolkit for Linux ServerView Scripting Toolkit offers a collection of tools and scripts to configure the hard disks and other components before installing Linux on a PRIMERGY server The script collection can configure e RAID arrays e BIOS settings e settings for a single or several PRIMERGY servers with same hardware configuration The ServerView Scripting Toolkit is intended to enable users e to duplicate an existing reference sever configuration to several identical target servers or e toconfigure any number of servers directly 3 1 Delivery Installation Deinstallation The ServerView Scripting Toolkit is delivered as a zipped tar file with the name ServerView Scripting Toolkit version tgz To install the ServerView Scripting Toolkit unpack the gz file into a folder of your choice The following folders will be created doc hwProf scripts32 svimDVD tools3 tools64 This folder is called the ServerView Scripting Toolkit repository and in this documentation will be referred to as lt reposkoot
22. ed restored or configured for the following systems 120 52 RX500 57 RX600 55 RX900 51 RX900 52 BX620 S5 BX620 S6 BX920 S1 BX920 52 BX922 51 BX922 S2 BX924 52 BX960 51 e BIOS password cannot be set on RX100 57 e RHEL 7 BIOS cannot be configured for any CX server User Guide 51
23. gt For de installation just remove the ServerView Scripting Toolkit directories 9 User Guide Overview 3 2 The Linux Deployment Environment 3 2 1 The Initial Ramdisk for ServerView Scripting Toolkit A specifically prepared initial ramdisk on a PXE Server or in the installation media of the Linux distribution bootable ISO image is used to boot each server with the Linux operating system to access the configuration tools of ServerView Scripting Toolkit When the boot process completes the scripts and tools of ServerView Scripting Toolkit perform the required configuration without manual intervention The basis for the initial ramdisk used is provided with the ServerView Installation Manager DVD The ServerView IM ramdisk contains the appropriate driver files for all PRIMERGY servers You add the start script files of ServerView Scripting Toolkit and a SLES autoyast profile or a RHEL kickstart file to the ramdisk to start the system s hardware configuration and installation See chapter 5 1 Customize the Initial Ramdisk for details on how to customize the initial ramdisk and how to use this ramdisk with a bootable CD ROM or via a PXE boot 3 2 2 Configure a NFS Server A Linux system configured as an NFS server is required for the ServerView Scripting Toolkit repository The directory with the path lt reposRoot gt must be exported for access from NFS clients Then a PRIMERGY server booted using the customized initial ramdisk can m
24. he ServerView Scripting Toolkit Linux is a collection of Linux based utilities and sample scripts for the configuration and installation of PRIMERGY systems The toolkit s tools and scripts can be used to configure and install a PRIMERGY system by replicating the hardware configuration of a PRIMERGY reference system or by configuring the system s hardware directly Both RedHat Enterprise Linux and SuSE Linux Enterprise Server installation are supported This guide describes the utilities provided in this toolkit and how they can be employed in a scripting environment to automate the configuration and installation process of PRIMERGY systems It is intended as a reference for using the ServerView Scripting Toolkit for deployment of PRIMERGY servers The ServerView Scripting Toolkit contains e Acollection of controller configuration utilities e Acollection of documented deployment scripts for an easy start e Documentation Adescription on how to generate your own Linux deployment environment The ServerView Scripting Toolkit is located e the PRIMERGY ServerView Installation Manager ServerView IM DVD in the directory DVD Root gt SVSSoftware Software Deployment PRIMERGY Scripting or e Fujitsu Technology Solutions support website http download ts fujitsu com prim_supportcd start html follow ServerView Suite Deployment Tools Things you need before getting started ServerView Suite V11 15 07 or later
25. k stkYastProfile xml splash silent or like this for RHEL 7 default linux label linux kernel linux append initrd initrd autoyast file stk stkYastProfile xml splash silent install lt PathToInstallationSource gt 24 User Guide Setup of the Linux Deployment Environment 5 3 Use the customized Initial Ramdisk in PXE boot environment 5 3 1 Using RedHat Enterprise Linux On the PXE server you find the files initrd img vmlinuz pxelinux cfg default Replace initrd img with your customized intital ramdisk generated in file lt work gt initrd img Replace vmlinuz with Unix Linux LinuxType LinuxDist Remotelnstallation vmlinuz dist from the SVIM DVD Adapt the file pxelinux cfg default like this default linux label linux kernel vmlinuz append initrd initrd img ks file stk stkKickstart cfg User Guide 25 Setup of the Linux Deployment Environment 5 3 2 Using SUSE Linux Enterprise Server The SLES Deployment Guide contains a description how to use PXE boot for a remote installation The following files exist on the PXE server initrd pxelinux cfg default Replace initrd with your customized intital ramdisk generated in file lt work gt initrd Replace vmlinuz with Unix Linux LinuxTypeJ LinuxDist Remotelnstallation vmlinuz dist from the SVIM DVD Adapt the file pxelinux cfg default like this for RHEL 6 default linux label linux kernel linux append initrd initrd autoyast file stk stkYastProfile
26. l ramdisk with command find cpio newc olgzip gt lt work gt initrd img RHEL or find cpio newc olgzip gt lt work gt initrd SLES 22 User Guide Setup of the Linux Deployment Environment Note The name of the file containing the customized initial ramdisk is changed by this command to initrd img or initrd This name is for use on the Linux CD DVD boot media or PXE server 5 2 Use the customized Initial Ramdisk to boot from CD DVD 5 2 1 Using RedHat Enterprise Linux In the RHEL Installation Guide you find a description how to create an own CD ROM to boot the RHEL installation program This CD ROM contains the files isolinux initra img isolinux isolinux clg Replace isolinux initrd img with the customized intital ramdisk generated in file lt work gt initrd img and adapt the file isolinux isolinux cfg like this default linux label linux kernel vmlinuz append initrd initrd img ks file stk stkKickstart cfg User Guide 23 Setup of the Linux Deployment Environment 5 2 2 Using SUSE Linux Enterprise Server A bootable CD ROM for a SLES installation contains the files boot arch loader initrd boot arch loader isolinux cfg Replace boot arch loader initrd by your customized intital ramdisk generated in file lt work gt initrd and adapt the file boot arch loader isolinux cfg like this for RHEL 6 default linux label linux kernel linux append initrd initrd autoyast file st
27. nagement tool needs some time to initialize itself after it has been started Usually 30 seconds are sufficient Increase the wait time if the tool does not see any or all RAID controllers 4 2 1 5 General configuration variables stkCfgBmc stkFileBmc stkBiosSaveRestore stkSetBiosPassword stkOldBiosPassword stkNewBiosPassword 16 Whether to configure the baseboard management controller iRMC Configuration file name for BMC configuration iRMC Whether to save restore the BIOS Whether to set the BIOS password Note Setting no stkNewBiosPassword clears the BIOS password if no BIOS password exists do not set stkOldBiosPassword User Guide ServerView Scripting Toolkit Linux stkSetBiosBootorder Whether to set the BIOS boot order stkBiosBootorder BIOS boot order to be set 4 2 1 6 RAID configuration variables stkRaidSaveRestore Whether to save or restore the system s array controllers stkCfgRaidDirect Whether to configure the system s array controller directly stkCtrlNo The logical number of the array controller to be configured stkRaidType RAID type to configure stkDriveNo Number of drives to be used for the RAID array stkFastlnit Wether to perform a fast initialization of the configured RAID array stkFileRaid Name of file which contains the RAID configuration when stkRaidSaveRestore YES 4 2 1 7 AddOn software configuration variables stkCfgAddOnSw Whether to install additional software
28. ort overview over the variables and their use All variables are defined in set nv sh If you are using the scripting process as is you need on ly change that file Note All scripts are documented in detail in the comments Please refer to the scripts for detailed information about the scripting process 4 2 1 2 Execution control variables These variables control the way the scripting process is running stkMode Execution control stkOutput Screen output control stkNewSetEnv On the fly environment reconfiguration to be able to change stkNewSetEnvType environment variables without the need to create a new initial ramdisk User Guide 15 ServerView Scripting Toolkit Linux 4 2 1 3 File directory and path variables stkDirSript stkDirTools stkDirTools64 stkDirHardware stkDirTmp stkLogFileName Directory which contains the scripts Directory which contains the tools Directory which contains the tools for a 64bit OS Directory which contains the hardware profile Directory which contains temporary output Log file name Path to log file 15 set after system identification 4 2 1 4 System variables stkReposLocation stkReposMntDir stkSvrSecWait IP address of NFS server and pathname of repository on NFS server being mounted pathname of directory where remote repository file system is to be mounted Depending on the system and the boot medium ServerView RAID Fujitsu Technology Solution s RAID ma
29. ount the directory lt reposRoot gt directly after the boot process and the scripts from the ServerView Scripting Toolkit contained in the repository are executed on this PRIMERGY server The ServerView Scripting Toolkit scripts invoke the tools for configuration while log files within the repository provide information about the configuration process 10 User Guide Overview 3 2 3 Preparing the ServerView Scripting Toolkit repository The Linux kernel and the customized initial ramdisk starting from the bootable CD ROM or via a PXE boot provide a working but for toolkit purposes incomplete Linux operating system The following components must be added to the ServerView Scripting Toolkit repository for the configuration tools to access e Linux system libraries and e Linux utilities In addition the PRIMERGY Kernel Modul Packages must be added to the ServerView Scripting Toolkit repository Otherwise drivers for RAID controllers are not installed and the system fails to boot after installation User Guide 11 4 ServerView Scripting Toolkit Linux 4 1 The repository structure 4 1 1 Script collection The folder scr pts32 contains a collection of sample scripts which is intended to help you start your own deployment process The sample scripts are documented in detail in the comments of the scripts Change or add to these sample scripts to reflect your own environment 4 1 2 Hardware profiles The folder AwProfin the toolkit repo
30. r Unix Linux LinuxTypel LinuxDist Remotelnstallation initrd dist gz Note Check version txt for the initial ramdisk version Copy this file to directory lt work gt SV Mdir Unpack nitrd dist gz to lt work gt adaptinikamDir with command 20 User Guide Setup of the Linux Deployment Environment gunzip lt work gt SVIMdir initrd dist gz cpio icvBdum If gunzip cannot unpack the initial ramdisk eg with the SLES12 ramdisk use another unzip tool e g p7zip c xz dc 5 1 2 Insert STK start and configuration files Create a folder stk at the root of lt work gt adaptiniRamDir Note For RHEL 7 this folder must be named updates stk Copy stkProfile sh and setEnv sh and the kickstart file stkKickstart cfg or the autoyast stkYastProfile xm file from the repository to the stk or updates stk RHEL7 directory of the unpacked initial ramdisk In the file lt work gt adaptiniRamDir stk setEnv sh or lt work gt adaptiniRamDir updates stk setEnv sh RHEL7 set the shell variable stkReposLocation to the IP address of the NFS server and the pathname of the folder where the repository resides and set the variable stkReposMntDir to the mount point of the repository within the initial ramdisk Example stkReposLocation lt FTP gt home user repository stkReposMntDir localRepository In the file lt reposRoot gt scripts32 stkKickstart clg or lt reposRoot gt scripts32 stkYastProfile xml set the NF
31. rectory and unpack SWORK SVIMdir 39 User Guide Example Configuring and Installing a PRIMERGY Server mkdir SWORK adaptIniRamDir SWORK adaptIniRamDir xz dc SWORK SVIMdir initrd sel2 gz cpio icvBdum 6 2 2 Customize the Initial Ramdisk stk test repository scripts32 stkProfile sh WORK adaptIniRamDir stk cp stk test repository scripts32 setEnv sh SWORK adaptIniRamDir stk stk test repository scripts32 stkYastProfile xml SWORK adaptIniRamDir stk In file 3WORK adaptiniRamDir stk setEnv sh set variables as follows stkReposLocation 192 168 10 4 stk test repository stkReposMntDir stkMnt repos In file WORK adaptnikamDir stk stkYastProfile xml set the pathname for the SLES12 SPO installation tree for instance install ftp 192 168 44 25 SLES12SP0 Add the following softlink to the autoyast profile in the root folder of the initial ramdisk Otherwise the SLES installation program cannot find the autoyast profile cd SWORK adaptIniRamDir ln s stk stkYastProfile xml stkYastProfile xml Note The kickstart files delivered with the ServerView Scripting Toolkit are basic examples which cannot be expected to work in all environments Adapt if necessary 40 User Guide Example Configuring and Installing a PRIMERGY Server 6 2 3 Add the kernel objects to the Initial Ramdisk mkdir tmp getMptctl cd tmp getMptct wget nH cut dirs 3 ftp 192 168 44 25 SLES12SP0 suse x86_64 kernel default
32. s libnsl 2 19 so libnsl so 1 libnss compat 2 19 so libnss compat so 2 s libnss files 2 19 so libnss files so 2 s libpamc so 0 82 1 libpamc so 0 s libpam misc so 0 82 0 libpam_misc so 0 s libpam so 0 83 1 libpam so 0 s libpthread 2 19 so libpthread so 0 ue 835 Va DE 1 H s libresolv 2 19 so libresolv so 2 UJ I User Guide Setup of the Linux Deployment Environment In s librt 2 19 so librt so 1 ln s libstdc s0 6 0 19 libstdct so 5 in 8 Libstdc t 80 6 0 19 libstdc so 6 5 4 2 7 Other SLES versions Using the above chapters as reference adapt the SLES package and library versions to the SLES version to be used 5 4 3 Add Linux Utilities The table following shows for each supported Linux OS the files that must be extracted from the specific package and copied to their target directory in the ServerView Scripting Toolkit target directory in the extract Pa 05 Package files ServerView Scripting Toolkit repository SLES11 SP4 A SID iq x86 util linux 2 19 1 6 72 1 1586 rpm which tools32 InxUtils sles1 1504 zip 3 0 4 9 1 1586 rpm zip SLES11 SP4 0ICVII3 8 12 6 25 3233 1X86964 id en util linux 2 19 1 6 72 1 x86_64 rpm which tools64 InxUtils sles1 1504 zip 3 0 4 9 1 x86_64 rpm zip coreutils 8 22 5 17 x86 64 rpm id SLES12 SPO which 2 20 3 180 x86 64 rpm which tools64 InxUtils sles12 x64 zip 6 00 25 70 x86 64 rpm zip
33. sitory holds all files needed for the hardware configuration during the deployment process where hwProf lt SystemName gt contains the hardware relevant files for the system 4 1 3 Log files The scripts use the og folder in the repository to create status log files which are intended to monitor the installation process For each PRIMERGY system a machine specific subfolder using the system s serial number will be created which will contain the log files and progress state during the deployment process 4 1 4 Tools All utilities distributed with the ServerView Scripting Toolkit for Linux are located in the folder tools32 00 564 13 User Guide ServerView Scripting Toolkit Linux 4 1 5 BMC Configuration To read or configure a PRIMERGY s Baseboard Management Controller BMC a general configuration file 5 5 0 is used All configuration values defined in the SCCI specification see SCCI_CS pdf in the Manuals folder may be configured using this configuration file To read or configure a BMC do the following e Place stkScu cfg in folder Aw_prof lt SysName gt e Edit stkScu cfg according to your needs See scu cfg in folder scripts32 for documentation 4 2 Deployment Process The deployment process provided with the sample script collection of the ServerView Scripting Toolkit for Linux has two modes SAVE and DEPLOY which are intended to either save the configuration of a server or to deploy and install
34. ux system libraries The SLES or RHEL installation environment does not include all libraries necessary for the ServerView RAID tool They need to be provided in the ServerView Scripting Toolkit repository as shown below 5 4 2 1 RHEL 6 Update 6 From folder Packages on the OS DVD install or unpack the packages audit libs 2 3 7 5 e16 1686 compat libstdc 33 3 2 3 69 el6 i686 glibc 2 12 1 149 e 6 i686 libgcc4 4 1 11 e 6 1686 libstdc 4 4 1 11 e 6 1686 ncurses libs 5 7 3 20090208 el6 i686 nss softokn freebl 3 14 3 17 e16 1686 pam 1 1 20 el6 686 rpm and copy the following library files to the directory lt reposRoot gt 100 532 lib rhel66 in the ServerView Scripting Toolkit repository libfld 2 12 50 lib libaudit so 1 0 0 lib libc 2 12 50 2 12 50 lib libdl 2 12 50 lib libfreebl3 so libflibgec_5 4 4 7 20120601 50 1 libflibm 2 12 50 libflibnss_files 2 12 50 lib libpam 50 0 82 2 lib libpam misc so 0 82 0 lib libpthread 2 12 50 libflibresolv 2 12 50 libflibrt 2 12 50 lib libtinfo 50 5 7 usr libflibstdc 50 5 0 7 usr libflibstdc 50 6 0 13 28 User Guide Setup of the Linux Deployment Environment Add the following softlinks in directory reposRoot tools3Z lib rhel66 ln es ld 2 12 80 ld linux so 2 In s libaudit so 1 0 0 libaudit so 1 in 5m 11 86421880 libc so 6 ln s liberypt 2 12 80 libcrypt so 1 ln 8 lib8l 2 12 5860 libdl so 2 ln s 11 5
35. ystem with the repository directory with pathname lt reposRoot gt the NFS service must be running and the directory lt reposRoot gt 36 User Guide Setup of the Linux Deployment Environment must be released for access from NFS clients so that the PRIMERGY Server started from the customized CD DVD image or PXE server will be able to mount the directory lt reposRoot gt when the boot process is completed It then can start the scripts from the ServerView Scripting Toolkit residing in the repository User Guide 37 6 Example Configuring and Installing a PRIMERGY Server This example shows in detail how to prepare a PXE boot and how to create an ISO image to boot from CD with the customized initial ramdisk from ServerView Installation Manager for an installation of SLES12 5 0 x64 with an autoyast profile The ServerView Scripting Toolkit start files are called from the autoyast profile as a preinstallation script 6 1 UnpackServerView Scripting Toolkit tgz in lt reposRoot gt export REPOSROOT stk test repository pathname of lt reposRoot gt mkdir REPOSROOT cd SREPOSROOT tar xzf ServerView Scripting Toolkit _ lt version gt tgz 6 2 Customize the Initial Ramdisk 6 2 1 Unpack Initial Ramdisk from ServerView IM export WORK stk customizeDir mkdir p SWORK SVIMdir initrd se12 gz is located on the SVIM DVD under the pathname Unix Linux SUSE SLES 12 X86 64 Remotelnstallation initrd se12 gz Copy this file to di
Download Pdf Manuals
Related Search
Related Contents
取扱説明書 achtung! - Fisher UK Extranet Lenco TS-10 Sony DFS-700 Switch User Manual Copyright © All rights reserved.
Failed to retrieve file