Configuring new disks on AIX cluster


 
Thread Tools Search this Thread
Operating Systems AIX Configuring new disks on AIX cluster
# 1  
Old 12-10-2008
Configuring new disks on AIX cluster

We run two p5 nodes running AIX 5L in a cluster mode (HACMP), both the nodes share external disk arrays. Only the primary node can access the shared disks at a given point of time.

We are in the process of adding two new disks to the disk arrays so as to make them available to the existing volume group (non rootvg) present on the shared disks. On the primary node following steps were executed to make the disks available,
1. Power down the node and disk arrays.
2. Plug in the new disks.
3. Power on the nodes and disk arrays.
4. Run cfgmgr to configure the new disks.

After the above steps, can see two new disks available on the primary node, which were then added to the existing volume group (non rootvg). A new logical volume was then created using the two new disks.

Will appreciate if anyone can confirm, if the following steps are sufficient to replicate the new disks configuration (and new logical volume configuration)on the secondary server,
1. varyoff the (non rootvg) volume group on the primary node.
2. Ensure the (non rootvg) volume group on the shared disks is varied off.
3. exportvg the volume group on secondary node
4. importvg the volume group on secondary node.

Not quite sure whether would need to delete the existing disk devices from the ODM (using rmdev) and then run cfgmgr on the secondary server before running importvg or whether running exportvg followed by importvg only is sufficient?

Last edited by dnicky; 12-10-2008 at 03:49 PM..
# 2  
Old 12-10-2008
With HACMP 5.1/5.2/5.3/5.4 the procedure runs about like this:
- First: Make disks visible from all cluster nodes by running cfgmgr. The new disk devices "none None" should be visible then on every node. No need to keep device number identical though.
- Second: Create PVID on every disk from every node before you start to introduce them to the cluster. This can be done by a "chdev -l hdiskX -a pv=yes". Only the first time a pvid is written onto the disks. On the second node this command detects the pvid and uses it. I.e. you end up with new disks that can be identified by their pvid from every cluster node.
- Third: let HACMP (from the HACMP SMIT panels) discover the cluster node's new hardware.
- Fourth: use CSPOC to add a disk to an existing shared vg and then to extend LV and FS.
Can be done while HACMP (and the RG) is online.

Now to what you did....that could be done probably but seems to be too complicated to me. The AIX way of administration is somewhat different. Even with a SCSI2 protocal based VG there is neither a need to varyoff the VG from the primary node nor export the VG from the secondary node. You could do a Learning Import online. On primary you do
# varyonvg -b -u <sharedvg>
on secondary
# importvg -L <sharedvg>
and immediately afterwards on primary
# varyonvg <sharedvg>
This procedure was used in HACMP 4.x times. Mind that the Learning Import would be wrong for ECM VG. It also won't work after an exportvg as it expects the VG being known in the server already.
Obviously you stopped the cluster. That way there should at least be no problem with verifying and synchronising the cluster. Test it. After going live don't change anything.

Last edited by shockneck; 12-13-2008 at 08:11 AM.. Reason: removed superfluous command option
# 3  
Old 12-11-2008
Many thanks for your comments.

For my understanding, as I'm not an expert with HACMP, what will happen if the two new disks are not configured i.e. PVIDs are not created using chdev command on the secondary node before starting the cluster services on the primary node?
I guess, obviously the fail over to the secondary node will fail as the cluster services won't be able to access the new disks. In this scenario, will it be ok to create the PVIDs for the new disks on the secondary node and then subsequently fail over to the secondary node?
# 4  
Old 12-12-2008
Quote:
Originally Posted by dnicky
[...]what will happen if the two new disks are not configured i.e. PVIDs are not created using chdev command on the secondary node before starting the cluster services on the primary node?
I guess, obviously the fail over to the secondary node will fail as the cluster services won't be able to access the new disks. In this scenario, will it be ok to create the PVIDs for the new disks on the secondary node and then subsequently fail over to the secondary node?
You are right both with your assumption about what whould happen and that you need to make the PVIDs known to secondary before you could proceed. I don't know which HACMP version you use. Regardless of the version the following procedure should work: make the PVID visible, then update the VG information on secondary while HACMP is stopped (by a Learning Import), then verify and sychcronise the Cluster.

If you are curious you could try to verify/sync the cluster with the autocorrection flag activated after assigning the PVID but before the manual import to find out if there was a chance that the cluster would resolve the problem on its own. I did not try this with current HACMP version but saw some enhancements in 5.4.1 compared to earlier versions that make me think that it might be possible now. When you are below version 5.3 forget it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to reclaim hard disks and IP's in AIX?

Hello I recently received a request to reclaim hard disks and IP addresses within an AIX system(s). THe file systems are no longer in use and the client has indicated that it is OK to remove them and reclaim the disks and release the IP's. Now, since the file systems belong to a Volume group I... (8 Replies)
Discussion started by: Joseph Sabo
8 Replies

2. Solaris

Modifying properties to use scsi-3 reservation for disks with two paths in sun cluster

Hi I am having two node cluster. I was trying to change the to use scsi3 reservation for all disks having two paths. Please let me know where I went wrong or there any issue to implement the same. On node1 bash-3.2# cldev status === Cluster DID Devices === Device Instance ... (8 Replies)
Discussion started by: sb200
8 Replies

3. Red Hat

configuring broadcast traffic to heart commuication RH cluster

Hello, can someone please suggest how do I configure heartbeat communication to user broadcasting instead of multicasting for redhat cluster setup. Thanks, (3 Replies)
Discussion started by: bobby320
3 Replies

4. Red Hat

configuring MYsql db on redhat cluster

Hello, can someone please suggest me in configuring the mysql db on redhat cluster, I have few questions. 1. where do I have to configure heart beat links, and is there any file in the redhat cluster that we update it to use these ipaddress and these interface on the node. 2. I am configuring... (0 Replies)
Discussion started by: bobby320
0 Replies

5. AIX

Should GPFS be configured before/after configuring HACMP for 2 node Cluster?

Hi, I have a IBM Power series machine that has 2 VIOs and hosting 20 LPARS. I have two LPARs on which GPFS is configured (4-5 disks) Now these two LPARs need to be configured for HACMP (PowerHA) as well. What is recommended? Is it possible that HACMP can be done on this config or do i... (1 Reply)
Discussion started by: aixromeo
1 Replies

6. AIX

Configuring ACL on AIX 5.3

Hello All, Let me quickly come down to my problem.. I have a file with following description: == root:/me01/tia/filetr ans # ls -lrt DW_NUM_OF_ROWS_TSP.txt -rwxrwxr-- 1 tiaoas oinstall 43 Jun 07 17:12 DW_NUM_OF_ROWS_TSP.txt root:/me01/tia/filetrans # aclget DW_NUM_OF_ROWS_TSP.txt *... (3 Replies)
Discussion started by: thisissouvik
3 Replies

7. AIX

Configuring AIX with Windows AD

Hey Guys Has anyone out here tried configuring AIX as AD clients for authentication? I have seen redbooks explaining stuffs but has it worked well for anyone? Thanks Bala (1 Reply)
Discussion started by: balaji_prk
1 Replies

8. AIX

Configurin EMC SAN disks on AIX

This may sound like an absolute rookie question, and it is. I have been working on Migrating our HP and Solaris servers to the new EMC SAN and know the routines backwards. Now we've suddenly got a new IBM server and I don't even know how to check if it is connected to the switch. Can someone... (1 Reply)
Discussion started by: ronellevan
1 Replies

9. AIX

system disks on aix 5.3

hello i'm running on P570 box aix 5.3 8 cpus 24G ram there are 1850 users loged in to this box the problem is that the two sysytem disks busy all the time hdisk0 100% busy hdisk1 100% busy some one have an idea what writing to this disks? thanks ariec (9 Replies)
Discussion started by: ariec
9 Replies

10. UNIX for Dummies Questions & Answers

Disks on AIX

Hello I've been working on AIX 5.3 ML3 on IBM pSeries520. That server has 6 HDD drives in 3 volume groups (1+mirror in each group). I must check which phisical disk is which disk in the system. For ex. I want to know that disk in 4th slot in the machine is marked as hdisk5 on AIX. Does anybody... (2 Replies)
Discussion started by: piooooter
2 Replies
Login or Register to Ask a Question