System information
74 Sharing and maintaining SLES 10 SP2 Linux under z/VM
if [ $? != 0 ]; then exit 15; fi
CPcmd link $targetID 1b6 21b6 mr
if [ $? != 0 ]; then exit 16; fi
CPcmd link $targetID 1b7 21b7 mr
if [ $? != 0 ]; then exit 17; fi
CPcmd link $targetID 1b8 21b8 mr
if [ $? != 0 ]; then exit 18; fi
}
#+--------------------------------------------------------------------------+
function enableSourceDisks()
# Enable the source and target disks (except swap disks x1b4)
#+--------------------------------------------------------------------------+
{
echo ""
echo "Enabling source disks ..."
chccwdev -e 11b1
if [ $? != 0 ]; then exit 19; fi
chccwdev -e 11b0
if [ $? != 0 ]; then exit 20; fi
chccwdev -e 11b4
if [ $? != 0 ]; then exit 21; fi
chccwdev -e 11b5
if [ $? != 0 ]; then exit 22; fi
chccwdev -e 11b6
if [ $? != 0 ]; then exit 23; fi
chccwdev -e 11b7
if [ $? != 0 ]; then exit 24; fi
chccwdev -e 11b8
if [ $? != 0 ]; then exit 25; fi
}
#+--------------------------------------------------------------------------+
function enableTargetDisks()
# Enable the source and target disks (except swap disks x1b4)
#+--------------------------------------------------------------------------+
{
echo ""
echo "Enabling target disks ..."
chccwdev -e 21b1
if [ $? != 0 ]; then exit 26; fi
chccwdev -e 21b0
if [ $? != 0 ]; then exit 27; fi
chccwdev -e 21b4
if [ $? != 0 ]; then exit 28; fi
chccwdev -e 21b5
if [ $? != 0 ]; then exit 29; fi
chccwdev -e 21b6
if [ $? != 0 ]; then exit 30; fi
chccwdev -e 21b7
if [ $? != 0 ]; then exit 31; fi
chccwdev -e 21b8
if [ $? != 0 ]; then exit 32; fi
}
#+--------------------------------------------------------------------------+
function copyDisk()
# Copy a disk via dasdfmt then dd
# Arg 1: Source vaddr
# Arg 2: Target vaddr