From: Eugene Vikhman <ujin981@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvmcache and bare mdadm arrays
Date: Wed, 16 Jan 2019 21:27:30 +0200 [thread overview]
Message-ID: <0ed153aa-b699-4cbe-35a0-b112b8867a26@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 974 bytes --]
Hi.
I spent the last couple of days trying to set up a new server with 16
sas drives for the main storage and 2 SSDs for caching it using lvmcache.
First I used mdadm to create raid10 on HDDs and raid1 on SSDs. Then I
followed the steps from the lvmcache manpage and the lvcreate/lvconvert
manpages to create the cache and the metadata LVs and convert them to a
cache-pool. It went fine, "lvs -a" showed a normal cache-pool device.
But the last step failed with an ambiguous error when I used lvconvert
--type cache --cachepool vg/cache vg/slow. I tried playing with
parameters and made sure that the error had nothing to do with them. For
an unidentified reason ioctl failed saying it could not lock the device
vg/slow.
Today I tried setting up the raids with lvm itself and it all worked
like a charm.
So my thought is maybe manpages should actually mention something about
it and say "don't try setting up caching on a bare mdadm raid - it won't
work".
[-- Attachment #2: Type: text/html, Size: 1496 bytes --]
reply other threads:[~2019-01-16 19:27 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=0ed153aa-b699-4cbe-35a0-b112b8867a26@gmail.com \
--to=ujin981@gmail.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).