免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 11114 | 回复: 9
打印 上一主题 下一主题

【iSCSI + GFS】多initiator并发访问同一个target device的问题? [复制链接]

论坛徽章:
0
1 [报告]
发表于 2007-02-02 15:47 |只看该作者

只需要GFS 就可以实现并发访问了吗?

原帖由 bob_zhang2004 于 2007-2-2 15:46 发表于 1楼  
目前 ,我在Linux端建立了一个 target software (用的open-source的iSCSI Enterprise Target) ,我在Linux上挂了两块硬盘, 一个是系统盘, 另外一个 data盘被shared 了(全是ntfs格式的)

我用两台PC ( ...


如果 我想实现多个initiator 同时访问 同一个target device , 我是不是只需要安装 GFS 就可以了呢?  因为我也搜索了GFS 的东西, 好像要用 Redhat AS 4 ,利用rpm命令装好多个软件包, 因为我是把它移植到arm上的, flash 就 12M啊 。


另外 , GFS 的概念 是和 ntfs ,或者 ext3 同一级别的概念吗?  

如果linux端用GFS 的话, 那我的Initiator 又是 WindowsXP ‘s MS Initiator 我怎么mount 呢?
我看windows 端也有一个 叫 cluser service的什么咚咚, 可以和 GFS 兼容吗?


下面我们mailing list的进一步讨论:

> -----Original Message-----
> From: Bob Zhang [mailto:bob_zhang2004@163.com]
> Sent: Thursday, February 01, 2007 11:51 PM
> To: Ross S. W. Walker
> Cc: Scott Kaelin; blackmagic02881@gmail.com;
> iscsitarget-devel@lists.sourceforge.net
> Subject: RE: [Iscsitarget-devel] about mutex between
> multi-users to write a same target disk ? for example ,
> multi-users write a same directory of /dev/hdb1 at the same time
>
>
>
> >
> > iSCSI really is just the handling of data blocks to and from the
> > hard disk. Think of it as an extension of the hard disk that goes
> > across the wire.
> >
> > If you have multiple servers connected to a volume it is exactly
> > like having a shared SCSI bus between multiple hosts. There is
> > nothing in the SCSI controllers to prevent you from corrupting your
> > shared volumes. This kind of control needs to come from the
> > operating system. The OS needs to know the volume is shared and
> > either a special file-system or special handling needs to take
> > place. I don't know of a shared file-system in Windows, but
> > Microsoft Cluster Services allow one server at a time access to a
> > shared volume using SCSI Reserve/Release.
>
> First ,thanks very much for your replying !
> As far as you know , maybe can I buy a card or Adapter to
> solve the mutex issue ?
> These two days , I am browsing some productions related with
> SAN which looks that no this problem .
> Do you know how SAN solve this problem ? software  or hardware ?
>
> Another , during  developing IET ,how are you testing this case ?
> only single-user accessing a same target disk device ?

An iSCSI HBA follows the same iSCSI protocol standards as MS Initiator,
it just does it faster with lower CPU overhead.

> >
> > iSCSI must follow the SCSI protocol and the only function available
> > to aid in shared access is SCSI RESERVE/RELEASE, which is a form of
> > mutex.
> >
> > -Ross
> Excuse me ,i am really a newbie for SCSI , can you tell me
> some detailed infomation ?  How can I modify the Linux Kernel
> ?  currently ,is there some open-source to implement it ? or
> some related document or URL ?
>

You must use a service that allows multi-user access to a shared disk.
Think of it as a disk and you will have a better picture. The iSCSI
volume you connect to is a disk drive for all intensive purposes and
what would happen if you connect one disk drive to two computers and try
to use it from both machines at the same time? Well if you have ever
tried it you would see you would get a corrupt file-system. Same thing
goes for iSCSI.

Now there exists software packages here and there that will allow you to
use a shared disk drive from multiple systems at the same time. You need
to research what those software packages are and find one that fits your
needs best.


-Ross

论坛徽章:
0
2 [报告]
发表于 2007-02-04 13:49 |只看该作者
你这个需求,并不是要在target端去实现,而是要initiator端实现,所以你说的arm上面装gfs没有什么意义。

论坛徽章:
0
3 [报告]
发表于 2007-02-04 22:06 |只看该作者
iSCSI 让你可以访问同一个存储,不代表可以让你在从不同节点上,并发创建和使用传统文件系统. 这是最最基本的的集群系统的文件系统概念.

你所创建的文件系统,都是"活"在各自的节点上,这些节点虽然在物理上可以访问你的iSCSI target, 但是可以访问和可以创建文件系统且并发访问是完全两码事.

这就是为什么有了SAN但是当你需要多结点OS对shared storage上的同一个space做并发操作的时候,还是离不开clustered filesystem一样.

建议你不要走得太快, 慢一点,解决文件系统的考虑先 !

论坛徽章:
0
4 [报告]
发表于 2007-02-05 14:19 |只看该作者
原帖由 nntp 于 2007-2-4 22:06 发表于 4楼  
iSCSI 让你可以访问同一个存储,不代表可以让你在从不同节点上,并发创建和使用传统文件系统. 这是最最基本的的集群系统的文件系统概念.

你所创建的文件系统,都是"活"在各自的节点上,这些节点虽 ...

多谢您的指教,我一直在做NAS , 对SAN的东西不是太熟悉 。 所以可能问的有些问题有点傻 ,^_^。  
总的来说 ,我们group是要实现这个简单的功能:
在我们的NAS上面多加几块harddisk(比如10块) , 共享出来 , 这样的话 , 可以有多个用户同时访问这几块磁盘, 当然有可能出现并发访问同一个目录的情况 。
现在只是做产品的研究阶段, 我个人觉得对个人用户来讲 ,还是蛮有好处的。比samba来的更底层一些 。


看到您的帖子, 知道您是个高手, 可否推荐什么书吗?或者是什么学习资料? 我好好研究先! 谢谢了。
尤其是 cluster file system 方面可有什么好书?
多谢

[ 本帖最后由 bob_zhang2004 于 2007-2-5 14:25 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2007-02-05 16:55 |只看该作者

openAFS 好像可以

搜索了一下 cluster file system , 同时支持Windows和Unix(Linux)的 , 好像只有openAFS (http://www.openafs.org/release/openafs-1.5.14.html

看起来 ,应该能符合我的要求。 有人用过吗?

看起来 ,openAFS 不过是NFS的更好的实现而已, 如果openAFS可以实现我的要求的话, 恐怕我都没有必要用iSCSI 共享磁盘了。 ???

[ 本帖最后由 bob_zhang2004 于 2007-2-5 17:55 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2007-02-07 10:23 |只看该作者

openAFS is distributed file system NOT cluster file system

原帖由 bob_zhang2004 于 2007-2-5 16:55 发表于 6楼  
搜索了一下 cluster file system , 同时支持Windows和Unix(Linux)的 , 好像只有openAFS (http://www.openafs.org/release/openafs-1.5.14.html

看起来 ,应该能符合我的要求。 有人用过吗?

看起 ...


openAFS is distributed file system NOT cluster file system
it is only better NFS

论坛徽章:
0
7 [报告]
发表于 2007-03-06 16:10 |只看该作者
呵呵,我一开始也是像楼主这么想的

论坛徽章:
0
8 [报告]
发表于 2007-03-07 09:16 |只看该作者
try ibm sanergy

论坛徽章:
0
9 [报告]
发表于 2012-08-08 23:27 |只看该作者
楼主,你的问题解决了么,可以分享下么?我们group也想实现iscsi 集群的共享设备。

论坛徽章:
0
10 [报告]
发表于 2012-08-09 11:19 |只看该作者
Hi,
楼主的问题是无法解决的,除非改变目前的架构。

楼主的部署是一套标准的SAN环境,而基于Windows OS 系统属性,无法再同一时间,共享一个LUN。
(即使共享出去,只能保存最后一个Server的写入,我把它理解为数据错乱)

除非把这个LUN转换为NAS ,然后采用CIFS或NFS协议共享出去。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP