Friday 2 November 2018

home networking - What is the advantage of iSCSI over SMB?


At my house I'm running a Hyper-V server with a Windows Server 2008 R2 VM acting as a file server. Files are shared across my network using SMB. (Also, the machine is using a PERC 6/i RAID card but I don't think that's important)


I'm thinking about setting up a dedicated SAN (iSCSI) machine and then switching my Hyper-V server to ESXi.


What are the advantages of using iSCSI versus SMB?


I think I would still need a file server OS (eg. Win 2k8) sharing files via SMB so I'm not sure the end result would be any different than my current setup...



Answer



Mike is correct, iSCSI and SMB/CIFS operate at two different layers of abstraction.


You can think of SMB/CIFS as exporting a file system that other machines can access. The directory structure, security metadata, and such is already there. Client machines can read and write files to this file system, but that is the extent of their access.


With iSCSI, the client machines see what amounts to the same thing as a physical volume from the operating system point of view. From a Windows client machine, you would first configure an iSCSI initiator pointing at the iSCSI host (target). After that, you would see a new physical disk in the Windows disk management control panel. You would then initialize it, partition it, then format it with whatever file system you wished. No other machine would have access to this area (at least simultaneously and ignoring advanced things like cluster file systems).


The process would be a little different from ESXi but the concept is the same - the iSCSI target would appear like another disk on which you could build a VMFS file system.


One thing you may consider if you are building your own storage server is that it is possible to do both things at once. Software such as OpenFiler and FreeNAS allow you to aggregate a pool of storage and allow both iSCSI and SMB/CIFS access. The iSCSI space must be pre-allocated (much a like a virtual machine hard disk) and is not visible to the CIFS clients. The two areas are separate. You could also stay with a Windows server and install software to export an iSCSI target, such as that made by StarWinds.


iSCSI in general will perform better because there will not be as many layers of abstraction in the way - the SMB protocol in this case. Also, since it is a block-level protocol, some software that will not work when installed to a network share will work with iSCSI.


I was thinking that ESXi may not allow access to SMB shares, NFS only, so you may want to look into that as well. If that is true, you will need some way to export NFS shares but the above discussion remains the same. OpenFiler/FreeNAS have NFS support and Windows can be setup with it too.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...