e2fsck:
- Boot into rescue mode (in RHEL/Fedora this means putting in CD 1 and typing "linux rescue" at the boot prompt -- but it's essentially any minimal live CD). Rescue mode does not do anything with LVM by defualt: to activiate the volume groups, you need to issue these:
#lvm vgscan
#lvm vgchange -ay
#lvm lvs
- lvs will simply display your volume group and logical volume names, use this output to issue the e2fsck command:
e2fsck /dev/volumegroupname/logicalvolumename
. Of course, pass what ever options ot e2fsck you normally would (like -y or -c).
Take out that second disc, then boot into rescue mode (do not mount anything and do not run the lvm commands from the previous example):
#vgrename VolumeGroup00 newname
Where VolumeGroup00 is the old name, and "newname" is the newname. If this was not the root filesystem we would be done and could happily reboot as normal. But, since this IS the root file system, we need to remake the initial ramdisk first (if you don't have one of those, you're off the hook):
#mount /dev/newname/LogVol00 /mnt/sysimage
#mount /dev/sda1 /mnt/sysimage/boot
#chroot /mnt/sysimage
#cp /boot/initrd-kernelversion.img /boot/kernelversion.img.old
#mkinitrd -v -f /boot/initrd-kernelversion.img kernelversion
Don't forget to change all references to the old VG name. Typically this would be in grub.conf and fstab. After that, reboot with that second disc added and you should be fine