SUMMARY: OS backup/DRP (system recovery)

From: Leon Kazakin <leonk_at_date.com>
Date: Tue Jun 24 2003 - 10:35:51 EDT
I'm forwarding Ric's answer which sums it up nicely.
Thank you all.

Leon


-----Original Message-----
From: Ric Anderson


Make a ufsdump of all file systems on the boot device, 
e.g.
	ufsdump 0f /dev/rmt/0cn /
	ufsdump 0f /dev/rmt/0cn /var
will back up / and /var as two files on a single tape.
Next run prtvtoc on the disk containing /, e.g.
	prtvtoc /dev/rdsk/c0t0d0s0 >somefile
and print that file and store the hard copy with the
tape.

When the bad day happens, replace the system disk, 
boot from the installation cdrom
	boot cdrom -sw
which gets you a root prompt.  Now run format, select
the newly installed disk, and use the prtvtoc output 
to re-enter the partition table, and write that to the
disk & exit format.  Next, newfs the partitions (2 in
this case), e.g.
	newfs /dev/rdsk/c0t0d0s0 # assuming / on slice 0
	newfs /dev/rdsk/c0t0d0s3 # assuming /var on slice 3
Then
	mount -o logging /dev/dsk/c0t0d0s0 /mnt
	cd /mnt
	ufsrestore -rf /dev/rmt/0cn
	# note tape is now at start of second dump
	cd /
	rm restoresymtable
	umount /mnt
	cd /usr/platform/`uname -i`/lib/fs/ufs
	installboot bootblk /dev/rdsk/c0t0d0s0
	cd /
	mount -o logging /dev/rdsk/c0t0d0s3 /mnt
	cd /mnt
	ufsrestore -rf /dev/rmt/0cn
	cd /
	rm restoresymtable
	umount /mnt
Now all the bits are back and the boot block is restored so
	reboot
and the system should come up on the new disk.

AIX sysboot is easier, but I've restored and/or clones dozens of Solaris
boot disks over the last 7 or 8 years using variants of this theme
(sometimes the dump was on an NFS mounted disk) with no problems.

Cheers,
Ric Anderson

> -----Original Message-----
> What's the best way to backup OS, i.e. Solaris 8 on 220, 280,
> 450, 6500?
> 
> I mean in case the server's boot disk is gone or the server itself is 
> gone and I have to re-build it.
>  
> Is there a bootable tape utility like with AIX and HP?
>  
> I don't think so, so please point me in the direction of recovery 
> procedures.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Jun 24 10:39:05 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:15 EST