Make sure that the source disk and destination disk have the same disk geometry.
Become superuser or assume an equivalent role.
Create the /reconfigure file so the system will recognize the destination disk to be added when it reboots.
# touch /reconfigure |
Shut down the system.
# init 0 |
Attach the destination disk to the system.
Boot the system.
ok boot |
Copy the source disk to the destination disk.
# dd if=/dev/rdsk/device-name of=/dev/rdsk/device-name bs=block-size |
Represents the overlap slice of the master disk device, usually slice 2.
Represents the overlap slice of the destination disk device, usually slice 2.
Identifies block size, such as 128 Kbytes or 256 Kbytes. A large block size value decreases the time it takes to copy the disk.
For more information, see the dd(1M)
Check the new file system.
# fsck /dev/rdsk/device-name |
Mount the destination disk's root (/) file system.
# mount /dev/dsk/device-name /mnt |
Change to the directory where the /etc/vfstab file is located.
# cd /mnt/etc |
Using a text editor, edit the destination disk's /etc/vfstab file to reference the correct device names.
For example, change all instances of c0t3d0 to c0t1d0.
Change to the destination disk's root (/) directory.
# cd / |
Unmount the destination disk's root (/) file system.
# umount /mnt |
Shut down the system.
# init 0 |
Boot from the destination disk to single-user mode.
# boot diskn -s |
The installboot command is not needed for the destination disk because the boot blocks are copied as part of the overlap slice.
Unconfigure the destination disk.
# sys-unconfig |
The system is shut down after it is unconfigured.
Boot from the destination disk again and provide its system information, such as host name, time zone, and so forth.
# boot diskn |
After the system is booted, log in as superuser to verify the system information.
hostname console login: |
This example shows how to copy the master disk /dev/rdsk/c0t0d0s2 to the destination disk /dev/rdsk/c0t2d0s2.
# touch /reconfigure # init 0 ok boot # dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t2d0s2 bs=128k # fsck /dev/rdsk/c0t2d0s2 # mount /dev/dsk/c0t2d0s2 /mnt # cd /mnt/etc # vi vfstab (Modify entries for the new disk) # cd / # umount /mnt # init 0 # boot disk2 -s # sys-unconfig # boot disk2 |