location vgarea and pvarea under lvm 2.x (55 Views)
Reply
Occasional Contributor
Dan Askew
Posts: 4
Registered: ‎02-07-2005
Message 1 of 2 (55 Views)

location vgarea and pvarea under lvm 2.x

I have a script that I can run on lvm 1.0 machines that identfies every disk on the system ...what volume group they are in and then groups by pvarea (pvid) ....I use this to find old forgotten disk on the systems ...

 

the problem is under lvm2.x I cannot find the area(s) 

 

anyone find where thay are located ...

dan askew
Please use plain text.
Honored Contributor
likid0
Posts: 975
Registered: ‎03-01-2005
Message 2 of 2 (21 Views)

Re: location vgarea and pvarea under lvm 2.x

check if the disk is using lvm: 

xd -An -j8192 -N8 -tc $disk | tr -d " \t"
  

The result will be LVMREC01or LVMREC02. 

 

for lvm2 use:

For the PVID, use:

    xd -An -j8208 -N17 -tc $disk

For the VGID, use:

    xd -An -j8344 -N17 -tc $disk
Windows?, no thanks
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation