1844611 Members
2489 Online
110233 Solutions
New Discussion

Increase a size of /tmp

 
SOLVED
Go to solution

Increase a size of /tmp

Hi

Who to increase a size of /tmp ?
Who to increase a size of swap ?

Thanks
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: Increase a size of /tmp


You turn on/make swap with "swapon".

To increase /tmp, if you don't have online jfs, then you will probably need to go into single user mode. Either way you use lvextend.

live free or die
harry
Live Free or Die
Sandip Ghosh
Honored Contributor
Solution

Re: Increase a size of /tmp

You can increase the size of swap without any problem. You can do it through SAM or through command line. Create one new logical volume preferebly other than vg00. and add the swap by swapon command.

Do you have Advanced vxfs in your system? If it is there you can do it by fsadm command. First extend the logical volume of /tmp by lvextend. then do a fsadm on /tmp.

lvextend /dev/vg00/
fsadm -b /tmp

If you don't have Advanced vxfs, you have to boot in single user mode and you have to do lvextend and extendfs.

Sandip
Good Luck!!!
S.K. Chan
Honored Contributor

Re: Increase a size of /tmp

Assuming you don't have OnlineJFS
1) Increase /tmp (eg: /dev/vg00/lvol5)
- Bootup in single user mode.
- # lvextend -L 800 /dev/vg00/lvol5
==> increase it to 800MB
# extendfs /dev/vg00/lvol5
- Reboot

2) Increase swap (ie adding 200MB swap)
- Create logical volume.
# lvcreate -L 200 -n swap -C y -r n /dev/vg00

- Enable swap using swapon command.
# swapon -p 1 /dev/vg00/swap

Re: Increase a size of /tmp

Hi for all,

I try do it in single user mode.

Thanks for all