Solved

AIX vary off/vary on on cluster node

Posted on 2015-02-09
7
242 Views
Last Modified: 2015-02-27
We  need to install VCS cluster on AIX server, but we need to pre-resting.

IF we map Disks from VIO server to 2 LPARs,  in first node you will create the VG and will add those disk to VG and vary on the VG , and mount the FS

If you go to scond node,  you just need to import the  disk on the VG right? After unmount and vary of from node1 ?
0
Comment
Question by:mokkan
  • 4
  • 3
7 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 40599634
Right!

Please take care to create the PVIDs already on VIOS (chdev -dev hdiskX -attr pv=yes) before mapping the disks, instead of letting the PVIDs be created automatically during mkvg/extendvg on the LPAR.

If VCS supports concurrent mode VGs (I only know PowerHA) then in the future (i.e. once both nodes know the VG) you just need to run "importvg -L ..." on the second node after making changes/adding disks on the first node. No more varyoff required.
0
 

Author Comment

by:mokkan
ID: 40600446
Thank you for the update. do you need to import the disks all the time or can you just vary on?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 40600461
When a disk has been added to the VG on node A you must run on node B

importvg -L <vgname> <hdiskname>

where <hdiskname> is the name of a disk already known to node B, not the name of the new disk!

The volume group must be varied on on node A and thus must not be varied on on node B (where the "importvg -L ..." command is run).

Notes:

- Take care to run "cfgmgr" on node B before running "importvg", so that the new disk is actually known to the OS of node B
- It might be necessary to unlock the volume group's disks on node A to run "importvg -L ..." successfully on node B. To unlock run on node A: "varyonvg -b -u <vgname>".  This can be done while the VG is varied on. The VG and its disks will remain active and useable.

- I made a mistake in my first comment: "importvg -L .." works also on non-concurrent VGs, sorry!

VGs varied on in concurrent mode require a cluster process to monitor VG/LV states and accesses. This process will also make new hdisks and LVs known to all nodes in the cluster, provided that the disks have been made available and known to all nodes via "cfgmgr" before running "extendvg" on the primary node.

"importvg -L ..." is then only needed to make new filesystems known to the respective node. At least under PowerHA the cluster process ("gsclvmd") will not see new filesystems.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:mokkan
ID: 40600470
Thano you.  Once you imported the disk. OS should know about the disks and you can just vary on the vg and mount the F'S right? You don't need to import all the time?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 40600476
If nothing has changed (no new disks, LVs or filesystems!)  you can just varyoff the VG on node A and varyon on node B. No import required, just mounting the FS's.
0
 

Author Comment

by:mokkan
ID: 40600483
Awesome thank you.  If you want to remove the hdisk from both nodes, you can unmapped from vios  and if you run cfgmgr  it should go away right?
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 40600499
Not quite right.

Of course you'll have to get rid of the filesystesms and logical volumes on the hdisks first.
On node A remove the LVs and FSs and run reducevg,  then run importvg -L on all other nodes.
The above makes the disks "free" and, after unmapping from VIOs, you can run

rmdev -dl hdiskN

on every node for every disk you want to remove.

Just "cfgmgr" is not sufficient!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now