* Problem with vrestore/advfs/lvm
@ 2001-11-21 15:47 Axel K�ster
2001-11-21 16:25 ` Axel K�ster
2001-11-22 9:43 ` Emmanuel Choquet
0 siblings, 2 replies; 7+ messages in thread
From: Axel K�ster @ 2001-11-21 15:47 UTC (permalink / raw)
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
....
mount root_domain#root /var/root
mount usr_domain#usr /var/usr
mount var_domain#var /var/var
mount temp_domian#temp /var/temp
mount home_domain#home /var/home
Then I restored the content of the file systems back to the mount points (resp.
the disk) with
vrestore -xD/usr/root -f/dev/nrmt0h
vrestore -xD/usr/usr -f/dev/nrmt0h
vrestore -xD/usr/var -f/dev/nrmt0h
vrestore -xD/usr/temp -f/dev/nrmt0h
vrestore -xD/usr/home -f/dev/nrmt0h
and rebooted the system from dka0.
When the system tries to mount the advfs file systems it complains about
missing/wrong entries in the advfs logs (and does not find the end...)
Then it starts a update process and there it stays, telling me that the
synchronisation of swapvol was sucessfull.
I can boot to single user mode but not more.
My Questions: Whats my error? Missing commands, wrong backup ????
Any hint (and much more any solutiuon ;-)) ) is welcome.
Axel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with vrestore/advfs/lvm
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 9:43 ` Emmanuel Choquet
1 sibling, 1 reply; 7+ messages in thread
From: Axel K�ster @ 2001-11-21 16:25 UTC (permalink / raw)
Hi,
I made a screenshot of the error message which appears when booting:
.....
INIT: New run level: 3
starting LSM
Checking local filesystems
/sbin/ufs_fsck -p
Mounting / (root)
user_cfg_pt: reconfigured
Mounting local filesystems
exec: /sbin/mount_advfs -F 81920 root_domain#root /
root_domain#root on / type advfs (rw)
/proc on /proc type procfs (rw)
exec: /sbin/mount_advfs -F 16384 usr_domain#usr /usr
advfs_logger: pg #510 is bad; truncating log
advfs_logger: pg #509 is bad; truncating log
advfs_logger: pg #508 is bad; truncating log
advfs_logger: pg #507 is bad; truncating log
advfs_logger: pg #506 is bad; truncating log
advfs_logger: pg #505 is bad; truncating log
advfs_logger: pg #504 is bad; truncating log
advfs_logger: pg #503 is bad; truncating log
advfs_logger: pg #502 is bad; truncating log
advfs_logger: can't find log end
bs_bfdmn_activate: can't open domain ftx log, tag = 0xfffffff7.0x0:
E_CANT_FIND_LOG_END (-1077)usr_r
exec: /sbin/mount_advfs -F 16384 var_domain#var /var
advfs_logger: pg #510 is bad; truncating log
advfs_logger: pg #509 is bad; truncating log
ADVFS: caught decipher bug, trunc log at pg 508
advfs_logger: pg #508 is bad; truncating log
advfs_logger: pg #507 is bad; truncating log
ADVFS: caught decipher bug, trunc log at pg 506
advfs_logger: pg #506 is bad; truncating log
advfs_logger: pg #505 is bad; truncating log
advfs_logger: pg #504 is bad; truncating log
advfs_logger: pg #503 is bad; truncating log
advfs_logger: pg #502 is bad; truncating log
advfs_logger: can't find log end
bs_bfdmn_activate: can't open domain ftx log, tag = 0xfffffff7.0x0:
E_CANT_FIND_LOG_END (-1077)var_r
Nov 21 20:25:16 update: started
...
Any Idee?
Axel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with vrestore/advfs/lvm
2001-11-21 16:25 ` Axel K�ster
@ 2001-11-21 23:00 ` Mike Coleman
2001-11-22 6:12 ` Axel K�ster
0 siblings, 1 reply; 7+ messages in thread
From: Mike Coleman @ 2001-11-21 23:00 UTC (permalink / raw)
To: Axel Küster
Axel K�ster <a.kuester@ostalb.netsurf.de> writes:
> advfs_logger: pg #510 is bad; truncating log
I wouldn't say that I recommend this, and I'm not knowledgeable about advfs,
but isn't there a '-d' flag to mount that says something like "chuck the advfs
log and just mount what you have"? Not necessarily a good idea, but it might
get you going.
Incidentally, what led to the catastrophic failure?
Mike
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with vrestore/advfs/lvm
2001-11-21 23:00 ` Mike Coleman
@ 2001-11-22 6:12 ` Axel K�ster
0 siblings, 0 replies; 7+ messages in thread
From: Axel K�ster @ 2001-11-22 6:12 UTC (permalink / raw)
On 21 Nov 2001 17:00:07 -0600, Mike Coleman <mkc@mathdogs.com> wrote:
>Axel K�ster <a.kuester@ostalb.netsurf.de> writes:
>> advfs_logger: pg #510 is bad; truncating log
>
>I wouldn't say that I recommend this, and I'm not knowledgeable about advfs,
>but isn't there a '-d' flag to mount that says something like "chuck the advfs
>log and just mount what you have"? Not necessarily a good idea, but it might
>get you going.
>
>Incidentally, what led to the catastrophic failure?
>
Hi,
I have to prepare a procedure ;-(( for this very unlikly situation...
Axel
>Mike
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with vrestore/advfs/lvm
2001-11-21 15:47 Problem with vrestore/advfs/lvm Axel K�ster
2001-11-21 16:25 ` Axel K�ster
@ 2001-11-22 9:43 ` Emmanuel Choquet
2001-11-22 22:31 ` Mike Coleman
1 sibling, 1 reply; 7+ messages in thread
From: Emmanuel Choquet @ 2001-11-22 9:43 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with vrestore/advfs/lvm
2001-11-22 9:43 ` Emmanuel Choquet
@ 2001-11-22 22:31 ` Mike Coleman
2001-11-23 15:22 ` Emmanuel Choquet
0 siblings, 1 reply; 7+ messages in thread
From: Mike Coleman @ 2001-11-22 22:31 UTC (permalink / raw)
emmanuel.choquet@compaq.com (Emmanuel Choquet) writes:
> 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 :
I think your procedure is sound. It's basically the one I followed after
'verify' destroyed my root filesystem recently.
I'm wondering, though, why you've done it many times...
Mike
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-11-23 15:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2001-11-22 22:31 ` Mike Coleman
2001-11-23 15:22 ` Emmanuel Choquet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox