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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 268
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 252
Appendix C. Linux source code 235
set_offline $target_mdisk
abort 1
fi
}
#+--------------------------------------------------------------------------+
function set_offline
# This will set offline the target minidisk.
# Arg1 - Minidisk virtual address to set offline
#+--------------------------------------------------------------------------+
{
target_mdisk=$(echo $1 | tr 'A-Z' 'a-z')
chccwdev -d 0.0.$target_mdisk > /dev/null 2>&1
rc=$?
#if [ $rc -ne 0 ]; then
# echo "Error: chccwdev -d 0.0.$1 failed with $rc - ignoring"
#fi
return $rc
}
#+--------------------------------------------------------------------------+
function mount_cloned_image
# This will mount the cloned root filesystem. It will pair a minidisk
# address to a device file and then mount the first partition.
# Arg1: The minidisk address to mount
#+--------------------------------------------------------------------------+
{
target_mdisk=$1
target_dev_node=`cat /proc/dasd/devices | grep "$target_mdisk(ECKD)" | awk '{ print $7
}'`
wait_for_device /dev/${target_dev_node}1
[ $? -ne 0 ] && echo "Error: timed out waiting for /dev/${target_dev_node}1" && abort
1
/bin/mount /dev/${target_dev_node}1 $CLONE_MNT_PT
[ $? -ne 0 ] && echo "Error: unable to mount cloned image" && abort 1
/bin/mount | grep /dev/${target_dev_node}1 >/dev/null 2>&1
[ $? -ne 0 ] && echo "Error: unable to mount cloned image" && abort 1
}
#+--------------------------------------------------------------------------+
function mount_cloned_image_lvm
# This will mount the cloned root filesystem. It will pair a minidisk
# address to a device file and then mount the first partition.
# Arg1: The minidisk address to mount
#+--------------------------------------------------------------------------+
{
target_mdisk=$1
/bin/mount /dev/$VG_NAME/$LV_ROOT $CLONE_MNT_PT
[ $? -ne 0 ] && echo "Error: unable to mount cloned image" && abort 1
/bin/mount | grep $LV_ROOT >/dev/null 2>&1
[ $? -ne 0 ] && echo "Error: unable to mount cloned image" && abort 1
Vista de pagina 252
1 2 ... 248 249 250 251 252 253 254 255 256 257 258 ... 267 268

Comentarios a estos manuales

Sin comentarios