From: Hank Tsai <hanktsai@qnap.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Why it suggest to disable "write_cache_state" when using DRBD as physical volumes
Date: Wed, 13 May 2015 18:09:56 +0800 [thread overview]
Message-ID: <CANX1XTU1TaGDj6f39EVaPF9C9LWbG_0+aYE4JgSiqML0Wum_sA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]
Hi All,
I want to use DRBD devices as LVM physical volumes.
I'm curious about why the the DRBD manual suggest
to disable "write_cache_state" in this scenario:
https://drbd.linbit.com/users-guide/s-lvm-drbd-as-pv.html
I can only find a few articles that explain the reason.
For example, this book said that could prevent error while the DRBD devices
are down:
https://books.google.com/books?id=d1ZwAgAAQBAJ&pg=PT192&lpg=PT192&dq=drbd+lvm+
"write_cache_state"
But, as I know, LVM can handle the case if the device listed in device cache
are not available. In LVM2.2.02.105, function lvmcache_device_from_pvid()
invokes lvmcache_label_scan() to refresh the cache if PV is missing.
This document also suggest to disable device cache, but I think that
LVM nowadays can handle the issue it described, such as "duplicate
physical volumes being displayed". For example, if we build /dev/drbd1 on
the
top of /dev/sda1, and create PV using /dev/drbd1, then LVM won't display
/dev/sda1 as physical volumes.
http://www.linux-iscsi.org/Doc/RTS%20OS%20Admin%20Manual.pdf
Also, the device cache feature is automatically disabled if lvmetad is
enabled. So, is it necessary to disable "write_cache_state" while
"use_lvmetad" was enabled?
Any help would be appreciate!
Ming-Hung Tsai
[-- Attachment #2: Type: text/html, Size: 1965 bytes --]
reply other threads:[~2015-05-13 10:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CANX1XTU1TaGDj6f39EVaPF9C9LWbG_0+aYE4JgSiqML0Wum_sA@mail.gmail.com \
--to=hanktsai@qnap.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).