Solved

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

Posted on 2008-10-04
5
1,644 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

820 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