Operating System - HP-UX
1838655 Members
3518 Online
110128 Solutions
New Discussion

Possible to expand /tmp using OnlineJFS while mounted?

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

Possible to expand /tmp using OnlineJFS while mounted?

Hi,

HP-UX 11.11, OnlineJFS, MirrorDisk/UX, L3000

Is it possible to expand the /tmp filesystem without taking it offline and with open files?
(lsof shows open files on /tmp).


10 points for any good answers.
TIA, Gino
9 REPLIES 9
Simon Hargrave
Honored Contributor
Solution

Re: Possible to expand /tmp using OnlineJFS while mounted?

Yes, same as any other filesystem with OnlineJFS: -

lvextend -L /dev/vg00/lvol5 size_in_mb disk_dev mirror_disk_dev

fsadm -F vxfs -b (size_in_mb * 1024) /tmp
RAC_1
Honored Contributor

Re: Possible to expand /tmp using OnlineJFS while mounted?

Yes. absolutely.

lvextend -L "new_SizeM" /dev/vgxx/lvolxx
fsadm -b "bew_ziseM" /tmp

Check it with bdf /tmp

Anil
There is no substitute to HARDWORK
Rita C Workman
Honored Contributor

Re: Possible to expand /tmp using OnlineJFS while mounted?

Yes you can extend the filesystem with things up and running....

lvextend -l xxx /dev/vg00/

fsadm -F vxfs -b m /tmp

Where "xxx" is the size is megabytes, and followed by the letter 'm' (no space between).
You could do it in Kbyte, so:
fsadm -F vxfs -b /tmp

.....but I doing hate the math..

Rgrds,
Rita
Bernhard Mueller
Honored Contributor

Re: Possible to expand /tmp using OnlineJFS while mounted?

Yep,

lvextend -L /dev/vg00/lvol#

echo $((final_size_in_MByte*1024))

fsadm -F vxfs -b /tmp

Regards
Bernhard
A. Clay Stephenson
Acclaimed Contributor

Re: Possible to expand /tmp using OnlineJFS while mounted?

Assuming that /tmp is a vxfs filesystem, that you did not specify contigious allocation when you created its LVOL, and that you have free PE's within your volume group then yes. OnlineJFS handles open files just fine.
If it ain't broke, I can fix that.
Gino Castoldi_2
Honored Contributor

Re: Possible to expand /tmp using OnlineJFS while mounted?

Hi,

Clay: How would I check that the volume was not created with contigous allocation?

PS. Thank you to everyone for their answers.

10 points for any good answers.
TIA, Gino
Pete Randall
Outstanding Contributor

Re: Possible to expand /tmp using OnlineJFS while mounted?

Gino,

Do an lvdisplay of /tmp's lvol and check the "Allocation", it should NOT say "strict/contiguous".


Pete

Pete
Johan Lorimier
Frequent Advisor

Re: Possible to expand /tmp using OnlineJFS while mounted?

HI,

you will see the Allocation policies by an lvdisplay command.
On a standar HPux you will have

lvdisplay /dev/vg00/lvol4
--- Logical volumes ---
LV Name /dev/vg00/lvol4
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 256
Current LE 64
Allocated PE 128
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

If you perform a lvdisplay /dev/vg00/lvol3
you will see
Allocation strict/contiguous

that is to say that it not so easy to increase the / file sysytem.

Johan
Fabio Ettore
Honored Contributor

Re: Possible to expand /tmp using OnlineJFS while mounted?

Ciao Gino,

it is exactly the work of OnLineJFS, that is to increase size of filesystems without unmount them. This functionality is good for all filesystems from /tmp, /usr, /home, /etc and etc. (sorry play with these words :-) to new created filesystems.

# bdf
to see lvol of /tmp.
# lvextend -L /dev/vg00/
# fsadm -F vxfs -b /tmp

Best regards,
Ettore
WISH? IMPROVEMENT!