Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: emmanuel.choquet@compaq.com (Emmanuel Choquet)
Subject: Re: Problem with vrestore/advfs/lvm
Date: 22 Nov 2001 01:43:46 -0800	[thread overview]
Message-ID: <4618c6b9.0111220143.4d0518c1@posting.google.com> (raw)
In-Reply-To: 4pgnvtgpr3bis8djna1tlblofnr6aruu1k@4ax.com

Axel K?ter <a.kuester@ostalb.netsurf.de> wrote in message news:<4pgnvtgpr3bis8djna1tlblofnr6aruu1k@4ax.com>...
> Hi, I have the following problem when restoring a system disk:
> 
> System: True64 4.0G, 128 MB memory, mirrored system disk (lvm) with /, usr and
> var on AdvFS "artitions".
> 
> Target: I want to make a full backup and restore of the system disk to recover
> from catastrophic failure.
> 
> What works (and was done) till now:
> 
> I made a backup with vdump level 0  (in single user mode) of all partitions (/,
> usr, var, temp and home) 
> 
> then I booted from CDROM and flushed both disks.
> 
> disklabel -z rz0 
> disklabel -z rz1
> 
> Then (after creating the special files, mount points...) I replayed the (saved
> as rz0.lab and rz1.lab to tape and restored to /var) disk partitioning back
> with:
> 
> disklabel -t advfs -rR rz0 rz0.lab BD018634
> disklabel -t advfs -rR rz1 rz1.lab BD018634
> 
> The I created the file domian and disk sets and mounted them to temporary mount
> points:
> 
> mkfdmn -t rz26 /dev/rz0a root_domain
> mkfdmn /dev/rz0b swapvol
> mkfdmn /dev/rz0d var_domain
> ....
> mkfdmn /dev/rz0g usr_domain
> 
> mkfset root_domain root
> mkfset usr_domain usr
> mkfset var_domain var
> ....
> 

Forget about LSM while restoring :

Domains defined after LSM encaps are LSM volumes, not partitions. I.e.
link in /etc/fdmns/root_domain is /dev/vol/rootdg/rootvol, not
/dev/rz0a. And so is your vdump backup

I did it many times and this works for sure :

Actually all your data and system files (/ /usr and /var) are nearly
OK.

What you should do :

Create your domains on /dev/rz0X, just as you did (except forget
swapvol, no use at that point)
restore your system partitiions, just as you did.
patch your root_domain#root /etc/fdmns after restoration to reflect
symlinks to
/dev/rz0X instead of /dev/vol/....
patch your root_domain#root /etc/sysconfigtab to remove  lsm:
subsystem stuff
patch your root_domain#root /etc/fstab to have swap to /dev/rz0b
instead of /dev/vol/...
patch your root_domain#root /sbin/swapdefault symlink if exists to
/dev/rz0b

then you can go : sync, halt, boot dka0

At this step, you can reencapsulate on LSM using standard volrootmir
-a stuff if you want.

good luck


  parent reply	other threads:[~2001-11-22  9:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-21 15:47 Problem with vrestore/advfs/lvm Axel K�ster
2001-11-21 16:25 ` Axel K�ster
2001-11-21 23:00   ` Mike Coleman
2001-11-22  6:12     ` Axel K�ster
2001-11-22  9:43 ` Emmanuel Choquet [this message]
2001-11-22 22:31   ` Mike Coleman
2001-11-23 15:22     ` Emmanuel Choquet
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox