[linux-lvm] Simulating LVM Mirror Failure and recovery

Lupe Christoph lupe at lupe-christoph.de
Thu Apr 16 14:40:57 UTC 2009


On Thursday, 2009-04-16 at 07:58:31 -0600, Eric Brunson wrote:

> Upon review, I think it's correct, but worded awkwardly:

Maybe it's because I'm not a native speaker, but I find it difficult to
understand this differently.

>    In this example, the primary leg of the mirror |/dev/sda1| fails.

It fails. Not "we make it fail". No indication what makes it fail.

>    Any write activity to the mirrored volume causes LVM to detect the
>    failed mirror. When this occurs, LVM converts the mirror into a
>    single linear volume. In this case, to trigger the conversion, we
>    execute a |dd| command

"we execute a |dd| command" "to trigger the *conversion*". Not to make
it fail.

> I believe the dd is not to cause the failure, it's simply to generate  
> write activity to the volume group after the mirror leg has been caused  
> to fail through other means not documented.

... as they said ...

So the dd command the OP sent was correct after all. He just
misunderstood its purpose.

Now back to our original topic - how do you make a mirror copy fail? ;-)

Lupe Christoph
-- 
| There is no substitute for bad design except worse design.                   |
| /me                                                                          |




More information about the linux-lvm mailing list