- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvextend oddity
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
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
тАО08-11-2003 06:50 AM
тАО08-11-2003 06:50 AM
lvextend oddity
I have never added a disk drive before but read some forums and man pages on commands and tried it out.
What happened was I added a 9.1 GB disk, made it an eligible physical volume, extended a volume group and extended a logical volume to the new disk (or so I thought). I got the "Not enough free physical extents" message and tried a smaller number for the lvextend command.
I rebooted and received a core dump and bdf does not reflect the added disk. The system came up fine (except for the dump).
Attached is a (large) document that has the commands I entered and the output from those commands.
What am I missing? Thanks.
HP-UX 11.0, A3311A disk enclosure on HP 9000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2003 06:52 AM
тАО08-11-2003 06:52 AM
Re: lvextend oddity
Here is how this happens:
Maximum PE count is set when you add the first PV to the VG. If the 2nd PV is bigger than the first, then he can't fit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2003 07:01 AM
тАО08-11-2003 07:01 AM
Re: lvextend oddity
Did you extend the filesystem after extending the logical volume ?
fsadm or extendfs is needed to extend the filesystem before the space will be available to the filesystem and before it will show up in bdf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2003 07:01 AM
тАО08-11-2003 07:01 AM
Re: lvextend oddity
Possible solution is: Create a new VG without using defaults (set Max PE/PV and PV size to a desired value) and with 9GB disk. Take backups of old VG data, remove that VG and add those disks to the new VG. Then restore data from backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2003 07:10 AM
тАО08-11-2003 07:10 AM
Re: lvextend oddity
# man vgcreate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2003 09:23 AM
тАО08-11-2003 09:23 AM
Re: lvextend oddity
# vgdisplay -v /dev/vg01 will show MAX PE per PV.
Volume group property needs to be updated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2003 04:16 AM
тАО08-12-2003 04:16 AM
Re: lvextend oddity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2003 06:08 AM
тАО08-12-2003 06:08 AM
Re: lvextend oddity
it is all possibel what you have made. But you have added a 9GB disk to a VG who is restricted to 1016 PE per PV (each 4MB = max 4064MB per PV). So you must be aware that you will waste the half of the size of the 9GB disk.
So I recommend you to create a new vg with 4 lvol in there with the size you need for each lvol of your vg01 and then copy the data to new lvol's. Use the double of max PE what is possible (if PE size is 4MB). ie. 9GB disk = max. 2250 PE. But you take 4500 in case you will add the next time a 18GB disk to that vg.
After the copy is complete and correct (unmount the old lvols and mount the new one on the mount points) you can add the 4GB disk to the new vg.
That what I would do. Otherwise you came in trouble if you must extend our vg again no more free PE and you have only one 18GB disk you can add. Then you waste a lot of space. Keep that in mind.
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2003 08:52 PM
тАО08-12-2003 08:52 PM
Re: lvextend oddity
There is small problem, infact your logical volume is not extended so change will not reflect.
In your case you can use only 1016 PE out of 2000 Odd PE. this value is defined at the time of cration of voulme group.
So you can extend you logical volume maximum by 1016x4=4064MB (Default 1PE=4MB) but you specified 5000 MB so lvextend command got failed.
You again run command with 4000 MB argument and extend FS also then it will reflect your new size.
Sunil