- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM extending MAX PE per 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
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
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
тАО02-19-2001 12:58 AM
тАО02-19-2001 12:58 AM
LVM extending MAX PE per VG
A VG named vgtest with one disk of 2GB (/dev/dsk/c3t0d0 - 500 PE)
I want to add a second disk of 4GB (/dev/dsk/c3t0d1) and get the warning there's not enough max. PE per VG.
The disk, however is added, but I only see 2GB of the 4GB.
In the meantime theres data on both disks.
I know I can only change the MAX PE by recreating the VG.
Will following procedure work without loosing any data on my disks?
And if not, can you please suggest another way of working that is as quick and safe as possible:
1. vgexport /dev/vgtest
2. vgcreate /dev/vgtest /dev/dsk/c3t0d1
3. vgextend /dev/vdsk/c3t0d0
thanks in advance, an answer is very urgent!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 01:12 AM
тАО02-19-2001 01:12 AM
Re: LVM extending MAX PE per VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 01:16 AM
тАО02-19-2001 01:16 AM
Re: LVM extending MAX PE per VG
Yes, this will work but if you want to add a 8GB disk next week, you will get the same problem.
In vgcreate, use the "-s" parameter in order to modify the max pe per pv value.
Give it a value which allox you to add 9 or 18 GB disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 01:16 AM
тАО02-19-2001 01:16 AM
Re: LVM extending MAX PE per VG
So, does that mean that my procedure will work?
Sorry, it's still not clear for me, can you please give me the detailed commands to use in my particular case.
Thanks anyway for the fast reply!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 01:35 AM
тАО02-19-2001 01:35 AM
Re: LVM extending MAX PE per VG
Basically you will need to backup your data, remove the VG and then recreate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2001 07:01 AM
тАО02-19-2001 07:01 AM
Re: LVM extending MAX PE per VG
If your vg is not root vg (vg00):
Create a new VG with your new disk.
Create all lvols as they are in your old vg
copy from old to new using dd
# dd if=/dev/oldvg/rlvol1 of=/dev/newvg/rlvol1 bs=1024k
vgexport both vg
mkidr /dev/oldvg
mknod /dev/oldvg/group c .......
vgimport /dev/oldvg /dev/dsk/newdisk.
Do all this in single user.
Boot again and test that all is OK.
Then you can pvcreate -f olddisk and vgextend .
If your vg is vg00 use make_recovery;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2001 07:11 PM
тАО02-20-2001 07:11 PM
Re: LVM extending MAX PE per VG
So you need to make decission how big the disks will be added to this VG in the near future and create VG with proper value to MAX PE perf VG.
NOTE: you may think I will just give a number which will allow me to add 100GB disk in future, but this is going to consume some disk space in each volume of the voulme group.. so by giving any large number for MAX PE will waste the diskspace..
So pick number which is more realistic
HTH
Manju