From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,a716c08e2975a756 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-11-22 01:43:47 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: emmanuel.choquet@compaq.com (Emmanuel Choquet) Newsgroups: comp.unix.tru64 Subject: Re: Problem with vrestore/advfs/lvm Date: 22 Nov 2001 01:43:46 -0800 Organization: http://groups.google.com/ Message-ID: <4618c6b9.0111220143.4d0518c1@posting.google.com> References: <4pgnvtgpr3bis8djna1tlblofnr6aruu1k@4ax.com> NNTP-Posting-Host: 193.243.161.101 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1006422227 17380 127.0.0.1 (22 Nov 2001 09:43:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 22 Nov 2001 09:43:47 GMT Xref: archiver1.google.com comp.unix.tru64:5867 Axel K?ter 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