Was ist der Vorteil von iSCSI gegenüber SMB?

50725
SofaKng

In meinem Haus verwende ich einen Hyper-V-Server mit einer Windows Server 2008 R2-VM, die als Dateiserver fungiert. Dateien werden über SMB in meinem Netzwerk gemeinsam genutzt. (Außerdem verwendet der Computer eine PERC 6 / i-RAID-Karte, aber ich finde das nicht wichtig.)

Ich denke darüber nach, eine dedizierte SAN-Maschine (iSCSI) einzurichten und dann meinen Hyper-V-Server auf ESXi umzustellen.

Welche Vorteile bietet die Verwendung von iSCSI gegenüber SMB?

Ich denke, ich brauche noch ein Dateiserver-Betriebssystem (z. B. Win 2k8), das Dateien über SMB freigibt. Ich bin mir nicht sicher, ob das Endergebnis anders wäre als mein aktuelles Setup.

14
Ihre Clients verwenden smb zum Abrufen von Dateien. Wenn Sie keine Verbindung über iscsi herstellen (wahrscheinlich nicht), haben Sie smb noch in Gebrauch. Der Wechsel von hyper-v zu esxi ändert nichts an dem, was Sie beschrieben haben. user33788 vor 13 Jahren 0

4 Antworten auf die Frage

15
Jeremy

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.

5
Lightly Salted

File Level VS block level

Blockebene (iSCSI) Sie können ein Remote-Volume mit dem Dateisystem Ihres lokalen Betriebssystems formatieren.

Nehmen wir an, Sie möchten ein Volume für Apple Time-Machine haben und dies als Apple Journalized-Dateisystem. oder Sie wollten ein Remote-Dateisystem, das als NTFS formatiert wurde. Um eine Festplatte zu formatieren, benötigen Sie einen blockierten Zugriff auf die Festplatte.

SMB werden bereits von dem Gerät, das SMB hostet, formatiert. Diese Dateisysteme sind normalerweise EXT2 & 3, und ein Linux-Subsystem ermöglicht Ihnen den Zugriff auf das eigene lokale Dateisystem über das SMB-Protokoll.

2
Mike Fitzpatrick

I think SMB is your typical network share whereas iSCSI is presented as a exclusive direct-attached block-based storage (like a locally installed HDD) and therefore allows your choice of file system with its own associated pros and cons. (But I've been wrong before :)

0
BarsMonster

Die Antwort ist eigentlich sehr einfach: Auf iSCSI können Sie clientseitige Zwischenspeicherung durchführen, während dies bei SMB mit Standardclients nicht möglich ist. Das ist es.

Mit Lesen (und wenn Sie schreiben möchten) können Sie in vielen Situationen eine höhere Leistung erzielen.