cancel
Showing results for 
Search instead for 
Did you mean: 

Increasing /tmp

 
Jeffrey F. Goldsmith
Super Advisor

Increasing /tmp

I have an L2000 with HP-UX 11.23 installed. There are two 9.3GB hard drives that are stripped and there is 1184PE free located on the second drive. When I try to lvextend /tmp I keep getting the following error:


root: /root ==> lvextend -L 500 /dev/vg00/lvol4
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol4" could not be extended.
lvextend: Couldn't retrieve the list of the physical volumes
belonging to volume group "/dev/vg00".
Failure possibly caused by strict allocation policy


Total PE 4339
Alloc PE 3155
Free PE 1184


Any ideas as to what my problem could be?
9 REPLIES
Steven E. Protter
Exalted Contributor

Re: Increasing /tmp

Shalom,

Could be a strict allocation policy.

lvchange can fix this. See the man page.

take a look at pvdisplay -v on both disks.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeffrey F. Goldsmith
Super Advisor

Re: Increasing /tmp

root: /root ==> pvdisplay /dev/dsk/c2t0d0
--- Physical volumes ---
PV Name /dev/dsk/c2t0d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 8
PE Size (Mbytes) 4
Total PE 2169
Free PE 0
Allocated PE 2169
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

root: /root ==> pvdisplay /dev/dsk/c2t2d0
--- Physical volumes ---
PV Name /dev/dsk/c2t2d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 5
PE Size (Mbytes) 4
Total PE 2170
Free PE 1184
Allocated PE 986
Stale PE 0
IO Timeout (Seconds) default


root: /root ==> lvchange -s n /dev/vg00/lvol4
lvchange: Only strict allocation is allowed for striped logical volumes.



root: /root ==> lvchange -s y /dev/vg00/lvol4
Logical volume "/dev/vg00/lvol4" has been successfully changed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
root: /root ==> lvextend -l 200 /dev/vg00/lvol4
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol4" could not be extended.
lvextend: Couldn't retrieve the list of the physical volumes
belonging to volume group "/dev/vg00".
Failure possibly caused by strict allocation policy
Jeffrey F. Goldsmith
Super Advisor

Re: Increasing /tmp

I am still having trouble with increasing /tmp on my server. I tried to do an lvextend again this morning and keep getting errors. Anyone have any ideas on how I can increase /tmp?


root: /root ==> lvextend -L 500 /dev/vg00/lvol4
Warning: rounding up logical volume size to extent boundary at size "504" MB for striping.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol4" could not be extended.
lvextend: Couldn't retrieve the list of the physical volumes
belonging to volume group "/dev/vg00".
Failure possibly caused by strict allocation policy
Pete Randall
Outstanding Contributor

Re: Increasing /tmp

Do yourself a favor. Just do an Ignite backup and use it to rebuild your vg00, resizing your LVs in the process.

Even if you do get the LV extended, you still have to enlarge the /tmp file system with extendfs, which requires that the volume be unmounted. The /tmp filesystem is virtually impossible to unmount as it's used by everything, everywhere.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Increasing /tmp

Oh, I forgot to say that you really ought to get rid of the striping during your rebuilding process. The performance gained from striping is hardly worth the pain when it comes to your root VG.


Pete

Pete
Jeffrey F. Goldsmith
Super Advisor

Re: Increasing /tmp

This server has not been put into production yet so I can take it down whenever I need to so that isn't a problem.
Jeffrey F. Goldsmith
Super Advisor

Re: Increasing /tmp

You say to get rid of the stripping. Then how would I be able to use both of the 9GB hard drives in my vg00? When I did the cold install it only saw one drive and would not continue because once the drive filled up it wouldn't finish the install.

When I restarted the cold install I chose both 9GB hard drives but I had to strip them so I could use both of them for the OS install. Did I miss something on the initinal install?
Pete Randall
Outstanding Contributor

Re: Increasing /tmp

Yes, you can tell the install what drive(s) you want included - without having to stripe them. I can't remember exactly where you select this option but I'll take a look and see if I can find it.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Increasing /tmp

From the "Installation and Update Guide":

Step 7. On the Root Group screen, specify how many disks you want placed into the root volume group. If you have more than one disk, you may select Yes to choose the Striping option.

I take that to mean you don't have to select striping across the selected disks.


Pete

Pete