<div dir="ltr">I tried the following command to set up my era target but the command immediately panics the system and the system reboots.<div><br></div><div># dmsetup create MyEra --table "0 41941903 era /dev/mapper/VG-CacheDataLV_cmeta /dev/mapper/VG-OriginLV 4096"<br></div><div><br></div><div>The metadata dev and the origin dev are all part of a LVM cache LV.  VG-CacheDataLV_cmeta is the cache metadata LV on the smaller and faster device, VG-OriginLV is the origin LV on the faster and slower device, 41941903 is the total sector number of the device of OriginLV (the LV takes 100% space of the device), 4096 is the block size of OriginLV, I have run 'mkfs.ext4 /dev/mapper/VG-OriginLV' before running the dmsetup command.<br></div><div><br></div><div>Below is the message in /var/log/messages after running the dmsetup comnmand:</div><div><br></div><div>kernel: device-mapper: era: sb_check failed: magic 1623043: wanted 2126579579<br></div><div><div>kernel: device-mapper: block manager: superblock validator check failed for block 0</div><div>kernel: device-mapper: era: couldn't read_lock superblock</div></div><div><br></div><div><br></div><div>Any idea?</div><div><br></div><div>Thanks</div><div>Romu</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-18 16:27 GMT+08:00 Romu Hu <span dir="ltr"><<a href="mailto:huruomu@gmail.com" target="_blank">huruomu@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 2014/9/16 4:25, Brassow Jonathan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sep 14, 2014, at 9:24 PM, Romu Hu wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
According to <a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6-Beta/html-single/6.6_Release_Notes/index.html#bh-storage" target="_blank">https://access.redhat.com/<u></u>documentation/en-US/Red_Hat_<u></u>Enterprise_Linux/6-Beta/html-<u></u>single/6.6_Release_Notes/<u></u>index.html#bh-storage</a>, dm-cache and dm-era have been added into RHEL6.6 as technology preview, but I couldn't find any other documentation about using dm-cache and dm-era.  I found the following utilities in<br>
<br>
/usr/sbin/era_check<br>
/usr/sbin/era_dump<br>
/usr/sbin/era_invalidate<br>
<br>
/usr/sbin/cache_check<br>
/usr/sbin/cache_dump<br>
/usr/sbin/cache_repair<br>
/usr/sbin/cache_restore<br>
<br>
I guess these utilities are related to dm-era and dm-cache, respectively.  There are only manpages for the cache utilities. After reading the manpages I still have no clue how to use these technologies.  I want to do a sanity check of these technologies on my SAN storage.  Is it possible to try dm-cache and dm-era without a SSD?  e.g. using ram to imitate a fast block device..<br>
<br>
Any idea?<br>
</blockquote>
You can use cache to teir any block device over another.  Layering faster, smaller drives over slower, larger ones is the point; but for testing non-performance things you can still do it.  For the cache target, it would be a more inclusive test to go through LVM.  The lvmcache.7 man page would help out with that.  There is no dm-era support in LVM ATM.<br>
<br>
  brassow<br>
</blockquote>
<br></div></div>
Thanks, I have successfully set up LVM caching with dm-cache, works like a charm.  However, I still haven't any useful documentation about how to set dm-era.  Any idea?<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
Romu<br>
</font></span></blockquote></div><br></div>