- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Two VGs over one PV
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 03:14 AM
тАО01-13-2010 03:14 AM
I wanted to know if it's possible to create two VGs over a single PV? If yes, let me know the procedure. If no, let me know the reason why not. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 03:21 AM
тАО01-13-2010 03:21 AM
Re: Two VGs over one PV
No, a Volume Group can span multiple physical volumes but a single physical volume cannot host more than one volume group. This is the way LVM works.
http://docs.hp.com/en/B2355-60130/lvm.7.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 04:13 AM
тАО01-13-2010 04:13 AM
Re: Two VGs over one PV
You cannoy use a single PV for more than a VG. You can have mutiple path for the same PV but ever and never use that for different VGs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 04:14 AM
тАО01-13-2010 04:14 AM
Re: Two VGs over one PV
that is not possible.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 04:56 AM
тАО01-13-2010 04:56 AM
Re: Two VGs over one PV
I agree with everyone here. It is simply not possible.
and the reason is "LVM dont allow this". This is a feature of Volume Manager.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 05:06 AM
тАО01-13-2010 05:06 AM
Re: Two VGs over one PV
But it isn't just impossible.
;-)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 05:52 AM
тАО01-13-2010 05:52 AM
Re: Two VGs over one PV
Its possible in Integrity systems , but please avoid going for it. I think now a days disks are cheap .. :)
regards,
sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 05:54 AM
тАО01-13-2010 05:54 AM
Solutionhere we go ..
# cat sooraj
3
EFI 400MB
HPUX 100%
HPUX 1000MB
[rx26-156]/
======
idisk -f /sooraj -w /dev/rdsk/c15t0d6
insf -eC disk
Ioscan -fnC disk
disk 49 0/4/1/1.109.13.0.0.0.6 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c15t0d6 /dev/rdsk/c15t0d6
/dev/dsk/c15t0d6s1 /dev/rdsk/c15t0d6s1
/dev/dsk/c15t0d6s2 /dev/rdsk/c15t0d6s2
/dev/dsk/c15t0d6s3 /dev/rdsk/c15t0d6s3
# pvcreate -f /dev/rdsk/c19t0d6s2
Physical volume "/dev/rdsk/c19t0d6s2" has been successfully created.
[rx26-156]/
# pvcreate -f /dev/rdsk/c19t0d6s3
Physical volume "/dev/rdsk/c19t0d6s3" has been successfully created.
[rx26-156]/
# diskinfo /dev/rdsk/c19t0d6s3
SCSI describe of /dev/rdsk/c19t0d6s3:
vendor: HP
product id: HSV200
type: direct access
size: 1024000 Kbytes
bytes per sector: 512
[rx26-156]/
# diskinfo /dev/rdsk/c19t0d6s2
SCSI describe of /dev/rdsk/c19t0d6s2:
vendor: HP
product id: HSV200
type: direct access
size: 2759680 Kbytes
bytes per sector: 512
[rx26-156]/
# vgcreate -s 32 vgpart2 /dev/dsk/c19t0d6s2
Volume group "/dev/vgpart2" has been successfully created.
Volume Group configuration for /dev/vgpart2 has been saved in /etc/lvmconf/vgpart2.conf
[rx26-156]/
# vgcreate -s 32 vgpart3 /dev/dsk/c19t0d6s3
Volume group "/dev/vgpart3" has been successfully created.
Volume Group configuration for /dev/vgpart3 has been saved in /etc/lvmconf/vgpart3.conf
[rx26-156]/
# vgdisplay /dev/vgpart2
--- Volume groups ---
VG Name /dev/vgpart2
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
VGDA 2
PE Size (Mbytes) 32
Total PE 84
Alloc PE 0
Free PE 84
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 508g
VG Max Extents 16256
[rx26-156]/
# vgdisplay /dev/vgpart3
--- Volume groups ---
VG Name /dev/vgpart3
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
VGDA 2
PE Size (Mbytes) 32
Total PE 31
Alloc PE 0
Free PE 31
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 508g
VG Max Extents 16256
[rx26-156]/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 06:16 AM
тАО01-13-2010 06:16 AM
Re: Two VGs over one PV
All we are supposing we are talking about creating two different VG over the same PV on THE SAME SYSTEM, but if this PV belongs to a disk array that is showed with no masking restriction to two different systems, then yes, you can use the same PV to create a VG on one system and another VG on the other system. BUT then both systems are going to write on the PV without control and finally they are going to try to write on the same portion of disk at the same time, so your data is going to become corrupted.
So, anyway, never try to do so. I talk with experience...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 08:54 PM
тАО01-13-2010 08:54 PM
Re: Two VGs over one PV
The twist in the matter is that I been given the task to create another VG (say vg01) on the same "physical disk" that has the root VG vg00 on it. vg00 is already present on that disk and HP-UX is up and running. On the leftover space, I've been asked to create the vg01.
Please let me know how to achieve this. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 08:57 PM
тАО01-13-2010 08:57 PM
Re: Two VGs over one PV
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 09:06 PM
тАО01-13-2010 09:06 PM
Re: Two VGs over one PV
Thanks for correcting me. I have three questions about the procedure you've listed:
1. You start off with device /dev/rdsk/c15t0d6, but then after ioscan you shift to device /dev/rdsk/c19t0d6. I am assuming this is a typo?
2. After you create the PVs, the diskinfo shows their sizes. Where are we specifying these sizes? We need to specify our own sizes.
3. Please list the procedure according to my scenario that I've described in my reply above, i.e. vg00 is already present. I don't need to disturb vg00. I need to find the leftover space, then use that space to create another VG (say vg01) on it.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 09:09 PM
тАО01-13-2010 09:09 PM
Re: Two VGs over one PV
The vg00 is something special, each tool (ignite, recovery etc.) assumes this disk is only used for this VG.
You need simply another new disk to create a new VG.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2010 10:32 PM
тАО01-13-2010 10:32 PM
Re: Two VGs over one PV
I completely agree with Torsten. Don't even try thinking of touching your VG00 for creating new VG over same PV which vg00 is using, else you end up with a mess with your VG00 too.
Sooraj gives an example by having a new disk and creating partition on it and then used each partition as a different PV for different VGs.
But if your PV is already in use, dont try it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 05:59 AM
тАО01-14-2010 05:59 AM
Re: Two VGs over one PV
The logical volume manager makes a few basic assumptions as its software logic is constructed, among which is that a physical volume may not be a member of more than one volume group.
This assumption results in a very clear, clean, mathematical (set theory) hierarchy:
Filesystem
...consisting of one
Logical volume
...consisting of one or more
Logical extents
...selected from the
Volume Group
...consisting of one or more
Physical Volumes
...consisting of one or more
Physical Extents
...selected from the
Storage media
The LVM like a beautifully crafted topiary tree, groomed and shaped into a work of art over decades of careful planning and hard-won experience.
What you're proposing is like hacking off a limb from the tree and grafting it back on upside down, for the sake of a few lousy bucks worth of disk space.
Would you try to put a file system onto two separate logical volumes? It's the same basic idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 07:16 AM
тАО01-14-2010 07:16 AM
Re: Two VGs over one PV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 08:42 PM
тАО01-14-2010 08:42 PM
Re: Two VGs over one PV
This is really not my decision or wish. I've been asked to do something, and I have to follow orders.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 09:46 PM
тАО01-14-2010 09:46 PM
Re: Two VGs over one PV
1. You start off with device /dev/rdsk/c15t0d6, but then after ioscan you shift to device /dev/rdsk/c19t0d6. I am assuming this is a typo?
it is a pvlink. thats why . leave that , there is no mistake.
2. After you create the PVs, the diskinfo shows their sizes. Where are we specifying these sizes? We need to specify our own sizes.
The first file which we used for idisk.
3 - number of partition
EFI 500MB
HPUX 100% - what ever the space left after creating partition mentioned int he file.
3. Please list the procedure according to my scenario that I've described in my reply above, i.e. vg00 is already present. I don't need to disturb vg00. I need to find the leftover space, then use that space to create another VG (say vg01) on it.
As Torsten said. Forget about all these. I just shown this to show the concept. but never use this practically.
This is nto approved by ME, by HP or anyone.
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 09:52 PM
тАО01-14-2010 09:52 PM
Re: Two VGs over one PV
"This is really not my decision or wish. I've been asked to do something, and I have to follow orders."
THIS IS AM IMPOSSIBLE TASK.
I cant agree that somebody is giving an order which is nonsense and you are doiing it. ( you are a technical person).
* Playing with root disk is foolishness you may need downtime for your production.
I think it is the time to close this thread
:)
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 10:02 PM
тАО01-14-2010 10:02 PM
Re: Two VGs over one PV
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 10:04 PM
тАО01-14-2010 10:04 PM
Re: Two VGs over one PV
Anywayz, it is time to close this thread. Thanks you guys for your responses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2010 10:05 PM
тАО01-14-2010 10:05 PM