<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
<div>Cong,</div>
<div><br>
</div>
<div>Try adding &quot;skip=2G&quot; (I think) to your dd command and change the bs and count both to 1. &nbsp;This will essentially thin-provision your iSCSI volume file.</div>
<div><br>
</div>
<div>I use this method to make iSCSI volumes that live on gluster.<br>
<br>
Regards,
<div>Jon Heese</div>
</div>
<div><br>
On Apr 13, 2015, at 5:23 PM, &quot;Yue, Cong&quot; &lt;<a href="mailto:Cong_Yue@alliedtelesis.com">Cong_Yue@alliedtelesis.com</a>&gt; wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">I am using GlusterFS to make my storage between several servers can be replicated with fault tolerance. And I am doing the similar way as
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><a href="http://www.gluster.org/community/documentation/index.php/GlusterFS_iSCSI">http://www.gluster.org/community/documentation/index.php/GlusterFS_iSCSI</a><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">It works well, but in the process of <o:p></o:p></p>
<div style="mso-element:para-border-div;border:dashed #666666 1.0pt;padding:11.0pt 15.0pt 11.0pt 15.0pt;background:#EEEEEE">
<p class="MsoNormal" style="background:#EEEEEE;border:none;padding:0in"><span style="font-size:12.0pt;font-family:&quot;Courier New&quot;;color:black">dd if=/dev/zero of=disk3 bs=2G count=25<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">it needs long time as for my storage volume is around 1TB. I have one question about whether there is some way to make gluster volume can be exported as an iScsi target without creating disk files?<o:p></o:p></p>
<p class="MsoNormal">For iscsi, it support both disk file and logical unit like /dev/sdb1, but it seems it could not support normal folder like the mount folder from glusterFS.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Can anybody kindly advise?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Cong<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the
 intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's
 e-mail System Administrator.<br>
</font></div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>Gluster-users mailing list</span><br>
<span><a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a></span><br>
<span><a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></span></div>
</blockquote>
</body>
</html>