Operating System - HP-UX
1843997 Members
2292 Online
110226 Solutions
New Discussion

Multiple VG on SIngle Disk

 
Amit Dixit_2
Regular Advisor

Multiple VG on SIngle Disk

Hi,
Can we have multiple VG on single disk
IF not why ?

Thanks,
Amit
7 REPLIES 7
melvyn burnard
Honored Contributor

Re: Multiple VG on SIngle Disk

No you cannot.
A single disk, or PV, can only belong to one VG .
The VG information gets written on the first few blocks of the diszc.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Michael Tully
Honored Contributor

Re: Multiple VG on SIngle Disk

You cannot have more than one volume group on a single LUN (disk)
Once a volume group has been designated to a disk, it writes a volume header on it. It cannot then be used again for another group.
Anyone for a Mutiny ?
Bharat Katkar
Honored Contributor

Re: Multiple VG on SIngle Disk

Hi Amit,
Multipe VG's cannot exists on Single Disk. VG's is made of PV's and in multiples of PV's. It can span accross no of disks. Disk is your PV.
Now a PV can have mulitple volumes like lvol1 lov2 etc. Again one Logical Volume can hold only a single FileSystem..so as many lv's on a PV that many filesystems you can create on the PV and thereby on the VG.

VG == made up of =>> No. of PV's
PV's == contain ==>> No. of LV's
LV's == contain ==>> One FileSystems each

This how our LVM works.
Hope that helps.

Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: Multiple VG on SIngle Disk

Amit,
Sorry for multiple replies.. forgot mention why:

Whenever you add a disk to VG using vgcreate or vgextend then it write some information on the disk which is called as VGRA i.e. Volume group reserved Area. This make that particular disk reserved to that volume group. Becuase these information is specific to that group only.
Now VGRA contains two things i.e.
VGSA -- Volume Group Status Area
VGDA -- VOlume Group Descriptor Area which contains device driver information used by the Volume Group.

Hope that clarifies.
Regards,
You need to know a lot to actually know how little you know
Geoff Wild
Honored Contributor

Re: Multiple VG on SIngle Disk

This kind of depends....if the disk is attached directly to the HP server - then no...If however, you are in a SAN environment, then you could "slice" up a disk any way you like and present it to HPUX as multiple disks (even though it is physically 1).

But as others have said, the answer is really no as vgreate writes a vgid on each disk in a volume group - so you can't have multiple vg's on a "single" disk...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rick Garland
Honored Contributor

Re: Multiple VG on SIngle Disk

As Geoff stated, in a SAN environment you could slice and dice the disk array however you see fit. Look at EMC, NetApp, EVA, etc., disk arrays.
Tanmay_1
Occasional Advisor

Re: Multiple VG on SIngle Disk

If the system recognizes the disk as a single disk you can not create multiple vg in it. I think you are not considering that at the back end the devices are slices among many physical devices, typically RAID 5 configuration. So in that case, at the storage box, one device may have multiple vg. But as per as system is concern you can not use multiple VG in a single disk.