Computing.Net > Forums > Solaris > How to backup the system? Ufsdump?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to backup the system? Ufsdump?

Reply to Message Icon

Name: Klemen
Date: May 28, 2003 at 02:32:53 Pacific
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




Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: May 28, 2003 at 06:12:36 Pacific
Reply:

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/


0

Response Number 2
Name: Klemen L
Date: May 29, 2003 at 00:55:00 Pacific
Reply:


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



0

Response Number 3
Name: David Perry
Date: May 29, 2003 at 04:41:21 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: How to backup the system? Ufsdump?

how to install the tomcat on solaris x86 www.computing.net/answers/solaris/how-to-install-the-tomcat-on-solaris-x86/1539.html

how to bring the system to network www.computing.net/answers/solaris/how-to-bring-the-system-to-network/2932.html

How to check the file size on DLT t www.computing.net/answers/solaris/how-to-check-the-file-size-on-dlt-t/2452.html