Difference between revisions of "OpenHPC:wwsh"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== Provisioning == <syntaxhighlight> [root@head ~]# wwsh provision list NODE VNFS BOOTSTRAP FILES ==================================...")
 
 
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
node03.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...
 
node04.cix.vscal... centos7.2      3.10.0-327.22.2.el... dynamic_hosts,grou...
 +
</syntaxhighlight>
 +
 +
Lets take a look a node parameters (including the bootlocal one)
 +
<syntaxhighlight>
 +
[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        = TRUE
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 18: Line 38:
  
 
Yes/No> yes
 
Yes/No> yes
 +
</syntaxhighlight>
 +
 +
== Injecting / Configuring files ==
 +
Show the files that have already been added for an image
 +
<syntaxhighlight>
 +
[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.conf
 +
</syntaxhighlight>
 +
 +
Edit an already added file
 +
<syntaxhighlight>
 +
# wwsh file edit <filename / not path>
 +
wwsh file edit network
 +
</syntaxhighlight>
 +
 +
== Renaming a node interface ==
 +
If we want to change the interface of node01 FROM eth0 TO eth1:
 +
<syntaxhighlight>
 +
[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 ~]#
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 11:10, 29 September 2016

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        = TRUE

Disable 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> yes

Injecting / 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.conf

Edit an already added file

# wwsh file edit <filename / not path>
wwsh file edit network

Renaming 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 ~]#