[linux-lvm] Recovering LVM Volume
jim at nwra.com
Wed Jan 23 22:50:33 UTC 2008
Many thanks, and I think this how-to list (corrected as necessary) would
be a very good addition to the FAQ specifically for this situation. Lots
of people find that they have disks under LVM by default and don't have a
clue what they've got until their server goes belly up.
Turns out I do have a non-LVM system, and that has made the nut. Thanks
Stuart D. Gathman wrote:
> On Wed, 23 Jan 2008, Jim Secan wrote:
>> The issue is trying to mount a drive that was the primary internal HD
>> a system with a failed motherboard. The disk was built using FC3, and
>> a a /boot partition and one under LVM control. When I try to mount this
>> disk as a USB drive from a CentOS system, I can't mount the
>> partition because it has the same LVM volume/group name as the disk in
>> CentOS system.
>> 2. Rename the volume on the USB HD. This requires me to power down the
>> CentOS system, open the box, disconnect the internal HD, boot to the
>> installation CD in rescue mode, use lvm commands to rename the USB HD,
>> then put everything back together again. This sounds overly
>> but necessary.
>> So, have I understood all this correctly? Are these the only two ways
>> which this problem can be surmounted, and if so which is the safest.
>> thinking that I want to rename the internal HD to something other than
>> default setting anyway, but I really don't like the idea that I might
>> changing the name in some important file or script that will bite me
> 3. Plug the USB HD into any available system with a different/no internal
> VG name and rename. Stick a LiveCD into one of your LTSP thin clients
> for instance.
> 4. Rename the USB HD using the UUID:
> # vgrename -v [VGUUID] newvgname
> From the man page:
> "vgrename Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 VolGroup00_tmp"
> changes the name of the Volume Group with UUID
> Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 to "VolGroup00_tmp".
> Stuart D. Gathman <stuart at bmsi.com>
> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703
> "Confutatis maledictis, flammis acribus addictis" - background song for
> a Microsoft sponsored "Where do you want to go from here?" commercial.
> linux-lvm mailing list
> linux-lvm at redhat.com
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
More information about the linux-lvm