1834093 Members
2333 Online
110063 Solutions
New Discussion

how to eliminate SG

 
SOLVED
Go to solution
Mauro Gatti
Valued Contributor

how to eliminate SG

Hi all, I'have to eliminate SG from my servers preserving application that are running.
I planned to modify first package switching off autostart and then stop the cluster but unluckly I can't run cmchekconf because I get some errors.
So I decided to stop packeges, halt cluster, switching off AUTOSTART_CMCLD in /etc/rc.config.d/cmcluster, activate vg and modify /etc/lvmrc, modify /etc/fstab, unmask disk to node that doesn't manage application, do vgscan to reliagn /etc/lvmtab and finally swremove SG software.
Do you think I can safely do these steps?

Thank You
Ubi maior, minor cessat!
6 REPLIES 6
Johan Lorimier
Frequent Advisor

Re: how to eliminate SG

Hi,
Don't forget the network, you must setup the network alias of the cluster pkg. If you have NFS involve, you have also to perform all the export and import made by the cluster.

Johan
Bharat Katkar
Honored Contributor

Re: how to eliminate SG

Hi there,
You r almost right.
1. Halt cluster
2. # vgchange -c n /dev/vgxx
3. # vgchange -a y /dev/vgxx
4. Proceed as per your plans explained above.

Regards,

You need to know a lot to actually know how little you know
G. Vrijhoeven
Honored Contributor

Re: how to eliminate SG

Hi

Do not forget to copy the start and stop scripts to the /sbin/init.d dir (rc them).
mind the .rhosts files. May be installing apa can help you keeping the fail over lan config.

HTH,


Gideon
Sridhar Bhaskarla
Honored Contributor
Solution

Re: how to eliminate SG

Hi,

Once you do 'cmdeleteconf', it should automatically put your VGs back into default configuration. But it doesn't hurt to 'vgchange' them too. I would follow this procedure.

1. Halt the packages and delete the package configuration.

cmhaltpkg
cmdeleteconf -p

2. Take the VGs out of the cluster

vgchange -a n vgxx
vgchange -c n vgxx
vgchange -a y vgxx

3. Make sure /etc/fstab is updated with the filesystems. Compare the entries in your package control files against /etc/fstab.

4. Mount the filesystems.

mount -a

5. If you want to, bring up the application and ensure it is up and running. If you were having floating IPs, you may want to add them to your netconf file with logical interfaces (lan0:1) etc.,

6. Delete the cluster

cmdeleteconf

7. Export the VGs on the failover node. Important. If possible, disconnect|unmap the LUNs to it.

Don't need to worry about vgscan. It's not required.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
CORDIER
Occasional Advisor

Re: how to eliminate SG

Hi All,
I need also to remove SG on a HP-UX cluster.
Here is my list of tasks :
1.Halt Cluster
2.Save Configuration (tar of /etc/cmcluster/*)
3.cmdeleteconf
4.vgchange -c n ${VG}
5.vgchange -a n ${VG}
6.set autostart_cmcld & autostart_cmsnmpd=0
7.Reboot of both servers.
8.swremove SG

Is it correct?
What could I forget to do ?

Thanks for your help.
Bharat Katkar
Honored Contributor

Re: how to eliminate SG

Yes that works.
Regards,
You need to know a lot to actually know how little you know