Re: preparing for sun server crash
From: Scott (woulduno_at_gmail.com)
Date: 11/02/05
- Next message: James Carlson: "Re: AF_INET6 doesn't work in getipnodebyname (solaris 8)"
- Previous message: krehberg_at_newsguy.com: "Re: Trusted Solaris using GNOME"
- In reply to: yls177: "preparing for sun server crash"
- Next in thread: diapo_5400_II: "Re: preparing for sun server crash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 02 Nov 2005 14:24:20 -0600
I personally use a combo of snapshot and ufsdump. Snapshot gives me my
idle file system and ufsdump of course creates an image of the file system.
I then store them on a network share some place. In the event of a major
failure where a full restore is needed I boot into single user via a CD,
configure the network, and mount the NFS share.
I keep a copy of my VTOC and vfstab on my backup server so I can easily
cat the VTOC to fmthard, assuming you replace with a matching disk.
I will then do a ufsrestore of my file systems. I keep a copy of my vfstab
that has been modified to remove any metadevs. I have yet to figure out
how to backup my metadb's and have a successful restore.
Once the restore is complete I do an install boot, reboot, and rebuild any
metadevs while the system is running. One more reboot will be needed after
you do you initial meta setup.
Here is the script I use, found orig on the net some place, to do weekly
full backups over ssh to a remote server.
#!/bin/ksh
LOGFILE=/tmp/snap.log # Log
MAILDEST=someone@yourdomain.com # Who to send ERRORS to
ID=backupid
SERVER=archive
HOST=`/bin/hostname`
####### Root (/)
BS=/bs # Location of backing store
SnapRoot=$(fssnap -F ufs -o backing-store=$BS /)
if (( $? != 0 ))
then
print "Failure to create snapshot: /" >> $LOGFILE
cat $LOGFILE | mailx -s "Snap Alarm" $MAILDEST
exit 1
fi
ufsdump 0f - $SnapRoot | ssh -l $ID -C $SERVER "gzip -9 - > \
/full/$HOST-root.ufs.gz"
cd /
fssnap -d /
rm -f /bs/snapshot*
Your backing store can not reside on the same partition you are trying to
back up...
I then have rsync setup to grab changed files during the week.. The backup
server has it's own internal rotation to maintain 7 days worth of
incremental backups.
Over all I find this to be a pretty fast restore process, limited only by
the speed of the network. I have successfully done restores over a WAN,
although a little slower than local network.
You could do this same process using a tape drive, but I find them to be
too slow. I prefer this method, and I then have the backup server dumped
to tape via Veritas to maintain our required retention.
Our backup server is a low cost Linux machine with cheap SATA storage and
a tape library attached to it. And by only needing one Veritas license we
save a bit of cash also.
Scott
- Next message: James Carlson: "Re: AF_INET6 doesn't work in getipnodebyname (solaris 8)"
- Previous message: krehberg_at_newsguy.com: "Re: Trusted Solaris using GNOME"
- In reply to: yls177: "preparing for sun server crash"
- Next in thread: diapo_5400_II: "Re: preparing for sun server crash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|