Red Hat SATELLITE 5.1.0 RELEASE NOTES Manual de instalación Pagina 249

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 268
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 248
Appendix C. Linux source code 231
if [ $ret_val -eq 0 ] ; then
nblks=`cat /proc/dasd/devices | grep $target_dev_node | awk '{ print $13 }'`
[ -n "$VERBOSE" ] && \
echo "Invoking Linux command: dd bs=4096 count=$nblks if=/dev/$source_dev_node
of=/dev/$target_dev_node"
dd bs=4096 count=$nblks if=/dev/$source_dev_node of=/dev/$target_dev_node >/dev/null
[ $? -ne 0 ] && echo "Error: dd failed" && ret_val=1
fi
# Put the source and target devices offline
set_offline $target_mdisk
set_offline $source_mdisk
return $ret_val
}
#+--------------------------------------------------------------------------+
function link_one
# This will link one minidisk from another user id as the target minidisk
# address on the current z/VM user id with a link mode indicated by the
# 4th argument.
#
# Arg1: Source z/VM ID
# Arg2: Source minidisk virtual address
# Arg3: Target minidisk virtual address
# Arg4: Link mode (rr/w)
#+--------------------------------------------------------------------------+
{
source_id=$1
source_mdisk=$2
target_mdisk=$3
link_mode=$4
cp_cmd QUERY VIRTUAL $target_mdisk
if [ $? != 40 ]; then
cp_cmd DETACH $target_mdisk
fi
cp_cmd LINK $source_id $source_mdisk $target_mdisk $link_mode $LINK_PASSWD
if [ $? != 0 ]; then
echo "cp_cmd link $source_id $source_mdisk $target_mdisk $link_mode failed -
exiting"
abort 1
fi
}
#+--------------------------------------------------------------------------+
function unlink_one
# This will unlink a minidisk from the current z/VM user id.
# Arg1: The target minidisk to unlink
#+--------------------------------------------------------------------------+
{
cp_cmd DETACH $1
return $?
}
#+--------------------------------------------------------------------------+
function copy_one
# Try to use z/VM FLASHCOPY to copy one disk to another. If that fails,
# call dd_copy() to fall back to the Linux DD command
Vista de pagina 248
1 2 ... 244 245 246 247 248 249 250 251 252 253 254 ... 267 268

Comentarios a estos manuales

Sin comentarios