1753797 Members
7347 Online
108805 Solutions
New Discussion юеВ

increase tmp file system

 
SOLVED
Go to solution
rajesh73_1
Frequent Advisor

increase tmp file system

how to increase /tmp file system in hp-ux
25 REPLIES 25
Suraj K Sankari
Honored Contributor

Re: increase tmp file system

HI,

# vgdisplay vg00 #Check, the free space in vg00 and confirmed /tmp is in vg00:

Look for ├в PE Size (Mbytes)├в and ├в Free PE├в and multiply them.
The result is the free space in MB in vg00.

# lvextend ├в L /dev/vg00/lvolx # Extend the logical volume:
# fsadm -F vxfs -b /mountpoint # Extend the filesystem:

NOTE: You need to add M directly to the lv_size MB value.

Suraj
Ganesan R
Honored Contributor

Re: increase tmp file system

Hi Rajesh,

Just check if you have free space on vg00.

#vgdisplay vg00

if free space is there and you have online JFS product installed, you can increase /tmp online.

#swlist |grep -i online

#lvextend -L 5000 /dev/vg00/lvol4 (here 5000MB is new total size)

#fsadm -F vxfs -b 5000M /tmp

That's it.
Best wishes,

Ganesh.
Michal Kapalka (mikap)
Honored Contributor

Re: increase tmp file system

Hi,

if you don't have JFS online license activated,

boot to single user mode and use extendfs.

mikap
Sajjad Sahir
Honored Contributor

Re: increase tmp file system


Dear Rajesh

if u want to increase the space first u have to check vgoo volume group space
if space is there u can extend the logical volume
1. by using lvextend command
once logical volume extended u can extend file system
if u have online jfs u can use fsadm command to extend the file system other wise u have to use extendfs command

thanks and regards

sajjad sahir
rajesh73_1
Frequent Advisor

Re: increase tmp file system

already i have 1gb /tmp filesystem

now i want to 5gb space to /tmp file system
i entered the below command

#lvextend -L 5120 /dev/vg00/lvol6
Logical volume "/dev/vg00/lvol6" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con

and thaen

# fsadm -F vxfs -b 5120 /tmp
fsadm: You don't have a license to run this program

pls help me

regds
Michal Kapalka (mikap)
Honored Contributor

Re: increase tmp file system

hi,

you need to umount the mounted /tmp end use

extendfs instead of fsadm.

mikap
avizen9
Esteemed Contributor
Solution

Re: increase tmp file system

Hello Rajesh,
first you check that /tmp is belong to which vg
1) bdf
will show you full path for /tmp
for example my system it having as below.

/dev/vg00/lvol5 4096000 19363 3821861 1% /tmp

since /tmp is belong to vg00 as lvol5,

2)now check vgdisplay /dev/vg00
in vgdisplay result under free PE you should have some value if it is zero then you can not extend.

just assume you have below value in your vgdisplay

PE Size (Mbytes) 4
Free PE 2168

you have still (4*2168) 8.46875 gb free space in your vg00.

now
assume you dont have online JFS
boot system in single user mode
umount /tmp
do
3)lvextend

that's all,
thanks,

Fabio Ettore
Honored Contributor

Re: increase tmp file system

Hi,

so you don't have OnlineJFS, check also by

swlist -l product |grep -i online

You really need to umount /tmp which I believe you have to do in single user mode and

extendfs -F vxfs /dev/vg00/rlvol6

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Michal Kapalka (mikap)
Honored Contributor

Re: increase tmp file system

hi,

try to unmount the /tmp if it's not possible,
boot the system to single user mode -is

extendfs -F vxfs /dev/vg00/rlvol6

mikap