Okay, I wasn't reading carefully...  Try this:

dd if=/dev/zero of=disk3 count=1 bs=1 skip=50G

That will give you a 50GB thin-provisioned file for iSCSI.

Regards,
Jon Heese

On Apr 13, 2015, at 7:02 PM, "Jon Heese" 
<[email protected]<mailto:[email protected]>> wrote:

Cong,

Try adding "skip=2G" (I think) to your dd command and change the bs and count 
both to 1.  This will essentially thin-provision your iSCSI volume file.

I use this method to make iSCSI volumes that live on gluster.

Regards,
Jon Heese

On Apr 13, 2015, at 5:23 PM, "Yue, Cong" 
<[email protected]<mailto:[email protected]>> wrote:

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

http://www.gluster.org/community/documentation/index.php/GlusterFS_iSCSI

It works well, but in the process of
dd if=/dev/zero of=disk3 bs=2G count=25

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?
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.

Can anybody kindly advise?

Thanks,
Cong


________________________________
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.
_______________________________________________
Gluster-users mailing list
[email protected]<mailto:[email protected]>
http://www.gluster.org/mailman/listinfo/gluster-users
_______________________________________________
Gluster-users mailing list
[email protected]<mailto:[email protected]>
http://www.gluster.org/mailman/listinfo/gluster-users
_______________________________________________
Gluster-users mailing list
[email protected]
http://www.gluster.org/mailman/listinfo/gluster-users

Reply via email to