cancel
Showing results for 
Search instead for 
Did you mean: 

Mirroring Issue

 
Indrajit Bhagat
Regular Advisor

Mirroring Issue

anlbiluh:/home/shahul#uname -a
HP-UX anlbiluh B.11.23 U ia64 0190259946 unlimited-user license


We had a Logical Volume which is mirrored accrossed the array:

Say One Array is 1934 & another is 2034.

Problem:
Bymistakely while extending the file system, The mirror got extended on the same arrary (1934).

I had custimized script which shows that mirroring is not correct, which means, the mirror got extend on the same array only.

 

c90t3d0 and c90t3d0 are in same array, Mirroring not correct
c90t3d1 and c90t3d1 are in same array, Mirroring not correct
c90t3d1 and c90t3d2 are in same array, Mirroring not correct
c90t3d2 and c90t3d2 are in same array, Mirroring not correct
c90t3d3 and c90t3d3 are in same array, Mirroring not correct
c90t3d3 and c90t3d4 are in same array, Mirroring not correct
c90t3d4 and c90t3d4 are in same array, Mirroring not correct
c90t3d4 and c90t3d5 are in same array, Mirroring not correct
c90t3d5 and c90t3d5 are in same array, Mirroring not correct
c90t3d5 and c90t3d6 are in same array, Mirroring not correct
c90t3d6 and c90t3d6 are in same array, Mirroring not correct
c90t3d6 and c90t3d7 are in same array, Mirroring not correct
c90t3d7 and c90t3d7 are in same array, Mirroring not correct
c90t3d7 and c90t4d0 are in same array, Mirroring not correct
c90t4d0 and c90t4d0 are in same array, Mirroring not correct
c90t4d0 and c90t4d1 are in same array, Mirroring not correct
c90t4d1 and c90t4d1 are in same array, Mirroring not correct
c90t4d1 and c90t4d2 are in same array, Mirroring not correct
c90t4d2 and c90t4d2 are in same array, Mirroring not correct
c90t4d2 and c90t4d3 are in same array, Mirroring not correct
c90t4d3 and c90t4d3 are in same array, Mirroring not correct
c90t4d3 and c90t4d4 are in same array, Mirroring not correct
c90t4d4 and c90t4d4 are in same array, Mirroring not correct
c90t4d4 and c90t4d5 are in same array, Mirroring not correct
c90t4d5 and c90t4d5 are in same array, Mirroring not correct
c90t4d5 and c90t4d6 are in same array, Mirroring not correct
c90t4d6 and c90t4d6 are in same array, Mirroring not correct
c90t4d6 and c90t4d7 are in same array, Mirroring not correct
c90t4d7 and c90t10d7 are in same array, Mirroring not correct
c90t4d7 and c90t4d7 are in same array, Mirroring not correct
c91t11d6 and c91t11d6 are in same array, Mirroring not correct
c91t11d7 and c91t11d7 are in same array, Mirroring not correct
c91t12d0 and c91t12d0 are in same array, Mirroring not correct
c91t12d1 and c91t12d1 are in same array, Mirroring not correct
c91t12d2 and c91t12d2 are in same array, Mirroring not correct
c91t12d3 and c91t12d3 are in same array, Mirroring not correct
c91t12d4 and c91t12d4 are in same array, Mirroring not correct
c91t12d5 and c91t12d5 are in same array, Mirroring not correct
c92t3d6 and c92t3d6 are in same array, Mirroring not correct
c92t3d7 and c92t3d7 are in same array, Mirroring not correct
c92t4d0 and c92t4d0 are in same array, Mirroring not correct
c92t4d0 and c92t4d1 are in same array, Mirroring not correct
c92t4d1 and c92t4d1 are in same array, Mirroring not correct
c92t4d2 and c92t4d2 are in same array, Mirroring not correct
c92t4d3 and c92t4d3 are in same array, Mirroring not correct
c92t4d4 and c92t4d4 are in same array, Mirroring not correct
c92t4d4 and c92t4d5 are in same array, Mirroring not correct
c92t4d5 and c92t4d5 are in same array, Mirroring not correct
c92t7d2 and c92t7d2 are in same array, Mirroring not correct
c92t7d3 and c92t7d3 are in same array, Mirroring not correct
c92t7d4 and c92t7d4 are in same array, Mirroring not correct
c92t7d4 and c92t7d5 are in same array, Mirroring not correct
c92t7d5 and c92t7d5 are in same array, Mirroring not correct
c92t7d6 and c92t7d6 are in same array, Mirroring not correct

I am looking for to move any one PV data to another PV of array 2034, but i am confused

   PV Name                 LE on PV  PE on PV
   /dev/dsk/c90t3d0        35        62

If i do pvmove -n LVname /dev/dsk/c90t3d0 to any disk cxtxdx (of 2034 array), then whole data of c90t3d0 That is LE(35) PE(62) will be moved to disk on array 2034, then the sam problem would exist on disk of array 2034,

could you please suggest whether any way we could correct this problem

For example:

/dev/vgdrt02/dbusg2archlv
   --- Distribution of logical volume ---
   PV Name                 LE on PV  PE on PV
   /dev/dsk/c90t3d0        35        62
   /dev/dsk/c90t3d1        35        62
   /dev/dsk/c90t3d2        35        62
   /dev/dsk/c90t3d3        35        62
   /dev/dsk/c90t3d4        32        62
   /dev/dsk/c90t3d5        32        62
   /dev/dsk/c90t3d6        32        62
   /dev/dsk/c90t3d7        32        62
   /dev/dsk/c90t4d0        32        62
   /dev/dsk/c90t4d1        32        62
   /dev/dsk/c90t4d2        32        62
   /dev/dsk/c90t4d3        32        62
   /dev/dsk/c90t4d4        102       202
   /dev/dsk/c90t4d5        102       202
   /dev/dsk/c90t4d6        102       202
   /dev/dsk/c90t4d7        103       202
   /dev/dsk/c90t10d6       1859      1859
   /dev/dsk/c90t10d7       1859      1859
   /dev/dsk/c91t11d6       31        62
   /dev/dsk/c91t11d7       31        62
   /dev/dsk/c91t12d0       31        62
   /dev/dsk/c91t12d1       31        62
   /dev/dsk/c91t12d2       31        62
   /dev/dsk/c91t12d3       31        62
   /dev/dsk/c91t12d4       31        62
   /dev/dsk/c91t12d5       31        62
   /dev/dsk/c91t12d6       294       294
   /dev/dsk/c91t12d7       294       294
   /dev/dsk/c91t13d0       294       294
   /dev/dsk/c91t13d1       294       294
   /dev/dsk/c92t3d6        23        46
   /dev/dsk/c92t3d7        23        46
   /dev/dsk/c92t4d0        24        47
   /dev/dsk/c92t4d1        24        47
   /dev/dsk/c92t4d2        3         6
   /dev/dsk/c92t4d3        3         6
   /dev/dsk/c92t4d4        4         7
   /dev/dsk/c92t4d5        4         7
   /dev/dsk/c92t7d2        23        46
   /dev/dsk/c92t7d3        23        46
   /dev/dsk/c92t7d4        24        47
   /dev/dsk/c92t7d5        24        47
   /dev/dsk/c92t7d6        128       256
   /dev/dsk/c94t4d4        100       100
   /dev/dsk/c94t4d5        99        99
   /dev/dsk/c94t4d6        99        99
   /dev/dsk/c94t4d7        99        99
   /dev/dsk/c94t10d6       1859      1859
   /dev/dsk/c94t10d7       1858      1858
   /dev/dsk/c95t12d6       202       202
   /dev/dsk/c95t12d7       202       202
   /dev/dsk/c95t13d0       202       202
   /dev/dsk/c95t13d1       202       202
   /dev/dsk/c93t0d2        1859      1859
   /dev/dsk/c93t0d3        1859      1859
   /dev/dsk/c93t0d4        480       480
   /dev/dsk/c93t0d5        480       480
   /dev/dsk/c97t0d2        1859      1859
   /dev/dsk/c97t0d3        1859      1859
   /dev/dsk/c97t0d4        480       480
   /dev/dsk/c97t0d5        480       480

 

 

4 REPLIES
Patrick Wallek
Honored Contributor

Re: Mirroring Issue

The only thing I can think of is to reduce your mirror (lvreduce -m 0) and then extend the mirror onto the correct disks.

Indrajit Bhagat
Regular Advisor

Re: Mirroring Issue

Hi Patric, Doing lvreduce -m 0 , will not that create an issue in PE distribution, as mirroring is been happened on the same disk of the same array.

 

I am also looking for creating a new volume, and mount it temporariry and copy the data from old mounpoint to new point.

 

but I am looking for an alrternative in which we could correct the mirror without downtime.

 

Yesterday i tried to do pvmove:

While doing pvmove following problem I faced

 

 

Checking Logical Volume /dev/vgdrt01/dbusg1archlv

c90t10d5 and c90t1d1 are in same array, Mirroring not correct

c91t10d4 and c90t1d2 are in same array, Mirroring not correct

c91t10d5 and c90t1d1 are in same array, Mirroring not correct

c94t1d0 and c95t11d2 are in same array, Mirroring not correct ( If I am moving this PV c94t1do (from 1934) which is holding 64 PE to other PV of another array)

Here c94t11d0 is mirrored with c95t11d2, so i am moving only PV of c94t1d0 to another array disk)

c94t1d1 and c95t11d2 are in same array, Mirroring not correct

c94t1d1 and c95t11d3 are in same array, Mirroring not correct

c94t1d2 and c95t11d3 are in same array, Mirroring not correct

c94t1d2 and c95t11d4 are in same array, Mirroring not correct

c94t1d3 and c95t11d4 are in same array, Mirroring not correct

c94t1d3 and c95t11d5 are in same array, Mirroring not correct

c94t1d4 and c95t10d3 are in same array, Mirroring not correct

c95t10d2 and c94t2d1 are in same array, Mirroring not correct

 

#pvmove -n /dev/vgdrt01/dbusg1archlv /dev/dsk/c94t1d0 /dev/dsk/c90t2d0

 

Checking Logical Volume /dev/vgdrt01/dbusg1archlv

c90t10d5 and c90t1d1 are in same array, Mirroring not correct

c91t10d4 and c90t1d2 are in same array, Mirroring not correct

c91t10d5 and c90t1d1 are in same array, Mirroring not correct

c91t11d2 and c90t2d0 are in same array, Mirroring not correct (on another array mirror issue comes)

c94t1d1 and c95t11d2 are in same array, Mirroring not correct

c94t1d1 and c95t11d3 are in same array, Mirroring not correct

c94t1d2 and c95t11d3 are in same array, Mirroring not correct

c94t1d2 and c95t11d4 are in same array, Mirroring not correct

c94t1d3 and c95t11d4 are in same array, Mirroring not correct

c94t1d3 and c95t11d5 are in same array, Mirroring not correct

c94t1d4 and c95t10d3 are in same array, Mirroring not correct

c95t10d2 and c94t2d1 are in same array, Mirroring not correct

 

When i doing PV move, It creates the same problem on another array.On another array also it got copied to two disk

 

 

Torsten.
Acclaimed Contributor

Re: Mirroring Issue

But why not removing the mirror and create it again on the correct array???


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Mirroring Issue

BTW, to prevent such issues you should work with PVG strict volumes.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!