Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a server (SUSE 11.5) that has two disks. There is only one volume group (vg01). How do I determine the physical device on which that vg exists?

share|improve this question
    
By physical device, what do you mean? A volume group can correspond to multiple disks or partitions. Do you want them all? –  Faheem Mitha Mar 22 '11 at 19:13
    
I guess it was poorly-worded, but yes, all of them. Your answer was what I needed - thanks! –  swasheck Mar 22 '11 at 19:22

1 Answer 1

up vote 3 down vote accepted

I think

# pvdisplay

shows you the physical device(s) corresponding to all your volume groups.

Inter alia, my system shows, for example

--- Physical volume ---
  PV Name               /dev/sdc6
  VG Name               olddebian
  PV Size               186.26 GiB / not usable 638.00 KiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              47683
  Free PE               5443
  Allocated PE          42240
  PV UUID               QcpaYU-GuWX-ssIl-U2i9-26Cq-QhQf-fgOyD4

This is the only one of my VGs that corresponds to a raw partition. The others are on top of software raid devices.

share|improve this answer
    
great! this is what i needed. thanks! –  swasheck Mar 22 '11 at 19:23
1  
@swasheck: In addition to pvdisplay showing a lot of information, there is pvs with compact output. Similarly there are vgdisplay and vgs for volume groups and lvdisplay and lvs for logical volumes. –  Gilles Mar 22 '11 at 20:29
    
@Gilles: yes, pvs is better for this question. –  Faheem Mitha Mar 22 '11 at 20:37
    
@Gilles. I'd stumbled across those commands while searching for this answer, but thank you. They will be most helpful for what I need to do, now that I have the initial requirement satisfied. –  swasheck Mar 24 '11 at 12:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.