1838666 Members
4647 Online
110128 Solutions
New Discussion

increasing the of /tmp

 
GNOM
Frequent Advisor

increasing the of /tmp

Hi all ,

I must increase the size of the /tmp file system on HP-UX 11.11. HOW can I perform this job. Thanks for your help !!!
5 REPLIES 5
MarkSyder
Honored Contributor

Re: increasing the of /tmp

Personally, I would do this on a Friday afternoon when the users have finished early - I can then reboot the server first to make sure there are no processes writing to /tmp. But I don't know what time your users finish, so this may not be practical.

Assuming you can do this, I would use SAM as it is easier than the command line. SAM -> discs/filesystems -> logical volumes -> actions -> extend.

Select the lvol containing /tmp (this should be displayed) and you will be guided through the next steps.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
eran maor
Honored Contributor

Re: increasing the of /tmp

Hi

you cant extend the /tmp is when the system is up and running , unless you have online-jfs .

if you have online-jfs you just need to do this :

lvextend -L newsize /dev/vgXX/lvolX
fsadm -F vxfs -b newsize

if not , you need to boot to single username , do lvextnd -L newsize
( remember that when issue lvextend the new size is with m.b )

so the commands are :

lvextend -L larger_size /dev/vg00/lvol1

extendfs -F hfs /dev/vg00/rlvol1

mount /dev/vg00/lvol1 mount_directory


eran maor
love computers
bhavin asokan
Honored Contributor

Re: increasing the of /tmp

hi,

check how much free space in vg00
#vgdisplay vg00
total free space=free extents*1 extents size.
check any users or processes are accessing /tmp

#fuser -cu /tmp

if any processes or applications are accesing /tmp --shutdown that process or applications.

again if any users are accessing the /tmp
then (assuming /dev/vg00/lvol6 is your /tmp as per standard confogurations.)

#fuser -ku /dev/vg00/lvol6

then
#umount /tmp
#lvextend -L size-in-MB /dev/vg00/lvol6
#extendfs -F vxfs /dev/vg00/rlvol6
#mount -a

warning:- remember extendfs is usring rlvol6 and not lvol6.

size-in-MB is the new size of the lv which should be larger than current size.it should be specified in MegaBytes.

regds,



bhavin asokan
Honored Contributor

Re: increasing the of /tmp

hi,

if you are using online-jfs in your system the do the following

#fsadm -F vxfs -b size-in-MB /tmp

note: fsadm: /dev/vg00/rlvol6 is currently 32768 sectors - size will be increased
fsadm: attempt to resize /dev/vg00/rlvol6 failed with errno 28
You may get this type of message if you are trying to extend a filesystem that is 100% full. If that is the case, you must get the usage % below 100, to 98 or 99, and then try your fsadm command again.


regds,
MarkSyder
Honored Contributor

Re: increasing the of /tmp

Before you go too far, I think it's worth pointing out that /tmp isn't always lvol6: I've looked at two of my systems and on one it's lvol4 and the other lvol5.

Mark
The triumph of evil requires only that good men do nothing