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