Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I reloaded my PC onto a new disk then put the old disk back in the PC to recover old files. I kept the same PC name. The OS setup routine appears to have used my PC name (stiffler) to create the LVM names.

[root@stiffler ~]# pvs
  PV         VG          Fmt  Attr PSize   PFree
  /dev/sda2  vg_stiffler lvm2 a-   232.31g    0 
  /dev/sdb2  vg_stiffler lvm2 a-   232.63g    0 

So the volume group name on both of my disks has the same name! I'm booted to the correct one, but I would like to access the second one. How do I rename the other one so I can gain access to it by a unique name?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

disconnect one of the disks and use vgrename

share|improve this answer
    
Yup. Worked - thanks! I had some problems in the past with an LVM situation where vgrename wouldn't work so I guess I discounted the command prematurely. As a side note, I booted to Fedora 14 LIVE and performed the vgrename that way. –  regulatre Nov 22 '10 at 17:46
    
yeah, the previously not working was probably due to not letting you rename VGs in use –  hbdgaf Nov 22 '10 at 17:50

If you don't want to (or can) disconnect one of the drives, you can list the volume UUID instead of the old name.

share|improve this answer
    
Do you mean "can't". Also, should this be a comment rather than an answer? –  vgoff Nov 12 '12 at 0:45
    
No it should be a comment. It's a totally different solution. –  d-_-b Jun 18 '13 at 14:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.