Operating System - HP-UX
1753381 Members
5649 Online
108792 Solutions
New Discussion юеВ

Serviceguard Extend a Filesystem

 
SOLVED
Go to solution
Deepak Kr
Respected Contributor

Re: Serviceguard Extend a Filesystem

Only package shut will work.
"There is always some scope for improvement"
Aashique
Honored Contributor

Re: Serviceguard Extend a Filesystem

Hi,

Here are the steps:

1# halt the cluster. ( cmhaltpkg -v pkg_name)
2# vgchange -c n /dev/vgars
vgchange -a n /dev/vgars
3# vgexport -v -p -s -m /tmp/vgars-org.map /dev/vgars (take the vg backup)
4# lvextend -L newsize /dev/vgars/lvol29 (newsize in MB)
5# vgexport -v -p -s -m /tmp/vgars-new.map /dev/vgars
6# rcp /tmp/vgars-new.map 2nd-node:/tmp/

7# rlogin 2nd-node
8# in 2nd-node vgexport /dev/vgars
9# mkdir /dev/vgars
10# mknod /dev/vgars/group c 64 0x110000(check the available minor number)
11# vgchange -a n /dev/vgars
12# vgimport -v -s -m /tmp/vgars-new.map /dev/vgars

13# start the cluster in first node:
cmrunpkg -v pkg_name


Thanks & Regards
Aashique
Aashique
Honored Contributor

Re: Serviceguard Extend a Filesystem

Hi,
i Missed one point--
after lvextend use extendfs

Thanks.
Richard Ace
Frequent Advisor

Re: Serviceguard Extend a Filesystem


your preceedure differs from Kumar as he said

to

vgchange -a e vgname
vgchange -a n vgname

thanks rich
Aashique
Honored Contributor

Re: Serviceguard Extend a Filesystem

Hi,
vgchange -c n
-->
Control the membership of volume groups in a
high availability cluster.
here n means: Remove each specified volume group from membership in the high availability cluster. The high availability software does not need to be running.

vgchange -a n
-->
Deactivate each specified volume group and its associated logical volumes. You must close the logical volumes prior to executing
this option. For example, if the logical volume contains a file system, the file system must be unmounted.


Thanks.

sri_sri137
New Member

Re: Serviceguard Extend a Filesystem

I have free space in VG. And I want to extend the file system in primary node which is currently active. This is 2node service guard cluster and onLineJFS also there. so apart from the lvextend and fsadm commands can we need to take care any other cluster related files or map files in both the nodes?

Can we export the map file on primary and import the same map file in alternate node?

RAJD1
Valued Contributor

Re: Serviceguard Extend a Filesystem

if you are not adding additional disk to the VG , map file export not needed.

If you have free space in the VG, you just need to extend it using  lvextend and fsadm command , it is online.  Cheers.