Solved

flarcreate / flash archive backup of root (that's SDS/metadevice)

Posted on 2008-10-04
5
1,636 Views
Last Modified: 2013-12-27
Hi,

I would like to take "flar create" of the root partition but "df -k" showed it's
an "/dev/md/..."  metadevice.

Would it work?  Any precautions when doing recovery/restore?

Suppose I destroy the root metadevice & just want to restore the flash
archive to a simple disk partition for booting up, would this work (I
don't mind losing the metadevice mirroring/RAID features & replace
with a simple disk partition)
0
Comment
Question by:sunhux
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
si_shamil earned 350 total points
ID: 22642540
A problem will occur when recovering operating systems that had been mounted as metadevices. This was because the image created included all the metadevice settings and configuration files. After the restore, all those settings and configuration files were still in the same places. If you do not remove them manually, you will have problems booting the machine.

To remove those metadevice entries, you can boot the machine from a CD, mount the root file system as /a, and then delete MDD root info and MDD database info in the /etc/system file. Also, delete the entries in /etc/lvm/md.cf and mddb.cf files.

it's preferable to remove the metadevice before you create the archive.
0
 

Author Comment

by:sunhux
ID: 22643547
What about a Veritas encapsulated root - do you know how to do it.

This is what I have on one of our sun server (sorry I'm completely green to VxFs) :

df -k /
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/vx/dsk/rootvol  5043518 4711858  281225    95%    /


If I don't take "flar create", would taking ufsdump of root make things easier for
root metadevices (or VxFs encapsulated root)?     So in the event disk crashed
during relocation, we simply mount the replaced disk (without the VxFs or SDS),
do "ufsrestore" & then do "installboot from the CD" - can't remember the full
installboot command but appreciate if anyone can provide me here

0
 
LVL 5

Expert Comment

by:si_shamil
ID: 22643559
I don't think that ufsdump/ufsrestore will do the job here, these utilities intended to backup files to the whole system.
0
 

Author Comment

by:sunhux
ID: 22643882
You may want  to read the link below & give me your views again :

www.sunmanagers.org/pipermail/sunmanagers/2001-June/004650.html

0
 
LVL 5

Expert Comment

by:si_shamil
ID: 22643914
I never did this kind of imaging with ufsdump. But it looks like from the link that it will work.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now