<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hi, all:</div>
<div> </div>
<div style="text-indent:9.6pt;">I use device mapper to config a thin-provision for a block device, with dmsetup, with the following command:</div>
<div style="text-indent:9.6pt;"> </div>
<div style="text-indent:9.6pt;">Dmsetup create pool –table “0 `blockdev –getsize /dev/sdd1` thin-pool /dev/sdd2 /dev/sdd1 128 0”</div>
<div style="text-indent:9.6pt;">Dmsetup message /dev/mapper/pool 0 “create_thin 0”</div>
<div style="text-indent:9.6pt;">Dmsetup create snap1 –tabe “0 `blockdev –getsize /dev/sdd3` thin /dev/mapper/pool 0 /dev/sdd3”</div>
<div style="text-indent:9.6pt;"> </div>
<div style="text-indent:9.6pt;">Everything works well, but when I reboot the system, the block device is gone, I need to create the pool again…</div>
<div style="text-indent:9.6pt;"> </div>
<div style="text-indent:9.6pt;">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.</div>
<div><font face="Times New Roman"> </font></div>
<div>Thanks,</div>
<div>Xun </div>
<div><font face="Times New Roman"> </font></div>
</span></font>
</body>
</html>