Operating System - HP-UX
1821559 Members
2497 Online
109633 Solutions
New Discussion

how to extend /tmp partition in hp-ux

 
Niru2012
Advisor

how to extend /tmp partition in hp-ux

Dear Team

 

   Please help me to extend /tmp partion in hpux.

 

Regards

Niruk**bleep**ha

7 REPLIES 7
Ajin_1
Valued Contributor

Re: how to extend /tmp partition in hp-ux

 

use extendfs command

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Niru2012
Advisor

Re: how to extend /tmp partition in hp-ux

# umount /tmp # lvextend -L 1024 /dev/vg00/lvol4 # extendfs -F vxfs /dev/vg00/rlvol4 # mount /dev/vg00/lvol4 /tmp #bdf /tmp
Patrick Wallek
Honored Contributor

Re: how to extend /tmp partition in hp-ux

If you have online JFS installed there is no need to unmount /tmp.

 

lvextend -L 1024 /dev/vg00/lvol4

 

fsadm -b 1024m /tmp

Yogesh-Puranik
Occasional Advisor

Re: how to extend /tmp partition in hp-ux

Hi ,

 

Steps :

 

1] check the if you have JFS online installed on your HP-UX box( Usually post HP-UX 11.23 ,it is by default present)

#swlist |grep -i online

 

2] If JFS online is installed ,Check if you have enough PE's avaialable under vg00 to extend file system

#vgdisplay -v vg00          (Check for Free PE)

 

3]If you have enough PE's available , you can extend the file system to that size (Free space = Free PE x PE size)

#lvextend -L <Free space> <logical Volume name>

#fsadm -b Freespace M /tmp

 

4]Cross check if the space is increased,

# bdf /tmp

 

Regards

Yogesh

Niru2012
Advisor

Re: how to extend /tmp partition in hp-ux

Hi all

 

   This has vxfs. So I tried to unmount /tmp and increase the tmp. But I am getting following error when trying to unmount.

 

# umount /tmp

umount: cannot unmount /tmp : Device busy

umount: return error 1

 

Then tried followings and kill processes.

 

# fuser -ku /dev/vg00/lvol4

/dev/vg00/lvol4:     1287o(root)    1296o(root)    1305o(root)    1317o(root)    2083mo(root)    2075mo(root)    2074mo(root)

 

# kill -9 1287

Sh: kill :A specified process does not exist

 

Please let me know how to unmount /tmp with this situation.

 

Regards

Niru

Dennis Handly
Acclaimed Contributor

Re: how to extend /tmp partition in HP-UX

>Then tried following and kill processes.
># fuser -ku /dev/vg00/lvol4
/dev/vg00/lvol4:     1287o(root)    1296o(root)    1305o(root)    1317o(root)    2083mo(root)    2075mo(root)    2074mo(root)
># kill -9 1287

 

The -k would have killed those processes.  What does "fuser -u /dev/vg00/lvol4" show now?

It is very dangerous to "kill -9" various root processes and you should look up what's running on each of those PIDs.

You may make the system unusable and you have to reboot.  And if you do that, might as well bring it up in single user mode.

Niru2012
Advisor

Re: how to extend /tmp partition in HP-UX

Hi

 

   I am going to ectend /tmp in single user mode due to some complications when it is in online. Please let me know the steps for extending /tmp in single user mode.

 

Regrds

Niruk**bleep**ha