北肙

当你不能够再拥有,唯一可以做的,就是令自己不要忘记。

Parallel Shell 用例详解

1. IP子网计算 2. RHEL自动配置IP地址 3. 并行终端 4. GPFS配置及布署 未完待续


1. IP子网计算

ipcalc - calculate subnet for given <IP/Prefix> | [Netmask]
    parash.py ipcalc 192.168.0.1/24
    parash.py ipcalc 192.168.0.1 24
    parash.py ipcalc 192.168.0.1/255.255.255.0
    parash.py ipcalc 192.168.0.1 255.255.255.0

2. RHEL自动配置IP地址

ifcfg - automatically assign IP address[es] to the first suitable interface
    parash.py ifcfg 
	    -h 192.168.1.1/2 -a 10.10.10.1/2=28 -g '10.10.10.14' 
	    -p 'SHARED_PASS' --default-route --restart-network

    parash.py ifcfg 
        <-h HOST[s]> 
        [-u USER[s]] [-p PASSWORD[s]]
        <-a ADDRESS[es]> <-g GATEWAY[s]>
        [-r | --default-route] [-w | --restart-network]
        [-o | --bond]
        [--preview]

    parash.py ifcfg 
        <-h HOST[s]> 
        [-u USER[s]] [-p PASSWORD[s]]
        <-i interface> --show

3. 并行终端

multerm -- cli for multiple hosts
    parash.py multerm <-h HOST[s]> [-u USER[s]] [-p PASSWORD[s]]

4. GPFS配置及布署

gpfs - create GPFS cluster, NSD, filesystem

    parash.py gpfs 
        <-h HOST[s]> 
        [-u USER[s]] [-p PASSWORD[s]] [-s ADDRESSES] [-b HEARTBEATS]
        <--hb-prefix STR>
        [-n HOSTNAMES] [-x PREFIX] 
        [-f DIRECTORY] [-g MMFS] [-d /dev/sdx] 
        [-P PRIMARY] [-s SECONDARY] 
        [--preview]

未完待续

Leave a Reply

Your email address will not be published. Required fields are marked *