Operating System - HP-UX
1830935 Members
2154 Online
110017 Solutions
New Discussion

Extend the volume group on cluster system

 
SOLVED
Go to solution
wali chabi
Frequent Advisor

Extend the volume group on cluster system

Hi!
I have the cluster with two nodes. In my autoraid I had 5 LUN on which I create one vg. Now I create the other LUN and want to extend my vg on this LUN. How to do this?

Thank you for your reply
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Extend the volume group on cluster system

Shalom,

To do this hot, you need OnlineJFS or a tool that ships with CFS to extend the filesystem.

I would suggest scheduling downtime to cover yourself on this because extending the filesystem hot can lead to unexpected outcomes.

Here is the doc you need:
http://www.repton.co.uk/library/symantec_storage_foundation_cluster_file_system.pdf

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Frank_W
Frequent Advisor
Solution

Re: Extend the volume group on cluster system

Hi,


You can extend the volumegroup on the active clusternode:
- vgextend vgXX /dev/dsk/cXtYdZ
- vgexport -p -m vgXX.map -f vgXX.dev /dev/vgXX
Then copy the vgXX.map and vgXX.dev files to the backup-node.

On the backup system, you have to vgexport the volumegroup and then vgimport it with the new devices:
- vgexport vgXX
- mkdir /dev/vgXX
- mknod /dev/vgXX/group c 64 0xXX0000
- vgimport -m vgXX.map -f vgXX.dev /dev/vgXX
- vgchange -a r vgXX
- vgcgfbackup vgXX
- vgchange -a n vgXX


The rest depends on what are you going to do with the additional diskspace?
- extend an existing lvol?
- create a new lvol?


wali chabi
Frequent Advisor

Re: Extend the volume group on cluster system

Hi Frank W.
Thank you for your help. After extending the volume group, I'd like to extend an existing lvol. More detail for the procrdure will help me.
Asif Sharif
Honored Contributor

Re: Extend the volume group on cluster system

Jeeshan
Honored Contributor

Re: Extend the volume group on cluster system

Frank_W
Frequent Advisor

Re: Extend the volume group on cluster system

Hi,

first you have to extend the volume lvolY to the new disk cXtXdX:

lvextend -l /dev/vgXX/lvolY /dev/dsk/cXtXdX

Then you have to extend the filesystem:

- If you have onlineJFS installed:

fsadm -F vxfs -b /mountpoint

- If you don´t have onlineJFS you have to unmount the filesytem and then extend it:

extendfs /dev/vgXX/rlvolY

Be sure you have an backup of your data!!

Check the lvol-config on the standby node:

vgchange -a r vgXX
vgdisplay -v vgXX
vgchange -a n vgXX

If this node doesn´t sees the right information, do the vgexport/vgimport again