- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: New disk to VG
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
Forums
Discussions
Discussions
Discussions
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
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
08-09-2000 08:38 AM
08-09-2000 08:38 AM
I have a 4 GB disk that I use for my database application. When the VG was first created, no options were used. I want to add a new 9 GB disk to this VG. My questions is: will the VG recognize the larger size drive.
Are there any other potential problems I should be aware of.
Thanks for your help.
Sanjay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 08:37 AM
08-09-2000 08:37 AM
Re: New disk to VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 08:42 AM
08-09-2000 08:42 AM
Re: New disk to VG
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 08:42 AM
08-09-2000 08:42 AM
Re: New disk to VG
You may have a problem here. When your 4Gb drive was added to a VG it determines the value of Max PE per PV, which would be around 1024 for the 4Gb drive. Now, when you try to add a larger drive you want max PE per PV to be 9Gb/4 (if your PE size is default 4Mb), which is around 22-2500.
So, do a vgdisplay on the VG with the 4Gb drive. What is max PE per PV set to ? if only 1024 or so then you wont be able to add the 9Gb drive to this VG and use all of it. You will need to rebuild you VG with a higher max PE per PV, or add it to a new VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 08:44 AM
08-09-2000 08:44 AM
Re: New disk to VG
vgextend vg_name pv_name
man on vgextend has some examples.
Note however that if you are going to have largefiles (>2G) in a filesystem, then the filesystem should have largefiles enabled with fsadm - do a man on fsadm and fsadm_vxfs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 08:45 AM
08-09-2000 08:45 AM
Re: New disk to VG
If the volume group was first created with the 4 gig disk and no options were used, the default max_pe is 1016 which with the default pe size of 4, equates to a 4 gig disk.
This means that you can not extend a 9 gig into the volume group because you will not hve enough max_pe.
The volume group will have to be recreated with a larger max_pe to accomodate the 9 gig disk.
Best Wishes,
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 08:50 AM
08-09-2000 08:50 AM
Re: New disk to VG
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 08:52 AM
08-09-2000 08:52 AM
Re: New disk to VG
When creating the volume group , you can specify the maxium PE size , the default is 1016 , however if the max pe size is reached and you haven't specified the -e max_pe value this will adjust itself ( values range from 1 to 65535 )
e.g. if your volume group was created with PE size of 4 , divide 9gig by 4 and see what
the range is ( should be 1 to 65535) ,
One thing you can try is pvcreate the disk ( make it usable by LVM) and then vgextend it to the volume group , then try writing data
to it , as a test.
hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 08:57 AM
08-09-2000 08:57 AM
Re: New disk to VG
Thanks
Sanjay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 09:00 AM
08-09-2000 09:00 AM
Re: New disk to VG
You must divide your PE size into the max_pe to determine the size disk your volume is capable of handling.
Otherwise it will result in an error message that states, "you have #### pe's, need ####" and it will fail. OR the disk will be extended into the group and you will not be able to access the last 5 gig (depending on your LVM patch level.
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 09:01 AM
08-09-2000 09:01 AM
Re: New disk to VG
vgextend is capable of automatically increasing the Max PE per PV (but only up to a certain value).
Go ahead and do it, it won't do any harm. Then use vgdisplay -v to see what you've got.
You can always remove the disk with vgreduce.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 09:03 AM
08-09-2000 09:03 AM
Re: New disk to VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 09:13 AM
08-09-2000 09:13 AM
Re: New disk to VG
How do I know if the different sizes will cause a problem? I have a D370 with 4 internal SCSI differnetial drives. I have Hp-UX 10.20 and I am pretty up to date with my patches.
Thanks
Sanjay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 09:20 AM
08-09-2000 09:20 AM
Re: New disk to VG
You specified that you are working off internal disks of a D class system. As previously stated, if you are patched, the vgextend command will do some of the work for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 09:34 AM
08-09-2000 09:34 AM
Re: New disk to VG
It would be interesting to know the results of the extend. Be sure to keep us posted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 09:47 AM
08-09-2000 09:47 AM
Re: New disk to VG
You probabably don't have the extendability you're looking for as Cheryl indicates.
Take a look at:
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=82f0e7241350e78d0e/screen=ckiDisplayDocument?docId=200000046942437
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 12:20 PM
08-09-2000 12:20 PM
Re: New disk to VG
max_pe is set with vgcreate and will be automatically increased only with vgcreate if used on a disk larger than the defaults of PE=4 X max_pe=1016. For instance, if a 9 gig disk was used during the vgcreate, max_pe would be automatically increased to accomodate the larger disk. This number is determined by taking the PE size and dividing it by the total gig of the disk = max_pe.
There was a LVM thread from 7/20 that began a lengthy discussion on this topic. See "Default max PE - any methodology changes coming?" from Tim Malnati.
Best Wishes,
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2000 04:27 PM
08-09-2000 04:27 PM
SolutionI'm not sure if Sanjay has gotten the answer he needs, so here it is as plain as I can state it. And believe me, I know, because I answer this question constantly :)
When you create a VG under, if you don't specify any options other than the normal disk name and vgname, then the MAX PE per PV will be set to the equivalent of either 4G or the largest disk in the VG (at time of creation).
This means that if you create a VG with only 1G, 2G, or 4G disks in it, then no disk added to that VG will ever have more than 4G of usable space.
If you create a VG with a 2G and an 18G, then you can add disks up to 18G later without losing any space.
The Max PE per PV number is built into the structure of the LVM headers on the disk and CANNOT be changed after the fact. The VG must be recreated from scratch if you wish to use larger disks later.
**********
To avoid this problem, use the -e option with your vgcreate to increase the MAX PE per PV from the get-go.
However, do not assume that you should set this number very large as a matter of course. The larger the number you use, the larger your header/LVM structure will be. This takes up disk space and has an upper limit (effectively), so there's no point in using a value that would accommodate a 48G disk if you don't really expect to ever have anything larger than an 18G in that VG.
I hope this answers you question :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2000 11:17 AM
08-15-2000 11:17 AM
Re: New disk to VG
I am pretty shure you *will* have problems adding a 18GB disk. The default for
a "small" VG is 1016 PE of 4MB each, and only up to 16 PVs. That is way to
few space for today's disks! In my experience it is much better to create the VGs
with bigger, but fewer PEs, more PVs, and less LVs (who needs 256 filesystems?),
i.e. for data VGs something like:
vgcreate -s 64 -e 1024 -p 64 -l 64 /dev/vgXX ...
and for root&boot VGs like:
vgcreate -s 64 -e 1024 -p 4 -l 16 /dev/vg00 ... (during installation)
The bad news are: you will have to re-install your whole OS! Try "Ignite/UX"
with the command "make_recovery -Aiv", boot from that tape, and boot from
that tape. Then change the LVM setup, and restore to the "new" disk,
leaving the "old" untouched.
Boot from the new disk, "vgimport" your data VGs, relax ;-)
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2000 11:20 AM
08-15-2000 11:20 AM
Re: New disk to VG
I am pretty shure you *will* have problems adding a 18GB disk. The default for
a "small" VG is 1016 PE of 4MB each, and only up to 16 PVs. That is way to
few space for today's disks! In my experience it is much better to create the VGs
with bigger, but fewer PEs, more PVs, and less LVs (who needs 256 filesystems?),
i.e. for data VGs something like:
vgcreate -s 64 -e 1024 -p 64 -l 64 /dev/vgXX ...
and for root&boot VGs like:
vgcreate -s 64 -e 1024 -p 4 -l 16 /dev/vg00 ... (during installation)
The bad news are: you will have to re-install your whole OS! Try "Ignite/UX"
with the command "make_recovery -Aiv", boot from that tape, and boot from
that tape. Then change the LVM setup, and restore to the "new" disk,
leaving the "old" untouched.
Boot from the new disk, "vgimport" your data VGs, relax ;-)
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2000 11:22 AM
08-15-2000 11:22 AM
Re: New disk to VG
I am pretty shure you *will* have problems adding a 18GB disk. The default for
a "small" VG is 1016 PE of 4MB each, and only up to 16 PVs. That is way to
few space for today's disks! In my experience it is much better to create the VGs
with bigger, but fewer PEs, more PVs, and less LVs (who needs 256 filesystems?),
i.e. for data VGs something like:
vgcreate -s 64 -e 1024 -p 64 -l 64 /dev/vgXX ...
and for root&boot VGs like:
vgcreate -s 64 -e 1024 -p 4 -l 16 /dev/vg00 ... (during installation)
The bad news are: you will have to re-install your whole OS! Try "Ignite/UX"
with the command "make_recovery -Aiv", boot from that tape, and boot from
that tape. Then change the LVM setup, and restore to the "new" disk,
leaving the "old" untouched.
Boot from the new disk, "vgimport" your data VGs, relax ;-)
HTH,
Wodisch