Sponsored Content
Operating Systems AIX Mirrorvg to different multiple disks Post 302883859 by bakunin on Thursday 16th of January 2014 11:22:50 AM
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:
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
All times are GMT -4. The time now is 03:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy