Skip to contentSkip to conversation

Kombination of lvm-tags

linux-lvm Oliver Rath 2 participants 4 messages Nov 9, 2015 – Nov 10, 2015

lore
Share & tools
lore
#0 lore raw

Hi list,

I see that I can use tags to group LVs together like a set union. So, if a couple of LVs have tag @a, another the tag @b, I can see all these LVs with

lvs @a @b

If now I want to see the LVs having @a *AND* @b, is this possible?

Tfh!
Oliver

#1 lore raw

Dne 9.11.2015 v 02:13 Oliver Rath napsal(a):

Quoted 11 lines

Hi list,

I see that I can use tags to group LVs together like a set union. So, if a couple of LVs have tag @a, another the tag @b, I can see all these LVs with

lvs @a @b

If now I want to see the LVs having @a *AND* @b, is this possible?

Please check possibilities of --select option.

Note: you need to have relatively recent version of lvm2. For description how select option works - look at 'man lvm'

Regards

Zdenek

#2 lore raw

Hi Zdenek,

Quoted 7 lines · Zdenek Kabelac

Dne 9.11.2015 v 02:13 Oliver Rath napsal(a):

Quoted 6 lines

Hi list,

I see that I can use tags to group LVs together like a set union. So, if a couple of LVs have tag @a, another the tag @b, I can see all these LVs with

Quoted 7 lines
Quoted 5 lines

lvs @a @b

If now I want to see the LVs having @a *AND* @b, is this possible?

Please check possibilities of --select option.

This look like exactly where I looked for! Thank you very much!

Regards,
Oliver

#3 lore raw

[linux-lvm] addendum [SOLVED] Re: Kombination of lvm-tags

Hi Zdenek,

Quoted 1 line · Oliver Rath

This look like exactly where I looked for! Thank you very much!

I have to add: This is *much better* than my idea I have looked for!

Regards,
Oliver