|
|
|
How to backup the system? Ufsdump?
|
Original Message
|
Name: Klemen
Date: May 28, 2003 at 02:32:53 Pacific
Subject: How to backup the system? Ufsdump? OS: Solaris 7,8 and 9 CPU/Ram: 333, 256
|
Comment: Hello, I'm not an unix (Solaris) expert, so I'd need your help. I have to backup the system (solaris 7, 8 and 9). I think best solution would be ufsdump, but I'd need a kind of step by step instructions. Scenario is to backup the system into a file and store the file on network or a cd. Recovery should need as less time as possible. So, what is best solution? To recover from network, a cd or something else? Thx! Klemen
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: David Perry
Date: May 28, 2003 at 06:12:36 Pacific
|
Reply: (edit)ufsdump is the best recovery option for solaris. To recover, you should boot from something other than the corrupted file system such as a CD or a network. Here are details on making a bootable recovery CD for solaris. http://mah.everybody.org/docs/bootable-cdrom-for-solaris Hal Pomeranz did a great paper on using Jumpstart for OS installs and recoveries.
http://www.deer-run.com/~hal/jumpstart/
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Klemen L
Date: May 29, 2003 at 00:55:00 Pacific
|
Reply: (edit) Thanks David, I'll give a try. But please tell me, how to store the backup file on the network or where to store it? (My current idea is to boot from a bootable CD created by Mark A. Hershberger's recipe and then in system at that state run ufsdump)
Regards, Klemen
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: David Perry
Date: May 29, 2003 at 04:41:21 Pacific
|
Reply: (edit)Store the dump files on a NFS server. Ideally the system should be in a single user mode when doing a ufsdump but near zero disk activity should be OK. Booting from a CD with network support is perfect. In the following example, change the IP and share information to reflect an NFS server in your network. You could also write dump files to a series of tapes, 1 tape / slice but network restores are much quicker. #!/bin/sh hostname=`hostname | cut -f 1 -d '.'` NFSSERVER=192.168.1.1 if [ `mount | grep -c $NFSSERVER` -eq 0 ] ; then mount $NFSSERVER:/exports/dumpfiles/$hostname /mnt fi df -k | grep c0t > /tmp/slice cat /tmp/slice | while read rdsk kbytes used avail capacity mounted ; do if [ "$mounted" = "/" ] ; then slice="root" else slice=`echo $mounted | sed -e 's,^/,,'` fi echo $slice ufsdump 0uf - $mounted | compress > /mnt/$slice.dump.Z done ufsdump 0uf - / | compress > /mnt/root.dump.Z umount /mnt
Report Offensive Follow Up For Removal
|
Use following form to reply to current message:
|
|

|