1833528 Members
2882 Online
110061 Solutions
New Discussion

Re: expand /tmp

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

expand /tmp

If I have free extents in /dev/vg00, can I expand /tmp without using ignite? I dont want to use ignite, even though that is my usual method.
UNIX IS GOOD
13 REPLIES 13
Arunvijai_4
Honored Contributor

Re: expand /tmp

Yes, you can do it .. first kill all user processes in /tmp

# fuser -ku /tmp

then, you can extend it.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Ralf Buchhold
Regular Advisor

Re: expand /tmp

Hello Robert

use this:

init 1 (Attention !)
login ...

umount /tmp
lvextend -L 600 /dev/vg00/lvol4
extendfs /dev/vg00/rlvol4
mount /tmp

init 4

By
Ralf
Kent Ostby
Honored Contributor

Re: expand /tmp

Generally speaking, it's going to be more effective to reboot and go into single user mode to make sure that /tmp is available to be extended.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Borislav Perkov
Respected Contributor

Re: expand /tmp

Hi robert,

Yes you can, but try to do it in single user mode.

Regards,
Borislav
VEL_1
Valued Contributor

Re: expand /tmp

Hi,

The following link provides the details about "How to Extend Logical Volumes".

http://www.compute-aid.com/hpux/extend_vg00.htm

Thanks.
Robert-Jan Goossens
Honored Contributor

Re: expand /tmp

hI Robert,

The easits solution, is to boot in single mode

# lvextend ....
# extendfs .....

# mount -a

# shutdown -r -y now
Nobody's Hero
Valued Contributor

Re: expand /tmp

what if I have online JFS?
how would I do that?
UNIX IS GOOD
Ivan Ferreira
Honored Contributor

Re: expand /tmp

fsadm -d -D -e -D /mount_point
lvextend -L 500 /dev/vgXX/logical_volume_name
fsadm -b newsize_in_fs_blocks /mount_point

Like:

fsadm -b 51200 /mount_point
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Muthukumar_5
Honored Contributor
Solution

Re: expand /tmp

If you are having onlinJFS then you don't need umount and mount fs during extend operation.

Refer "Increase the size of a file system existing on a logical volume." in lvextend man page.

# lvextend -L 400 /dev/vg06/lvol3

Unmount the file system.

# umount /dev/vg06/lvol3

Extend the file system to occupy the entire (larger) logical vol

# extendfs /dev/vg06/rlvol3

Remount the file system.

# mount /dev/vg06/lvol3 /mnt

In this umount and mount operation is not needed for online JFS.

hth.
Easy to suggest when don't know about the problem!
VEL_1
Valued Contributor

Re: expand /tmp

Hi,

Refer the following link:

http://docs.hp.com/en/B7961-90018/ch06s05.html


Thanks.
GGA
Trusted Contributor

Re: expand /tmp

hello
if u have onlinejfs do:
if u have a mirror
FreePe from vgdisplay:2
from lvdisplay
currentLE+size from vgdisplay

No mirror
freePe+currentLe=LE size

lvextend -l LE Size /dev/vg.../lvol?
fsadm -F vxfs -b $((100*1024*8)) /tmp
100=lesize
8= pe size

u dont need mount or unmount
regards gga


Arunvijai_4
Honored Contributor

Re: expand /tmp

Looking at this thread should be helpful,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=781480

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

Re: expand /tmp

In single user mod
umount /tmp
lvextend -L Newsize /dev/vg00/lvol4
extendfs /dev/vg00/rlvol4
mount /tmp

with online JFS

lvextend -L Newsize /dev/vg00/lvol4

umount /dev/vg00/lvol4

extendfs /dev/vg00/rlvol4

mount /dev/vg00/lvol4 /tmp

Awadhesh

It's kind of fun to do the impossible