> So you can add the devices dynamically, but how do you then make them go
away,
"set device range=<range> off" echo'd to /proc/dasd/devices

There's a real handy script, dasd, described in the Large Scale Deployment
redbook:

#!/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
fi

          -Mike MacIsaac,  IBM   [EMAIL PROTECTED]   (845) 433-7061

Reply via email to