Operating System - HP-UX
1832983 Members
2968 Online
110048 Solutions
New Discussion

How to extend a file system in MCSG two node cluster

 
dragana s-v
Advisor

How to extend a file system in MCSG two node cluster

What would be the steps to extend a FS? I have a cluster of two nodes, the vg the fs belongs to has enough space? I don't have On-Line JFS.

Thanks,
Dragana S-V
5 REPLIES 5
Victor BERRIDGE
Honored Contributor

Re: How to extend a file system in MCSG two node cluster

Hi,
The best would be to use SAM, be sure no one is using the file system while you are doing such operation, sam will have to unmount the fs in order to do an lvextend...
SAM=>LVM>Increase size of logical volume...

All the best
Victor
Sridhar Bhaskarla
Honored Contributor

Re: How to extend a file system in MCSG two node cluster

Dragana,

Simply unmount the file system, extend the file system and then mount it back.

#umount /file_system
#lvextend -L newsize /dev/vg??/lvol??
#extendfs /dev/vg??/rlvol??
#mount /file_system

However, there are the following things to be noted.

1. If you are adding disks to this volume group, then you need to re-import the volume group on the other node.

2. If you are monitoring your application and if you need to bringdown the application or kill any other processes that are being monitored to unmount the file system, then its better to halt the package.

To increase the file system after halting the package, do the following

#vgchange -c n vg??
#vgchange -a y vg??
#lvextend -L newsie /dev/vg??/lvol??
#extendfs /dev/vg??/rlvol??
#mount and unmount to make sure you got the space.
#vgchange -a n vg??
#vgchange -c y vg??

Start the cluster.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
James R. Ferguson
Acclaimed Contributor

Re: How to extend a file system in MCSG two node cluster

Hi:

Here's your procedure:

# cmhaltpkg
# vgchange -a e vgXX
# umount
# lvextend -L /dev/vgXX/lvolY
# extendfs /dev/vgXX/rlvolY
# vgchange -a n vgXX
# cmrunpkg

Regards!

...JRF...
dragana s-v
Advisor

Re: How to extend a file system in MCSG two node cluster

Thanks everybody, I wasn't sure about halting the package and vg activation/deactivation.

Thanks !!!

I will assign the points once I am done with the change.
Sanjay_6
Honored Contributor

Re: How to extend a file system in MCSG two node cluster

Hi,

you have to proceed like this. Here we assume the lv and vg associated with the packge pkg_name is lv_test and vg_test. Do this on the node where the packge is currently running.

# cmhaltpkg -v pkg_name
# vgchange -a e /dev/vg_test
# lvextend -L lv_size_in_MB /dev/vg_test_lv_test
# extendfs /dev/vg_test_rlv_test
# mount /dev/vg_test/lv_test /tmp_mnt
# bdf

Once satishfied the size is okay,

# umount /tmp_mnt
# vgchange -a n /dev/vg_name
# cmmodpkg -e pkg_name

The packge should automatically start now, if not,

# cmrunpkg -v pkg_name

You may need a few more steps in case the mirror reside on specific disk and you want to keep it that way. Normally these steps should be sufficient.

Hope this helps.

Regds