- 论坛徽章:
- 0
|
只需要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 |
|