Results 1 to 4 of 4

Thread: Help with vgrename and lvrename

  1. #1

    Help with vgrename and lvrename

    Hello, I'm using RHEL 4.0 and have lvm2 v2.0 and I wish to rename both my volume group and logical volumes. Here is my current setup,/dev/VolGroup00/LogVol00, and I want to change to something like /dev/sys/home. I read the docs on but they don't go into detail about vgrename and lvrename.

    Must I first umount the filesystems, use lvchange -an
    pathtoLogicalVolume, and then lvrename?

    Here is an example of what I tried and the error I got.

    [root@UW-RASBERRYL ~]# umount /opt
    [root@UW-RASBERRYL ~]# lvchange -an /dev/VolGroup00/LogVol06
    [root@UW-RASBERRYL ~]# lvrename /dev/VolGroup00/LogVol06 /dev/VolGroup00/sys-opt
    [root@UW-RASBERRYL ~]# lvchange -ay /dev/VolGroup00/sys-opt
    One or more specified logical volume(s) not found.

  2. #2
    I solved the problem using knoppix livecd. It was a synch to rename the vg and lv's.

  3. #3
    Revisiting of an old topic. I opened a support ticket with RH to find an official solution to this problem. Here is the conclusion we came too after a few trial and errors.

    Logical Volume Rename
    1.) boot into rescue mode
    2.) issue lvrename OLD NEW for each lv
    3.) edit fstab and grub.conf

    Oddly, I did not have to use lvchange -an/y.
    VG renames proved very troublesome.

    Volume Group Rename
    1.)boot into rescue mode
    2.) edit fstab and grub.conf to new VG name
    3.)exit and boot into rescue mode. When prompted to select 'Continue', Read-Only' or 'Skip' choose skip
    4.) type lvm vgrename OLD NEW
    5.)exit and boot into rescue mode
    6.) chroot /mnt/sysimage
    7.) rebuild initial ramdisk

  4. #4
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Milwaukee, WI
    Cool thanks. Have you added this to the wiki yet? That may prove helpful to anyone else that has similar issues.

Similar Threads

  1. vgrename on xen image mess up with host volume group
    By shrike in forum Linux - General Topics
    Replies: 1
    Last Post: 11-24-2008, 07:09 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts