Advertisement
Guest User

lvm filter

a guest
Jul 15th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. root@yoda:~# grep drbd /etc/lvm/lvm.conf
  2. filter = [ "a|drbd[0-9].*|", "a|md[0-9].*|", "r|.*|" ]
  3. root@yoda:~# vgscan
  4. Reading all physical volumes. This may take a while...
  5. Found volume group "yoda" using metadata type lvm2
  6. root@yoda:~# ls -l /dev/drbd0
  7. brw-rw---- 1 root disk 147, 0 15 jul 12.59 /dev/drbd0
  8. root@yoda:~# pvcreate /dev/drbd0
  9. Device /dev/drbd0 not found (or ignored by filtering).
  10. root@yoda:~# pvdisplay
  11. --- Physical volume ---
  12. PV Name /dev/md0
  13. VG Name yoda
  14. PV Size 3,64 TiB / not usable 0
  15. Allocatable yes
  16. PE Size 4,00 MiB
  17. Total PE 953866
  18. Free PE 682186
  19. Allocated PE 271680
  20. PV UUID SGxNtC-J2sj-x1GF-DqsT-nrjv-QoaW-V2GjVK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement