<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Update! Issue seems to be active only with PERC H800 and MD1200 disks - local raid with PERC H700 and lvm thin lv-s work fine without corrupting on reboot.</div><div><br></div><div><br></div>We stumbled on strange lvm thinly provisioned LV filesystem corruption case - here are steps that reproduce the issue:<div><br></div><div><pre class="code-java" style="margin: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; font-family: monospace; max-height: 30em; overflow: auto; word-wrap: normal; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">lvcreate --thinpool pool -L 8T --poolmetadatasize 16G VolGroupL1
lvcreate -T VolGroupL1/pool -V 2T --name thin_storage
mkfs.ext4 /dev/VolGroupL1/thin_storage
mount /dev/VolGroupL1/thin_storage /storage/
reboot</pre><pre class="code-java" style="margin: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; font-family: monospace; max-height: 30em; overflow: auto; word-wrap: normal; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><br></pre><pre class="code-java" style="margin: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; font-family: monospace; max-height: 30em; overflow: auto; word-wrap: normal; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"># NB! without host reboot unmount/mount succeeds!</pre><pre class="code-java" style="margin: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; font-family: monospace; max-height: 30em; overflow: auto; word-wrap: normal; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><br></pre><pre class="code-java" style="margin: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; font-family: monospace; max-height: 30em; overflow: auto; word-wrap: normal; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">[root@node3 ~]# mount /dev/VolGroupL1/thin_storage /storage/
mount: you must specify the filesystem type</pre><div><br></div><div>Tried also to set <span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 16px; white-space: pre; ">poolmetadatasize to 2G, 14G, 15G and pool size to 1T, 2T - no change - corruption still happens.</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 16px; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 16px; white-space: pre; ">Hardware setup: </span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 16px; white-space: pre; ">* </span><span style="color: rgb(0, 0, 0); font-family: Arial, FreeSans, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;">Underlaying block device (sdb) is hosted by PERC H800 controller and disks are coming from SAS disk expansion box (DELL MD1200).</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 16px; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 16px; white-space: pre; ">Some debug info:</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 16px; white-space: pre; ">[root@node3 ~]# lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
lv_root VolGroup -wi-ao-- 50.00g
lv_swap VolGroup -wi-ao-- 4.00g
pool VolGroupL1 twi-a-tz 1.00t 0.00
thin_storage VolGroupL1 Vwi-a-tz 100.00g pool 0.00</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 16px; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 16px; white-space: pre; ">[root@node3 ~]# lvdisplay /dev/VolGroupL1/thin_storage
--- Logical volume ---
LV Path /dev/VolGroupL1/thin_storage
LV Name thin_storage
VG Name VolGroupL1
LV UUID qla8Zf-FOdU-WB0j-SSdv-Xzpk-c9MS-gc97fc
LV Write Access read/write
LV Creation host, time node3.oncloud.int, 2013-03-22 15:38:08 +0200
LV Pool name pool
LV Status available
# open 0
LV Size 100.00 GiB
Mapped size 0.00%
Current LE 800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:6</span></div><div><br></div><div><div>[root@node3 ~]# vgs</div><div> VG #PV #LV #SN Attr VSize VFree</div><div> VolGroup 1 2 0 wz--n- 3.27t 3.22t</div><div> VolGroupL1 1 2 0 wz--n- 10.91t 9.91t</div></div><div><br></div><div><div>[root@node3 ~]# vgdisplay VolGroupL1</div><div> --- Volume group ---</div><div> VG Name VolGroupL1</div><div> System ID</div><div> Format lvm2</div><div> Metadata Areas 1</div><div> Metadata Sequence No 61</div><div> VG Access read/write</div><div> VG Status resizable</div><div> MAX LV 0</div><div> Cur LV 2</div><div> Open LV 0</div><div> Max PV 0</div><div> Cur PV 1</div><div> Act PV 1</div><div> VG Size 10.91 TiB</div><div> PE Size 128.00 MiB</div><div> Total PE 89399</div><div> Alloc PE / Size 8208 / 1.00 TiB</div><div> Free PE / Size 81191 / 9.91 TiB</div><div> VG UUID 2cHIOM-Rs9u-B5Mv-FaZv-KORq-mrTk-QIGfoG</div></div><div><br></div><div><div>[root@node3 ~]# pvs</div><div> PV VG Fmt Attr PSize PFree</div><div> /dev/sda2 VolGroup lvm2 a-- 3.27t 3.22t</div><div> /dev/sdb VolGroupL1 lvm2 a-- 10.91t 9.91t</div></div><div><br></div><div><div>[root@node3 ~]# pvdisplay /dev/sdb</div><div> --- Physical volume ---</div><div> PV Name /dev/sdb</div><div> VG Name VolGroupL1</div><div> PV Size 10.91 TiB / not usable 128.00 MiB</div><div> Allocatable yes</div><div> PE Size 128.00 MiB</div><div> Total PE 89399</div><div> Free PE 81191</div><div> Allocated PE 8208</div><div> PV UUID l3ROps-Aar9-wSUO-ypGj-Wwi1-G0Wu-VqDs1a</div></div><div><br></div><div>What could be the issue here?</div><div><br></div><div>regards,</div><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; font-size: medium; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">----------------------------------------------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Andres Toomsalu, <a href="mailto:andres@active.ee">andres@active.ee</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><br></div></div></div></div></div></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div><div apple-content-edited="true"><br class="Apple-interchange-newline">
</div>
<br></body></html>