How to display which disks are part of volumegroup?
Let's say I have 3 physical disks sda, sdb and sdc. I combine these into a volume group called "my_group".
How can I find which disks are part of "my_group"? vgdisplay do not give me this information. Or the other way, how can I find which volume group, if any, sdc is part of? Knut H. |
Use the "lvs" comand - you can add the "devices" column to the normal output to get what you want. I don't know of a way to do a reverse lookup for /dev/sdc
Edit: oops - try vgs, and see if it has "devices" as well; I don't kave a LVM system to check at the moment. |
Thank you. vgs -o devices gave what I was looking for. And pvs showed which group a physical disk is member of.
Knut H. |
All times are GMT -5. The time now is 03:22 AM. |