Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

location vgarea and pvarea under lvm 2.x

Dan Askew
Occasional Contributor

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
1 REPLY
likid0
Honored Contributor

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