1828235 Members
2326 Online
109975 Solutions
New Discussion

Change configuration

 
SOLVED
Go to solution
uadm26
Super Advisor

Change configuration

Hi,
I need to increase the space to a logical volume that is mounted by a package of cluster. /dev/vgshare/lvol2. But it's running an application that uses it filesystem mounted in the logical volume. And if i stop the package i lost the commmunication to the configuration of vgshare and lvol2.

Thanks.
8 REPLIES 8
Cheryl Griffin
Honored Contributor

Re: Change configuration

You need OnlineJFS which allows you to extend the space on the fly, without unmounting it first.

"Downtime is a Crime."
Bharat Katkar
Honored Contributor

Re: Change configuration

Hi,
Looks like you don't have root access to your System... Let us know more details about system and your System Priviledges

Regards,
You need to know a lot to actually know how little you know
melvyn burnard
Honored Contributor

Re: Change configuration

do a cmhaltpkg to stop the package,
then vgchange -a e vgname
This allows you to work on the logical volume to extend it, and then the file system.
When the work has been done, vgchange -a n vgname, and restart the package.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Geoff Wild
Honored Contributor

Re: Change configuration

Do you have OnlineJFS?

swlist -v -l fileset |grep OnlineJFS

SHould see something like:
tag OnlineJFS
software_spec OnlineJFS,l=/,r=B.11.11,a=HP-UX_B.11.11_32/64,v=HP
control_directory OnlineJFS
Product Name OnlineJFS
The OnlineJFS product is a superset of the standard VxFS File System.
OnlineJFS.VXFS-ADV-RUN
software_spec OnlineJFS.VXFS-ADV-RUN,l=/,r=B.11.11,a=HP-UX_B.11.11_32/64,v=HP,fr=B.11.11,fa=HP-UX_B.11.11_32/64
Product Name OnlineJFS
ancestor OnlineJFS.VXFS-ADV-RUN


If yes, then, to increase to say 8GB:

lvextend -L 8192 /dev/vgshare/lvol2
fsadm -b 8192M /mountpoint

If no OnlineJFS:

Stop package
vgchange -c n /dev/vgshare
vgchange -a y /dev/vgshare

lvextend -L 8192 /dev/vgshare/lvol2
extendfs -F vxfs /dev/vgshare/lvol2
vgchange -a n /dev/vgshare
vgchange -c y /dev/vgshare

start package

Rgds...Geoff





Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
uadm26
Super Advisor

Re: Change configuration

I don't have online JFS, melvyn burnard coul'd you tell me what's the command's does to system and the risks for the system?
Stephen Doud
Honored Contributor
Solution

Re: Change configuration

As Melvyn said, with the package halted, but the node still running cmcld, you will be able to activate the volume group in exclusive mode:
# vgchange -a e
This will not harm any files or perturb the system in any way.
You will then have access to the logical volumes in the file system.
To grow a file system that does not have ONLINE JFS available, use these steps:
# lvextend -L /dev/vgshare/lvol2
(Insure -L is larger than it current is!)

After the size of the logical volume has been increased, grow the file system within it:
# extendfs -v /dev/vgshare/rlvol2

Once completed, mount the file system and use 'bdf' to verify your change.

Next, deactivate the VG:
# vgchange -a n vgshare
.. .and start the package.

-StephenD.
uadm26
Super Advisor

Re: Change configuration

And i don'nt need to do the vgexport to make a backup of the VG structure?
Stephen Doud
Honored Contributor

Re: Change configuration

vgexport does not backup LVM structures!

vgcfgbackup does - but that is done automatically with every LVM command, at least on the node where the command is executed. I recommend that you vgcfgbackup vgshare (all shared VGs) on the other node as well.

-sd-