cancel
Showing results for 
Search instead for 
Did you mean: 

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
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
Mel Burslan
Honored Contributor

Re: increase tmp file system

As mikap said, you do not have the license to use Online JFS. Without this software, you need to unmount the filesystem and then use the extendfs command. But considering a lot of system processes are also using /tmp, more than likely, you need to shutdown your system, boot it to single user mode and then use extendfs command to extend the filesystem size. After that you can reboot normally to resume operation.

Good luck
________________________________
UNIX because I majored in cryptology...
R.K. #
Honored Contributor

Re: increase tmp file system

Hi Rajesh,

It seems you do not have online JFS.
So you have to do following:

1. Reboot the server
2. Halt boot sequence;
> hpux -is #
2. # mount /usr
3. # extendfs -F vxfs /dev/vg00/rlvol6
4. # mount /tmp
5. # bdf <-- to check
6. Reboot to multiuser mode.


Regds,
R.K.
Don't fix what ain't broke
Sajjad Sahir
Honored Contributor

Re: increase tmp file system


Dear Rajesh
u can't use fsadm command because online jfs is not installed in u system
regarding extending file system u can use the command extendfs command
before that u have to umount the file system
and system should be in single user mode.
extend the logical volume and after that
extend the file system by using extendfs not with fsadm

thanks and regards

Sajjad

Ganesan R
Honored Contributor

Re: increase tmp file system

Hi Rajesh,

Before boot into single user mode, check if any process is using /tmp filesystem. Normally applications will use /tmp filesystem to store temporary files. If there is no process using /tmp, no need to boot into single user mode. Just unmount it, then run extendfs and then mount it.

To check if any process using /tmp

#fuser -cu /tmp

To kill the process using /tmp

#fuser -k -cu /tmp

#umount /tmp

#extendfs -F vxfs /dev/vg00/rlvol4

#mount /tmp
Best wishes,

Ganesh.
rajesh73_1
Frequent Advisor

Re: increase tmp file system

hi all thank u /tmp space is increased

and one more doubt

i forget one server root passwd, how to change the root passwd

pls help me
Fabio Ettore
Honored Contributor

Re: increase tmp file system

Hi,

you can change root password in single user mode, just go in single user (again) and

passwd

and you'll be asked to type the new password and confirm it.

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Ganesan R
Honored Contributor

Re: increase tmp file system

Hi,

If you forget the root password, either root equalant user can reset it or else you need to reboot into single user mode and reset the password using #passwd command.
Best wishes,

Ganesh.
Steven E. Protter
Exalted Contributor

Re: increase tmp file system

Shalom,

Boot the system at console.

Intervene at the prompt.

bo
Y (to interact)
hpux -is

passwd

You may need to:

mount /usr
# prior to resetting the root password.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sajjad Sahir
Honored Contributor

Re: increase tmp file system

Dear Rajesh

u can change root password by using console

thanks and regards

sajjad
UVK_1
Advisor

Re: increase tmp file system

Good that you figured out the filesystem extension, for breaking root passwd reboot the server and break the boot sequence by entering into ISL prompt. boot into single user mode and edit the /etc/passwd file to delete the password coloum. then reset the password and reboot the server.

-uvk
Redhat
Trusted Contributor

Re: increase tmp file system

Do u have sudo access ?

does the systems trusted?
rajesh73_1
Frequent Advisor

Re: increase tmp file system

i login through console

how to go hpux -is
Mel Burslan
Honored Contributor

Re: increase tmp file system

login thru console does not help you directly.

reboot the server while you are at the console

interrupt the boot process by pressing any key when you see "press any key within 10 seconds to stop automatic boot" warning message.

type "boot primary" then hit enter

say yes to "do you want to interact with ISL" question

at ISL> prompt type "hpux -is"

if your system do not require a password for single user logins, you should be dropped to a "#" prompt which is a root shell. You can perform the extendfs function at this point.

Good luck

________________________________
UNIX because I majored in cryptology...
Ganesan R
Honored Contributor

Re: increase tmp file system

Hi,

when you reboot, just interupt the boot process which will take you to Main menu>

Give Main Menu>bo pri

It will ask if you want to interact with IPL or not? Just give Y

You will get the ISL Prompt. In ISL prompt give "hpux -is" which will boot the system into single user mode.

ISL>hpux -is
Best wishes,

Ganesh.
rajesh73_1
Frequent Advisor

Re: increase tmp file system

Hi ALL

thank u for all very much

Regds
Rajesh