Thursday, December 10, 2009

Cloning Using Internal Disks

This method is appropriate for systems with easy-to-change internal disks:
• Ultra 30, Ultra 60, Ultra 80, or Sun Blade™100 workstations or E220R/E420R/E250/E450.
• Sun EnterpriseTM220R, 420R, 250, or 450 servers.

The following is an example using an Ultra 60 workstation:
• Put the target disk into the second internal disk bay.
• Boot with single-user mode (STOP-A; boot -s).
• Configure all disks using devfsadm.
• Type format to look up the names of the disks. In an Ultra 60 workstation, you will find c0t0d0 and
c0t1d0. c0t1d0 is the topmost internal disk.
• Determine which disk is the source disk and which one is the target disk (and do not forget to back up your
data!). In our case c0t0d0 (the bottom disk) acts as the source and c0t1d0 (the upper disk) is the target.
• dd if=/dev/rdsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 bs=128k (This command does a 1:1
copy of the whole disk, including the partition table. If the source disk is a 9 Gbyte disk, while the target disk is
of 18 Gbyte capacity, 9 Gbyte would be wasted.) Warning: Double-check this step, so you do not accidentally
destroy your source disk!
• fsck -Y /dev/rdsk/c0t1d0s0 (File system check of the root partition, typically slice 0.)
Remove the source disk, and put the clone disk into the previous source slot. Reboot your newly created clone system.
Systems with internal FC-AL disks (such as on Sun Blade 2000 workstations and Sun FireTM 280R or V
servers) need additional work: Boot the system using a bootable Solaris CD-ROM, mount the root file s
and remove the files /etc/path_to_inst and /etc/path_to_inst.old. Then reboot the sy
interactively with OK> boot -ar and select recreate /etc/path_to_inst during boot.

No comments:

Post a Comment