* [linux-lvm] cant find PV after boot sector rewrite
@ 2004-10-02 19:51 Miha Verlic
0 siblings, 0 replies; only message in thread
From: Miha Verlic @ 2004-10-02 19:51 UTC (permalink / raw)
To: linux-lvm
Hello,
I have (or better yet - had) 3x200gb drives joint up together with LVM1.
PV were created directly on /dev/hde, /dev/hdf, /dev/hdg, without any
partitions made before. On top of the ~600gb VG I created ext3 partition
and everything worked for a few months, but now I had to move disks to a
new server. I exported drives with with "vgchange -an mix" and "vgexport
mix" successfully, however LILO on new machine was complaining about
duplicated volume IDs (although it still booted).
"lilo -T vol-ID" showed 00000002 volume IDs on all three drives, so I ran:
"lilo -z -M /dev/hde"
"lilo -z -M /dev/hdf"
"lilo -z -M /dev/hdg"
and a few second later, it occured to me, this *might* change
bootsectors of all drives. Of course pvscan did not find any physical
volumes anymore.
Lilo does create backup files every time you run it, however since I ran
it 3 times, I only have backup of boot sector for one drive - hdg. I
have successfully "imported" boot sector of /dev/hdg back with "dd
if=/boot/boot.2140 of=/dev/hdg", however boot sectors from /dev/hde and
/dev/hdf remains lost. After restoring boot sector, pvscan now finds 1
inactive PV /dev/hdg in exported VG "mix".
Is there any way to get back/recreate the whole PV without loosing any
data? All I'm actually missing is 2x512bytes in boot sectors :(
Oh yeah some useful (or not) info: PV is not root partition, lvm 1.0.8,
linux is 2.4.27, glibc 2.3.2, system is slightly modified slackware 10.
--
Miha
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-02 19:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-02 19:51 [linux-lvm] cant find PV after boot sector rewrite Miha Verlic
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.