The DASD script

 < Day Day Up > 



This script was originally published in the IBM Redbook Linux for zSeries and S/390: Large Scale Linux Deployment, SG24-6824. It allows you to dynamically add, turn on, turn off or list DASD.

 #!/bin/sh # dasd - simple utility for dynamic DASD management if [ "$1" = "add" -a "$2" != "" ]; then   echo "add range=$2" > /proc/dasd/devices elif [ "$1" = "on" -a "$2" != "" ]; then   echo "set device range=$2 on" > /proc/dasd/devices elif [ "$1" = "off" -a "$2" != "" ]; then   echo "set device range=$2 off" > /proc/dasd/devices elif [ "$1" = "list" ]; then   cat /proc/dasd/devices else   echo "Usage: dasd add|on|off vdev_or_range" 1>&2   echo " dasd list" 1>&2   exit 2 



 < Day Day Up > 



IBM Lotus Domino 6. 5 for Linux on zSeries Implementation
IBM Lotus Domino 6.5 for Linux on Zseries Implementation
ISBN: 0738491748
EAN: 2147483647
Year: 2003
Pages: 162
Authors: IBM Redbooks

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net