Operating System - HP-UX
1831300 Members
3372 Online
110023 Solutions
New Discussion

Size of LVM header in non bootable disk

 
Sundeep Saini
Occasional Contributor

Size of LVM header in non bootable disk

hi,
i have a query regarding the size of the LVM header. Since the LVM header of a bootable disk is always 2912KB. The header size of a non bootable disk is not fixed. In Bootable disk after the LVM header (2912 KB=5824 sectors)the user data starts or we can say LV extents starts.
If i extend any Logical volume from bootable disk to my 2nd hdd of the same VG. suppose i increase the size of /home LV 2GB to 5GB and it extended on the new hdd which i attatched on my machine.

If on PV1 512 PE(4MB) resides and remaining PE resides on 2nd hdd.
How i can trverse on the 2nd hdd from where my 513th extent start?
I am developing a C++ module that for this.
Please guide me how i can get this information.

Regards
Sandy
3 REPLIES 3
Florian Heigl (new acc)
Honored Contributor

Re: Size of LVM header in non bootable disk

sorry I can't give You a specific answer, but I neither am able to produce even close to compilable C++ code, nor did I completely understand You question.

But, I think it will defintely be covered in the LVM chapter of the 'HP-UX 11i internals' book; in it You'll find a very extensive description of the LVM structures in the kernel, which You should be able to query about the first LE's position on PV[2].
yesterday I stood at the edge. Today I'm one step ahead.
Sundeep Saini
Occasional Contributor

Re: Size of LVM header in non bootable disk

Hi Unix gurus,
I want to know the non bootable LVM disk. I am refining my previous query(Size of LVM header in non-bootable disk).
After reading the several documents on LVM i came to know that Non-bootable disk have two reserved areas-- the physical volume reserved area(PVRA) and the volume group reserved area (VGRA), while bootable disks have additional sectors reserved for the boot data reserved area (BDRA) and LIF.

I want to know the internal structure or PVRA and VGRA or how i can get the length of these structure. After these structure LV extents will start.
Is there any header file in the /usr volume where these structures are defined?


Reagrds
Sandy
RAC_1
Honored Contributor

Re: Size of LVM header in non bootable disk

Checking if disk is bootable or not bootable is easy. lifs -l /dev/rdsk/cxtxdx

This also lists the sizes, so you may get some information from this.
There is no substitute to HARDWORK