All of lore.kernel.org
 help / color / mirror / Atom feed
* A small question about Device Mapper
@ 2015-08-23  7:29 Ni, Xun
  2015-08-23 15:01 ` Doug Dumitru
  2015-08-24  0:22 ` Mike Snitzer
  0 siblings, 2 replies; 4+ messages in thread
From: Ni, Xun @ 2015-08-23  7:29 UTC (permalink / raw)
  To: dm-devel@redhat.com


[-- Attachment #1.1: Type: text/plain, Size: 644 bytes --]

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.

Thanks,
Xun


[-- Attachment #1.2: Type: text/html, Size: 1631 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-24  3:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-08-24  3:20   ` Ni, Xun

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.