Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Monday 11 November 2013

EXTENDING A SHARED VG IN HACMP / ADDING A DISK IN SHARED VG IN HACMP

TO EXTEND A SHARED VOLUME IN HACMP

PCI

# lspv
hdisk2          000ac1331e511d20                    con1vg
hdisk3          000ac1331e513fe5                    None
hdisk4          000ac1331e51658a                    None
hdisk0          000ac13395197f5e                    rootvg
hdisk5          000ac13382115287                    None

CWS
# lspv
hdisk0          00fad1d465b1b385                    rootvg
hdisk1          00fad1d4b98a1756                    None
hdisk2          00fad1d4b98a1a3e                    None
hdisk3          000ac1331e511d20                    con1vg
hdisk4          00fad1d4b98a23b2                    None
hdisk5          000ac133b98a2e01                    None


GO TO C-SPOC >> HACMP Logical Volume Management


                                                                  System Management (C-SPOC)

Move cursor to desired item and press Enter.

  Manage HACMP Services
  HACMP Communication Interface Management
  HACMP Resource Group and Application Management
  HACMP Log Viewing and Management
  HACMP File Collection Management
  HACMP Security and Users Management
  HACMP Concurrent Logical Volume Management
  HACMP Physical Volume Management
  Configure GPFS

  Open a SMIT Session on a Node


                





            HACMP Logical Volume Management

Move cursor to desired item and press Enter.

  Shared Logical Volumes
  Shared File Systems
  Synchronize Shared LVM Mirrors
  Synchronize a Shared Volume Group Definition


GO TO   >>      Set Characteristics of a Shared Volume Group



Shared Volume Groups

Move cursor to desired item and press Enter.

  List All Shared Volume Groups
  Create a Shared Volume Group
  Create a Shared Volume Group with Data Path Devices

  Import a Shared Volume Group
  Mirror a Shared Volume Group
  Unmirror a Shared Volume Group


           GO TO   >>         Add a Volume to a Shared Volume Group  
                                        
Set Characteristics of a Shared Volume Group

Move cursor to desired item and press Enter.

  Add a Volume to a Shared Volume Group
  Remove a Volume from a Shared Volume Group
  Enable/Disable a Shared Volume Group for Cross-Site LVM Mirroring Verification  








SELECT THE VOLUME GROUP NEEDED TO EXTEND


    Add a Volume to a Shared Volume Group

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                       [Entry Fields]
  Resource Group Name                                 RG1
  VOLUME GROUP name                               testshare
  Reference node                                      pci
  VOLUME names                                      hdisk4


NOW SELECT  >> Synchronize a Shared Volume Group Definition

                                                               HACMP Logical Volume Management

Move cursor to desired item and press Enter.

  Shared Volume Groups
  Shared Logical Volumes
  Shared File Systems
  Synchronize Shared LVM Mirrors





SELECT  THE VOLUME GROUP TO SHARE


                                                         Synchronize a Shared Volume Group Definition

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                       [Entry Fields]
  SHARED VOLUME GROUP name                           []

+--------------------------------------------------------------------------+
|                         SHARED VOLUME GROUP name                         |
|                                                                          |
| Move cursor to desired item and press Enter.                             |
|                                                                          |
|   cws: con1vg                                                            |
|   cws: testshare                                                         |
|                                                                          |
| Esc+1=Help              Esc+2=Refresh           Esc+3=Cancel             |
Esc+1=Help                                                             | Esc+8=Image                                         Esc+0=Exit             
Enter=Do                                                                    |  Esc+4=List
Esc+5=Reset                                                            | /=Find                                                           n=Find Next                                        |  Esc+8=Image                                                        Esc+9=Shell                                                               +--------------------------------------------------------------------------+


IF IT GIVES PROBLEM - SYNCHRONISE IT WITH THE COMMAND BELOW

# cl_updatevg -cspoc "-g RG1" testshare

NOW TRY TO IMPORT AND EXPORT THE VG MANYALLY ON BOTH NODES

ON CWS

# lsvg -o
rootvg
# lsvg
rootvg
testshare
con1vg
# lspv
hdisk0          00fad1d465b1b385                    rootvg
hdisk1          00fad1d4b98a1756                    None
hdisk2          00fad1d4b98a1a3e                    None
hdisk3          000ac1331e511d20                    con1vg
hdisk4          00fad1d4b98a23b2                    testshare
hdisk5          000ac133b98a2e01                    testshare
# exportvg testshare
# importvg -y testshare hdisk4
synclvodm: No logical volumes in volume group testshare.
testshare
# lsvg
rootvg
testshare
con1vg
#
# varyoffvg testshare
# lsvg
rootvg
testshare
con1vg
#

ON PCI

# hostname
pci
# lsvg
rootvg
testshare
con1vg
# lspv
hdisk2          000ac1331e511d20                    con1vg
hdisk3          00fad1d4b98a23b2                    testshare
hdisk4          000ac133b98a2e01                    testshare
hdisk0          000ac13395197f5e                    rootvg
hdisk5          000ac133b98a3360                    None
# exportvg testshare
# importvg -y testshare hdisk3
synclvodm: No logical volumes in volume group testshare.
testshare
# lspv
hdisk2          000ac1331e511d20                    con1vg
hdisk3          00fad1d4b98a23b2                    testshare
hdisk4          000ac133b98a2e01                    testshare
hdisk0          000ac13395197f5e                    rootvg
hdisk5          000ac133b98a3360                    None
# lsvg
rootvg
testshare
con1vg
#


                                                                    


NOW STOP CLUSTER SERVICE

Stop Cluster Services

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                       [Entry Fields]
* Stop now, on system restart or both                 now
  Stop Cluster Services on these nodes            [cws,pci]
  BROADCAST cluster shutdown?                         true
* Shutdown mode                                    graceful






    +--------------------------------------------------------------------------+
   |                              ARE YOU SURE?                              |
   |                                                                         |
   | Continuing may delete information you may want                          |
   | to keep.  This is your last chance to stop                              |
   | before continuing.                                                      |
   |     Press Enter to continue.                                            |
   |     Press Cancel to return to the application.                          |
   |                                                                         |
Esc+1=Help                              Es| Esc+1=Help             Esc+2=Refresh           Esc+3=Cancel             |  Esc+4=List
Esc+5=Reset                             Es| Esc+8=Image            Esc+0=Exit              Enter=Do                 |  Esc+8=Image






VERIFY AND SYNCHORONISE THE CLUSTER



                                                                    Extended Configuration

Move cursor to desired item and press Enter.

  Discover HACMP-related Information from Configured Nodes
  Extended Topology Configuration
  Extended Resource Configuration
  Extended Event Configuration
  Extended Performance Tuning Parameters Configuration
  Security and Users Configuration
  Snapshot Configuration
  Export Definition File for Online Planning Worksheets

  Extended Verification and Synchronization
  HACMP Cluster Test Tool

RESTART THE CLUSTER

MOVE THE RESOURCE GROUP AND TEST VG

/usr/es/sbin/cluster/sbin/cl_chvg -cspoc "-g RG1 " -a n testshare

No comments:

Post a Comment