HP: Extending Online JFS filesystems


Standard disclaimer: Use the information that follows at your own risk. If you screw up a system, don't blame it on me...
mailto: dkoleary@olearycomputers.com

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 speicfy 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


Document:
URL:
Last updated: