From: malahal@us.ibm.com
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Simulating LVM Mirror Failure and recovery
Date: Thu, 16 Apr 2009 08:48:34 -0700 [thread overview]
Message-ID: <20090416154834.GA22781@us.ibm.com> (raw)
In-Reply-To: <29070.706.qm@web94806.mail.in2.yahoo.com>
Lupe Christoph [lupe@lupe-christoph.de] wrote:
> On Thursday, 2009-04-16 at 15:47:07 +0530, yogeen honnavar wrote:
>
> > dd if=/dev/zero of=/dev/vg1/lv1 count=10
>
> > as per the redhat guide this should result in mirror leg failure and any
subsequent write activity to the mirror should convert the mirror into linear
volume. but the output of lvs command still shows copy % as 100%. also data in
filesystem of lv1 is erased and it is converted into read only filesystem.
>
> Apart from the problem with the of= parameter that was already pointed
> out - why do you assume writing *anything* *anywhere* would simulate a
> mirror failure? The most you do simulate with that is mirror
> *corruption*.
You are absolutely right.
>> can anyone please let us know the correct way to simulate lvm mirror failure
>> and recovery.
>
> Depends a lot on your hardware. E.g. the system I use for testing are
> about 400 km away, so I'd rather not unplug anything...
I usually run "echo 1 > /sys/block/sda/device/delete" to make /dev/sda
disappear and fail for LVM tests. You can fail the disk in a lot of ways
depending on your hardware, but this trick works with almost every
device!
next prev parent reply other threads:[~2009-04-16 15:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 10:17 [linux-lvm] Simulating LVM Mirror Failure and recovery yogeen honnavar
2009-04-16 10:26 ` Klaus Strebel
2009-04-16 12:07 ` vu pham
2009-04-16 12:26 ` Tomasz Chmielewski
2009-04-16 14:49 ` vu pham
2009-04-16 12:54 ` Alasdair G Kergon
2009-04-16 13:36 ` Eric Brunson
2009-04-16 13:58 ` Eric Brunson
2009-04-16 14:18 ` Don Bishop
2009-04-16 14:40 ` Lupe Christoph
2009-04-16 13:19 ` Lupe Christoph
2009-04-16 15:48 ` malahal [this message]
2009-04-16 16:02 ` Takahiro Yasui
-- strict thread matches above, loose matches on Subject: below --
2009-04-20 6:07 yogeen honnavar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090416154834.GA22781@us.ibm.com \
--to=malahal@us.ibm.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).