1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
# Use bootcd for RedHat backup
# ----------------------------
# This is an example how bootcd can be used to backup and restore
# a standard RedHat Installation.
# 1. Redhat Test Installation
# ---------------------------
# I have installed Redhat RHEL4-U4-i386-AS with default values.
# After Installation I found the following Disk usage:
#
# /dev/mapper/VolGroup00-LogVol00 / 1,8G(used)
# /dev/VolGroup00/LogVol01 swap 512M
# /dev/sda1 /boot 9,2M
#
# 2. Redhat Backup
# ----------------
# The Backup was made by booting from a Debian bootcd and mounting
# the Redhat disks to /mnt:
#
# mount /dev/mapper/VolGroup00-LogVol00 /mnt
# mount /dev/sda1 /mnt/boot
#
# Then I copied the Data to my system 192.168.100.254 over network with the
# following command:
# (cd /mnt; tar czf - .) |
# ssh -c blowfish bs@192.168.100.254 "cat >/nobackup/bs/redhatbckup.tgz"
#
# 3. Redhat Restore
# -----------------
# The Restore was made with this configuration file on a new destination
# System after booting bootcd with this config file:
# cp /usr/share/doc/bootcd/examples/bootcd2disk.conf.redhat \
# /etc/bootcd/bootcd2disk.conf
# bootcd2disk -i
# # do steps 1,2,3,4,5,6,7,8,9
# # (last step 9 was to mount the newly created disk partitions)
# # wait on first console and open a second console
# # from seconde console:
# ssh -c blowfish bs@192.168.100.254 cat /nobackup/bs/redhatbckup.tgz |
# (cd /mnt; tar xzf -)
# # do not do steps 10,11,12,13,14
# # on first console do steps 15,16
# # (step 15 is the step that runs grub)
# # (step 16 is the step that umounts all disk partitions)
#
ERRLOG=/var/log/bootcd2disk.log
# RedHat only needs one disk
DISK0="auto"
# Logical volume group as seen after RedHat Test Installation
LVMGRP="
VolGroup00 DISK0P2
"
# Logical volumes as seen after RedHat Test Installation
LVMVOL="
LogVol00 7000 VolGroup00
LogVol01 512 VolGroup00
"
# Disk formatting as seen after RedHat Test Installation
SFDISK0="
,100
;
"
# File systems as seen after RedHat Test Installation
EXT2FS="
DISK0P1
/dev/VolGroup00/LogVol00
"
# Swap as seen after RedHat Test Installation
SWAP="/dev/VolGroup00/LogVol01"
# Mount commands as seen after RedHat Test Installation
MOUNT="
tune2fs -L /boot DISK0P1 >/dev/null 2>&1
mount /dev/VolGroup00/LogVol00 /mnt
mkdir -p /mnt/boot; mount LABEL=/boot /mnt/boot
"
UMOUNT="
umount /mnt/boot
umount /mnt
"
# FSTAB copied from RedHat Test Installation
FSTAB="
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdc /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
"
# GRUB copied from RedHat Test Installation
GRUB="
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-42.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-42.EL.img
"
# Default values
TRYFIRST=""
VFAT=""
EXT3="auto"
GRUBBOOTDISK="hd0"
LILO="auto"
ELILO=""
SSHHOSTKEY=yes
UDEV_FIXNET="no"
USEIMAGESERVER="no"
IMAGEURL=""
|