1835270 Members
2653 Online
110078 Solutions
New Discussion

Re: How to extend /tmp ?

 
SOLVED
Go to solution
Deepu Chakravarty
Regular Advisor

How to extend /tmp ?

I need to add more space in /tmp. How I should do that?
23 REPLIES 23
Sandy Chen
Honored Contributor

Re: How to extend /tmp ?

Hi,

First check if you have OnlineJFS,

#swlist | grep OnLineJFS

if you do have it, you can use SAM to extend /tmp

if you don't have it,
you must to unmount /tmp and then

# umount /dev/vg00/lvol6
# lvextend -L wanted_size /dev/vg00/lvol6
# extendfs -F vxfs /dev/vg00/rlvol6
# mount /dev/vg00/lvol6

regards,
Sandy
I never think of the future. It comes soon enough.
Devender Khatana
Honored Contributor

Re: How to extend /tmp ?

Hi,

Files in /tmp commonly grow too much and restart of applications normally clears them. Apart from this somebody might have put some test files in /tmp as well. How much is the space allocated to /tmp.

Online JFS will allow you to grow the size on the fly. Without Online JFS you can do it by rebotting the server and going into single use mode. An alternate to avoid reboot if do not have Online JFS is you create some new small file system and mount it on /tmp/abc where abc is the directory taking more space in /tmp, this particular atleast should be stopped while mounting file system and the file from /tmp/abc should be removed or moved to new file system.

HTH,
Devender
Impossible itself mentions "I m possible"
Sivakumar TS
Honored Contributor

Re: How to extend /tmp ?

Hi,

Some applications may use the /tmp while running in multiuser mode.

I suggest you to Boot the system into single user mode and do the above action, and boot it back to multi user mode to avoid any issues.

Regards,

Siva.
Nothing is Impossible !
Senthil Kumar .A_1
Honored Contributor
Solution

Re: How to extend /tmp ?

Hi Deepu,

Firstly, if you have Online JFS , u wouldn't have much issues, please follow as directed by the previous response.

If not, it is important you need to go the single user mode, as the multi user mode would not allow you to umount tmp volume for extending.

There is a simple solution though, for not going to single user mode.

in my example

$ bdf /tmp
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 2097152 4976 2078200 0% /tmp

i) extend your tmp lv,

lvextend -L /dev/vg00/lvol4

ii) edit /etc/inittab
before brcl entry (NOTE : very important) add the following...
fsxt::sysinit:/sbin/extendfs /dev/vg00/lvol4
/dev/console 2>&1

Now reboot the box.

Once the system is up, you will have your tmp volume extended to your desired size.

Now you can remove the entry that u added to your /etc/inittab file and save it.

Advantage is ,you do not require to go to sungle user mode.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Deepu Chakravarty
Regular Advisor

Re: How to extend /tmp ?

Hi,
I don't have GSP configured in the server. How the server can be put on 'single user mode'? I can't see the booting process. So I can't see the '10sec' message too.
Arunvijai_4
Honored Contributor

Re: How to extend /tmp ?

Hi Deepu,

As others specified, Do you have onlineJFS installed on your server? Also, check this thread

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=941949

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Senthil Kumar .A_1
Honored Contributor

Re: How to extend /tmp ?

Hi deepu,

As i have told in my earlier post, if you follow that method, u don't require to go to single user mode. Consequently u would not require GSP prompt either. Please read my previous response.

Regards,
Senthil.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Sandy Chen
Honored Contributor

Re: How to extend /tmp ?

Hi Deepu,

If you can't go to the single user mode, then you may want to try Senthil Kumar suggestion to edit the inittab, so you don't have to go to single user mode

regards,
Sandy
I never think of the future. It comes soon enough.
Deepu Chakravarty
Regular Advisor

Re: How to extend /tmp ?

I have added the line as follows. Is it ok? No need to put remark before brc1? Or it should continue where the this is ending.

fsxt::sysinit:/sbin/extendfs /dev/vg00/lvol4 /dev/console 2>&1 brc1::bootwait:/sbin/bcheckrc /dev/cons
ole 2>&1 # fsck, etc.
Senthil Kumar .A_1
Honored Contributor

Re: How to extend /tmp ?

Hi deepu,

The line looks fine to me, no comments required.

But 2 checks,

1) is you tmp volume /dev/vg00/lvol4
2) Have u already performed lvextend on tmp volume, if so ,does your lvdisplay on that volume show the new size ?

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: How to extend /tmp ?

By the way ,

My yahoo ID is , senthil_anantha@yahoo.com.au

if you want my help, I'm available online on chat.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Deepu Chakravarty
Regular Advisor

Re: How to extend /tmp ?

Hi,

Yes, your 2 checks are okay.
should I reboot the server with 'fsxt' command?
Senthil Kumar .A_1
Honored Contributor

Re: How to extend /tmp ?

Hi deepu,

Just reboot normally,

shutdown -ry 0

Thats it,

Keep on pinging the HPUX box, from ur workstation

ping -t

once it comes up again, then login and check the /tmp fs size with ..

bdf /tmp

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Deepu Chakravarty
Regular Advisor

Re: How to extend /tmp ?

Hi Senthil,
I rebooted the server with the changed setting in inittab. But the /tmp is not showing the new value. Still old value is showing.
Senthil Kumar .A_1
Honored Contributor

Re: How to extend /tmp ?

Hi deepu,

are u online in yahoo,

My yahoo Id is : senthil_anantha
msn : senthil.anantha@hotmail.com

I'm currently online in yahoo chat and msn.

It would be lot easier if u are on yahoo or msn chat.

Regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Devender Khatana
Honored Contributor

Re: How to extend /tmp ?

Hi,

Now as you do not have physical/remote access through MP/GSP and you do not have even Online JFS you can not do anything. Single user mode access is a mendatory access for increasing file systems.

BTW did you increased the LVOL using lvextend prior the reboot?

HTH,
Devender
Impossible itself mentions "I m possible"
Senthil Kumar .A_1
Honored Contributor

Re: How to extend /tmp ?

can you let me know, what was you lv size before and after lvextend.

Regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Deepu Chakravarty
Regular Advisor

Re: How to extend /tmp ?

Hi Senthil,
Before 224kb and I extend it to 500m.
lvdisplay is showing 512m. But bdf does not showing that size.

I am not configured to yahoo messenger.

Senthil Kumar .A_1
Honored Contributor

Re: How to extend /tmp ?

Which messenger are you availbale on,

MSN, AOL ....

give me your ID, i will contact you.

regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Manuel Plaza
Regular Advisor

Re: How to extend /tmp ?

Another possibility is to create a new volume with the desired size, to change in /etc/fstab that the new volume mounts in /tmp and to reboot the system.

Senthil Kumar .A_1
Honored Contributor

Re: How to extend /tmp ?

Got it resolved by chating with the author.

The correct entry in /etc/inittab is

fsxt::bootwait:/sbin/extendfs -F vxfs /dev/vg00/rlvol4 /dev/console 2>&1

need to use "bootwait" instead of "sysinit" in my steps given in the previous reponses.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Deepu Chakravarty
Regular Advisor

Re: How to extend /tmp ?

Issue is satisfactorily resolved.
Frank de Vries
Respected Contributor

Re: How to extend /tmp ?

Just would like to comment that this link
was very handy, I am glad you opened it.
Well done.

However, I am stunned there were no points
awarded. I say 100points at least for your man there.
Well that's my 2 penny's worth.
Look before you leap