nvidia-monitor.sh

#!/bin/bash

for i in hq-gpu-001 hq-gpu-002 hq-gpu-003 hq-gpu-004

do
banner $i
echo
ssh $i '(nvidia-smi )'
echo ; echo ; echo ; echo ; echo

done


root@hq-lsf-001:/gpfs/scripts# cat docker-monitor.sh
#!/bin/bash

for i in hq-gpu-001 hq-gpu-002 hq-gpu-003 hq-gpu-004

do
echo
banner $i
ssh $i '(docker ps -a )'
echo
echo ; echo ; echo ; echo ; echo

done


root@hq-lsf-001:/gpfs/scripts# cat kill.ksh
#!/usr/bin/ksh

. /gpfs/lsf/conf/profile.lsf
export PATH=/gpfs/lsf/script:$PATH

if [ "$1" = "" ]; then
        echo "You must give me a jobid..."
        ERROR=1
    else
###############################################################
### Envirionment ###
export JOBPID=$1
export HOSTNAME="`bjobs -u all | grep $JOBPID | awk '{print \$6}'`"
export USERNAME="`bjobs -u all | grep $JOBPID | awk '{print \$2}'`"

#echo $JOBPID $HOSTNAME $USERNAME
###############################################################

printf "%s:  "  "Are you sure? KILL JOB $JOBPID [y/N]"
read response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]
then
    echo "Kill Docker Process $JOBPID $HOSTNAME $USERNAME"
    echo "ssh $HOSTNAME '(docker kill $USERNAME$JOBPID )'" | sh
    exit 0
else
    echo "EXIT KILL Process"
    exit 0
fi

###############################################################
    fi

 

 

'Shell Scripts' 카테고리의 다른 글

HANA DB  (0) 2016.05.19
Linux Tar Backup / REstore  (0) 2016.04.04
Command with TimeStamp  (0) 2016.04.04


# User alias specification
User_Alias      CHE = che, che_semin, che_jysong
User_Alias      CAR = car, car_jinyong, car_sungugi, car_jinki, car_sangsik, car_jihun, car_hkkang
User_Alias      CAD = cad, cad_moonhpark, cad_ykseong, cad_jonghyonyi, cad_gwoolee, cad_hojunlee, cad_chchoi, cad_seokminhan, cad_swkingkim
User_Alias      GYN = gyn, gyn_gonear, gyn_hyunjae, gyn_eashim, gyn_dalkwonkoh, gyn_bongheon


# Cmnd alias specification
Cmnd_Alias      MONITOR = /gpfs/scripts/nvidia-monitor.sh
CHE  ALL=(ALL) NOPASSWD: MONITOR
CAR  ALL=(ALL) NOPASSWD: MONITOR
CAD  ALL=(ALL) NOPASSWD: MONITOR
GYN  ALL=(ALL) NOPASSWD: MONITOR


# vi /etc/samba/smb.conf

[che]
   comment = GPFSfilesystem1
   path = /gpfs/home/che
   browseable = no
   vaild users = che
   writable = yes
   create mask = 770
   force create mode = 770
   security mask = 770
   force security mode = 770
   directory mask = 0770
   force directory mode = 0770
   directory security mask = 0770
   force directory security mode = 0770



==>> service smbd restart



삼바 사용자 계정 추가

#  smbpasswd -a 계정명

 

https://wiki.kubuntu.org/ppc64el/SoftwareRAID

 

 

Installation Instructions for Software RAID

It is possible install Ubuntu Server on Software RAID (RAID1) devices on ppc64el-based systems, with Ubuntu Server 14.04.4 LTS or later, and 16.04 LTS or later.

  • The requirement is that PReP partition(s) must be created directly on top of the component device(s) (not on top of the Software RAID device):

    • in only one of the component devices with Ubuntu Server 14.04.4 LTS or later

    • in one or more of the component devices with Ubuntu Server 16.04 LTS or later

  • Other partitions (for /, /boot, /home etc.) can be created on top of the Software RAID device.

The instructions for this process are described in this page.

Overview

  1. Select Manual partitioning
  2. Initialize the partition table of the component devices
  3. Create PReP partition(s) in component device(s)
  4. Configure the Software RAID device (RAID1)
  5. Partition the Software RAID device (with either Manual or Guided partitioning)
  6. Proceed with the normal installation process

Example

This example illustrates the installation process for Software RAID1 with 2 component devices and Guided partitioning with LVM.

The steps and installation dialogs are based on Ubuntu Server 14.04.4 LTS, and are closely similar on Ubuntu Server 16.04 LTS (different output).

All steps are performed in the Partition disks dialog.

Select Manual partitioning

Manual partitioning is required initially, in order to prepare the disks (e.g., initialize the partition table, and create PReP partition(s)) and configure Software RAID.

Afterward, it is possible to use Guided partitioning.

  • Select Manual:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ The installer can guide you through partitioning a disk (using          │
  │ different standard schemes) or, if you prefer, you can do it            │
  │ manually. With guided partitioning you will still have a chance later   │
  │ to review and customise the results.                                    │
  │                                                                         │
  │ If you choose guided partitioning for an entire disk, you will next     │
  │ be asked which disk should be used.                                     │
  │                                                                         │
  │ Partitioning method:                                                    │
  │                                                                         │
  │          Guided - use entire disk                                       │
  │          Guided - use entire disk and set up LVM                        │
  │          Guided - use entire disk and set up encrypted LVM              │
  │          Manual                                                         │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘

Initialize the partition table in the component devices

Select each (unpartitioned) component device (press Enter), and confirm the dialog.

  • Select sda:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is an overview of your currently configured partitions and mount   │
  │ points. Select a partition to modify its settings (file system, mount   │
  │ point, etc.), a free space to create partitions, or a device to         │
  │ initialize its partition table.                                         │
  │                                                                         │
  │           Guided partitioning                                           │
  │           Configure software RAID                           ▒           │
  │           Configure the Logical Volume Manager              ▒           │
  │           Configure encrypted volumes                       ▒           │
  │           Configure iSCSI volumes                           ▒           │
  │                                                                         │
  │           SCSI1 (0,0,0) (sda) - 17.2 GB QEMU QEMU HARDDISK  ▒           │
  │           SCSI1 (0,1,0) (sdb) - 17.2 GB QEMU QEMU HARDDISK  ▒           │
  │                                                                         │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select Yes:

   ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐
   │                                                                       │
   │ You have selected an entire device to partition. If you proceed with  │
   │ creating a new partition table on the device, then all current        │
   │ partitions will be removed.                                           │
   │                                                                       │
   │ Note that you will be able to undo this operation later if you wish.  │
   │                                                                       │
   │ Create new empty partition table on this device?                      │
   │                                                                       │
   │     <Go Back>                                       <Yes>    <No>     │
   │                                                                       │
   └───────────────────────────────────────────────────────────────────────┘
  • Select sdb:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is an overview of your currently configured partitions and mount   │
  │ points. Select a partition to modify its settings (file system, mount   │
  │ point, etc.), a free space to create partitions, or a device to         │
  │ initialize its partition table.                                         │
  │                                                                         │
  │           Guided partitioning                                           │
  │           Configure software RAID                           ▒           │
  │           Configure the Logical Volume Manager              ▒           │
  │           Configure encrypted volumes                       ▒           │
  │           Configure iSCSI volumes                           ▒           │
  │                                                                         │
  │           SCSI1 (0,0,0) (sda) - 17.2 GB QEMU QEMU HARDDISK  ▒           │
  │           >         17.2 GB      FREE SPACE                 ▒           │
  │           SCSI1 (0,1,0) (sdb) - 17.2 GB QEMU QEMU HARDDISK  ▒           │
  │                                                                         │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select Yes:

   ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐
   │                                                                       │
   │ You have selected an entire device to partition. If you proceed with  │
   │ creating a new partition table on the device, then all current        │
   │ partitions will be removed.                                           │
   │                                                                       │
   │ Note that you will be able to undo this operation later if you wish.  │
   │                                                                       │
   │ Create new empty partition table on this device?                      │
   │                                                                       │
   │     <Go Back>                                       <Yes>    <No>     │
   │                                                                       │
   └───────────────────────────────────────────────────────────────────────┘

Create PReP partition(s) in component device(s)

  • The number of PReP partitions depends on the Ubuntu Server version:
    • Ubuntu Server 14.04.4 LTS or later: only one of the component devices (no redundancy)

    • Ubuntu Server 16.04 LTS or later: one or more of the component devices (repeat the steps in this section for each component device).

  • Select FREE SPACE under either one of 'sda' or 'sdb' ('sda', on this example):

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is an overview of your currently configured partitions and mount   │
  │ points. Select a partition to modify its settings (file system, mount   │
  │ point, etc.), a free space to create partitions, or a device to         │
  │ initialize its partition table.                                         │
  │                                                                         │
  │           Guided partitioning                                           │
  │           Configure software RAID                           ▒           │
  │           Configure the Logical Volume Manager              ▒           │
  │           Configure encrypted volumes                       ▒           │
  │           Configure iSCSI volumes                           ▒           │
  │                                                                         │
  │           SCSI1 (0,0,0) (sda) - 17.2 GB QEMU QEMU HARDDISK  ▒           │
  │           >         17.2 GB      FREE SPACE                 ▒           │
  │           SCSI1 (0,1,0) (sdb) - 17.2 GB QEMU QEMU HARDDISK  ▒           │
  │           >         17.2 GB      FREE SPACE                             │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select Create a new partition:

                ┌───────────┤ [!!] Partition disks ├───────────┐
                │                                              │
                │ How to use this free space:                  │
                │                                              │
                │  Create a new partition                      │
                │  Automatically partition the free space      │
                │  Show Cylinder/Head/Sector information       │
                │                                              │
                │     <Go Back>                                │
                │                                              │
                └──────────────────────────────────────────────┘
  • Enter 8 MB for the partition size:

   ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐
   │                                                                       │
   │ The maximum size for this partition is 17.2 GB.                       │
   │                                                                       │
   │ Hint: "max" can be used as a shortcut to specify the maximum size, or │
   │ enter a percentage (e.g. "20%") to use that percentage of the maximum │
   │ size.                                                                 │
   │                                                                       │
   │ New partition size:                                                   │
   │                                                                       │
   │ 8 MB_________________________________________________________________ │
   │                                                                       │
   │     <Go Back>                                          <Continue>     │
   │                                                                       │
   └───────────────────────────────────────────────────────────────────────┘
  • Select Beginning:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ Please choose whether you want the new partition to be created at the   │
  │ beginning or at the end of the available space.                         │
  │                                                                         │
  │ Location for the new partition:                                         │
  │                                                                         │
  │                              Beginning                                  │
  │                              End                                        │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select Use as:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ You are editing partition #1 of SCSI1 (0,0,0) (sda). No existing file   │
  │ system was detected in this partition.                                  │
  │                                                                         │
  │ Partition settings:                                                     │
  │                                                                         │
  │            Name:                                                        │
  │            Use as:           Ext4 journaling file system                │
  │                                                           ▒             │
  │            Mount point:      /                            ▒             │
  │            Mount options:    defaults                     ▒             │
  │            Label:            none                         ▒             │
  │            Reserved blocks:  5%                           ▒             │
  │            Typical usage:    standard                     ▒             │
  │            Bootable flag:    off                          ▒             │
  │                                                                         │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select Use the partition as a PowerPC PReP boot partition:

          ┌─────────────────┤ [!!] Partition disks ├─────────────────┐
          │                                                          │
          │ How to use this partition:                               │
          │                                                          │
          │  Use the partition as a PowerPC PReP boot partition      │
          │  Ext4 journaling file system                             │
          │  Ext3 journaling file system                         ▒   │
          │  Ext2 file system                                    ▒   │
          │  btrfs journaling file system                        ▒   │
          │  JFS journaling file system                          ▒   │
          │  XFS journaling file system                          ▒   │
          │  FAT16 file system                                   ▒   │
          │  FAT32 file system                                   ▒   │
          │  swap area                                           ▒   │
          │  Reserved BIOS boot area                             ▒   │
          │  physical volume for encryption                      ▒   │
          │  physical volume for RAID                                │
          │                                                          │
          │     <Go Back>                                            │
          │                                                          │
          └──────────────────────────────────────────────────────────┘
  • Select Done setting up the partition:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ You are editing partition #1 of SCSI1 (0,0,0) (sda). No existing file   │
  │ system was detected in this partition.                                  │
  │                                                                         │
  │ Partition settings:                                                     │
  │                                                                         │
  │             Name:                                                       │
  │             Use as:         PowerPC PReP boot partition                 │
  │                                                                         │
  │             Bootable flag:  off                                         │
  │                                                                         │
  │             Copy data from another partition                            │
  │             Delete the partition                                        │
  │             Done setting up the partition                               │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘

Configure the Software RAID device (RAID1)

Use the 'Configure software RAID' option, and create a MD device in the (remaining) free space in each component device.

  • Select Configure software RAID:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is an overview of your currently configured partitions and mount   │
  │ points. Select a partition to modify its settings (file system, mount   │
  │ point, etc.), a free space to create partitions, or a device to         │
  │ initialize its partition table.                                         │
  │                                                                         │
  │           Guided partitioning                                           │
  │           Configure software RAID                           ▒           │
  │           Configure the Logical Volume Manager              ▒           │
  │           Configure encrypted volumes                       ▒           │
  │           Configure iSCSI volumes                           ▒           │
  │                                                                         │
  │           SCSI1 (0,0,0) (sda) - 17.2 GB QEMU QEMU HARDDISK  ▒           │
  │           >            1.0 MB       FREE SPACE              ▒           │
  │           >     #1     7.3 MB    K                          ▒           │
  │           >           17.2 GB       FREE SPACE                          │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select Yes:

   ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐
   │                                                                       │
   │ Before RAID can be configured, the changes have to be written to the  │
   │ storage devices.  These changes cannot be undone.                     │
   │                                                                       │
   │ When RAID is configured, no additional changes to the partitions in   │
   │ the disks containing physical volumes are allowed.  Please convince   │
   │ yourself that you are satisfied with the current partitioning scheme  │
   │ in these disks.                                                       │
   │                                                                       │
   │ The partition tables of the following devices are changed:            │
   │    SCSI1 (0,0,0) (sda)                                                │
   │    SCSI1 (0,1,0) (sdb)                                                │
   │                                                                       │
   │ Write the changes to the storage devices and configure RAID?          │
   │                                                                       │
   │     <Yes>                                                    <No>     │
   │                                                                       │
   └───────────────────────────────────────────────────────────────────────┘
  • Select Create MD device:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is the software RAID (or MD, "multiple device") configuration      │
  │ menu.                                                                   │
  │                                                                         │
  │ Please select one of the proposed actions to configure software RAID.   │
  │                                                                         │
  │ Software RAID configuration actions                                     │
  │                                                                         │
  │                           Create MD device                              │
  │                           Delete MD device                              │
  │                           Finish                                        │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select RAID1:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ Please choose the type of the software RAID device to be created.       │
  │                                                                         │
  │ Software RAID device type:                                              │
  │                                                                         │
  │                                RAID0                                    │
  │                                RAID1                                    │
  │                                RAID5                                    │
  │                                RAID6                                    │
  │                                RAID10                                   │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Enter the number of active devices for the array (default value: 2, in this example). Select Continue.

   ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐
   │                                                                       │
   │ The RAID1 array will consist of both active and spare devices. The    │
   │ active devices are those used, while the spare devices will only be   │
   │ used if one or more of the active devices fail. A minimum of 2 active │
   │ devices is required.                                                  │
   │                                                                       │
   │ NOTE: this setting cannot be changed later.                           │
   │                                                                       │
   │ Number of active devices for the RAID1 array:                         │
   │                                                                       │
   │ 2____________________________________________________________________ │
   │                                                                       │
   │     <Go Back>                                          <Continue>     │
   │                                                                       │
   └───────────────────────────────────────────────────────────────────────┘
  • Enter the number of spare devices for the array (default value: 0, in this example). Select Continue.

                ┌───────────┤ [!!] Partition disks ├───────────┐
                │                                              │
                │ Number of spare devices for the RAID1 array: │
                │                                              │
                │ 0___________________________________________ │
                │                                              │
                │     <Go Back>                 <Continue>     │
                │                                              │
                └──────────────────────────────────────────────┘
  • Select the (remaining) FREE SPACE in each component device (in this example, /dev/sda free #2 and /dev/sdb free #1), and select Continue:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ You have chosen to create a RAID1 array with 2 active devices.          │
  │                                                                         │
  │ Please choose which partitions are active devices. You must select      │
  │ exactly 2 partitions.                                                   │
  │                                                                         │
  │ Active devices for the RAID1 array:                                     │
  │                                                                         │
  │         [ ] /dev/sda free #1               (1MB; FREE SPACE)            │
  │         [ ] /dev/sda1                      (7MB)                        │
  │         [*] /dev/sda free #2               (17171MB; FREE SPACE)        │
  │         [*] /dev/sdb free #1               (17179MB; FREE SPACE)        │
  │                                                                         │
  │     <Go Back>                                            <Continue>     │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select Yes:

   ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐
   │                                                                       │
   │ Before RAID can be configured, the changes have to be written to the  │
   │ storage devices.  These changes cannot be undone.                     │
   │                                                                       │
   │ When RAID is configured, no additional changes to the partitions in   │
   │ the disks containing physical volumes are allowed.  Please convince   │
   │ yourself that you are satisfied with the current partitioning scheme  │
   │ in these disks.                                                       │
   │                                                                       │
   │ The partition tables of the following devices are changed:            │
   │    SCSI1 (0,0,0) (sda)                                                │
   │    SCSI1 (0,1,0) (sdb)                                                │
   │                                                                       │
   │ Write the changes to the storage devices and configure RAID?          │
   │                                                                       │
   │     <Yes>                                                    <No>     │
   │                                                                       │
   └───────────────────────────────────────────────────────────────────────┘
  • Select Finish:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is the software RAID (or MD, "multiple device") configuration      │
  │ menu.                                                                   │
  │                                                                         │
  │ Please select one of the proposed actions to configure software RAID.   │
  │                                                                         │
  │ Software RAID configuration actions                                     │
  │                                                                         │
  │                           Create MD device                              │
  │                           Delete MD device                              │
  │                           Finish                                        │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • The Software RAID device should now be listed in the Partition disks dialog (RAID1 device #0, in this example):

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is an overview of your currently configured partitions and mount   │
  │ points. Select a partition to modify its settings (file system, mount   │
  │ point, etc.), a free space to create partitions, or a device to         │
  │ initialize its partition table.                                         │
  │                                                                         │
  │           Guided partitioning                                           │
  │           Configure software RAID                                       │
  │           Configure the Logical Volume Manager              ▒           │
  │           Configure encrypted volumes                       ▒           │
  │           Configure iSCSI volumes                           ▒           │
  │                                                             ▒           │
  │           RAID1 device #0 - 17.2 GB Software RAID device    ▒           │
  │           >     #1    17.2 GB                               ▒           │
  │           >           512.0 B       unusable                ▒           │
  │           SCSI1 (0,0,0) (sda) - 17.2 GB QEMU QEMU HARDDISK              │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘

Partition the Software RAID device (with either Manual or Guided partitioning)

Partition the device normally, either in Manual or Guided partitioning mode. This example uses Guided partitioning.


Warning /!\ Note: There's a bug (LP 1615650) with Guided Partitioning for Software RAID devices with NVMe component devices: the Software RAID device is not listed in the Select disk to partition prompt. (affects Ubuntu Server LTS 16.04 and 16.04.1; fixed for 16.04.2 and later, fixed on 16.04 ISO daily builds as of 14-Sep-2016)

There are 2 options:

  1. Use Manual partitioning.
  2. Use Guided partitioning with this workaround:
    1. In the Partition disks dialog, select Go Back until the main menu, then select Execute a Shell

    2. Run this command:
        ~ # sed -i '243 i */nvme*) ;;' /lib/partman/lib/auto-shared.sh; exit
    3. Select Partition disks and continue the installation normally.


  • Select Guided partitioning:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is an overview of your currently configured partitions and mount   │
  │ points. Select a partition to modify its settings (file system, mount   │
  │ point, etc.), a free space to create partitions, or a device to         │
  │ initialize its partition table.                                         │
  │                                                                         │
  │           Guided partitioning                                           │
  │           Configure software RAID                                       │
  │           Configure the Logical Volume Manager              ▒           │
  │           Configure encrypted volumes                       ▒           │
  │           Configure iSCSI volumes                           ▒           │
  │                                                             ▒           │
  │           RAID1 device #0 - 17.2 GB Software RAID device    ▒           │
  │           >     #1    17.2 GB                               ▒           │
  │           >           512.0 B       unusable                ▒           │
  │           SCSI1 (0,0,0) (sda) - 17.2 GB QEMU QEMU HARDDISK              │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select Guided - use entire disk and set up LVM:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ If you choose guided partitioning for an entire disk, you will next     │
  │ be asked which disk should be used.                                     │
  │                                                                         │
  │ Partitioning method:                                                    │
  │                                                                         │
  │          Guided - use entire disk                                       │
  │          Guided - use the largest continuous free space                 │
  │          Guided - use entire disk and set up LVM                        │
  │          Guided - use entire disk and set up encrypted LVM              │
  │          Manual                                                         │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select RAID1 device #0:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ Note that all data on the disk you select will be erased, but not       │
  │ before you have confirmed that you really want to make the changes.     │
  │                                                                         │
  │ Select disk to partition:                                               │
  │                                                                         │
  │           RAID1 device #0 - 17.2 GB Software RAID device                │
  │           SCSI1 (0,0,0) (sda) - 17.2 GB QEMU QEMU HARDDISK              │
  │           SCSI1 (0,1,0) (sdb) - 17.2 GB QEMU QEMU HARDDISK              │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select Yes:

   ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐
   │                                                                       │
   │ Before the Logical Volume Manager can be configured, the current      │
   │ partitioning scheme has to be written to disk. These changes cannot   │
   │ be undone.                                                            │
   │                                                                       │
   │ After the Logical Volume Manager is configured, no additional changes │
   │ to the partitioning scheme of disks containing physical volumes are   │
   │ allowed during the installation. Please decide if you are satisfied   │
   │ with the current partitioning scheme before continuing.               │
   │                                                                       │
   │ The partition tables of the following devices are changed:            │
   │    RAID1 device #0                                                    │
   │                                                                       │
   │ Write the changes to disks and configure LVM?                         │
   │                                                                       │
   │     <Yes>                                                    <No>     │
   │                                                                       │
   └───────────────────────────────────────────────────────────────────────┘
  • The LVM logical volumes should now be listed in the Partition disks dialog, along with the new partitions in the Software RAID device (in the LVM Volume Group 'trustykvm', in this example):

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is an overview of your currently configured partitions and mount   │
  │ points. Select a partition to modify its settings (file system, mount   │
  │ point, etc.), a free space to create partitions, or a device to         │
  │ initialize its partition table.                                         │
  │                                                                         │
  │                                                                         │
  │  LVM VG trustykvm-vg, LV root - 16.1 GB Linux device-mapper (linea  ▒   │
  │  >     #1     16.1 GB     f  ext4          /                            │
  │  LVM VG trustykvm-vg, LV swap_1 - 755.0 MB Linux device-mapper (li  ▒   │
  │  >     #1    755.0 MB     f  swap          swap                     ▒   │
  │  RAID1 device #0 - 17.2 GB Linux Software RAID Array                ▒   │
  │  >     #1      8.0 MB  B  K                                         ▒   │
  │  >     #2    256.0 MB     f  ext2          /boot                    ▒   │
  │  >     #3     16.9 GB     K  lvm                                    ▒   │
  │  SCSI1 (0,0,0) (sda) - 17.2 GB QEMU QEMU HARDDISK                       │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘

Proceed with the normal installation process.

The disk partitioning is complete. Finish the 'Partition disks' dialog and continue the installation normally.

  • Select Finish partitioning and write changes to disk:

  ┌────────────────────────┤ [!!] Partition disks ├─────────────────────────┐
  │                                                                         │
  │ This is an overview of your currently configured partitions and mount   │
  │ points. Select a partition to modify its settings (file system, mount   │
  │ point, etc.), a free space to create partitions, or a device to         │
  │ initialize its partition table.                                         │
  │                                                                         │
  │  >     #1      7.3 MB     K                                             │
  │  >     #2     17.2 GB     K  raid                                   ▒   │
  │  >             1.0 MB        FREE SPACE                             ▒   │
  │  SCSI1 (0,1,0) (sdb) - 17.2 GB QEMU QEMU HARDDISK                   ▒   │
  │  >             1.0 MB        FREE SPACE                             ▒   │
  │  >     #1     17.2 GB     K  raid                                   ▒   │
  │  >             1.0 MB        FREE SPACE                             ▒   │
  │                                                                     ▒   │
  │  Undo changes to partitions                                             │
  │  Finish partitioning and write changes to disk                          │
  │                                                                         │
  │     <Go Back>                                                           │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  • Select Yes:

    ┌───────────────────────┤ [!!] Partition disks ├───────────────────────┐
    │                                                                      │
    │ If you continue, the changes listed below will be written to the     │
    │ disks. Otherwise, you will be able to make further changes manually. │
    │                                                                      │
    │ The partition tables of the following devices are changed:           │
    │    LVM VG trustykvm-vg, LV root                                      │
    │    LVM VG trustykvm-vg, LV swap_1                                    │
    │    RAID1 device #0                                                   │
    │                                                                      │
    │ The following partitions are going to be formatted:                  │
    │    LVM VG trustykvm-vg, LV root as ext4                              │
    │    LVM VG trustykvm-vg, LV swap_1 as swap                            │
    │    partition #2 of RAID1 device #0 as ext2                           │
    │                                                                      │
    │ Write the changes to disks?                                          │
    │                                                                      │
    │     <Yes>                                                   <No>     │
    │                                                                      │
    └──────────────────────────────────────────────────────────────────────┘
  • Continue the installation process normally.

ppc64el/SoftwareRAID (last edited 2016-09-14 12:29:21 by mauricfo)

 

DOCKER 설명 !!!

 

https://www.slideshare.net/pyrasis/docker-fordummies-44424016

 

 

https://subicura.com/2017/01/19/docker-guide-for-beginners-1.html

 

'IBM PowerAI' 카테고리의 다른 글

인공지능 OpenSource  (0) 2018.01.03
spectrum scale 구성 (gpfs)  (0) 2017.07.07
관련 자료  (0) 2017.07.06

Diagnosing Network Speed with Iperf

Updated by Nick Brewer

Contribute on GitHub

View Project | View File | Edit File

Linux systems administrators and network administrators often find diagnosing network speed degradation complicated, as there are very few tools available to diagnose these issues. Iperf is a command-line tool used in the diagnostics of network speed issues.

Diagnosing Network Speed with Iperf

Iperf measures the maximum network throughput a server can handle. It is particularly useful when experiencing network speed issues, as you can use Iperf to determine which server is unable to reach maximum throughput.

Installing Iperf

The installation section assumes that you are the root user. If you are not using the super user, you will need to use sudo before each command.

Debian and Ubuntu

You can use apt-get to install Iperf on Debian and Ubuntu:

1
apt-get install iperf

CentOS

CentOS repositories do not have Iperf by default. Use the EPEL repository, which is a repository used to install third-party software packages on RedHat systems such as RHEL and CentOS:

1
2
3
yum install epel-release
yum update
yum install iperf

Fedora

To install Iperf on your Fedora instance run:

1
2
yum update
yum install iperf

Arch Linux

To install Iperf on your Arch Linux instance run:

1
pacman -S iperf

Gentoo

Using Portage, install Iperf on your Gentoo instance:

1
emerge iperf

If you have not yet run emerge --sync you may need to do so before it will allow you to install the Iperf package. Additionally, by default you will need to substitute each iperf command with /usr/bin/iperf3. This path may differ dependent on your Iperf version.

Using Iperf

Iperf must be installed on both computers you are testing the connection between. If you are using a Unix or Linux-based operating system on your personal computer, you may be able to install Iperf on your local machine. If you are testing the throughput of your Linode, however, it’s better to use another server as the end point, as your local ISP may impose network restrictions that can affect the results of your test.

TCP Clients & Servers

Iperf requires two systems because one system must act as a server, while the other acts as a client. The client connects to the server you’re testing the speed of.

  1. On the Linode you wish to test, launch Iperf in server mode:

    1
    iperf -s
    

    You should see output similar to:

    1
    2
    3
    4
     ------------------------------------------------------------
     Server listening on TCP port 5001
     TCP window size: 85.3 KByte (default)
     ------------------------------------------------------------
    
  2. On your second Linode, connect to the first. Replace 198.51.100.5 with the first Linode’s IP address.

    1
    iperf -c 198.51.100.5
    

    The output should be similar to:

    1
    2
    3
    4
    5
    6
    7
    ------------------------------------------------------------
    Client connecting to 198.51.100.5, TCP port 5001
    TCP window size: 45.0 KByte (default)
    ------------------------------------------------------------
    [  3] local 198.51.100.6 port 50616 connected with 198.51.100.5 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0-10.1 sec  1.27 GBytes  1.08 Gbits/sec
    
  3. You will also see the connection and results on your Iperf server. This will look similar to:

    1
    2
    3
    4
    5
    6
    7
    ------------------------------------------------------------
    Server listening on TCP port 5001
    TCP window size: 85.3 KByte (default)
    ------------------------------------------------------------
    [  4] local 198.51.100.5 port 5001 connected with 198.51.100.6 port 50616
    [ ID] Interval       Transfer     Bandwidth
    [  4]  0.0-10.1 sec  1.27 GBytes  1.08 Gbits/sec
    
  4. To stop the Iperf server process, press CTRL + c.

UDP Clients & Servers

Using Iperf, you can also test the maximum throughput achieved via UDP connections.

  1. Start a UDP Iperf server:

    1
    iperf -s -u
    

    The output will be similar to:

    1
    2
    3
    4
    5
    ------------------------------------------------------------
    Server listening on UDP port 5001
    Receiving 1470 byte datagrams
    UDP buffer size:  208 KByte (default)
    ------------------------------------------------------------
    
  2. Connect your client to your Iperf UDP server. Replace 198.51.100.5 with your IP address:

    1
    iperf -c 198.51.100.5 -u
    

    The -u option we’ve passed tells Iperf that we are connecting via UDP. This is important, because we want to see the maximum throughput achieved via UDP. The output should be similar to:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    ------------------------------------------------------------
    Client connecting to 198.51.100.5, UDP port 5001
    Sending 1470 byte datagrams
    UDP buffer size:  208 KByte (default)
    ------------------------------------------------------------
    [  3] local 198.51.100.6 port 58070 connected with 198.51.100.5 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec
    [  3] Sent 893 datagrams
    [  3] Server Report:
    [  3]  0.0-10.0 sec  1.25 MBytes  1.05 Mbits/sec   0.084 ms    0/  893 (0%)
    

    Looking at the output we have received, 1.05 Mbits/sec is considerably less than what we received on the TCP tests. It is also considerably less than the maximum outbound bandwidth cap provided by the 1GB Linode. This is because Iperf limits the bandwidth for UDP clients to 1 Mbit per second by default.

  3. You can change this with the -b flag, replacing the number after with the maximum bandwidth rate you wish to test against. If you are testing for network speed, we recommend setting this number above the maximum bandwidth cap provided by Linode. For example, this test was run on a 1GB Linode:

    1
    iperf -c 198.51.100.5 -u -b 1000m
    

    This tells the client that we want to achieve a maximum of 1000 Mbits per second if possible. The -b flag only works when using UDP connections, since Iperf does not set a bandwidth limit on the TCP clients.

    The output should be similar to:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    ------------------------------------------------------------
    Client connecting to 198.51.100.5, UDP port 5001
    Sending 1470 byte datagrams
    UDP buffer size:  208 KByte (default)
    ------------------------------------------------------------
    [  3] local 198.51.100.5 port 52308 connected with 198.51.100.5 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0-10.0 sec   966 MBytes   810 Mbits/sec
    [  3] Sent 688897 datagrams
    [  3] Server Report:
    [  3]  0.0-10.0 sec   966 MBytes   810 Mbits/sec   0.001 ms    0/688896 (0%)
    [  3]  0.0-10.0 sec  1 datagrams received out-of-order
    

    Now that is considerably better than the 1.05 Mbits/sec we were seeing earlier!

Bidirectional Tests

In some cases, you may want to test both servers for the maximum amount of throughput. This can easily be done using the built-in bidirectional testing feature Iperf offers.

Run the following command to test both connections:

1
iperf -c 198.51.100.5 -d

The result is that Iperf will start a server and a client connection on the original client server (198.51.100.6). Once this has been done, Iperf will connect the original Iperf server to the client connection, which is now acting as both a server connection and a client connection. This will look similar

1
2
3
4
5
6
7
8
9
10
11
12
13
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to 198.51.100.5, TCP port 5001
TCP window size:  351 KByte (default)
------------------------------------------------------------
[  3] local 198.51.100.6 port 50618 connected with 198.51.100.5 port 5001
[  5] local 198.51.100.6 port 5001 connected with 198.51.100.5 port 58650
[ ID] Interval       Transfer     Bandwidth
[  5]  0.0-10.1 sec  1.27 GBytes  1.08 Gbits/sec
[  3]  0.0-10.2 sec  1.28 GBytes  1.08 Gbits/sec

On the original Iperf server, you will see:

1
2
3
4
5
6
7
------------------------------------------------------------
Client connecting to 198.51.100.6, TCP port 5001
TCP window size:  153 KByte (default)
------------------------------------------------------------
[  6] local 198.51.100.5 port 58650 connected with 198.51.100.6 port 5001
[  6]  0.0-10.1 sec  1.27 GBytes  1.08 Gbits/sec
[  5]  0.0-10.2 sec  1.28 GBytes  1.08 Gbits/sec

Options

Option Description
-f Change the format in which the tests are run. For example, you can use -f k to get results in Kbits per second instead of Mbits per second. Valid options include m (Mbits, default), k (Kbits), K (KBytes), and M (MBytes).
-V Forces Iperf to use IPv6 rather than IPv4.
-i Changes the interval between periodic bandwidth tests. For example, -i 60 will make a new bandwidth report every 60 seconds. The default is zero, which performs one bandwidth test.
-p Changes the port. When not specified, the default port is 5001. You must use this flag on both the client and server.
-B Binds Iperf to a specific interface or address. If passed through the server command, the incoming interface will be set. If passed through the client command, the outgoing interface will be set.

More Information

You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

'IBM PowerLinux' 카테고리의 다른 글

LVM home삭제후 root 증설  (0) 2018.02.14
Linux samba 설정  (0) 2017.08.04
리눅스 Filesystem cache 정책 변경  (0) 2017.02.21
Linux에서 소프트웨어 RAID 구성  (0) 2017.02.21
linux scan device   (0) 2016.10.22


GPFS 구성문서



[UBUNTU with GPFS]


http://hwengineer.blogspot.kr/2017/06/linux-kernel-update-spectrumscale-mount.html




https://help.ubuntu.com/community/SettingUpGPFSHowTo


https://sysadminci.wordpress.com/2015/05/09/install-and-configure-gpfs-4-1-filesystem-on-linux-centos-6-6/



[AIX with GPFS]


https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/General%20Parallel%20File%20System%20(GPFS)/page/Install%20and%20configure%20a%20GPFS%20cluster%20on%20AIX

'IBM PowerAI' 카테고리의 다른 글

인공지능 OpenSource  (0) 2018.01.03
docker 도커 설명  (0) 2017.07.09
관련 자료  (0) 2017.07.06

 

 

Docker 설명

 

http://blog.nacyot.com/articles/2014-01-27-easy-deploy-with-docker/#toc-qqqdockerqqqqqqq

 

http://pyrasis.com/Docker/Docker-HOWTO

'IBM PowerAI' 카테고리의 다른 글

인공지능 OpenSource  (0) 2018.01.03
docker 도커 설명  (0) 2017.07.09
spectrum scale 구성 (gpfs)  (0) 2017.07.07

 


[ LUN 생성 ]
svctask mkvdisk -mdiskgrp 0 -name TEST-VOL -size 53687091200 -unit b

svctask mkvdisk -cache readwrite -copies 1 -iogrp io_grp0 -mdiskgrp Pool -name TEST-VOL -size 10 -syncrate 50 -unit gb -vtype striped

svctask mkvdisk -cache readwrite -copies 1 -iogrp io_grp0 -mdiskgrp Pool0 -name CLI-VOL -size 10 -syncrate 100 -unit gb -vtype striped


[ Mapping Host ]

#lshost
-> hostid 검색

#lsvdisk
-> Volume ID 검색

#lsarray

#lshostvdiskmap
-> Host mapping 확인


svctask mkvdiskhostmap -force -host 6 24

svctask mkvdiskhostmap -force -host 3 -scsi 2 5
svctask mkvdiskhostmap -force -host 3 5

삭제 svctask rmvdiskhostmap -host 3 5

 

 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

 

Get to know all the SVC commands in CLI

NOTE: Vol names and host names are as per their "CASE" ..
 
SVCTASK COMMANDS:
 
01) svctask mkvdiskhostmap -force -host host_name volume_name   ( to force map host)
02) svctask expandvdisksize/shrinkvdisksize -size 30 -unit gb diskname ( to expand/shrink vdisk)
03) svctask mkhost -force -hbawwpn 10000000C9B0FA1C:10000000C9C0CCC2 -mask 1111 -name host_name -type generic   ( to create a new host)
04) svctask mkvdisk -autoexpand -cache readwrite -copies 1 -grainsize 32 -iogrp io-grp0 -mdiskgrp group_name -name disk_name -rsize 2% -size 50 -syncrate 50 -unit gb -vtype striped    (to create new thin disk)
05) svctask mkrcrelationship -aux aux_volume -cluster 0000020060802D48 -master master_volume   ( to enable new PPRC)
07) svctask mkrcconsistgrp -cluster 0000020060802D48 -name group_name   (to create empty consist group )
08) svctask addhostport -force -hbawwpn 10000000C9F219AC host_name   ( to add FC port to host)
09) svctask stoprcconsistgrp -access group_name  ( to stop pprc and give mount access)
10) svctask startrcconsistgrp -primary master/aux -force group_name    ( to start the pprc)
11) svctask migratevdisk -mdiskgrp mdiskgrp_name -vdisk disk_name   ( to migrate vdisk to new group) 
12) svctask rmvdisk -force vdisk_name    ( to remove a lun)
13) svctask chvdisk -name new_name actual_name  ( rename a lun)
14) svctask shrinkvdisksize -size zz -unit gb disk_name
15) svctask mkuser -name user_name -usergrp group_name -password xxxxxxx
16) svctask stopsystem -node 5   ( shutdown node )
16) svctask chrcconsistgrp -name new_name rc_name
18) svctask chuser -password xxxxx user_id  ( to change password)

SVCINFO COMMANDS:
 
01) svcinfo lsvdiskhostmap volume_name  ( to find all host mappings to a volume)
02) svcinfo lsvdisk -filtervalue name=volume_name    ( to get details of the volume)
03) svcinfo lsvdisk -filtervalue vdisk_UID= uid      ( to get details of the volume)
04) svcinfo lsfabric -wwpn 110021200212   ( to know wwpn belongs to which host)
05) svcinfo lsfabric -host hostname   ( to know wwpn mappings of specific host)
06) svcinfo lshostvdiskmap host_name ( to see disks mapped to hosts)
07) svcinfo lsrcconsistgrp (gives list of consistency gropus)
08) svcinfo lsvdisksyncprogress  ( to see the PPRC copy status)
09) svcinfo lscopystatus ( to see PPRC coopy status)

'잡동사니' 카테고리의 다른 글

2열 시트 커버  (0) 2016.08.09
거실  (0) 2016.07.05
[투싼ix] 도어내캐치  (1) 2016.04.04
[투싼ix] 클러스터 이오나이저  (0) 2016.04.04

 

 

 

블랙박스 A필러 탈거

 

http://blog.naver.com/real813/220745117852

 

 

블박 설치법 자세히

http://m.blog.naver.com/dlgusrl8055/220861320949

 

+ Recent posts