Operating System - HP-UX
1827648 Members
3156 Online
109966 Solutions
New Discussion

Re: Extend SG filesystem with OnlineJFS?

 
Michael Simone
Frequent Advisor

Extend SG filesystem with OnlineJFS?

I think I've seen the answer to this, but I want to make sure.

I have a 2-node MC/SG package with Online JFS, and I need to extend one of my filesystems (a very important one). Can this be done without shutting down the package and dismounting the filesystem? I know you can do this with a non-SG-clustered volume group, but I haven't tried it with a SG volume. I'm not adding disks or PVs, simply extending the lvol and fs to use some free PEs.

Any help or assurance would be greatly appreciated.
4 REPLIES 4
Santosh Nair_1
Honored Contributor

Re: Extend SG filesystem with OnlineJFS?

Michael,

If you're just extending the LV, then you shouldn't need to anything other than what you would do with a "normal", non-SGed LV, i.e. lvextend and fsadm -F vxfs -b (new size) (mountpoint).

However, if you are adding LVs or adding PVs, then you would need to re-import the VG on the secondary and all other nodes.

-Santosh
Life is what's happening while you're busy making other plans
Sanjay_6
Honored Contributor

Re: Extend SG filesystem with OnlineJFS?

Hi Michael.

I think you can extend the lv online using using fsadm. But as santosh said once you have done the modification you need to do an vgexport no on the node where that vg is active and do a vgcfgrestore on the other node where the package will get started.

This is required so that the other node will have the same information in case you add another pv or other such info. Also in case there is any modification in /etc/lvmpvg directory (if you are using pvg strict mirroring and add a disk) then you need to replicate the modification on the other node.

Also remeber to do a vgcfgrestore you need to have the vg active on the other node.

If you have enough free space in the VG and are just extending the size of the LV, it might not be neccessary to do a vgcfgrestore on the other node, but it is always safe to do so. You would not like to take any chances.

Hope this helps.

Thanks
James R. Ferguson
Acclaimed Contributor

Re: Extend SG filesystem with OnlineJFS?

Hi Michael:

You are indeed correct. Since you have Online JFS, you may resize your filesystem without having to unmount it (and hence halt the package using it). The new size of the logical volume will be determinated at volume group activation when it is seen by its alternate node, so there is no package maintenance to perform.

Regards!

...JRF...
Stephen Doud
Honored Contributor

Re: Extend SG filesystem with OnlineJFS?

Yes - an Online-JFS file system can be grown with the package running.

This is addressed in this online document:

UXSGKBAN00000342

=Stephen