Operating System - HP-UX
1833184 Members
3078 Online
110051 Solutions
New Discussion

Cannot unmount /tmp directory

 
SOLVED
Go to solution
Augusto César
Advisor

Cannot unmount /tmp directory

Hello!

I tried increase the size of /tmp directory by SAM but this is show to me:

Cannot unmount /tmp: Device busy.

I am the only to use the server. This server is a HP-UX 10.20 9000/861 model.

# cat /etc/fstab
/dev/vg00/lvol3 / hfs defaults 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /home hfs defaults 0 2
/dev/vg00/lvol5 /opt hfs defaults 0 2
/dev/vg00/lvol6 /tmp hfs defaults 0 2
/dev/vg00/lvol7 /usr hfs defaults 0 2
/dev/vg00/lvol8 /var hfs defaults 0 2

# cat /etc/mnttab
/dev/vg00/lvol3 / hfs defaults 0 1 1115477484
/dev/vg00/lvol1 /stand hfs defaults 0 0 1115477485
/dev/vg00/lvol8 /var hfs defaults 0 0 1115477491
/dev/vg00/lvol7 /usr hfs defaults 0 0 1115477491
/dev/vg00/lvol6 /tmp hfs defaults 0 0 1115477491
/dev/vg00/lvol5 /opt hfs defaults 0 0 1115477491
/dev/vg00/lvol4 /home hfs defaults 0 0 1115477491

Regards,

Augusto
(Brazil)
11 REPLIES 11
Alex Lavrov.
Honored Contributor
Solution

Re: Cannot unmount /tmp directory

You can't unmount /tmp because there are processes that uses it, even if you are alone.

You must boot in single user mode and then resize it.

Here is how to do it:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=514371
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Augusto César
Advisor

Re: Cannot unmount /tmp directory

Hi Alex,

Thanks for your answer, but how I resize the /tmp directory in a single user mode?

Regards,

Augusto
Alex Lavrov.
Honored Contributor

Re: Cannot unmount /tmp directory

You can use "extendfs" as it described here:

http://docs.hp.com/en/B2355-90681/extendfs.1M.html

I don't give a damn for a man that can only spell a word one way. (M. Twain)
Hoang Chi Cong_1
Honored Contributor

Re: Cannot unmount /tmp directory

Hi
Do follow steps to unmount /tmp mount point (by command line):
1. #fuser -cu /tmp
2. #fuser -kcu /tmp
3. #umount /tmp


I dont't like SAM :):):)

Goodluck!
Regard,
Hoang Chi Cong
Looking for a special chance.......
Isralyn Manalac_1
Regular Advisor

Re: Cannot unmount /tmp directory

Hi Augusto,

You need to go to single user mode to resize /tmp. Once in single user mode, perform the following:

#mount /usr
#lvextend -L /dev/vg00/lvol6
#extendfs /dev/vg00/rlvol6
#mount /tmp
#bdf (to verify your change)

Then you go to multi-user mode.

Regards,

Isralyn
Geoff Wild
Honored Contributor

Re: Cannot unmount /tmp directory

Do you have Online JFS?

If yes - then you can extend it on the fly - with out single user mode:

Say /tmp is /dev/vg00/lvol4 and you want it to be 1GB:

lvextend -L 1024 /dev/vg00/lvol4
fsadm -b 1024M /tmp

Rgds...Geoff
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.
Hoang Chi Cong_1
Honored Contributor

Re: Cannot unmount /tmp directory

Hey, just have some modify from previous post:

#mount /usr
#lvextend -L /dev/vg00/lvol6
#extendfs -F hfs /dev/vg00/rlvol6
#mount /tmp
#bdf (to verify your change)

Then go to multi-user mode.
The fastes way to go to single user mode is by using shutdown command:
#shutdown

(no option!)
After extend, just type init 3 to to to level 3 or reboot the server.

Regard,
Hoang Chi Cong
Looking for a special chance.......
Rashid Hamid
Regular Advisor

Re: Cannot unmount /tmp directory

Hi

You must in single user mode to umount /tmp unless you have onlineJFS
I'm Parit Madirono/Parit Betak Boyz
Alex Lavrov.
Honored Contributor

Re: Cannot unmount /tmp directory

Well, if you look in the post, all of the filesystems are "hfs", so OnlineJFS, even if it's installed cannot help.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Hoang Chi Cong_1
Honored Contributor

Re: Cannot unmount /tmp directory

So that I gave this command as my last post:
#extendfs -F hfs /dev/vg00/rlvol6

Regard,
Hoang Chi Cong
Looking for a special chance.......
Augusto César
Advisor

Re: Cannot unmount /tmp directory

Hello!

Its work! Thank you very much for yours answers.

Augusto.