HP: Extending online jfs filesysems

Title:

HP: Extending online jfs filesysems

Author:

Douglas O’Leary <dkoleary@olearycomputers.com>

Description:

HP: Extending online jfs filesysems

Date created:

07/2008

Date updated:

08/2009

Disclaimer:

Standard: Use the information that follows at your own risk. If you screw up a system, don’t blame it on me…

Not sure if I’m reading the man pages wrong, or what, but the command, as listed in the man pages, for extending online jfs filesystems doesn’t work for me.

The man pages say to use sector size; a query of comp.sys.hp.hpux says to use block size. The only way I was able to get the thing to work the way I wanted is to use new size is K. So, the command should look something like:

fsadm -F vxfs -b ${new_size_in_K} /${mount_point}

You can also specify a unit size (k/m,etc). I typically make the system work for me by using the inline math. For instance, say you have to extend a 4 gig filesystem to an 8 gig one (and have the requisite online jfs license):

lvextend -L $((8*1024)) /dev/${vg}/${lv}
fsadm -F vxfs -b $((8*1024))m ${mp}

Note the ‘m’ after the math in the fsadm command