Operating System - HP-UX
1827284 Members
3418 Online
109717 Solutions
New Discussion

How to remove decommsion VG from cluster.config file.

 
SOLVED
Go to solution
singh sanjeev
Trusted Contributor

How to remove decommsion VG from cluster.config file.

please let me know the step in brief how to remove the decommission pkg vg from the cluster config file. so cluster cmcheckconf do not through the error of VG on the system
Sanjeev Singh
5 REPLIES 5
Jupinder Bedi
Respected Contributor

Re: How to remove decommsion VG from cluster.config file.

you can use the following steps

vgchange -c n /dev/vg_name
Removes cluster lock on VG

#vgchange -a n /dev/vg_name
Deactivated the VG


vgexport /dev/vg_name
exporting vg will remove entire vg and associated files from your system
All things excellent are as difficult as they are rare
Johnson Punniyalingam
Honored Contributor

Re: How to remove decommsion VG from cluster.config file.

likid0
Honored Contributor
Solution

Re: How to remove decommsion VG from cluster.config file.

Adding to what the other poster wrote.

You need to remove it from the cluster ascii file, if you go to the end of your cluster.ascii file, normally stored in /etc/cmcluster

you will see lines with your cluster vgs similar to this ones:

# Cluster-aware LVM Volume Groups
VOLUME_GROUP /dev/vg1
VOLUME_GROUP /dev/vg2
VOLUME_GROUP /dev/vg3

just delete the line with the vg youi want to remove.

then cmcheckconf and cmapplyconf the modified ascii file
Windows?, no thanks
Vishu
Trusted Contributor

Re: How to remove decommsion VG from cluster.config file.

Hi sanjeev,

Few things to add to jupinder's reply.

1) Do the cmgetconf to get the current cluster ascii file.
2) remove the VG from the cluster ascii file.
3) If any package is using that VG, then you need to remove that package too or reconfigure your package again.
4) Remove the VG and its LVs from the package control script.
5) so, cmcheckconf and cmapplyconf. you are ok now.
singh sanjeev
Trusted Contributor

Re: How to remove decommsion VG from cluster.config file.

Many thank to you all for your valuable input,
Sanjeev Singh