- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cannot extend logical volume for /var
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-29-2001 06:24 AM
08-29-2001 06:24 AM
Cannot extend logical volume for /var
lvextend -l 976 /dev/vg00/lvol8
The response I got was:
lvextend: not enough free physical extents available. Logical volume "/dev/vg00/lvol8" could not be extended. Failure possibly caused by strict allocation policy.
Any assistance in this matter would be greatly rewarded!
Thanks,
Robert M. Anderson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 06:32 AM
08-29-2001 06:32 AM
Re: Cannot extend logical volume for /var
You also say you have 396PE on one disk and 2396 on another. Is the disk with 2396 PE the one that is the mirrored copy?
I think your problem is the when you try to do the extend to 976LE, which is an increase of 732, you are running short of LEs on one of the disks which holds one copy of the mirror of /var. If one disk only has 396 PE, and your mirror policy is strict, then you won't be able to extend the LV because it needs all the extents for the mirror to be on the same disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 06:34 AM
08-29-2001 06:34 AM
Re: Cannot extend logical volume for /var
You only have enough free extents on the mirror disk, not the primary disk. With mirroring its disk to disk, so with strict allocation policy on you can only have primary data on one disk and mirrored data on a separate disk.
I would surmise that your primary disk is where /var is and you only have 396 extents available to extend it here. Your mirror disk has a lot more free, 2396, so increasing the mirror wont be a problem.
Still, if currently /var is 244 LE (244*4=976 MB - and mirrored to another 976 MB on the mirror disk) why are you trying to increase it so much, from 244 LE to 976 LE, thats a huge increase from 976 MB to 3.9 GB ! Surely you want to only crease /var a little, say from 976 MB to say 1200 MB. For this use;
lvextend -L 1200 /dev/vg00/lvol8 (Capital L for MB)
For this you do have enough free space on the primary and mirror disks and the command should work fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 06:34 AM
08-29-2001 06:34 AM
Re: Cannot extend logical volume for /var
when you are in single user mode just run sam from /usr/sbin/sam
take a look... poking around in a text-gui interface might help you see what you are missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 06:39 AM
08-29-2001 06:39 AM
Re: Cannot extend logical volume for /var
You undoubtedly have "strict" allocation for /var. Look at the allocation policy with:
# lvdisplay /dev/vg00/lvolX
You will probably see "Allocation strict". Mirror copies of a logical extent can be allocated to share or not share the same physical volume or physical volume group. For strict allocation, mirrors of a logical extent cannot share the same physical volume. This is the default.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 06:44 AM
08-29-2001 06:44 AM
Re: Cannot extend logical volume for /var
I got your point !
Your command is "lvextend -l 976 /dev/vg00/lvol8"
This extends in number of LOGICAL EXTENT so you may use it like : "lvextend -l 244 /dev/vg00/lvol8 "
If you want to express the extention in MegaBytes , it's :
lvextend -L 976 /dev/vg00/lvol8
Note:
-l lowercase L expresses LE.
-L Uppercase L expresses MB.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 06:46 AM
08-29-2001 06:46 AM
Re: Cannot extend logical volume for /var
Robert M. Anderson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 06:48 AM
08-29-2001 06:48 AM
Re: Cannot extend logical volume for /var
Looks you have some logical volumes defined, which are not mirrored on the primary disk.
One of the ways you can fix this is figure out which LVs are defined only one disk and then pvmove them to the other disk, what this would do is free up some PEs on the first disk and then you can increase /var.
you can do something simple like
vgdisplay -v /dev/vg00 |egrep "LV Name | Used PV"
which would return the LV Name and the number of physical volumes used, this would help you figure out which LV hasn't been mirrored.
You can then use pvmove , for example lvol9 is not mirrored and your disks are c0t0d0 and c1t1d1, you could do something like
pvmove /dev/vg00/lvol9 /dev/dsk/c0t0d0 /dev/dsk/c1t1d1
(Make sure you have a good backup just as a precautionary measure)
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 06:50 AM
08-29-2001 06:50 AM
Re: Cannot extend logical volume for /var
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 06:52 AM
08-29-2001 06:52 AM
Re: Cannot extend logical volume for /var
Given your last comment, I'd also consider creating some symbolic links from various subdirectories of /var to some new mountpoints. This should not only improve performance but allow you to monitor and manage the containers that fill the most rapidly.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 11:27 AM
08-29-2001 11:27 AM