Shifter Configuration Guide 1.0

Size: px
Start display at page:

Download "Shifter Configuration Guide 1.0"

Transcription

1 Shifter Configuration Guide 1.0

2 Contents Contents About Shifter Configuration Guide...3 Configure the Docker Daemon...4 Configure Shifter...7 Rebuild the Compute Node initramfs and cpio Files...10 Configure the TORQUE Prologue and Epilogue Files

3 About Shifter Configuration Guide About Shifter Configuration Guide This publication includes software configuration procedures for Shifter and Docker. Shifter Configuration Guide This is the initial release of this publication, February 18, This version includes procedures to support Cray software release CLE 5.2UP04 for XC and XE systems. Typographic Conventions Monospace Monospaced Bold Oblique or Italics Indicates program code, reserved words, library functions, command-line prompts, screen output, file/path names, key strokes (e.g., Enter and Alt-Ctrl-F), and other software constructs. Indicates commands that must be entered on a command line or in response to an interactive prompt. Indicates user-supplied values in commands or syntax definitions. Proportional Bold Indicates a graphical user interface window or element. \ (backslash) At the end of a command line, indicates the Linux shell line continuation character (lines joined by a backslash are parsed as a single line). Do not type anything after the backslash or the continuation feature will not work correctly. Scope and Audience This publication is written for Cray internal employees and Cray customers. Feedback Visit the Cray Publications Portal at and make comments online using the Contact Us button in the upper-right corner or pubs@cray.com. Your comments are important to us and we will respond within 24 hours. 3

4 Configure the Docker Daemon Configure the Docker Daemon The Shifter system allows users to run commands in a user defined image (UDI). A UDI has many of the features of a Linux container. Some features (e.g., separate pid namespace) are missing because the UDI is intended to be used on a compute node where only one user's applications run at a time. A UDI is created from a Docker image. A user may download an image that has been exported by another site from the Docker Hub. This image can then be unpacked and then packaged into a UDI for the local user to use. Both the Docker daemon and Shifter require file system space for the local image cache and the packaged UDI, respectively. For the Docker daemon, this space can be either a file or a disk device. For Shifter, this space is a directory on a large file system. The Docker daemon uses a thin-pool (sparse) device for the image cache and the containers. This device/file only needs to be accessible to the daemon; it is not shared with any other processes. If the site does not have any disk available for this purpose, a regular file on a Lustre file system that is accessible on the compute node will work. It will attach via the loopback device. One node, with an Internet connection, should be picked to run the Docker daemon. In the following configuration instructions, node 29 (nid00029), a login node, is used. Run the following commands: nid00029# mkdir /lus/scratch/udi nid00029# cd /lus/scratch/udi nid00029# dd if=/dev/zero of=thin-pool bs=1024k count=22532 This creates a 22 GiB + 4 MiB file. The recommended starting size is 22 GiB. If using the loopback device: nid00029# DEV=$( losetup --find --show thin-pool ) If not using a loopback device, set the environment variable DEV to the device being used. nid00029# DEV=/dev/sda3 Whether using a loopback device or not, use the following commands. The volume group and logical volume names must be used as given: nid00029# pvcreate $DEV nid00029# vgcreate vg_docker $DEV nid00029# lvcreate --thinpool vg_docker/docker_pool --size 20G nid00029# lvchange --activate=n vg_docker/docker_pool If a loopback device was used, it can be detached using the following command. nid00029# losetup --detach $DEV Pre and Post Scripts The Docker daemon start script /etc/init.d/cray-docker will run a script, if it exists, before the daemon starts and another script, if it exists, after the daemon is stopped. 4

5 Configure the Docker Daemon There are templates for these files in /opt/cray/docker/default/templates. They can be copied from there for convenience and to avoid copy-and-paste errors. The pre-start script, /etc/opt/cray/docker/docker-start, allows actions to be done before the daemon starts, such as set up the thin-pool file (as set up previously). Create this script in the shared root. smw:~ # ssh root@boot boot:~ # xtopview default/:/ # vi /etc/opt/cray/docker/docker-start #!/bin/bash set -e POOL=/lus/scratch/udi/thin-pool while true; do [[ -e $POOL ]] && break sleep 30 done FILE=$( readlink -e $POOL) LOOP_DEV=$( losetup --find --show $FILE ) [[ -z $LOOP_DEV ]] && exit 1 pvscan $LOOP_DEV vgscan lvscan lvchange --activate=y vg_docker/docker_pool true The POOL variable should be set to the site's thin-pool file location. The loop in the script is to allow the thin-pool file to reside on a file system that is not mounted when the script is run. The script will wait until the file is accessible. Even if a loopback file is not used, a script can be used to make sure that the physical device being used is accessible and that the logical volume is active. Similarly, the post-stop script, /etc/opt/cray/docker/docker-stop, allows actions to be done after the daemon stops, such as detach the thin-pool file from the loopback device. Create the file: default/:/ # vi /etc/opt/cray/docker/docker-stop #!/bin/bash set +e POOL=/lus/scratch/udi/thin-pool LINE=$( lvscan grep vg_docker/docker_pool grep ACTIVE ) [[ -n $LINE ]] && lvchange --activate=n vg_docker/docker_pool FILE=$( readlink -e $POOL ) LINE=$( losetup --all grep $FILE ) [[ -z $LINE ]] && LOOP_DEV=$( echo "$LINE" sed -e 's/:.*$//' ) [[ -n $LOOP_DEV ]] && losetup --detach $LOOP_DEV 5

6 Configure the Docker Daemon The POOL variable should be changed to the site's thin-pool file. This script deactivates the logical volume and then detaches the loopback device. These scripts must be executable to run. default/:/ # chmod 750 /etc/opt/cray/docker/docker-* Please note the following administrative items: While the Docker daemon is running, the device/file system that holds the thin-pool file will be "busy." If the thin-pool file is a regular file in a file system, it will not be possible to unmount that file system until the Docker daemon is stopped and the thin-pool file is no longer in use. If the thin-pool file is a regular file, the lsof command will not show it as being the one keeping the file system busy if an unmount is attempted. The losetup --all command will show it. Add System Group and Enable Services A docker group needs to be created for the Docker daemon. The following commands will add the group docker as a system group in the shared root. default/:/ # groupadd --system docker default/:/ # exit The Docker daemon requires several services be enabled and a symlink created. This should be done in the node specialized view for the Docker daemon node. boot:~ # xtopview -n 29 node/29:/ # insserv boot.cgroup node/29:/ # insserv xinetd node/29:/ # insserv cray-docker node/29:/ # ln -s /var/lib/docker/etc /etc/docker node/29:/ # exit On the Docker daemon node itself, the following needs to be run: nid00029# mkdir -p /var/lib/docker/etc 6

7 Configure Shifter Configure Shifter There are several files that need to be configured for Shifter to work properly. This section will enumerate those files and indicate what their contents should be. Each of these files should either be created or edited in the shared root using the default view of xtopview. boot:~ # xtopview default/:/ # Since Shifter can use the alternate root feature of ALPS to have it chroot to the UDI root, the configuration file /etc/opt/cray/cnrte/roots.conf needs to have a line added to it: default/:/ # echo "UDI=/var/udiMount" >> /etc/opt/cray/cnrte/roots.conf There are templates for the files mentioned in this section in /opt/cray/shifter/default/templates. They can be copied from there for convenience and to avoid copy-and-paste errors. The Shifter config file (/etc/opt/cray/shifter/shifter.conf) needs to be created and populated. It should have the following contents: default/:/ # vi /etc/opt/cray/shifter/shifter.conf imagepath=/lus/scratch/udi udirootpath=/opt/cray/shifter/default etcpath=/var/opt/cray/shifter/etc sitemounthook=/etc/opt/cray/shifter/mount.sh imagegateway=nid00029:7777 The imagepath should be replaced to reflect the site's choice for the location of the packaged UDIs (e.g., scratch). This location needs to be accessible from the node running the Docker daemon as well as the compute nodes. A directory on a global file system with free space (e.g., Lustre) is a good location. The imagegateway should be replaced with a canonical name (e.g., nid00029) for the node running the Docker daemon. It needs to be a name that is present in the /etc/hosts file on the compute nodes. The other lines should remain untouched. A /etc/opt/cray/shifter/image-path file needs to be created. This file should use the same value for imagepath as used in the shifter.conf file. This file is read when the Docker gateway is run and the contents are used as the location of the packaged UDIs. default/:/ # vi /etc/opt/cray/shifter/image-path /lus/scratch/udi The /etc/opt/cray/shifter/mount.sh file needs to be created. It should have in it any commands that the site wishes to have run when the UDI environment is set up. The mount script should include any file systems that should be available to all applications using Shifter. The three instances of lus/scratch in the example below need to be changed to the site's actual file system name. default/:/ # vi /etc/opt/cray/shifter/mount.sh #!/bin/sh 7

8 Configure Shifter # These are the arguments passed to this script: UDI_ROOT=$1 USERNAME=$2 set -e # These lines generate the passwd and group files for the given user. # This is necessary for ssh to function. mkdir -p /var/opt/cray/shifter/etc cp -rl /etc/opt/cray/shifter/etc_files/* /var/opt/cray/shifter/etc /opt/cray/shifter/default/sbin/gen-auth-files $USERNAME /var/opt/cray/shifter/etc mkdir -p lus/scratch mkdir -p ufs mkdir -p var/opt/cray/alps mount --bind /lus/scratch lus/scratch mount --bind /ufs ufs mount --bind /var/opt/cray/alps var/opt/cray/alps ln -s ufs/home home This example does the following: Generates the passwd and group files with information for the given user. If the site wants the user to be able to ssh into any compute node(s) that are part of the user s job, these lines are necessary. Creates 3 directories in the UDI environment that will be used as mount points. Does bind mounts from 3 file systems outside of the UDI environment to inside the environment. The /var/opt/cray/alps mount is necessary for ALPS to work properly. Shared root configuration is now complete. default/:/ # chmod 750 /etc/opt/cray/shifter/mount.sh default/:/ # exit Compute Node Configuration The mount.sh and shifter.conf files need to be copied to their similar locations in the compute node image. smw # mkdir -p /opt/xt-images/templates/default/etc/opt/cray/shifter/etc_files smw # cd /opt/xt-images/templates/default/etc/opt/cray/shifter smw # scp -p root@boot:/rr/current/.shared/base/default/etc/opt/cray\ /shifter/mount.sh. smw # scp -p root@boot:/rr/current/.shared/base/default/etc/opt/cray\ /shifter/shifter.conf. The group, passwd, and nsswitch.conf files can be customized for the site. They reside in /etc/opt/cray/shifter/etc_files. These files need to be present in both the compute node initramfs and the shared-root. smw # scp -p root@boot:/rr/current/.shared/base/default/etc/opt/cray\ /shifter/etc_files/group./etc_files/ smw # scp -p root@boot:/rr/current/.shared/base/default/etc/opt/cray\ /shifter/etc_files/passwd./etc_files/ 8

9 Configure Shifter smw # scp -p root@boot:/rr/current/.shared/base/default/etc/opt/cray\ /shifter/etc_files/nsswitch.conf./etc_files/ The files in the /etc/opt/cray/shifter/etc_files directory are copied to /etc in the UDI. If there are files other than the 3 mentioned above, they will be copied as well. This allows other config information, e.g., LDAP, to be present and get copied. mount.sh has already been copied into the compute image with the scp commands. Modify the following lines by adding /sbin/chroot /dsl: smw:~ # vi mount.sh #!/bin/sh # These are the arguments passed to this script: UDI_ROOT=$1 USERNAME=$2 set -e # These lines generate the passwd and group files for the given user. # This is necessary for ssh to function. mkdir -p /var/opt/cray/shifter/etc /sbin/chroot /dsl cp -rl /etc/opt/cray/shifter/etc_files/* \ /var/opt/cray/shifter/etc /sbin/chroot /dsl /opt/cray/shifter/default/sbin/gen-auth-files $USERNAME \ /var/opt/cray/shifter/etc mkdir -p lus/scratch mkdir -p ufs mkdir -p var/opt/cray/alps mount --bind /lus/scratch lus/scratch mount --bind /ufs ufs mount --bind /var/opt/cray/alps var/opt/cray/alps ln -s ufs/home home Except for this change, if these files do not match each other, Shifter may not work properly. 9

10 Rebuild the Compute Node initramfs and cpio Files Rebuild the Compute Node initramfs and cpio Files The initramfs needs to be repackaged and converted into a boot image cpio. This is done using the following commands on the SMW. Rebuild the boot image using the usual methods at site, for example: smw # /var/opt/cray/install/shell_bootimage_label.sh -c -d -b /bootimagedir/ \ bootimage.cpio Once this last step has been completed, the compute nodes can be rebooted with the new image. The Docker daemon service node needs to be rebooted as well. These reboots will need to be done before Shifter is usable. 10

11 Configure the TORQUE Prologue and Epilogue Files Configure the TORQUE Prologue and Epilogue Files On the TORQUE mom node(s), in /var/spool/torque/mom_priv, the prologue and epilogue files should be modified to either match the following or have the shifter part added. There are templates for the files mentioned in this section in /opt/cray/shifter/default/templates/wlm/torque. They can be copied from there for convenience and to avoid copy-and-paste errors. torque-mom# vi /var/spool/torque/mom_priv/prologue #!/bin/bash shifter_prologue=/opt/cray/shifter/default/libexec/cray-shifter-prologue if [[ -x $shifter_prologue ]]; then $shifter_prologue $* [[ $? -ne 0 ]] && exit 1 fi torque-mom# vi /var/spool/torque/mom_priv/epilogue #!/bin/bash shifter_epilogue=/opt/cray/shifter/default/libexec/cray-shifter-epilogue if [[ -x $shifter_epilogue ]]; then $shifter_epilogue $* fi torque-mom# chmod 700 /var/spool/torque/mom_priv/epilogue torque-mom# chmod 700 /var/spool/torque/mom_priv/prologue For DataWarp and Moab TORQUE If using DataWarp and Moab TORQUE, the following lines must be included in the prologue and epilogue scripts: /usr/local/bin/ac_dw_prologue $@ /usr/local/bin/ac_dw_epilogue $@ torque-mom# vi /var/spool/torque/mom_priv/prologue #!/bin/bash /usr/local/bin/ac_dw_prologue $@ shifter_prologue=/opt/cray/shifter/default/libexec/cray-shifter-prologue if [[ -x $shifter_prologue ]]; then $shifter_prologue $* [[ $? -ne 0 ]] && exit 1 fi torque-mom# vi /var/spool/torque/mom_priv/epilogue #!/bin/bash shifter_epilogue=/opt/cray/shifter/default/libexec/cray-shifter-epilogue if [[ -x $shifter_epilogue ]]; then $shifter_epilogue $* fi 11

12 Configure the TORQUE Prologue and Epilogue Files /usr/local/bin/ac_dw_epilogue torque-mom# chmod 700 /var/spool/torque/mom_priv/epilogue torque-mom# chmod 700 /var/spool/torque/mom_priv/prologue Configure Manager Roles for Mom Nodes The root user must be given TORQUE "managers" access on each mom node. This applies whether the system has DataWarp configured or not. #connect to the TORQUE server for the host (sdb in this case) % ssh root@sdb sdb% module load torque sdb% qmgr -c set server managers += root@nid00029' Repeat this step for each nid that hosts a TORQUE mom. 12

XC Series Shifter User Guide (CLE 6.0.UP02) S-2571

XC Series Shifter User Guide (CLE 6.0.UP02) S-2571 XC Series Shifter User Guide (CLE 6.0.UP02) S-2571 Contents Contents 1 About the XC Series Shifter User Guide...3 2 Shifter System Introduction...6 3 Download and Convert the Docker Image...7 4 Submit

More information

Performance Measurement and Analysis Tools Installation Guide S

Performance Measurement and Analysis Tools Installation Guide S Performance Measurement and Analysis Tools Installation Guide S-2474-63 Contents About Cray Performance Measurement and Analysis Tools...3 Install Performance Measurement and Analysis Tools on Cray Systems...4

More information

Installation, Configuration and Performance Tuning of Shifter V16 on Blue Waters

Installation, Configuration and Performance Tuning of Shifter V16 on Blue Waters May 24, 2018 Installation, Configuration and Performance Tuning of Shifter V16 on Blue Waters HonWai Leong, Timothy Bouvet, Brett Bode, Jeremy Enos & David King Outline Background and Challenges Installation

More information

More Raspian. An editor Configuration files Shell scripts Shell variables System admin

More Raspian. An editor Configuration files Shell scripts Shell variables System admin More Raspian An editor Configuration files Shell scripts Shell variables System admin Nano, a simple editor Nano does not require the mouse. You must use your keyboard to move around the file and make

More information

Singularity: container formats

Singularity: container formats Singularity Easy to install and configure Easy to run/use: no daemons no root works with scheduling systems User outside container == user inside container Access to host resources Mount (parts of) filesystems

More information

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Introduction to remote command line Linux. Research Computing Team University of Birmingham Introduction to remote command line Linux Research Computing Team University of Birmingham Linux/UNIX/BSD/OSX/what? v All different v UNIX is the oldest, mostly now commercial only in large environments

More information

Test Lab Introduction to the Test Lab Linux Cluster Environment

Test Lab Introduction to the Test Lab Linux Cluster Environment Test Lab 1.0 - Introduction to the Test Lab Linux Cluster Environment Test lab is a set of three disposable cluster environments that can be used for systems research. All three environments are accessible

More information

Changing user login password on templates

Changing user login password on templates Changing user login password on templates 1. Attach an ISO via the cloudstack interface and boot the VM to rescue mode. Click on attach iso icon highlighted below: A popup window appears from which select

More information

Reducing Cluster Compatibility Mode (CCM) Complexity

Reducing Cluster Compatibility Mode (CCM) Complexity Reducing Cluster Compatibility Mode (CCM) Complexity Marlys Kohnke Cray Inc. St. Paul, MN USA kohnke@cray.com Abstract Cluster Compatibility Mode (CCM) provides a suitable environment for running out of

More information

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version... Contents Note: pay attention to where you are........................................... 1 Note: Plaintext version................................................... 1 Hello World of the Bash shell 2 Accessing

More information

List of Linux Commands in an IPm

List of Linux Commands in an IPm List of Linux Commands in an IPm Directory structure for Executables bin: ash cpio false ln mount rm tar zcat busybox date getopt login mv rmdir touch cat dd grep ls perl sed true chgrp df gunzip mkdir

More information

TORQUE Resource Manager Quick Start Guide Version

TORQUE Resource Manager Quick Start Guide Version TORQUE Resource Manager Quick Start Guide Version High Performance Computing Center Ferdowsi University of Mashhad http://www.um.ac.ir/hpcc Jan. 2006 1 Contents 1 Introduction 3 1.1 Feature................................

More information

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. 2 Conventions Used in This Book p. 2 Introduction to UNIX p. 5 An Overview

More information

Original Script. Display commands to manually creating an account. #!/bin/bash

Original Script. Display commands to manually creating an account. #!/bin/bash To show some of the basic components of shell scripting, we are going to take a common task, creating a new user, and design a script to help automate this process. Original Script Display commands to

More information

Docker task in HPC Pack

Docker task in HPC Pack Docker task in HPC Pack We introduced docker task in HPC Pack 2016 Update1. To use this feature, set the environment variable CCP_DOCKER_IMAGE of a task so that it could be run in a docker container on

More information

Introduction to Cray Data Virtualization Service S

Introduction to Cray Data Virtualization Service S TM Introduction to Cray Data Virtualization Service S 0005 4002 2008-2011 Cray Inc. All Rights Reserved. This document or parts thereof may not be reproduced in any form unless permitted by contract or

More information

ELE409 SPRING2018 LAB0

ELE409 SPRING2018 LAB0 ELE409 SPRING2018 LAB0 Getting familiar with the LXDE system Objectives: Pre-Lab: 1. Burn the linux system onto a micro-sd card 2. Get familiar with basic linux commands 3. Be able to communicate with

More information

PowerVM Lx86 for x86 Linux Applications Administration Guide

PowerVM Lx86 for x86 Linux Applications Administration Guide PowerVM Lx86 for x86 Linux Applications Administration Guide SA38-0650-03 PowerVM Lx86 for x86 Linux Applications Administration Guide SA38-0650-03 Note Before using this information and the product it

More information

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions Welcome to getting started with Ubuntu 12.04 Server. This System Administrator Manual guide to be simple to follow, with step by step instructions with screenshots INDEX 1.Installation of Ubuntu 12.04

More information

UNIX System Programming Lecture 3: BASH Programming

UNIX System Programming Lecture 3: BASH Programming UNIX System Programming Outline Filesystems Redirection Shell Programming Reference BLP: Chapter 2 BFAQ: Bash FAQ BMAN: Bash man page BPRI: Bash Programming Introduction BABS: Advanced Bash Scripting Guide

More information

Network softwarization Lab session 2: OS Virtualization Networking

Network softwarization Lab session 2: OS Virtualization Networking Network softwarization Lab session 2: OS Virtualization Networking Nicolas Herbaut David Bourasseau Daniel Negru December 16, 2015 1 Introduction 1.1 Discovering docker 1.1.1 Installation Please launch

More information

Shifter on Blue Waters

Shifter on Blue Waters Shifter on Blue Waters Why Containers? Your Computer Another Computer (Supercomputer) Application Application software libraries System libraries software libraries System libraries Why Containers? Your

More information

Shifter and Singularity on Blue Waters

Shifter and Singularity on Blue Waters Shifter and Singularity on Blue Waters Maxim Belkin June 7, 2018 A simplistic view of a scientific application DATA RESULTS My Application Received an allocation on Blue Waters! DATA RESULTS My Application

More information

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018 GNU/Linux 101 Casey McLaughlin Research Computing Center Spring Workshop Series 2018 rccworkshop IC;3df4mu bash-2.1~# man workshop Linux101 RCC Workshop L101 OBJECTIVES - Operating system concepts - Linux

More information

This guide assumes that you are setting up a masternode for the first time. You will need:

This guide assumes that you are setting up a masternode for the first time. You will need: KRT MN Guide Setting up a masternode requires a basic understanding of Linux and blockchain technology, as well as the ability to follow instructions closely. It also requires regular maintenance and careful

More information

IBM AIX Basic Operations V5.

IBM AIX Basic Operations V5. IBM 000-190 AIX Basic Operations V5 http://killexams.com/exam-detail/000-190 QUESTION: 122 Which of the following options describes the rm -i command? A. It removes and reports the file names it removes.

More information

DCCN Docker Swarm Cluster Documentation

DCCN Docker Swarm Cluster Documentation DCCN Docker Swarm Cluster Documentation Release 1.0.0 Hurng-Chun Lee Sep 12, 2017 Contents 1 Introduction to Docker Swarm 1 1.1 Docker in a Nutshell........................................... 1 1.2 Docker

More information

Installation Manual InfraManage.NET Installation Instructions for Ubuntu

Installation Manual InfraManage.NET Installation Instructions for Ubuntu Installation Manual InfraManage.NET Installation Instructions for Ubuntu Copyright 1996 2017 Timothy Ste. Marie Version 7.5.72SQL InfraManage.NET Installing InfraManage.NET Page 1 of 78 Table of Contents

More information

bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs

bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs Frauke Bösert, SCC, KIT 1 Material: Slides & Scripts https://indico.scc.kit.edu/indico/event/263/ @bwunicluster/forhlr I/ForHLR

More information

LOG ON TO LINUX AND LOG OFF

LOG ON TO LINUX AND LOG OFF EXPNO:1A LOG ON TO LINUX AND LOG OFF AIM: To know how to logon to Linux and logoff. PROCEDURE: Logon: To logon to the Linux system, we have to enter the correct username and password details, when asked,

More information

Useful Unix Commands Cheat Sheet

Useful Unix Commands Cheat Sheet Useful Unix Commands Cheat Sheet The Chinese University of Hong Kong SIGSC Training (Fall 2016) FILE AND DIRECTORY pwd Return path to current directory. ls List directories and files here. ls dir List

More information

INd_rasN SOME SHELL SCRIPTING PROGRAMS. 1. Write a shell script to check whether the name passed as first argument is the name of a file or directory.

INd_rasN SOME SHELL SCRIPTING PROGRAMS. 1. Write a shell script to check whether the name passed as first argument is the name of a file or directory. 1. Write a shell script to check whether the name passed as rst argument is the name of a le or directory. Ans: #!/bin/bash if [ -f $1 ] echo "$1 is a le" echo "$1 is not a le" 2. Write a shell script

More information

OPERATING SYSTEMS LINUX

OPERATING SYSTEMS LINUX OPERATING SYSTEMS LINUX Božo Krstajić, PhD, University of Montenegro Podgorica bozok@cg.ac.yu Process management Linux operating systems work with processes. Basically a process consists of program code

More information

CENG 334 Computer Networks. Laboratory I Linux Tutorial

CENG 334 Computer Networks. Laboratory I Linux Tutorial CENG 334 Computer Networks Laboratory I Linux Tutorial Contents 1. Logging In and Starting Session 2. Using Commands 1. Basic Commands 2. Working With Files and Directories 3. Permission Bits 3. Introduction

More information

Basic Linux Command Line Interface Guide

Basic Linux Command Line Interface Guide This basic Linux Command-Line Interface (CLI) Guide provides a general explanation of commonly used Bash shell commands for the Barracuda NG Firewall. You can access the command-line interface by connecting

More information

CMU : Cluster Management Utility. CMU diskless user s guide Version 4.0, January 2009

CMU : Cluster Management Utility. CMU diskless user s guide Version 4.0, January 2009 CMU : Cluster Management Utility CMU diskless user s guide Version 4.0, January 2009 Version 4.0 January 2009 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject

More information

The Linux IPL Procedure

The Linux IPL Procedure The Linux IPL Procedure SHARE - Tampa February 13, 2007 Session 9274 Edmund MacKenty Rocket Software, Inc. Purpose De-mystify the Linux boot sequence Explain what happens each step of the way Describe

More information

Linux Essentials Objectives Topics:

Linux Essentials Objectives Topics: Linux Essentials Linux Essentials is a professional development certificate program that covers basic knowledge for those working and studying Open Source and various distributions of Linux. Exam Objectives

More information

Installing HMC in VirtualBox or VMWare - AIXWiki

Installing HMC in VirtualBox or VMWare - AIXWiki 1 z 9 17.12.2012 07:42 Installing HMC in VirtualBox or VMWare From AIXWiki In the instructions below I will explain how to install the Hardware Management Console Software into a Virtual Machine. This

More information

Scratchbox Remote Shell

Scratchbox Remote Shell Scratchbox Remote Shell Timo Savola tsavola@movial.fi Scratchbox Remote Shell by Timo Savola Copyright 2004, 2005 Nokia Revision history Version: Author: Description: 2005-02-08 Savola Based on Device

More information

CS Fundamentals of Programming II Fall Very Basic UNIX

CS Fundamentals of Programming II Fall Very Basic UNIX CS 215 - Fundamentals of Programming II Fall 2012 - Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the CS (Project) Lab (KC-265)

More information

CTEC1863/2018F Bonus Lab Page 1 of 5

CTEC1863/2018F Bonus Lab Page 1 of 5 CTEC1863/2018F Bonus Lab Page 1 of 5 Bonus Lab: OpenSUSE Linux Rescue In this lab, we will install an OpenSUSE virtual machine. However, both the non-root user and the root passwords are unknown. To fix

More information

Downloading and installing Db2 Developer Community Edition on Ubuntu Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

Downloading and installing Db2 Developer Community Edition on Ubuntu Linux Roger E. Sanders Yujing Ke Published on October 24, 2018 Downloading and installing Db2 Developer Community Edition on Ubuntu Linux Roger E. Sanders Yujing Ke Published on October 24, 2018 This guide will help you download and install IBM Db2 software, Data

More information

Certification. System Initialization and Services

Certification. System Initialization and Services Certification System Initialization and Services UNIT 3 System Initialization and Services UNIT 3: Objectives Upon completion of this unit the student should be able to: Describe BIOS functions with respect

More information

Install Server Build Guide I/O device driver (SPARC Enterprise) C120-E443-07ENZ2(A) February SPARC Enterprise

Install Server Build Guide I/O device driver (SPARC Enterprise) C120-E443-07ENZ2(A) February SPARC Enterprise Install Server Build Guide I/O device driver (SPARC Enterprise) C120-E443-07ENZ2(A) February 2009 SPARC Enterprise Preface Preface Purpose This book provides you with procedures to construct the environment

More information

The TinyHPC Cluster. Mukarram Ahmad. Abstract

The TinyHPC Cluster. Mukarram Ahmad. Abstract The TinyHPC Cluster Mukarram Ahmad Abstract TinyHPC is a beowulf class high performance computing cluster with a minor physical footprint yet significant computational capacity. The system is of the shared

More information

How many of you have never built a NetBSD kernel?

How many of you have never built a NetBSD kernel? A Smart Port Card Tutorial - The Exercises John DeHart Washington University jdd@arl.wustl.edu http://www.arl.wustl.edu/~jdd 1 Question? How many of you have never built a NetBSD kernel? 2 page 1 Exercises

More information

Part 1: Basic Commands/U3li3es

Part 1: Basic Commands/U3li3es Final Exam Part 1: Basic Commands/U3li3es May 17 th 3:00~4:00pm S-3-143 Same types of questions as in mid-term 1 2 ls, cat, echo ls -l e.g., regular file or directory, permissions, file size ls -a cat

More information

UNIX System Administration

UNIX System Administration $!... 14:13 $$... 14:13.netrc...12:27-28 /etc/fstab... 6:25 /etc/hosts.equiv... 8:23 /etc/inittab Entries... 4:8 /etc/netmasks... 8:22 /etc/shells... 12:25 /home... 6:69 /tmp...6:61-67 /usr... 6:70 /var...

More information

Shell Scripting. With Applications to HPC. Edmund Sumbar Copyright 2007 University of Alberta. All rights reserved

Shell Scripting. With Applications to HPC. Edmund Sumbar Copyright 2007 University of Alberta. All rights reserved AICT High Performance Computing Workshop With Applications to HPC Edmund Sumbar research.support@ualberta.ca Copyright 2007 University of Alberta. All rights reserved High performance computing environment

More information

Introduction to the shell Part II

Introduction to the shell Part II Introduction to the shell Part II Graham Markall http://www.doc.ic.ac.uk/~grm08 grm08@doc.ic.ac.uk Civil Engineering Tech Talks 16 th November, 1pm Last week Covered applications and Windows compatibility

More information

Sharpen Exercise: Using HPC resources and running parallel applications

Sharpen Exercise: Using HPC resources and running parallel applications Sharpen Exercise: Using HPC resources and running parallel applications Andrew Turner, Dominic Sloan-Murphy, David Henty, Adrian Jackson Contents 1 Aims 2 2 Introduction 2 3 Instructions 3 3.1 Log into

More information

OpenAFS Quick Start Guide for UNIX

OpenAFS Quick Start Guide for UNIX OpenAFS Quick Start Guide for UNIX OpenAFS Quick Start Guide for UNIX Copyright 2000-2009 IBM Corporation and other contributors. All Rights Reserved Abstract This document describes the initial setup

More information

QPKG Debian6 V (Beta)

QPKG Debian6 V (Beta) QPKG Debian6 V 1.1.0 (Beta) Add a Debian chroot environment to your Qnap Available for : Arm Qnap except TS-x09 Intel Qnap First Print Please read post on forum for complete information Documentation version

More information

Singularity: Containers for High-Performance Computing. Grigory Shamov Nov 21, 2017

Singularity: Containers for High-Performance Computing. Grigory Shamov Nov 21, 2017 Singularity: Containers for High-Performance Computing Grigory Shamov Nov 21, 2017 Outline Software and High Performance Computing: Installation/Maintenance of the HPC Software stack Why containers and

More information

Linux crash lecture by Andrey Lukyanenko

Linux crash lecture by Andrey Lukyanenko Linux crash lecture by Andrey Lukyanenko T-110.5102 Laboratory Works in Networking and Security 20.1.2015 Otaniemi based on material of Miika Komu, 2013 Traversing Directories cd Change Directory Change

More information

bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs

bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs bwunicluster Tutorial Access, Data Transfer, Compiling, Modulefiles, Batch Jobs Frauke Bösert, SCC, KIT 1 Material: Slides & Scripts https://indico.scc.kit.edu/indico/event/263/ @bwunicluster/forhlr I/ForHLR

More information

docker & HEP: containerization of applications for development, distribution and preservation

docker & HEP: containerization of applications for development, distribution and preservation docker & HEP: containerization of applications for development, distribution and preservation Sébastien Binet LAL/IN2P3 2015-04-13 S. Binet (LAL) docker-hep 2015-04-13 1 / 16 Docker: what is it? http://www.docker.io/

More information

CSNB113: System Administration - 8 th Topic: Shell Scripts Programming I

CSNB113: System Administration - 8 th Topic: Shell Scripts Programming I CSNB113: System Administration - 8 th Topic: Shell Scripts Programming I The prompt is a prompt is a prompt and a program input It is possible to write and run a program directly on the command prompt!

More information

Insight Control Server Provisioning Capturing and Installing SUSE Enterprise Linux 12 System Images

Insight Control Server Provisioning Capturing and Installing SUSE Enterprise Linux 12 System Images Technical white paper Insight Control Server Provisioning Capturing and Installing SUSE Enterprise Linux 12 System Images Table of contents Summary 2 Preparing for image capture 2 Sanitizing server image

More information

How to monitor RedHat Enterprise Linux 5 or 6 using Microsoft System Center Operations Manager (SCOM) 2012 SP1 - Part 1

How to monitor RedHat Enterprise Linux 5 or 6 using Microsoft System Center Operations Manager (SCOM) 2012 SP1 - Part 1 How to monitor RedHat Enterprise Linux 5 or 6 using Microsoft System Center Operations Manager (SCOM) 2012 SP1 - Part 1 Modifications of the Linux OS and SCOM It's really a mess to get a running configuration

More information

Linux Command Line Primer. By: Scott Marshall

Linux Command Line Primer. By: Scott Marshall Linux Command Line Primer By: Scott Marshall Draft: 10/21/2007 Table of Contents Topic Page(s) Preface 1 General Filesystem Background Information 2 General Filesystem Commands 2 Working with Files and

More information

Essential Unix (and Linux) for the Oracle DBA. Revision no.: PPT/2K403/02

Essential Unix (and Linux) for the Oracle DBA. Revision no.: PPT/2K403/02 Essential Unix (and Linux) for the Oracle DBA Revision no.: PPT/2K403/02 Architecture of UNIX Systems 2 UNIX System Structure 3 Operating system interacts directly with Hardware Provides common services

More information

Basic Linux Command Line Interface Guide

Basic Linux Command Line Interface Guide This basic Linux Command-Line Interface (CLI) Guide provides a general explanation of commonly used Bash shell commands for the Barracuda NG Firewall. You can access the command-line interface by connecting

More information

EX200.redhat

EX200.redhat EX200.redhat Number: EX200 Passing Score: 800 Time Limit: 120 min Exam A QUESTION 1 Configure the verification mode of your host account and the password as LDAP. And it can login successfully through

More information

Zenoss Resource Manager Upgrade Guide

Zenoss Resource Manager Upgrade Guide Zenoss Resource Manager Upgrade Guide Release 5.3.2 Zenoss, Inc. www.zenoss.com Zenoss Resource Manager Upgrade Guide Copyright 2017 Zenoss, Inc. All rights reserved. Zenoss, Own IT, and the Zenoss logo

More information

USING NGC WITH GOOGLE CLOUD PLATFORM

USING NGC WITH GOOGLE CLOUD PLATFORM USING NGC WITH GOOGLE CLOUD PLATFORM DU-08962-001 _v02 April 2018 Setup Guide TABLE OF CONTENTS Chapter 1. Introduction to... 1 Chapter 2. Deploying an NVIDIA GPU Cloud Image from the GCP Console...3 2.1.

More information

idirect Technical Note 1. INTRODUCTION 2. DIFFERENCES BETWEEN INFINITI AND NETMODEM II+ SERIES

idirect Technical Note 1. INTRODUCTION 2. DIFFERENCES BETWEEN INFINITI AND NETMODEM II+ SERIES idirect Technical Note Subject: Recovering infiniti Remotes Date: March 10, 2006 Applies To: Version 6.0.1 and Later 1. INTRODUCTION This technical note contains information and procedures pertaining to:

More information

Saving Your Bacon Recovering From Common Linux Startup Failures

Saving Your Bacon Recovering From Common Linux Startup Failures Saving Your Bacon Recovering From Common Linux Startup Failures Mark Post Novell, Inc. Friday, August 12, 2011 Session Number 10105 Agenda How the boot process is supposed to work What things can go wrong

More information

Upgrade Cisco Interface Module for LoRaWAN IXM using the Console

Upgrade Cisco Interface Module for LoRaWAN IXM using the Console Upgrade Cisco Interface Module for LoRaWAN IXM using the Console Contents Introduction Prerequisites Requirements Components Used Background Information Configure Step 1. Prepare the firmware images (and

More information

Opportunities for container environments on Cray XC30 with GPU devices

Opportunities for container environments on Cray XC30 with GPU devices Opportunities for container environments on Cray XC30 with GPU devices Cray User Group 2016, London Sadaf Alam, Lucas Benedicic, T. Schulthess, Miguel Gila May 12, 2016 Agenda Motivation Container technologies,

More information

Installation of the OS

Installation of the OS Lab 1 Installation of the OS 1.1 Objectives The goal of this first session is to install a Debian/Linux operating system from scratch on a Intel x86- based computer. The installation will be made on a

More information

Managing Xen With Xen-Tools, Xen-Shell, And Argo

Managing Xen With Xen-Tools, Xen-Shell, And Argo By Falko Timme Published: 2006-10-21 20:35 Managing Xen With Xen-Tools, Xen-Shell, And Argo Version 1.0 Author: Falko Timme Last edited 10/21/2006 This guide describes how

More information

Section 1. A zseries Linux file system test script

Section 1. A zseries Linux file system test script Section 1. A zseries Linux file tem test script 1.1 Overview I was presented with a question regarding disk space efficiency, small files and block sizes with ext3 file tems on zseries Linux. I decided

More information

iscsi storage is used as shared storage in Redhat cluster, VMware vsphere, Redhat Enterprise Virtualization Manager, Ovirt, etc.

iscsi storage is used as shared storage in Redhat cluster, VMware vsphere, Redhat Enterprise Virtualization Manager, Ovirt, etc. Configure iscsi Target & Initiator on CentOS 7 / RHEL7 iscsi stands for Internet Small Computer Systems Interface, IP-based storage, works on top of internet protocol by carrying SCSI commands over IP

More information

Advanced Unix Programming Module 03 Raju Alluri spurthi.com

Advanced Unix Programming Module 03 Raju Alluri spurthi.com Advanced Unix Programming Module 03 Raju Alluri askraju @ spurthi.com Advanced Unix Programming: Module 3 Shells & Shell Programming Environment Variables Writing Simple Shell Programs (shell scripts)

More information

How to Deploy Axon on VMware vcenter

How to Deploy Axon on VMware vcenter How to Deploy Axon on VMware vcenter Copyright Informatica LLC 2017. Informatica, the Informatica logo, Intelligent Data Lake, Big Data Mangement, and Live Data Map are trademarks or registered trademarks

More information

Std: XI CHAPTER-3 LINUX

Std: XI CHAPTER-3 LINUX Commands: General format: Command Option Argument Command: ls - Lists the contents of a file. Option: Begins with minus sign (-) ls a Lists including the hidden files. Argument refers to the name of a

More information

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island Embedded Linux Systems Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island Generic Embedded Systems Structure User Sensors ADC microcontroller

More information

EX200.exam.35q. Number: EX200 Passing Score: 800 Time Limit: 120 min. EX200. Red Hat Certified System Administrator RHCSA

EX200.exam.35q. Number: EX200 Passing Score: 800 Time Limit: 120 min.   EX200. Red Hat Certified System Administrator RHCSA EX200.exam.35q Number: EX200 Passing Score: 800 Time Limit: 120 min EX200 Red Hat Certified System Administrator RHCSA Exam A QUESTION 1 Configure the verification mode of your host account and the password

More information

Linux Systems Administration Shell Scripting Basics. Mike Jager Network Startup Resource Center

Linux Systems Administration Shell Scripting Basics. Mike Jager Network Startup Resource Center Linux Systems Administration Shell Scripting Basics Mike Jager Network Startup Resource Center mike.jager@synack.co.nz These materials are licensed under the Creative Commons Attribution-NonCommercial

More information

Exam Linux-Praxis - 1 ( From )

Exam Linux-Praxis - 1 ( From  ) Exam Linux-Praxis - 1 ( From http://www.linux-praxis.de ) (1)Which of the following commands results in mailing the content of the current directory to Bob? A. mail Bob < ls B. ls > mail Bob C. ls mail

More information

Outline. Cgroup hierarchies

Outline. Cgroup hierarchies Outline 15 Cgroups 15-1 15.1 Introduction to cgroups v1 and v2 15-3 15.2 Cgroups v1: hierarchies and controllers 15-17 15.3 Cgroups v1: populating a cgroup 15-24 15.4 Cgroups v1: a survey of the controllers

More information

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1 More on file systems, Booting Todd Kelley kelleyt@algonquincollege.com CST8177 Todd Kelley 1 bind mounts quotas Booting process and SysVinit Installation Disk rescue mode 2 A bind mount is used to mount

More information

Running Jobs on Blue Waters. Greg Bauer

Running Jobs on Blue Waters. Greg Bauer Running Jobs on Blue Waters Greg Bauer Policies and Practices Placement Checkpointing Monitoring a job Getting a nodelist Viewing the torus 2 Resource and Job Scheduling Policies Runtime limits expected

More information

TABLE OF CONTENTS: NEED TO KNOW

TABLE OF CONTENTS: NEED TO KNOW 1.3 TABLE OF CONTENTS: WELCOME! 2 NEED TO KNOW 2 CONCEPTS 2 USEFUL NEEDED INSTRUCTIONS 4 VIRTUAL MACHINE MANAGEMENT FOR BUBBLE COURSES 5 TROUBLESHOOTING 6 WELCOME! Hello and welcome to the PDS Survival

More information

NETW 110 Lab 5 Creating and Assigning Users and Groups Page 1

NETW 110 Lab 5 Creating and Assigning Users and Groups Page 1 NETW 110 Lab 5 Creating and Assigning Users and Groups Page 1 Objective At the conclusion of this lab, the student will be able to add and delete users, create and assign users to groups, and assign users

More information

Setting up a Chaincoin Masternode

Setting up a Chaincoin Masternode Setting up a Chaincoin Masternode Introduction So you want to set up your own Chaincoin Masternode? You ve come to the right place! These instructions are correct as of April, 2017, and relate to version

More information

Errata and Commentary Updated, submitted to curriculum

Errata and Commentary Updated, submitted to curriculum Page 1 Unit 1 p12 fakeraid is simply multi-channel IDE/SATA disk controllers with BIOS configuration options and software drivers to assist an OS in performing RAID-like operations, appearing like hardware

More information

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2 Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades 2017-2018 Q2 Facultat d Informàtica de Barcelona This first lab session is focused on getting experience in working

More information

Secure Browser Installation Manual For Technology Coordinators

Secure Browser Installation Manual For Technology Coordinators Secure Browser Installation Manual For Technology Coordinators 2016-2017 Published September 26, 2016 Prepared by the American Institutes for Research Descriptions of the operation of the Test Information

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 5 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 User Operating System Interface - CLI CLI

More information

Downloading and installing Db2 Developer Community Edition on Red Hat Enterprise Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

Downloading and installing Db2 Developer Community Edition on Red Hat Enterprise Linux Roger E. Sanders Yujing Ke Published on October 24, 2018 Downloading and installing Db2 Developer Community Edition on Red Hat Enterprise Linux Roger E. Sanders Yujing Ke Published on October 24, 2018 This guide will help you download and install IBM Db2 software,

More information

These instructions describe the system requirements and process for installing and initial configuration of jbase on Linux operating systems.

These instructions describe the system requirements and process for installing and initial configuration of jbase on Linux operating systems. DOCUMENT SCOPE These instructions describe the system requirements and process for installing and initial configuration of jbase 5.5.1 on Linux operating systems. ABOUT THE JBASE DATABASE MANAGEMENT SYSTEM

More information

Booting a Galaxy Instance

Booting a Galaxy Instance Booting a Galaxy Instance Create Security Groups First time Only Create Security Group for Galaxy Name the group galaxy Click Manage Rules for galaxy Click Add Rule Choose HTTPS and Click Add Repeat Security

More information

DataWarp Administration Guide S b

DataWarp Administration Guide S b DataWarp Administration Guide S-2557-5204b Contents Contents 1 About the DataWarp Administration Guide...3 2 Important Information about this DataWarp Release...4 3 About DataWarp...5 3.1 Overview of the

More information

Assume that username is cse. The user s home directory will be /home/cse. You may remember what the relative pathname for users home directory is: ~

Assume that username is cse. The user s home directory will be /home/cse. You may remember what the relative pathname for users home directory is: ~ Introduction to Open Source Software Development Spring semester, 2017 School of Computer Science and Engineering, Pusan National University Joon-Seok Kim LINUX: COMMANDS Review Lab #1 2 Create Directories

More information

How to Create PAR or PCA Files on the Command Line

How to Create PAR or PCA Files on the Command Line How to Create PAR or PCA Files on the Command Line Use the phionar tool to back up the configuration of a single Barracuda NextGen Firewall F-Series or Barracuda NextGen Control Center. A cron job can

More information

Essentials for Scientific Computing: Bash Shell Scripting Day 3

Essentials for Scientific Computing: Bash Shell Scripting Day 3 Essentials for Scientific Computing: Bash Shell Scripting Day 3 Ershaad Ahamed TUE-CMS, JNCASR May 2012 1 Introduction In the previous sessions, you have been using basic commands in the shell. The bash

More information

Exercise 1: Basic Tools

Exercise 1: Basic Tools Exercise 1: Basic Tools This exercise is created so everybody can learn the basic tools we will use during this course. It is really more like a tutorial than an exercise and, you are not required to submit

More information