* [linux-lvm] lvm2 specificiation
@ 2009-02-05 21:54 Vinay Srini
0 siblings, 0 replies; 7+ messages in thread
From: Vinay Srini @ 2009-02-05 21:54 UTC (permalink / raw)
To: linux-lvm
Hello,
New to linux-lvm, I have been looking around to understand lvm, and have
a few questions.
I have a requirement to mount multiple volume groups with the same name
(VolGroup00, as that is the most popular default name), without first
using vgrename (because something might go wrong, and I may not be able
to restore the name back).
I tried multiple variations including chroot to mount volumegroups.
Seems to be some conflict with device mapper (since chroot uses the same
kernel module).
Another way was to modify and compile my own version of lvm-tools to
give volume groups another name (alias) before mounting them, and was
not successful.
Can someone point me in a direction that I could try? Also, have been
looking around, and cannot find the specification for lvm2. Can I get a
pointer to that too.
thanks,
Vinay Srini
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] lvm2 specificiation
@ 2009-02-05 22:46 Alasdair G Kergon
2009-02-05 23:02 ` Les Mikesell
0 siblings, 1 reply; 7+ messages in thread
From: Alasdair G Kergon @ 2009-02-05 22:46 UTC (permalink / raw)
To: LVM general discussion and development
On Thu, Feb 05, 2009 at 01:54:00PM -0800, Vinay Srini wrote:
> I have a requirement to mount multiple volume groups with the same name
> (VolGroup00, as that is the most popular default name), without first
> using vgrename (because something might go wrong, and I may not be able
> to restore the name back).
It was an early design decision that every VG on a system should have a
different name. Departures from that won't get supported - because it's so
simple to choose different names!
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] lvm2 specificiation
2009-02-05 22:46 [linux-lvm] lvm2 specificiation Alasdair G Kergon
@ 2009-02-05 23:02 ` Les Mikesell
2009-02-05 23:13 ` Vinay Srini
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Les Mikesell @ 2009-02-05 23:02 UTC (permalink / raw)
To: LVM general discussion and development
Alasdair G Kergon wrote:
> On Thu, Feb 05, 2009 at 01:54:00PM -0800, Vinay Srini wrote:
>> I have a requirement to mount multiple volume groups with the same name
>> (VolGroup00, as that is the most popular default name), without first
>> using vgrename (because something might go wrong, and I may not be able
>> to restore the name back).
>
> It was an early design decision that every VG on a system should have a
> different name. Departures from that won't get supported - because it's so
> simple to choose different names!
How do you move drives around among machines then, if they have been
created with the default names that will conflict?
--
Les Mikesell
lesmikesell@gmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] lvm2 specificiation
2009-02-05 23:02 ` Les Mikesell
@ 2009-02-05 23:13 ` Vinay Srini
2009-02-06 11:08 ` Bryn M. Reeves
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Vinay Srini @ 2009-02-05 23:13 UTC (permalink / raw)
To: LVM general discussion and development
Les Mikesell wrote:
> Alasdair G Kergon wrote:
>> On Thu, Feb 05, 2009 at 01:54:00PM -0800, Vinay Srini wrote:
>>> I have a requirement to mount multiple volume groups with the same
>>> name (VolGroup00, as that is the most popular default name), without
>>> first using vgrename (because something might go wrong, and I may not
>>> be able to restore the name back).
>>
>> It was an early design decision that every VG on a system should have a
>> different name. Departures from that won't get supported - because
>> it's so
>> simple to choose different names!
>
> How do you move drives around among machines then, if they have been
> created with the default names that will conflict?
>
These are flat files mounted in a directory across the network. Which
when accessed, gets bytes across the network. (mounted using fuse libs)
eg. if the flat file is located in /mnt/over-network/flat,
# losetup -f --show /mnt/over-network/flat
/dev/loop0
# vgscan (this will find my VolGroup00)
# .. and so on
One example is mounting virtual machine drives from the virtual server
on to my desktop. In this case, i would like to perform some operations
on the drive (copy from/to etc), and unmount.
Is there an RFC for the lvm design that I could read throught to better
understand this?
Vinay.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] lvm2 specificiation
2009-02-05 23:02 ` Les Mikesell
2009-02-05 23:13 ` Vinay Srini
@ 2009-02-06 11:08 ` Bryn M. Reeves
2009-02-06 15:10 ` Stuart D. Gathman
2009-02-06 15:26 ` [linux-lvm] " Stefan Monnier
3 siblings, 0 replies; 7+ messages in thread
From: Bryn M. Reeves @ 2009-02-06 11:08 UTC (permalink / raw)
To: LVM general discussion and development
Les Mikesell wrote:
> Alasdair G Kergon wrote:
>> On Thu, Feb 05, 2009 at 01:54:00PM -0800, Vinay Srini wrote:
>>> I have a requirement to mount multiple volume groups with the same
>>> name (VolGroup00, as that is the most popular default name), without
>>> first using vgrename (because something might go wrong, and I may not
>>> be able to restore the name back).
>>
>> It was an early design decision that every VG on a system should have a
>> different name. Departures from that won't get supported - because
>> it's so
>> simple to choose different names!
>
> How do you move drives around among machines then, if they have been
> created with the default names that will conflict?
>
Using the oft-posted directions for changing the VG name and UUID.
Regards,
Bryn.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] lvm2 specificiation
2009-02-05 23:02 ` Les Mikesell
2009-02-05 23:13 ` Vinay Srini
2009-02-06 11:08 ` Bryn M. Reeves
@ 2009-02-06 15:10 ` Stuart D. Gathman
2009-02-06 15:26 ` [linux-lvm] " Stefan Monnier
3 siblings, 0 replies; 7+ messages in thread
From: Stuart D. Gathman @ 2009-02-06 15:10 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 977 bytes --]
Les Mikesell wrote:
>>
>> It was an early design decision that every VG on a system should have a
>> different name. Departures from that won't get supported - because
>> it's so
>> simple to choose different names!
> How do you move drives around among machines then, if they have been
> created with the default names that will conflict?
SAN based snapshots are the legitimate reason to wish for multiple VGs
with the same name. However, it is simpler all around if there was an
easy way to relabel SAN snapshots before the duplicate names (and VGIDs)
cause trouble.
Apart from SAN snapshots, my rule of thumb is that local fixed drives
are always called "rootvg". All removeable, SAN, or other drives that
are likely to logically or physically move between machines get unique
VG names. In the rare event I need to mount a rootvg from a failed
machine on a working machine (has happened only once), I boot from CD to
rename it (and the unique VGIDs make this doable).
[-- Attachment #2: stuart.vcf --]
[-- Type: text/x-vcard, Size: 315 bytes --]
begin:vcard
fn:Stuart Gathman
n:Gathman;Stuart
org:Business Management Systems, Inc
adr;dom:;;4001 Williamsburg Court;Fairfax;VA;22032
email;internet:stuart@bmsi.com
tel;work:703 591-0911
tel;fax:703 591-6154
tel;home:703 378-9641
note:AIM: SDGathman
x-mozilla-html:FALSE
url:http://bmsi.com
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [linux-lvm] Re: lvm2 specificiation
2009-02-05 23:02 ` Les Mikesell
` (2 preceding siblings ...)
2009-02-06 15:10 ` Stuart D. Gathman
@ 2009-02-06 15:26 ` Stefan Monnier
3 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2009-02-06 15:26 UTC (permalink / raw)
To: linux-lvm
> How do you move drives around among machines then, if they have been created
> with the default names that will conflict?
Never use the default names?
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-02-06 15:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 22:46 [linux-lvm] lvm2 specificiation Alasdair G Kergon
2009-02-05 23:02 ` Les Mikesell
2009-02-05 23:13 ` Vinay Srini
2009-02-06 11:08 ` Bryn M. Reeves
2009-02-06 15:10 ` Stuart D. Gathman
2009-02-06 15:26 ` [linux-lvm] " Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2009-02-05 21:54 [linux-lvm] " Vinay Srini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).