Difference between revisions of "To mount LVM Volume Group with similar name on same system"
From Notes_Wiki
m |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Filesystem or partition tools]] > [[Lvm]] > [[To mount Volume Group with similar name on same system]] | |||
If we have to mount two volume groups with same name (say VolGroup00) on same system then we will face problems. To solve this problem use | If we have to mount two volume groups with same name (say VolGroup00) on same system then we will face problems. To solve this problem use | ||
Line 16: | Line 15: | ||
'''Read [[LVM - tips]] on problem associated with using above technique on original / production systems.''' | '''Read [[LVM - tips]] on problem associated with using above technique on original / production systems.''' | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Filesystem or partition tools]] > [[Lvm]] > [[To mount Volume Group with similar name on same system]] |
Latest revision as of 13:46, 24 August 2022
Home > CentOS > CentOS 6.x > Filesystem or partition tools > Lvm > To mount Volume Group with similar name on same system
If we have to mount two volume groups with same name (say VolGroup00) on same system then we will face problems. To solve this problem use
- Find out UUID of Volume Group using
- lvm vgdisplay
- Then rename the volume group to something new using
- lvm vgrename NP3zDl-Bm2v-HAEq-xpba-1Yaa-p1us-TZmUWg www_volgroup00
- Now you can activate the VolGroup using
- lvm vgchange -a y www_volgroup00
- And now mount the Logical Volumes using
- mount /dev/www_volgroup00/LogVol00 server_root/home
This is particularly important if we have mounted virtual hosts hard-disk using kpartx -va <raw_image_file> and now we want to use guest hosts Volume Group, and unfortunately it has same name as base OS.
Read LVM - tips on problem associated with using above technique on original / production systems.
Home > CentOS > CentOS 6.x > Filesystem or partition tools > Lvm > To mount Volume Group with similar name on same system