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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150413/05436150/attachment.html>
Hi, Cong! Well, there is not much to advice from my experience. GlusterFS is FS type storage, while iscsi is blockdevice. You can't export gluster bricks as iscsi targets directrly. At least at this moment. Who knows, mby devs will surprise us some way in this direction :) Mby HA-LVM is your pick this time ? http://www.linuxjournal.com/content/high-availability-storage-ha-lvm 2015-04-14 0:22 GMT+03:00 Yue, Cong <Cong_Yue at alliedtelesis.com>:> 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 > Gluster-users at gluster.org > http://www.gluster.org/mailman/listinfo/gluster-users >-- Best regards, Roman. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150414/4604c1ae/attachment.html>
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" <Cong_Yue at alliedtelesis.com<mailto:Cong_Yue at alliedtelesis.com>> 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 Gluster-users at gluster.org<mailto:Gluster-users at gluster.org> http://www.gluster.org/mailman/listinfo/gluster-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150413/208edb08/attachment.html>
CCing Dan as he has more insights on this. ~Atin On 04/14/2015 02:52 AM, Yue, Cong 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 > Gluster-users at gluster.org > http://www.gluster.org/mailman/listinfo/gluster-users >-- ~Atin