mirror problem

 
SOLVED
Go to solution
A.G.M. Velthof
Valued Contributor

mirror problem

Hello to all,

 

we do have a weird problem.....

 

In the process of an lvreduce from a mirror lv to a 1 mirror lv, somebody wanted to perform that for half of the pvg.

The pvg exists of 16 disks and the lv is reduced with 8 disks.

 

The situation now is a 1 mirror lv spreaded of the 2 remaining pvg and 8 from the 16 disks of the pvg that had to be removed.

 

I cannot remove the remaining 8 disks of that pvg with lvreduce, because there is only 1 mirror left.

 

Anyone any idea how to solve this?

 

Regards, Alfons Velthof

13 REPLIES 13
Torsten.
Acclaimed Contributor

Re: mirror problem

IMHO the most safe solution is to mirror the LVOL again to the disks you want to keep, then remove the mirror from the disks you want to remove.


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!   
A.G.M. Velthof
Valued Contributor

Re: mirror problem

Hello Torsten,

 

that is not an option here.

We have the situation of 3 pvg's and 1 mirror.

 

Regards, Alfons

Torsten.
Acclaimed Contributor

Re: mirror problem

3 PVG???

More details needed.

(vgdisplay, pvdisplay, lvdisplay, etc)

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!   
Patrick Wallek
Honored Contributor

Re: mirror problem

>>More details needed.

 

Yes, please.  I really don't understand what the problem is.

A.G.M. Velthof
Valued Contributor

Re: mirror problem

We are moving our data from 2 EVA's to 2 new F400 3PAR's and use hpux mirror for that.

The steps to do that are:

 

1. create disks on the 3PAR systems.

2. add the disks to the volume group

3. add the disks from 1 3PAR to the /etc/lvmpvg as a new pvg

4. lvextend [/dev/vgxxx/lvxxxx] -m 2 [new disks]

5. after syncing is compleet lvreduce [/dev/vgxxx/lvxxxx] -m 1 [old disks from 1 EVA

6. vgreduce [dev/vgxxx] [old disks from EVA]

 

then do the same trick for the other 3PAR and EVA, so we end up with 2 new 3PAR's in a mirror.

 

What went wrong here is:

We decided to do a lvreduce for not all the disks of the EVA, because there were to many disks for the commandline.

We got an error and now the situation is:

3 pvg's (EVA1, EVA2, 3PAR1)

1 mirror

So the mirror is located on 3 pvg's.

 

I cannot delete the remaining disks from the EVA with lvreduce because mirror is already 1

 

 

Patrick Wallek
Honored Contributor

Re: mirror problem

The 'pvmove' command may be what you need.  That allows you to  move extents between disks.

 

If you can show use some vgdisplay and lvdisplay output from the LV, that may help.

Dennis Handly
Acclaimed Contributor

Re: mirror problem

>We are moving our data from 2 EVAs to 2 new F400 3PARs and use HP-UX mirror for that.

 

No peer motion available for 3.1.2 for that?

A.G.M. Velthof
Valued Contributor

Re: mirror problem

I did apply a repost with attachment Yesterday, but it didn't show in the forum?

Dennis Handly
Acclaimed Contributor

Re: mirror problem

>I did apply a repost with attachment yesterday,

 

Did you give it a .txt suffix?

Please delete your last two giant posts and use the Post Options > Edit Reply to add the attachments to your first post.