1826106 Members
4760 Online
109690 Solutions
New Discussion

Online JFS Not Using SAM

 
SOLVED
Go to solution
Mark Duffy
Advisor

Online JFS Not Using SAM

I am trying to extend a file system with Online JFS without using SAM. I can't seem to be able to do this without un-mounting the filesystem but can through SAM.

I'm doing the following

lvextend -L 500 /dev/vg00/lvol9

extendfs /dev/vg00/rlvol9

At the extendfs end, it errors that lvol9 cannot be extended as it is mounted.

A bdf did not show the new file system size, yet when I tried to use SAM to do increase the file system size it showed that lvol9 had now grown to 500MB.

Am I missing something here? I thought the whole point of Online JFS was that size increases can be done on the fly without un-mounting? Can this only be done through SAM?
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: Online JFS Not Using SAM

Hi Mark:

I believe that the problem you are having is that you are using 'extendfs' when you should use 'fsadm'.

You should have done something like:

# lvextend -L 100 /dev/vgXX/lvolX
# fsadm -b 102400 /xxx

...JRF...
Ron Cornwell
Trusted Contributor

Re: Online JFS Not Using SAM

. Increasing an HP OnlineJFS File System

Extend the logical volume e.g. /dev/vg01/lvol5 to the needed size:

# lvextend -L [lv_size_MB] /dev/vg01/lvol5

Extend the JFS file system online:

# fsadm -F vxfs -b [lv_size_MB]M /mountdirectory

NOTE: You need to add M directly to the lv_size_MB.

Check the size of the increased file system:

# bdf


Rob Smith
Respected Contributor

Re: Online JFS Not Using SAM

I am almost certain when using online JFS you use the fsadm with the appropriate options to modify file systems on the fly. Check the man pages. Hope this helps!

Rob
Learn the rules so you can break them properly.
James R. Ferguson
Acclaimed Contributor

Re: Online JFS Not Using SAM

Hi Mark (again):

An excellent guide to standard LVM tasks, including routine JFS mainenance is found in the HP-UX System Administration Tasks manual:

http://docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html

...JRF...
Mark Duffy
Advisor

Re: Online JFS Not Using SAM

Thanks guys for the successful (and quick) responses.

Thanks for the URL James