Results 1 to 2 of 2

Thread: vgrename on xen image mess up with host volume group

  1. #1

    vgrename on xen image mess up with host volume group

    I'm using CentOS 5.2 with xen kernel. I also have a file backed CentOS 5.2 domU install with virt-install. It has the same default volume group/logical volume name as the host i.e. 'VolGroup00/LogVol00'. I then try to access data inside this xen image.

    I run kpartx on that domU image file and use vgscan to scan for a new vg on domU.

    # kpartx -av /vm/test.img
    # vgscan

    As domU has the same volume group structure with the host so I try to rename it diffrently. So I issue the vgrename with the domU's vg using UUID as it has the same name as the host.

    # vgrename <UUID-of-domU-default-volume-group> NewVolGroupName

    The command successfully run without any error. However, when I try to mount it with the new name I got the host file structure instead of domU file structure.

    I then look in the /dev directory, I can only find the new vg name but not the host's vg 'VolGroup00'.

    # ls -al /dev

    I think I have mess up thing already by the vgrename command. Where is VolGroup00 of the host? How can I reverse the change back?

  2. #2
    Associate ohno's Avatar
    Join Date
    Jan 2007
    I'm not that familiar with xen. I've only used it with dedicated partitions just to test if it works. Did you get this fixed?

Similar Threads

  1. Replies: 0
    Last Post: 04-16-2012, 09:35 AM
  2. Help with vgrename and lvrename
    By rh_bomani in forum Linux - General Topics
    Replies: 3
    Last Post: 10-05-2006, 01:47 AM
  3. Virtual host/local host PAM File problem!
    By honey bee in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 03-01-2006, 01:38 PM
  4. How to move a user from group to group
    By Compunuts in forum Linux - General Topics
    Replies: 3
    Last Post: 10-01-2002, 04:19 AM
  5. adding users:  own group or common group
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 05-26-2002, 03:17 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