Cloning a Solaris 8 system using SDS Notes: http://docs.sun.com/db/doc/806-3205/ 1) Break mirror on second disk of source system. The high-level steps for this procedure are: * Running the metastat(1M) command to verify that at least one submirror is in the "Okay" state # metastat d30 # metastat d31 Check for "State Okay" on each member. * Running the metadetach(1M) command on the mirror that contains root (/), /usr, /opt, or swap to make a one-way mirror # metadetach d30 d20 d30: submirror d20 is detached # metadetach d31 d21 d31: submirror d21 is detached * For /usr, /opt, and swap: changing the file system entry in the /etc/vfstab file to use a non-DiskSuite device (slice) Temporarily comment ut the swap line in vfstab: # cp /etc/vfstab /etc/vfstab.mirror Edit /etc/vfstab and comment out line: "/dev/md/dsk/d31 - - swap - no -" * For root (/) only: running the metaroot(1M) command # metaroot /dev/dsk/c0t0d0s0 * Rebooting the system # shutdown -y -g0 -i0 ok boot -s * Running the metaclear(1M) command to clear the mirror and submirrors # metaclear -r d30 d30: Mirror is cleared d10: Concat/Stripe is cleared # metaclear -r d31 d31: Mirror is cleared d11: Concat/Stripe is cleared # metaclear d20 d20: Concat/Stripe is cleared # metaclear d21 d21: Concat/Stripe is cleared Halt the system so the second mirror disk can be removed. # halt syncing file systems... done Program terminated ok Remove second mirror disk from source system and primary disk from system to be cloned and swap them. Boot up the primary system first so we can return it to service: 2) Insert as first disk on destination system. (NB: this is from a bootable mirror disk!) 3) boot -s cdrom from Solaris 9 software CD 1 4) Mount newly inserted /dev/dsk/cNt0d0s0 to a mount point in /tmp 5) devfsadm -c disk -r /tmp/mountpoint 6) Restart single user from HD and rebuild SDS mirrors, syncing and replacing.