Operating System - HP-UX
1829636 Members
1701 Online
109992 Solutions
New Discussion

Re: extend File system on MCSG VG's .

 
saqi
Advisor

extend File system on MCSG VG's .

Hi All,

We have a two node cluster and need to extend File system on MCSG VG's .

/dev/vg01
/dev/vg02
/dev/vg03
/dev/vg04
/dev/vg05
/dev/vg06

VG's are available on one of the production servers.

We have LUNs assigned from an XP1024 and we have created device files on the both the machines by the help of "insf -e" command.
Can you guru's please help me to extend file system.

Regards,

Saqi!
10 REPLIES 10
Arunkumar.B
Trusted Contributor

Re: extend File system on MCSG VG's .

Hi,

1)Halt the package
2)Take a tar copy of /cmcluster directory
3)vgchange -c n vgname
4)vgchange -a y vgname
5)Do pvcreate of the new disk
6)vgextend to new pv
7)lvxtend to the LV where do u want to extend the file system
8)extendfs to the mountpoint
9)vgexport -p -m vgmap & copy to the secondry node
10)vgimport overthere
11)cmcheckconf
12)cmapplyconf

13)cmruncl


Cheers
Arunkumar
Necessity breaks iron
Rita C Workman
Honored Contributor

Re: extend File system on MCSG VG's .

Well....if within those vg's you have extra disk already attached, and you have OnlineJFS, then you simply can extend the lvol and then the filesystem using (fsadm) and voila...your done.

BUT...if you need to add new disk to the volume groups that are within the package, then you need to stop the package. Change the vg to be active: (vgchange -c n and then vgchange -a y ). Do the usual pvcreate and add the new disk to the vg as you wish. At this point you could make fresh mapfiles. Again if you OnlineJFS, you could then bring the pkg back up and do the rest of the lvm tasks live. Otherwise you will have finish the lvm things with the pkg down.

You can do most things with pkg up...here's a couple things you can't do with pkg up:

changing anything network or IP,
changing anything with heartbeat/timing,
...when you don't have OnlineJFS....

Hope that helps,
Rgrds,
Rita
Florian Heigl (new acc)
Honored Contributor

Re: extend File system on MCSG VG's .

Hi Rita,

anything wrong with doing it online like I sketched in
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1030301

(save the fact I forgot the pvcreates :))
yesterday I stood at the edge. Today I'm one step ahead.
Florian Heigl (new acc)
Honored Contributor

Re: extend File system on MCSG VG's .

Now someone removed that thread even though it was older and the reply was not contained here. Are our moderators working overtime?

yesterday I stood at the edge. Today I'm one step ahead.
Darrel Louis
Honored Contributor

Re: extend File system on MCSG VG's .

Hi,

There is no need to stop the package if you have OnlineJFS in place.
We are extending without bringing the packages down.

Regards

Darrel
HGN
Honored Contributor

Re: extend File system on MCSG VG's .

Hi

Darell is correct you can extend the FS if you have Online JFS and can be extended on the fly.Has worked well.There is no need to shutdown the package (all depends on the availabel space on the vg)

Rgds

HGN
Florian Heigl (new acc)
Honored Contributor

Re: extend File system on MCSG VG's .

okay, I doubt my original post will make it back (sagi, please promise to never double-post again *g*)

please bear with me, I'm at home now, but I'll try to redo it from memory one more time

- there is no need to bring down the package for fs extension
- it's obvious he'll have to extend the vg from his original post
- it's not neccessary to take the package down for that, either

on primary node:
##########################
ioscan -fnCdisk ; insf -e # sagi already did that

pvcreate primary paths of new PVs

vgextend the VGs to allocate space as needed

extend the file systems as needed

then:

cd /etc/cmcluster//vg.info/
for vg in 01 02 03 04 05 06
do
mv vg${vg}.map vg${vg}.map_bck.$$
vgexport -p -v -s -m vg${vg}.map /dev/vg${vg}
scp vg${vg}.map second_node:${PWD}/
done

## done on primary node

#### secondary node

cd /etc/cmcluster//vg.info
for vg in 01 02 03 04 05 06
do
vgchange -a n /dev/vg${vg}
vgexport /dev/vg${vg}
mkdir /dev/vg${vg}
mknod /dev/vg${vg}/group c 64 0x${vg}0000
vgimport -v -s -m vg${vg}.map /dev/vg${vg}
vgchange -a r /dev/vg${vg}
vgcfgbackup /dev/vg${vg}
vgchange -a n /dev/vg${vg}
done

## done on secondary node



NOTES: This script is completely untested now, I'm at home and I don't run MC/SG there :)

it would be way more professional to gather the vg names from the package.ascii file, but I don't care right now, as sagi named his vg names.

I hope this is helpful for everyone that thought he had to bring down his package for extension.

I hope everyone is also aware that it might be a bright idea to take the package down during 20 minutes downtime at a later point (i.e. every two months) to safeguard against human error in the config files etc...

florian
yesterday I stood at the edge. Today I'm one step ahead.
Albert_31
Trusted Contributor

Re: extend File system on MCSG VG's .

Hi everyone,
IF my memory serves me right, you cant add a PV to the VG which is was activated using the vgchange -c y option, it will give an error.

But in situations where you have additional space in the VG and want to extend a FS, it can be done online provided we have ONLINE JFS.. as pointed earlier..

correct me if I am wrong.

regards

albert
Florian Heigl (new acc)
Honored Contributor

Re: extend File system on MCSG VG's .

The trick is to:
vgchange -c y for cluster mode and activate with vgchange -a e for exclusive mode (but I think MC/SG does that in the stock configs)

Concurrent mode is pointless as sparse as real active/active cluster applications are in our part of the it world :)

can anyone name anything but oracle RAC?
(and I'm afraid running RAC without ASM is just asking for trouble.)
yesterday I stood at the edge. Today I'm one step ahead.
Florian Heigl (new acc)
Honored Contributor

Re: extend File system on MCSG VG's .

so how did it go?

florian
yesterday I stood at the edge. Today I'm one step ahead.