|
|
Question : Problem: I need to ufsdump from a live machine to another same hardware machine
|
|
What are the steps to backup the os that is installed on one machine to created a identical system .I need to then restore a system to create a identical system.Can some one let me know what else is involve i know that i need to run ufsdump command ... What i am trying to do is to backup a system on one of the drive that is attached and then copy that backup to another drive and restore it on that system...Any one has any ideas how an i acomplish this ... thanks for your help..
|
Answer : Problem: I need to ufsdump from a live machine to another same hardware machine
|
|
snapshots fur UFS are supported since Solaris 8 already ;-)
You can safely run ufsdump with snapshot on a live system and transfer the resulting dump onto another system
Create ufsdump from root filesystem with snapshot: # ufsdump 0f /var/tmp/root.dump `fssnap -F ufs -o raw,unlink,fs=/var/tmp/BS /` You will have to make sure that /var/tmp is NOT in your root filesystem. Otherwise, use another directory.
Transfer the dump file onto the other system and mount the new root filesystem under /mnt Now, extract the dump into it: # cd /mnt ; ufsrestore xf /tmp/root.dump and install the boot block (change c0t0d0s0 to your root device): # installboot /usr/platform/`uname -m`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
If you are short with disk space, create a comressed dump: # ufsdump 0f - `fssnap -F ufs -o raw,unlink,fs=/var/tmp/BS /` | gzip -9 > /var/tmp/root.dump.gz and extract (on the other system) with # cd /mnt ; gzcat /tmp/root.dump.gz | ufsrestore xf -
Another (alternative) option: Use SVM (Sun Volume Manager - formerly known as SDS, Solstice Disk Suite) to mirror your root disk to a second (identical disk), break the mirror and inster it into the other (identical) system. This will only work if you really have two identical (e.g. E450) systems.
|
|
|
|