[linux-lvm] setting VG UUID
navindra at cs.mcgill.ca
Wed Jan 7 08:26:01 UTC 2004
> After figuring out that my all my PVs were lacking UUIDs, I used this
> hack from Heinz to correct the situation:
> (Alasdair also kindly provided a patch to handle the situation in LVM2.)
> Now my VG itself is still lacking a UUID and this causes problems such
> as vgcfgrestore refusing to continue. Is there any way I can update
> my VG UUID?
For the record, I'm absolutely crazy, but I fixed this by doing:
echo "deadbeefdeadbeefdeadbeefdeadbeef"|dd of=/dev/hda6 obs=1 seek=4096 count=32
echo "deadbeefdeadbeefdeadbeefdeadbeef"|dd of=/dev/hda7 obs=1 seek=4096 count=32
echo "deadbeefdeadbeefdeadbeefdeadbeef"|dd of=/dev/hda8 obs=1 seek=4096 count=32
echo "deadbeefdeadbeefdeadbeefdeadbeef"|dd of=/dev/hda9 obs=1 seek=4096 count=32
So much for universal uniqueness... but now finally LVM2 is happy to
accept my LVM1 partitions! Woohoo!!
For the record, I created my LVM1 partitions with Linux Mandrake 9.2.
So I anticipate other people will be having this kind of fun. :-)
One inconvenience I still seem to have is that /dev/bytepool/ is now
filled with symlinks and when I boot back to Linux 2.4 with LVM1 (no
device-mapper), it fails to mount the partitions because of this.
Cleaning /dev/bytepool/ and rebooting seems to fix this.
Should "vgchange -a n" maybe clean up these symlinks?
More information about the linux-lvm