Adding a Volume Group to an HACMP Resource Group?


 
Thread Tools Search this Thread
Operating Systems AIX Adding a Volume Group to an HACMP Resource Group?
# 1  
Old 06-29-2011
Adding a Volume Group to an HACMP Resource Group?

Hi,

I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over)

Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes over the mount point should move with. it.

As we all know that when a node goes down the Resource Group (RG) moves to the backup node as well. I want to add this new mount point in a new VG and add this VG to the RG so that i can get the desired operation.

Thanks.Smilie

---------- Post updated at 04:40 AM ---------- Previous update was at 02:28 AM ----------

I just want to know what are the steps to do this?

Plus the VGs that I create should they be enhanced concurrent etc?
Regards,

Last edited by aixromeo; 06-29-2011 at 04:41 AM..
# 2  
Old 06-29-2011
@aixromeo
Check out this link
This User Gave Thanks to h@foorsa.biz For This Post:
# 3  
Old 06-30-2011
create a concurrent capable vg on one side, then varyoff, and import it on the other node, of course you need to see the disk on both nodes

make sure you use the same vg major number

importvg -V majornumber -y yourvg hdiskx


I always want to make sure, that my disks have the same hdisk number on both nodes, but this is not absolutely necessary


then discover os changes in hacmp, add the vg to your resource group (make sure it's varied of before you start the cluster)
synchronise the cluster and you are done

I recommend adding lvs und filesystems before you import the vg on the other node, so you don't have to work with cspoc, but with standard lvm commands



this is a general description because I don't have the time to make it more detailed, but ask if you have troubles somewhere
This User Gave Thanks to funksen For This Post:
# 4  
Old 06-30-2011
Thanks for the reply,

Well I have created a new VG. enhanced concurrent. Then i created a FileSystem on that VG. That too enhanced concurrent.

Then I imported the VG to the second node

import -y <VG> <hdisk#>

It got imported.

Now I go to smit hacmp>Extended Config>Extended Resource Config>HACMP Extended resource group config>Change/Show attributes of a resource group

But i cannot see my VG there. It just shows the diskhbvg thats it Smilie
# 5  
Old 06-30-2011
Did you issue a discovery?

Extended Configuration > Discover HACMP-related Information from Configured Nodes
This User Gave Thanks to zaxxon For This Post:
# 6  
Old 06-30-2011
Guys Thanks a ton for the replies.
The issue has been resolved!

I did the following.

(Didnt create the VG using smitty vg)
1. smitty hacmp>(System Management)CSPOC>Storage>Volume Group>Create a VG

Selected both nodes
>node1
>node2

Selected the participating disks (one on node1 and the other on node2 same PVID)

Then I filled in the info > Resource Group, VG name and thats it..

My VG was created on both the nodes!

Then I went to the same options in point 1 and this time i selected Create a File system

Created my file system on the VG..

and now it is mounted on the active node and it moves with the resource group!

Thank you all Smilie
# 7  
Old 06-30-2011
Quote:
Originally Posted by funksen
Code:
importvg -V majornumber -y yourvg hdiskx

Quote:
Originally Posted by aixromeo
Then I imported the VG to the second node

Code:
import -y <VG> <hdisk#>

Before you start using your resource group you might want to reimport the VG again using the "-V" flag as funksen said.

It is not a *requirement* to have the same Major Number for the VG on both participating nodes but it makes administrating the cluster a lot easier in the long run.

To get the major number have a look at the node where you created the VG. You will notice an character-device entry /dev/<vgname>, which has a certain major number. Like in this example, the major number is 34:

Code:
root@system# lsvg
rootvg
datavg
imagevg

root@system# ls -l /dev/datavg
crw-rw----    1 root     admin        34,  0 Jan 20 13:46 /dev/datavg

This you can use to import the VG on the other node with the same Major Number.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

2. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies

3. Shell Programming and Scripting

Need to create an for loop for adding an disk in veritas volume group.

Hi Experts I need an script to add an disk in to the veritas volume manager disk group. For example: # cd /tmp # view disk c6t5d2 c6t2d1 c6t3d7 c6t11d2 c7t11d2 c6t11d6 Normally we add the disk like this: # vxdg -g freedg freedisk01=c6t5d2 # vxdg -g freedg freedisk02=c6t2d1 #... (3 Replies)
Discussion started by: indrajit_preet
3 Replies

4. AIX

Adding existing VG to powerHA Resource group

Hello. I am Running AIX 6.1 and PowerHA 6.1 I have an active/active cluster (Prod/Dev) cluster. Each side will failover to the other. I have on my prod side an active volume group with a file system. The VG is imported on both nodes and active (varried on, file system mounted) on the prod... (3 Replies)
Discussion started by: mhenryj
3 Replies

5. AIX

HACMP, NFS cross-mount problem. Can not move resource group

Hi, I'm new to HACMP. Currently I setup a cluster with nfs cross-mount follow this guide: kristijan.org NFS cross-mounts in PowerHA/HACMPMy cluster has two nodes: erp01 and erp02. I'm using nfs4 with filesystem for nfs is: /sapnfs Cluster start without problems. But I cannnot move RG (with... (3 Replies)
Discussion started by: giobuon
3 Replies

6. AIX

HACMP resource group State not STABLE

Hi, Not sure if this is the correct forum to post this on but maybe a mod could move it if not. When trying to move a HACMP resource group between lpars on AIX I receive the following. State not STABLE/RP_RUNNING or ibcasts Join for node 2 rejected, Clearing in join protocol flag... (11 Replies)
Discussion started by: elmesy
11 Replies

7. AIX

Resource Group Monitoring

Hi, I have a requirement to monitor the HACMP Resource Groups. At present in my environment, if the Resource Groups fail over from preferred node to Secondary node we dont get notification. Can some one help me in creating a scrript. I have more than one RG online. (Max 4 Resource Groups in... (2 Replies)
Discussion started by: srnagu
2 Replies

8. AIX

Logical volume name conflict in two volume group

Hello, I am a french computer technician, and i speak English just a little. On Aix 5.3, I encounter a name conflict logical volume on two volume group. The first volume lvnode01 is OK in rootvg and mounted. It is also consistent in the ODM root # lsvg -l rootvg |grep lvnode01 ... (10 Replies)
Discussion started by: dantares
10 Replies

9. AIX

Moving a Logical Volume from one Volume Group to Another

Does anyone have any simple methods for moving a current logical volume from one volume group to another? I do not wish to move the data from one physical volume to another. Basically, I want to "relink" the logical volume to exist in a different volume group. Any ideas? (2 Replies)
Discussion started by: krisw
2 Replies

10. UNIX for Advanced & Expert Users

LVM - Extending Logical Volume within Volume Group

Hello, I have logical volume group of 50GB, in which I have 2 logical volumes, LogVol01 and LogVol02, both are of 10GB. If I extend LogVol01 further by 10GB, then it keeps the extended copy after logical volume 2. I want to know where it keeps this information Regards Himanshu (3 Replies)
Discussion started by: ghimanshu
3 Replies
Login or Register to Ask a Question