Re: Updating VGs that are part of a cluster
- From: Sunder Iyengar <sunder_iyengar@xxxxxxxxxxxx>
- Date: Tue, 18 Mar 2008 19:37:30 -0700
Thank you all for your very helpful responses.
The -L option with varyonvg is not documented (at least on AIX 5.3).
Does it do something similar to -L option for importvg?
Regds,
Sunder.
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
F. Even
Sent: Wednesday, 19 March 2008 1:06 PM
To: aix-l@xxxxxxxxxxxxx
Subject: Re: Updating VGs that are part of a cluster
If you don't have both nodes active in the cluster, you could always
remove the disks and reprobe them to get the proper PVID information,
etc. But the chdev -l $disk pv=yes should set it just fine (to what it
is on the other node...always double-check though).
If you are not using CSPOC commands you don't necessarily need to take
an outage.
Steps:
Primary:
varyonvg -bu $VG # break reserves on VG/disks.
Secondary:
probe for new disks (or fix-up for pvids, etc.).
importvg -L $VG # learns changes from disks/VG
Primary:
varyonvg -L $VG # restores reserves
Then sync up cluster. Should be good.
Frank
On Tue, Mar 18, 2008 at 9:24 AM, Mills, John T <John.Mills@xxxxxxx>
wrote:
The important gotcha for any clustering is to have complete disk
definitions on both boxes that match before you do the addition.
John T Mills
Something similar to what you have could be:
Initial work
----------------------
Node 01:
cfgmgr
lspv | grep None # determine new disk
chdev -l newdisk0 -a pv=yes
Node 02:
cfgmgr
lspv | grep None # determine new disk
chdev -l newdisk0 -a pv=yes
Final work
----------------------
Node01:
Use CSPOC type LVM process to extendvg. Cluster remains up for all the
work.
-or-
Stop clustering software 01/02 (will varyovff the VG)
Node01:
varyonvg VG
extendvg VG newdisk0
varyoffvg VG
Choose method A or B:
Node02: (Method A)
varyonvg VG (Method A)
importvg -L VG (Method A)
varyoffvg VG (Method A)
Node02: (Method B)
exportvg VG hdisk (Method B)
importvg -V MajorNum VG (Method B)
varyoffvg VG (Method B)
Run a cluster synchronization.
Start the cluster on 01.
Start the cluster on 02.
________________________________
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Sunder Iyengar
Sent: Tuesday, March 18, 2008 12:47 AM
To: aix-l@xxxxxxxxxxxxx
Subject: Updating VGs that are part of a cluster
Dear All,
I am talking of cases where maybe HACMP is not involved - but other
clustering software like VERITAS Cluster Server is (for sake of
simplicity, assume two cluster nodes).
If you have an AIX VG that needs to be accessible from both cluster
nodes - not concurrently but varyed on on any one cluster node at any
time. In this scenario, how do you handle addition of disks to the VG?
So the VG is imported in to both cluster nodes but only varyed on one
one node. On that node, you run a series of commands to expand the VG
and add one or more new PVs.
What actions would you take on other cluster node to ensure that when
the VG is varyed on on that node at some point, it will see and
recognize the newly added disks?
I know the synclvodm command can be used to ensure newly added volumes
are updated in the node's ODM, but what about PVs?
Perhaps this applies to HACMP environment also - not sure how this is
handled by it.
Any pointers/steps will be greatly appreciated.
P.S. This is what I had to do to get it to work properly.
Say new disks have been added to node where VG is currently active.
On active node - varyoff the VG
On second node - ensure PVid for new PVs is set (if not already set,
will set same PVid as set on other cluster node (chdev -l hdiskxx -a
pv=yes)
Export VG and importvg again. Now the VG is complete on this node too.
Any alternative to the above steps?
Thanks in advance,
Sunder.
- Follow-Ups:
- Re: Updating VGs that are part of a cluster
- From: F. Even
- Re: Updating VGs that are part of a cluster
- References:
- Updating VGs that are part of a cluster
- From: Sunder Iyengar
- Re: Updating VGs that are part of a cluster
- From: Mills, John T
- Re: Updating VGs that are part of a cluster
- From: F. Even
- Updating VGs that are part of a cluster
- Prev by Date: Re: Updating VGs that are part of a cluster
- Next by Date: Re: Updating VGs that are part of a cluster
- Previous by thread: Re: Updating VGs that are part of a cluster
- Next by thread: Re: Updating VGs that are part of a cluster
- Index(es):
Relevant Pages
|
|