Back up question

I'm trying to back up my entire 880 machine running Solaris 10. I've tried using flarcreate and have looked into ufsdump. ufsdump appears to be the easiest route to go, but I'm a little confused when it comes to specifying exactly what you want backed up. In all of the examples a specific directory or partition is specified, i.e:

# mkdir /tmp/backup

# mount /dev/dsk/c0t1d0s0 /tmp/backup

# ufsdump 0f - / | (cd /tmp/backup;ufsrestore xvf -)

In my case I have a 2 disk soft RAID-1 and a 10 disk soft RAID-5. What would I have to do to back up my entire system including the metadevices?

Here is my /etc/vfstab

#device device mountFSfsckmountmount

#to mountto fsck pointtypepassat boot options

#

fd-/dev/fd fd-no-

/proc-/procproc-no-

/dev/dsk/c1t0d0s1--swap-no-

/dev/md/dsk/d0 /dev/md/rdsk/d0 /ufs1no-

/dev/md/dsk/d10 /dev/md/rdsk/d10/varufs1no-

/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /home1 ufs 2 yes nosuid,nodfratime

/dev/md/dsk/d20 /dev/md/rdsk/d20 /security1 ufs 2 yes nosuid

/dev/md/dsk/d30 /dev/md/rdsk/d30 /security2 ufs 2 yes nosuid

/dev/md/dsk/d41 /dev/md/rdsk/d41 /h ufs 2 yes nosuid

/devices - /devices devfs - no nosuid

ctfs - /system/contract ctfs - no nosuid

objfs - /system/object objfs - no nosuid

swap-/tmptmpfs-yes-

Message was edited by:

young02

[1412 byte] By [young02a] at [2007-11-27 9:08:33]
# 1

You can give ufsdump all the filesystems, one at a time.

However ufsdump isn't going to capture the actual disk layout or the SVM configuration. You'd need to recreate a disk layout, put filesystems on the disk, mount the locations, then ufsrestore them into the correct places.

Afterward, /etc/vfstab and /etc/system may be incorrect, so you might have to edit them.

--

Darren

Darren_Dunhama at 2007-7-12 21:46:55 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

Thx Darren!

Now for hopefully my last question. Having a soft RAID should I be able to do a

mount -o ro /dev/md/dsk/d0 <a specified dir on the sys>

for each of my metadevices, d0, d10, d20, d30, d41?

I am getting a No such Device error when trying. I thought that mounting my root drive/partition would allow my md.conf and vfstab to come into play, but it doesn't.

Message was edited by:

young02

young02a at 2007-7-12 21:46:55 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

I can't answer that question without more detail of what the system is like. Are you talking about one in some state of restoration? You can only access such devices if you've already created them. That's part of the SVM stuff that you'd have to do by hand if restoring.

If it were me, I'd restore to raw slices, reset /etc/system and /etc/vfstab to boot from the raw slices. Then after that was complete set up SVM and replicas and redo the mirroring.

--

Darren

Darren_Dunhama at 2007-7-12 21:46:56 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...