OpenHPC:wwsh
Jump to navigation
Jump to search
Provisioning
[root@head ~]# wwsh provision list
NODE VNFS BOOTSTRAP FILES
================================================================================
node01.cix.vscal... centos7.2 3.10.0-327.22.2.el... dynamic_hosts,grou...
node02.cix.vscal... centos7.2 3.10.0-327.22.2.el... dynamic_hosts,grou...
node03.cix.vscal... centos7.2 3.10.0-327.22.2.el... dynamic_hosts,grou...
node04.cix.vscal... centos7.2 3.10.0-327.22.2.el... dynamic_hosts,grou...Lets take a look a node parameters (including the bootlocal one)
[root@head ~]# wwsh provision print node001
#### node001.plymouth.net #####################################################
node001.plymouth.net: BOOTSTRAP = 3.10.0-327.22.2.el7.x86_64
node001.plymouth.net: VNFS = centos7.2
node001.plymouth.net: FILES = dynamic_hosts,group,ifcfg-ib0.ww,munge.key,network,passwd,shadow,slurm.conf
node001.plymouth.net: PRESHELL = FALSE
node001.plymouth.net: POSTSHELL = FALSE
node001.plymouth.net: CONSOLE = UNDEF
node001.plymouth.net: PXELINUX = UNDEF
node001.plymouth.net: SELINUX = DISABLED
node001.plymouth.net: KARGS = "quiet"
node001.plymouth.net: FILESYSTEMS = mountpoint=/boot:dev=sda1:type=ext4:size=500,dev=sda2:type=swap:size=8192,mountpoint=/:dev=sda3:type=ext4:size=50000
node001.plymouth.net: DISKFORMAT = sda1,sda2,sda3
node001.plymouth.net: DISKPARTITION = sda
node001.plymouth.net: BOOTLOADER = sda
node001.plymouth.net: BOOTLOCAL = TRUEDisable the re-installation on reboot
[root@head ~]# wwsh provision set node0[1-4] --bootlocal=EXIT
Are you sure you want to make the following changes to 4 node(s):
SET: BOOTLOCAL = EXIT
Yes/No> yesInjecting / Configuring files
Show the files that have already been added for an image
[root@head ~]# wwsh file list
dynamic_hosts : -rw-r--r-- 0 root root 11668 /etc/hosts
group : -rw-r--r-- 1 root root 900 /etc/group
ifcfg-ib0.ww : -rw-r--r-- 1 root root 133 /etc/sysconfig/network-scripts/ifcfg-ib0
munge.key : -r-------- 1 munge munge 1024 /etc/munge/munge.key
network : -rw-r--r-- 1 root root 16 /etc/sysconfig/network
passwd : -rw-r--r-- 1 root root 2045 /etc/passwd
shadow : ---------- 1 root root 1045 /etc/shadow
slurm.conf : -rw-r--r-- 1 root root 2133 /etc/slurm/slurm.confEdit an already added file
# wwsh file edit <filename / not path>
wwsh file edit networkRenaming a node interface
If we want to change the interface of node01 FROM eth0 TO eth1:
[root@knl-head ~]# wwsh node set node01 -D eth0 --netrename eth1
Are you sure you want to make the following 1 change(s) to 1 node(s):
SET: eth0.NAME = eth1
Yes/No [no]> Yes
[root@knl-head ~]#