Operating System - HP-UX
1752635 Members
5842 Online
108788 Solutions
New Discussion юеВ

How to increase /tmp filesystem

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

How to increase /tmp filesystem

Hello,

I need to increase /tmp filesystem but as this is nounted in vg00 and used by system I can't do it as usual.

What's the procedure to increase vg00 filesystems?

Thanks in advance for your help.
Regards,

Carles
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: How to increase /tmp filesystem

Shalom

lvextend -L Megabytes /dev/vg00/lvol
extendfs
Must umount before using extendfs

You can't extend root this way.

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
IT_2007
Honored Contributor

Re: How to increase /tmp filesystem

If you have online JFS installed on the system then you can do it online.

lvextend -L /dev/vg00/lvol6
fsadm -F vxfs -b$((1024*totalsize)) /tmp
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to increase /tmp filesystem

HI:

If you don't have OnlineJFS, then boot into single user mode and use 'lvextend' and 'extendfs'. These commands reside in '/sbin' as well as '/usr/sbin' so you can do this type of operation easily. Once done, reboot for normal startup.

Regards!

...JRF...
DCE
Honored Contributor

Re: How to increase /tmp filesystem



If all else fails:
to bring the system up in single use mode
mount /usr (so you have access to the appropriate commands)
extend /tmp
reboot the server and bring it up normally
Sp4admin
Trusted Contributor

Re: How to increase /tmp filesystem

Hi Carles,

You have to be able to unmount /tmp before you can extend the file system.

lvextend -L "Megabytes size" /dev/vg00/lvo4
extendfs
mount filesystem


sp,


Carles Viaplana
Valued Contributor

Re: How to increase /tmp filesystem

Thanks to all for your help.

Finally, I reboot system in single user mode and then I'll increase size.

Regards,

Carles