SLES9 SP1
The following will dymically add DASD to a running zLinux guest. However, you will still have to shut the linux guest down to single user mode in order to umount a busy filesystem.
As MAINT on z/VM:
Add the new DASD to the guests stanza in USER DIRECT
DIRMAP USER DIRECT
DIRECTXA USER DIRECT
As GUEST on z/VM:
#CP LINK GUEST <new DASD device> <new DASD device> MW
(e.g. CP LINK JDX13AD1 155 155 MW)
As root on zLinux
chccwdev -e 0.0.0<new DASD device>
(e.g. chccwdev -e 0.0.0155)
Now you can do the usual dasdfmt/fdasd commands to the new DASD. (cat /proc/dasd/devices to check it’s device number).
e.g.
dasdfmt -y -f /dev/dasde -b 4096 -p
fdasd -a /dev/dasde