Hi,
I have a cluster that currently shares the user files via NFS, but I am currently experiencing a memory leak with NFS. This is a ubuntu problem which is reported here:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1047566
For this reason I am investigating switching over to iSCSI to share the user data. However the current file system is ext4 and I am aware that sharing this data via a single target to multiple initiators would definitely cause data/filesystem corruption. A work around which is suggested on the wiki (http://doc.freenas.org/index.php/ISCSI) is to create multiple targets pointing to the same device so a 1:1 relationship is maintained between the targets and initiators. Here is the extract from the wiki:
NOTE: an iSCSI target creates a block device that may be accessible to multiple initiators. A clustered filesystem is required on the block device, such as VMFS used by VMWare ESX/ESXi, in order for multiple initiators to mount the block device read/write. If a traditional filesystem such as EXT, XFS, FAT, NTFS, UFS, or ZFS is placed on the block device, care must be taken that only one initiator at a time has read/write access or the result will be filesystem corruption. If you need to support multiple clients to the same data on a non-clustered filesystem, use CIFS or NFS instead of iSCSI or create multiple iSCSI targets (one per client).
My question is has anyone tested this approach and does it work? Am I right in the assumption that this approach will force the host with the targets to deal with the multi io issue. I would like some feedback on this method as I am still slightly dubious and can't see how this varies a great deal from the single target multiple initiators option?
Thanks,
Dan
I have a cluster that currently shares the user files via NFS, but I am currently experiencing a memory leak with NFS. This is a ubuntu problem which is reported here:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1047566
For this reason I am investigating switching over to iSCSI to share the user data. However the current file system is ext4 and I am aware that sharing this data via a single target to multiple initiators would definitely cause data/filesystem corruption. A work around which is suggested on the wiki (http://doc.freenas.org/index.php/ISCSI) is to create multiple targets pointing to the same device so a 1:1 relationship is maintained between the targets and initiators. Here is the extract from the wiki:
NOTE: an iSCSI target creates a block device that may be accessible to multiple initiators. A clustered filesystem is required on the block device, such as VMFS used by VMWare ESX/ESXi, in order for multiple initiators to mount the block device read/write. If a traditional filesystem such as EXT, XFS, FAT, NTFS, UFS, or ZFS is placed on the block device, care must be taken that only one initiator at a time has read/write access or the result will be filesystem corruption. If you need to support multiple clients to the same data on a non-clustered filesystem, use CIFS or NFS instead of iSCSI or create multiple iSCSI targets (one per client).
My question is has anyone tested this approach and does it work? Am I right in the assumption that this approach will force the host with the targets to deal with the multi io issue. I would like some feedback on this method as I am still slightly dubious and can't see how this varies a great deal from the single target multiple initiators option?
Thanks,
Dan