[svlug] Re: Mounting the same LVM2 volume group twice.
scott.hess at gmail.com
Fri Jan 14 22:54:40 PST 2005
On Tue, 11 Jan 2005 23:19:09 -0800, Scott Hess <scott.hess at gmail.com> wrote:
> Let's say that I have two drives with default Fedora Core 3 installs.
> So both have / and swap on LVM. There's a pv on partition 2,
> containing a vg VolGroup00, which contains lgs LogVol00 (/) and
> LogVol01 (swap).
> Now, say that I want to mount _both_ of them at once. Perhaps I'm
> booting from one, and want to mount the other. What seems to happen
> for me now is that I see whichever one I booted from, but I don't see
> anything at all from the other disk. No errors, either.
What I Ended Up Doing (Perhaps Paraphrased):
# Boot the fedora rescue cd.
lvm vgrename VolGroup00 VolGroup02
lvm vgrename VolGroup00 VolGroup01
lvm vgrename VolGroup02 VolGroup00
reboot # And remove the CD
On reboot, I could mount /dev/VolGroup01/LogVol00, and away I go. I
suspect that, just for grins, I may decide _not_ to rename it back to
VolGroup01. I'm sure that will break some future upgrade :-).
More information about the svlug