raid/lvm restore question
From: Dave (dspear99ca_at_yahoo.delete.com)
Date: 05/28/04
- Previous message: J B Carr: "Re: How to see boot-time messages ?"
- Next in thread: Dave: "Re: raid/lvm restore question"
- Reply: Dave: "Re: raid/lvm restore question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 May 2004 19:19:00 GMT
I have the following situation:
I screwed up my RH9 2.4.25 (heavily patched) config by "updating" the
linux-wlan-ng driver for my wireless NIC. I had been seeing transient
networking errors and, well, it seemed like a pretty safe bet. 8-(.
Apparently the "new" driver install script does not clean up the old
drivers... I've found a few extraneous files around and don't have the
patience to sift through and find all the problem children. AT ANY RATE, I
can boot to single user, force the correct drivers to install, and all is
well.
No problem, says I with a well-deserved pat on the back... I do backups
nightly. I'll just restore "/" from last week's DLT full.
Well, maybe I shouldn't overwrite my current, broken-yet-functional,
installation...
Now, root is on a logical volume '/dev/Volume00/RootVol' which is on a
software RAID-5 array, '/dev/md1'. Complicated for restoring. So I boot
off of cd, start my raid volumes, activate my volume groups, and create a
new logical volume I call '/dev/Volume00/TempVol'. Aha, I can mount it. So
I restore '/' from tape, all is good. It's all there. I change
"/etc/fstab" to reflect the new root location '/dev/Volume00/TempRoot'. I
change "/etc/lilo.conf" and run lilo and reboot.
I get so far in booting the kernel. When it tries to mount root I get
errors such as "corrupt superblock on /dev/Volume00/TempRoot... run
e2fsck -b 8193 blah blah blah." Drops me into a shell. I run pvscan, yup,
there's /dev/md1 with VG "Volume00". I run vgscan, whoops, no volumes
found. Hmm, let's try "vgchange -a y /dev/Volume00". Error, "Raid device
/dev/md1 is inconsistent".
So, what am I doing wrong here. Obviously the device '/dev/md1' is okay, I
can still boot my broken installation no complaints. Is there anywhere
other than /etc/fstab and lilo that need updating?
Thanks
Dave
- Previous message: J B Carr: "Re: How to see boot-time messages ?"
- Next in thread: Dave: "Re: raid/lvm restore question"
- Reply: Dave: "Re: raid/lvm restore question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|