To: spdk@lists.01.org
Subject: Re: [SPDK] lvol_store restored even if base raid not created for single-base raid
Date: Tue, 06 Nov 2018 12:25:27 +0300 [thread overview]
Message-ID: <1541496327.412110929@f378.i.mail.ru> (raw)
In-Reply-To: 6b671886.36541.166e7e226b5.Coremail.wuzhouhui14@mails.ucas.ac.cn
[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]
Hello
I think this is due to the fact that raid bdev in spdk currently do not have persistent metadata. There is a trello ticket for that though. Since there are no raid md, lvol just store it's md in the very first sectors (32kb, not sure) of raid which is in your case maps directly to the first sectors of lower level device, so it could read it even if there is no raid below.
> What I want is the
> lvol_store will not restored untill base bdev (raid_bdev, in this
> example) is constructed. Is it possible?
I don't think it is possible without raid persistent md. Basically because examine callback happens automatically when spdk goes through bdev initialization. And in examine callback of lvol it always read md from device (an find it there).
Best regards
Aleksei Marov
>Вторник, 6 ноября 2018, 10:17 +03:00 от wuzhouhui <wuzhouhui14(a)mails.ucas.ac.cn>:
>
>Hi,
>Assume that:
> 1. construct raid_bdev on a single nvme_bdev
> 2. construct lvol_store on the raid_bdev
> 3. restart spdk app
>After spdk app started and nvme_bdev constructed, the lvol_store will
>restored even if raid_bdev not constructed. In other words, the
>single-base raid_bdev just like a passthru_bdev. What I want is the
>lvol_store will not restored untill base bdev (raid_bdev, in this
>example) is constructed. Is it possible?
>
>Thanks.
>_______________________________________________
>SPDK mailing list
>SPDK(a)lists.01.org
>https://lists.01.org/mailman/listinfo/spdk
--
Маров Алексей
next reply other threads:[~2018-11-06 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-06 9:25 [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-11-06 11:50 [SPDK] lvol_store restored even if base raid not created for single-base raid Pelplinski, Piotr
2019-09-28 2:06 wuzhouhui
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=1541496327.412110929@f378.i.mail.ru \
--to=spdk@lists.01.org \
/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