From: Mike Snitzer <snitzer@redhat.com>
To: "Ni, Xun" <xun.ni@intel.com>
Cc: "dm-devel@redhat.com" <dm-devel@redhat.com>
Subject: Re: A small question about Device Mapper
Date: Sun, 23 Aug 2015 20:22:25 -0400 [thread overview]
Message-ID: <20150824002225.GA24718@redhat.com> (raw)
In-Reply-To: <91E2D863603AD4478F101CE81E76E45D01D2D23C@SHSMSX103.ccr.corp.intel.com>
On Sun, Aug 23 2015 at 3:29am -0400,
Ni, Xun <xun.ni@intel.com> wrote:
> Hi, all:
>
> I use device mapper to config a thin-provision for a block device, with dmsetup, with the following command:
>
> Dmsetup create pool -table "0 `blockdev -getsize /dev/sdd1` thin-pool /dev/sdd2 /dev/sdd1 128 0"
> Dmsetup message /dev/mapper/pool 0 "create_thin 0"
> Dmsetup create snap1 -tabe "0 `blockdev -getsize /dev/sdd3` thin /dev/mapper/pool 0 /dev/sdd3"
>
> Everything works well, but when I reboot the system, the block device is gone, I need to create the pool again...
>
> Anyone has idea on how to make this config persistent? I need to boot the kernel , the dm pool device shows after the MD device found.
use lvm to create a thinp device that activates on bootup (see lvmthin
manpage).
next prev parent reply other threads:[~2015-08-24 0:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-23 7:29 A small question about Device Mapper Ni, Xun
2015-08-23 15:01 ` Doug Dumitru
2015-08-24 0:22 ` Mike Snitzer [this message]
2015-08-24 3:20 ` Ni, Xun
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=20150824002225.GA24718@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=xun.ni@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.