How to make an exact image copy of a SCSI hard drive in Solaris 8 OS?

To Solaris 8 Experts,

Please let me know what's the best method / procedure as well as the Solaris 8 commands for accomplishing the following tasks on a production Sun Enterprise 250 Server running Sun Solaris 8 Operating System:

  1. Make an exact image/copy of the SCSI Hard Drive in the Sun E250 Server.

  2. Use the image produced in step 1 above and copy it on to a new SCSI hard drive to be placed in a different Sun E250 Server to be used in the lab environment.

Please explain the step-by-step procedure and/or commands, and provide me with links to relevant potential documentation online (if available).

Thank you for your help.

Is it the same exact disk? If so I would use dd command, as I do with old aix or HP-UX...

1 Like

Yes, if the new disk is the exact same as the existing (but check the number of LBA's as even disks of the same model number can be different sizes) then you could use 'dd' specifying the raw disk 'rdsk' device to copy the whole thing.

However, in my experience, if you want to clone a Solaris 8 system (ufs filesystems) then you might just as well do a disaster recovery (DR) procedure straight onto the second box.

See my post#6 on this thread:

for detailed steps.

This, of course, assumes that you are backing up your production box using fssnap/ufsdump to either a tape drive or a NFS remote disk.

Remember that when the restore is complete NOT to boot the second machine on the same network because the node name and the ip address will be identical. You will need to modify those first.

Also, read jlliagre's post#7 which is highly relevant and another method to do it.

2 Likes

You can also use the "liveupgrade" tool to create just a new bootenvironment without upgrading the new copy of your disk... Read here for more infos:

Using Solaris Live Upgrade to Create a Boot Environment (Solaris Live Upgrade 2.0 Guide)

1 Like