Here are the steps I used to clone the root filesystem to a new volume

        Shutdown Linux
        Performed a complete full volume backup of original dasd
        Restored disk units to new drive assignments
        Started Linux
        Logged and became root
        Execute "cd /sys/devices/css0" sans quotes
        Ran "echo 1 >  `find | grep 2505 | grep online`" sans double quotes
        Ran "cat /proc/dasd/devices" sans quotes which returned the
following:

        1        0.0.1242(ECKD) at ( 94:     0) is dasda       : active at
blocksize: 4096, 601020 blocks, 2347 MB
        2        0.0.150e(ECKD) at ( 94:     4) is dasdb       : active at
blocksize: 4096, 1803060 blocks, 7043 MB
        3        0.0.1611(ECKD) at ( 94:     8) is dasdc       : active at
blocksize: 4096, 601020 blocks, 2347 MB
        4        0.0.113e(ECKD) at ( 94:    12) is dasdd       : active at
blocksize: 4096, 601020 blocks, 2347 MB
        5        0.0.2505(ECKD) at ( 94:    16) is dasde       : active at
blocksize: 4096, 1803060 blocks, 7043 MB

        where dasde is the new device on disk unit address 2505 on line 5

        Ran "dasdfmt -b 4096 -v -f /dev/dasde" sans quotes to prepare the
disk to receive the data.
        Ran "fdasd /dev/dasde" sans quotes and made 3 partitions, for "/",
"/boot", and swap
        Ran "mke2fs -b 4096 /dev/dasde1" sans quotes for the "/boot"
partition making it an ext2 filesystem
        Ran "mke2fs -j -b 4096 /dev/dasde2" sans quotes for the "/"
partition making it a journal ext3 filesystem
        Used /mntboot as a temporary mount point and mounted the DASD volume
on it using "mount /dev/dasde1 /mntboot" sans quotes
        Used /mnt as a temporary mount point and mounted the DASD volume on
it using "mount /dev/dasde2 /mnt" sans quotes
        Typed "cd /" sans quotes and hit enter
        Ran "tar -clpSf - . | (cd /mnt ; tar -xpSf - )" sans quotes to copy
the current root file system to the new volume
        Type "cd /boot" sans quotes and hit enter
        Ran "tar -clpSf - . | (cd /mntboot ; tar -xpSf - )" to copy the boot
information
        Typed "cd /" sans quotes and hit enter
        Ran "umount mntboot" to remove mntboot
        Ran "chroot /mnt" sans quotes

        Ran "mount /mnt/boot /dev/dasde1" sans quotes to put

        Reviewed /etc/zipl.conf, to verify any device number changes.  The
file is contained below.  Edited line 12 to include new dasd.

        1 # Modified by YaST2. Last modification on Thu Dec 23 18:03:55 2004
      2
      3
      4
      5 [defaultboot]
      6     default = ipl
      7
      8 [ipl]
      9     target = /boot/zipl
     10 image = /boot/image
     11 ramdisk = /boot/initrd
     12     parameters = "dasd=2242,2505,2611,213e root=/dev/dasdb2
selinux=0 TERM=dumb elevator=cfq"
     13
     14 [dumpdasd]
     15     target = /boot/zipl
     16     dumpto = /dev/dasd??
     17
     18 [dumptape]
     19     target = /boot/zipl
     20     dumpto = /dev/rtibm0

        Ran "mkinitrd"
        Ran "zipl"
        Ran "exit to leave the chroot environment
        Ran "umount /mnt/boot" and "umount /mnt" to free the new file
system.
        Rebooted system.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to