Mirrorvg to different multiple disks


 
Thread Tools Search this Thread
Operating Systems AIX Mirrorvg to different multiple disks
# 1  
Old 01-16-2014
Mirrorvg to different multiple disks

Hi All,
I have a vg that consists of 2 physical disks (PV), To migrate the vg into these 2 new disks (presented from different SAN Storage), I use the mirrorvg command, but I am not sure the command I use is correct.

Code:
 hdisk1  appvg
 hdisk2  appvg
 hdisk3  none    
 hdisk4  none

  mirrorvg appvg hdisk3 hdisk4

Could someone assists me to verify this ? logically it will automatically distribute the source to target disks accordingly.

Thanks
# 2  
Old 01-16-2014
Mirrorvg in HACMP

Hi All,
I have a db2 DPF database running in active/active using HACMP.
Would like to migrate the vol into different hdisk using mirrorvg. But I understand that HACMP require to use its own mirror method to mirrorvg not AIX mirrorvg command.

Could someone share the steps to perform the HACMP mirrorvg ?

Thanks.
# 3  
Old 01-16-2014
Quote:
Originally Posted by ckwan
Hi All,
I have a vg that consists of 2 physical disks (PV), To migrate the vg into these 2 new disks (presented from different SAN Storage), I use the mirrorvg command, but I am not sure the command I use is correct.

Code:
hdisk1  appvg
hdisk2  appvg
hdisk3  none    
hdisk4  none

mirrorvg appvg hdisk3 hdisk4

Close, but not quite:

First, use extendvg <VG> <hdisk> to add the disk(s) to the VG. You can only mirror to disks already present in the VG.

Second: use the command you suggested. Note, however, that you have to watch out for some gotchas:

You may need to change the quorum of the VG. The quorum is the number of PVs needed to be available for a varyonvg to succeed. Additional restrictions apply if the VG is part of a resource group in a HA-cluster, but i suggest you do NOT try to configure such a cluster if you have no firm grasp of AIX concepts. Do yourself a favor and hire an expert for such a task or - if you have enough time for this - first learn AIX/HACMP concepts to the point where you are familiar with these. It's like driving a car: in principle not too complicated, but try to do it without training and you are likely to cause some damage. There are a lot of valuable resources for this (i suggest reading the freely available "IBM Redbooks", which can be downloaded in PDF-format) but you need to get familiar with these first, everything else is asking for trouble.

Basically, the LVM works like this: you have "physical volumes" (PVs), which are logical disks. Each PV is member of one and only one VG. Upon adding the disk to the VG (by which it becomes a PV) it is chopped into small pieces (PPs - "physical partitions") and these pieces can be added to "logical volumes" (LVs). Onto LVs filesystems or all other sorts of things can be put: swap devices, JFSlog devices, ... .

In principle these LVs consist of "logical partitions" (LPs), which are the same size as PPs. Every LP is represented by one PP. In case of mirroring you have a 2:1 ratio and every LP is represented by 2 (or even 3) different PPs, each with the same content. Mirroring is done on LV level and you can have mirrored alongside unmirrored LVs within the same VG. A mirrorvg command just executed the mirror process for each LV automatically.

Also in principle, PPs are anonymous and you do not have to care from which disk (PV) they come from. However, the selection process for allocation as well as mirroring can be influenced (i.e. allow/forbid all copies of a LP to be on the same disk) in the LV properties ("Intra-policy" and "Inter-policy", quite a poor choice of naming).

Now, this was a (very very short) introduction to LVM concepts, but it probably left more questions than it provided answers. For LVM too there is a redbook which i suggest you read.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 4  
Old 01-16-2014
Hello to answer the question of your 1st post,
Make sure the disk attributes are set same as existing PVs
1st you need to extend the vg
Code:
extendvg appvg hdisk3 hdisk4
mirrorvg appvg hdisk3 hdisk4  (also you can use -S flag to sync in the background)


Answer to 2nd post
To the best of my knowledge HACMP is active/passive, never worked on PowerMirror7.1, and not sure if it has active/active feature.

If I am not mistaken you will find it in C-SPOC feature with in HACMP, currently I have no cluster(s) to exactly point where you can do so.

Moreover I don't remember doing a mirrorvg from HACMP.


I hope this helps.
# 5  
Old 01-16-2014
Quote:
Originally Posted by ibmtech
Answer to 2nd post
To the best of my knowledge HACMP is active/passive, never worked on PowerMirror7.1, and not sure if it has active/active feature.
HACMP (all versions, regardless of their name) have "rotating" and "cascading" resource groups.

"rotating" is active/passive: NodeA has RgA, NodeB is passive, you can switch this state, but the other node will be passive in this case.

"cascading" is active/active: NodeA has RgA, NodeB has RgB, if NodeB fails, nothing happens, if NodeA fails then NodeB will take over RgA and either shut down RgB or not.

The latter setup is for instance used in SAP setups, where you run production on one system and Test/Development on the other. Prod is HA, Test/Dev is not. Of course all this is possible with more than two nodes too, adding more complexity.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 6  
Old 01-16-2014
About the First post, AIX gurus there, could migratepv be an alternative (because the thread owner is talking of migrating PVs...)? (just adding some salt...) then I suppose the next step would have been to remove the old PVs...
# 7  
Old 01-16-2014
Quote:
Originally Posted by vbe
About the First post, AIX gurus there, could migratepv be an alternative (because the thread owner is talking of migrating PVs...)? (just adding some salt...) then I suppose the next step would have been to remove the old PVs...
Yes, migratepv would work, but it is easier to do the mirroring in one run, then remove the mirror in a second run. Doing it with "migratepv" is more hassle.

You are right about removing the old PVs afterwards if you want to do a migration. When i wrote my first answer i got somewhat carried away and forgot the last part:

after mirroring the whole volume (check with lsvg -l <VG>, all LVs have to be in status "syncd". Depending on sizes and SAN speed this may take some while.) use "unmirrorvg" to remove the copies residing on the old disks.

Lastly, when this is done and the disks are indeed free, use reducevg to remove the old disks from the VG.

Finally you might use rmdev -dl <hdiskN> to remove the disk devices, unattach the LUNs from the system and then run cfgmgr again to update the configuration.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to know the progress of HA C-SPOC Mirrorvg?

Hi, Anyone know how to check the progress of the HACMP C-SPOC mirror for the vg ? I know there is lsvg -l <appvg>, it show the open/stale .. but I couldn't see the progress of it. Your feedback is very appreciated. Thanks. (2 Replies)
Discussion started by: ckwan
2 Replies

2. Solaris

Broken Disks (?)

Hello Folks, I´m a New Unix admin (by forceps) and I got a warning from one server saying: Solaris Volume Manager: hostnamehere: metacheck: Report: Mon May 14 18:45:00 BRT 2012 -------------------------------------------------------------- metacheck: metadb problem, for more detail run: ... (2 Replies)
Discussion started by: pxb368@motorola
2 Replies

3. Shell Programming and Scripting

Looking for help with script to assign all disk space to slice#0 on multiple disks of varying sizes

Hi Folks, I am trying to make a script to assign all diskspace to slice 0, on multiple sized disks. Since the disks are new they may need to be labelled also to avoid the error: Cannot get disk geometry Below is my code struggling with logic which doesn't seem to be producing the desired... (0 Replies)
Discussion started by: momin
0 Replies

4. Solaris

Get # of disks as non-root

I'm trying to figure if there are commands I can run as non-root/non-privileged users to figure out the number of disks. I know I can use format but it needs root. Any idea? (10 Replies)
Discussion started by: PPPP
10 Replies

5. Filesystems, Disks and Memory

FC related disks

Dear Friends, I would like know what are FC related disks and how it will be viewed by generic OSes (Unix, Unix like, Windows & etc.) AFAIK it is viewed by generic OS as SCSI. Can we have FC related disks as internal storage(physically) of general purpose machine (Server / PC /... (1 Reply)
Discussion started by: Tlogine
1 Replies

6. UNIX for Advanced & Expert Users

how to create multiple-boot system with disks mirrored(RAID1+0) and disk alone

I have a HP proliant ML 570 G3 with two 146GB disk drives mirrored(RAID1+0) windows server 2003 was installed on that disk. I will add a disk.(scsi 300GB) I will install Linux on that additional disk. I want to create multiple-boot system. Is it possible? I wanna know how to create... (0 Replies)
Discussion started by: lifegeek
0 Replies

7. Solaris

Re-using disks

I would like to know if I can move the disks from a V240 chassis into a V440 chassis to use the increased resources (CPU & Memory) to boost performance. I know you can move disks between V210/240 chassis's, but I'm not sure if this would work between 240s & 440s. Any help would be much appreciated. (4 Replies)
Discussion started by: Chains
4 Replies

8. Solaris

disks in solaris

whats the command to find name of all disks. Is it iostat -En ? (1 Reply)
Discussion started by: vikashtulsiyan
1 Replies

9. Solaris

New Array of disks

I was just curious if anyone has a good tutorial or some info about how I can create and add an array of disks to solaris 8 (11 Replies)
Discussion started by: BRaider
11 Replies

10. UNIX for Dummies Questions & Answers

how many disks do I have?

Hi How do I check how many disks do I have in Solaris & HP-UX? Also what does this mean c9t1d5 in /dev/dsk what is c, t, d etc cheers (8 Replies)
Discussion started by: g-e-n-o
8 Replies
Login or Register to Ask a Question