Many thanks to David Glass, who emailed me instructions he wrote for "Cloning a Solaris System Disk". The instructions were perfect! I included his instructions (in ASCII) at the end of this email. Others sent similar instructions using ufsdump and dd. Other cloning suggestions included: 1) Use ufsdump 2) Use dd 3) Use Sun's LiveUpgrade (free download at http://www.sun.com/solaris/liveupgrade/). I briefly checked this one out after using David's procedure and this utility seems very cool. I didn't use it too much since David's method worked flawlessly, but I might check it out in the future. 4) Use pcopy (ftp://ftp.lysator.liu.se/pub/unix/pcopy) 5) Use DiskSuite to mirror the disks and then break the mirror. --Shawn ***David Glass's "Cloning a Solaris System Disk" instructions*** This document describes the process of copying a system disk to create a new system disk which is, as far as possible, an exact bootable copy of the original. The two disks do not have to be the same size. A sparc 10 is used as an example. The precise configuration will depend on the system used for the copy. In the example, original was c0t3 and the copy was c0t0. The disk had the following partitions: 0 / (root) 1 /swap 3 /var 4 /opt 6 /usr The partition structure of the disk may be different from this. 1. Fit the new disk and make sure that, if its SCSI ID is set by jumpers, they set to a SCSI ID different to the system disk. In the example, the new disk was set to SCSI ID 0, the original having SCSI ID 3. 2. Make sure that the machine sees the new disks. Either from the PROM prompt: boot -r Or logged in as root: drvconfig disks 3. Create the new file partitions. Either do this manually using the format command or, if the disk is identical to the original, you can use: prtvtoc /dev/dsk/c0t3d0s0 | fmthard -s - /dev/rdsk/c0t0d0s0 Note the rdsk for the fmthard command. If the process is carried out manually then suitable partitioning can be found by examining the files in /sysadmin/opt/jumpstart/Sol26_profiles. 4. Make the file systems on the new partitions: newfs /dev/dsk/c0t0d0s0 newfs /dev/dsk/c0t0d0s3 newfs /dev/dsk/c0t0d0s4 newfs /dev/dsk/c0t0d0s6 5. Mount the root partition of the new disk onto /mnt mount /dev/dsk/c0t0d0s0 /mnt 6. Copy this partition: cd / find . -mount -print | cpio -pdmuV /mnt Note that -mount is used to stop the find going down all the external mount points. 7. Make directories for the subsequent mounts: cd /mnt mkdir usr var opt proc 8. Mount the /usr /var and /opt partitions: mount /dev/dsk/c0t0d0s6 /mnt/usr mount /dev/dsk/c0t0d0s3 /mnt/var mount /dev/dsk/c0t0d0s4 /mnt/opt Note that -mount is used to stop the find going down all the external mount points. 9. Copy the remaining partitions: cd /usr find . -mount -print | cpio -pdmuV /mnt/usr cd /var find . -mount -print | cpio -pdmuV /mnt/var cd /opt find . -mount -print | cpio -pdmuV /mnt/opt 10. Install the boot sector files: installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk \ /dev/rdsk/c0t0d0s0 11. Make any permanent mount points which may be necessary. Consult the /etc/vfstab file. To test this disk it may necessary to remove the old disk and change the jumpers of the new disk to that of the default boot device if necessary. Otherwise remove the original disk and place the new disk in the boot location. _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Sat Feb 9 19:05:13 2002
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:33 EST