logical "and" connection of lvm-tags?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list,

Im playing around with lvm-Tags and would find it quite useful for
sorting lvms.

Now I tried the following

root@w541:~# lvchange --addtag @foo levg/t1
  Logical volume levg/t1 changed.
root@w541:~# lvchange --addtag @foo levg/t3
  Logical volume levg/t3 changed.
root@w541:~# lvchange --addtag @bar levg/t2
  Logical volume levg/t2 changed.
root@w541:~# lvchange --addtag @bar levg/t3
  Logical volume levg/t3 changed.
root@w541:~# lvs -o lv_name @foo
  LV 
  t1 
  t3 
root@w541:~# lvs -o lv_name @bar
  LV 
  t2 
  t3 
root@w541:~# lvs -o lv_name @foo @bar
  LV 
  t1 
  t2 
  t3 
root@w541:~# lvs -o lv_name @foo \& @bar
  LV 
  t1 
  t2 
  t3 
root@w541:~# lvs -o lv_name @foo and @bar
  LV 
  t1 
  t2 
  t3 

You see, i want to list all lvms which have @foo *and* @bar tags
included. Is this possible? I didnt found anything about combining in
the man pages.

Tfh!

Oliver


_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux