ISCSI TGT optimizing

  • Yesterday I did my first OMV install and it's looking good so far. I was even able to get ISCSI TGT up running on my first attempt. I also tried to install the zfs plugins but it failed on install for some reason and I didn't get the fault messages. So my ISCSI backing store ended up at raid 5 system /dev/md0 with an image on /mnt/iSCSI with no filesystem. In Windows, I formatted the filesystem in exFAT since I also like to access my iSCSI from my Mac. Would zfs make my iSCSI faster or are there other things I can do to make the system faster and/or safer? Can I for instance add CHAP authenticating by adding some extra options?


    My system:

    OMV 5.6.20-1 Usul

    OMV running from a small spinning HDD (300GB)

    i5 4670K @ 3400GHz, 16GB ram

    At the time running 1Gb Lan but is waiting for my 10Gb equipment to arrive in some days.


    Output of: omv-showkey tgt from my system:


    A thankful OMV and iSCSI user :):!:

    A newbie OMV user running:
    OMV 5.6.20-1 Usul
    Intel Core i5-4670K, 16Gb RAM, Some Hardrive in Raid 5 (2x1TB and 2x4TB).

  • chente

    Hat das Label OMV 5.x hinzugefügt.
    • Offizieller Beitrag

    I also tried to install the zfs plugins but it failed on install for some reason and I didn't get the fault messages.

    What exactly went wrong? ZFS menu not showing in storage section in GUI?

    Would zfs make my iSCSI faster or are there other things I can do to make the system faster and/or safer?

    ZFS or any Raid will make data access faster. The fastest I would say will be a "mirror" type Raid. I'm not sure.

  • What exactly went wrong? ZFS menu not showing in storage section in GUI?

    I'm not exactly sure what went wrong, but I did find this in my apt logs:


    I now did the install of zfs again so I could take a closer look at the problem but this time the install went flawless.

    If I have understood it correctly so will not the GUI work and I will have to use CLI to set up zfs. If so, I1m not sure if I will be able to do that without doing a lot of research before. :D Do you think it will be a big difference between zfs and the Raid 5 solutions I'm running now?


    Do you know if I can add something like this in the Target box on my tgt target setting to get CHAP auth?

    incominguser my-user-name and-my-password


    Thank you for taking the time to answer my questions.


    A newbie OMV user running:
    OMV 5.6.20-1 Usul
    Intel Core i5-4670K, 16Gb RAM, Some Hardrive in Raid 5 (2x1TB and 2x4TB).

    • Offizieller Beitrag

    I now did the install of zfs again so I could take a closer look at the problem but this time the install went flawless.

    I celebrate that it works. It was weird, this plugin works fine a long time ago. I myself use a ZFS Raid with this plugin and have never had any problems. It becomes even boring, this is desirable in a file system, make it boring ^^

    If I have understood it correctly so will not the GUI work and I will have to use CLI to set up zfs

    The ZFS plugin in OMV5 is fully functional. It would not be the same case in OMV6, it is not fully supported yet.

    To configure ZFS you can do it from GUI without any problem. You will be able to configure most of the options. If you are looking for more specific options, you will have to resort to the CLI, but it is not usual.

    The difference between ZFS and mdadm is basically the way the data is handled. ZFS is a copy on write system, mdadm is not. ZFS protects against bitrot, mdadm does not. ZFS offers a simple and versatile pool configuration, as opposed to mdadm. ZFS is a more modern system than mdadm and in constant development. mdadm is a fully developed system, albeit an old one.

    In terms of access speed, I guess there will be no difference.

    Do you know if I can add something like this in the Target box on my tgt target setting to get CHAP auth?

    Sorry, I don't know how to answer this. I guess someone else will be able to answer.

  • The ZFS plugin in OMV5 is fully functional. It would not be the same case in OMV6, it is not fully supported yet.

    To configure ZFS you can do it from GUI without any problem. You will be able to configure most of the options. If you are looking for more specific options, you will have to resort to the CLI, but it is not usual.

    The difference between ZFS and mdadm is basically the way the data is handled. ZFS is a copy on write system, mdadm is not. ZFS protects against bitrot, mdadm does not. ZFS offers a simple and versatile pool configuration, as opposed to mdadm. ZFS is a more modern system than mdadm and in constant development. mdadm is a fully developed system, albeit an old one.

    In terms of access speed, I guess there will be no difference.

    Since I at this testing moment have different sizes of my hard drives it will rule out zfs if I got it right. But I did see some performance tests of ZFS compared to raid and it seems like ZFS is faster. Do you know how it works to add more drives to a ZFS pool at a later time after installing a RaidZ? I need the extra security by running at least Raidz1 of course, that will not give me any better write performance to the system.

    So for the moment, I will keep on my testing on my Raid5 system and will see how the speed holds up when my 10Gb network equipment arrives (hopefully) next week.
    Once again I will have to thank you for the explanations of the ZFS

    A newbie OMV user running:
    OMV 5.6.20-1 Usul
    Intel Core i5-4670K, 16Gb RAM, Some Hardrive in Raid 5 (2x1TB and 2x4TB).

    • Offizieller Beitrag

    Do you know how it works to add more drives to a ZFS pool at a later time after installing a RaidZ?

    You cannot add a disk drive to a configured RaidZ device. Another device with multiple disk drives can be added. https://docs.oracle.com/cd/E19…820-2314/gazgw/index.html

    Once again I will have to thank you for the explanations of the ZFS

    This manual, although old, its concepts are maintained, it is very easy to read and very illustrative. If you are going to use ZFS, it is very interesting to read it. https://pthree.org/2012/04/17/…l-zfs-on-debian-gnulinux/

  • This manual, although old, its concepts are maintained, it is very easy to read and very illustrative. If you are going to use ZFS, it is very interesting to read it. https://pthree.org/2012/04/17/…l-zfs-on-debian-gnulinux/

    Really interesting readings and I'm now sure I would like to try out ZFS as soon as I can buy a couple of more hard drives and an SDD for the SLOG/SIL.

    A newbie OMV user running:
    OMV 5.6.20-1 Usul
    Intel Core i5-4670K, 16Gb RAM, Some Hardrive in Raid 5 (2x1TB and 2x4TB).

  • I have now done some file transfers (23GB video file) across my system. With my 1Gb network cards and 1Gb unmanaged switches I get numbers like this:

    Windows to iSCSI server between 60-120 MB/s ((Very unstable speed)
    Windows to SMB on the same server 11MB/s
    Windows to Windows the same 11MB/s as to the server.


    The last peak is my iSCSI transfer and I guess the two small one is my SMB transfer. Is SMB supposed to be this slow?


    Skjermbilde-2021-11-28-kl.-19.49.08.png

    A newbie OMV user running:
    OMV 5.6.20-1 Usul
    Intel Core i5-4670K, 16Gb RAM, Some Hardrive in Raid 5 (2x1TB and 2x4TB).

    • Offizieller Beitrag

    I have now done some file transfers (23GB video file) across my system. With my 1Gb network cards and 1Gb unmanaged switches I get numbers like this:

    Windows to iSCSI server between 60-120 MB/s ((Very unstable speed)
    Windows to SMB on the same server 11MB/s
    Windows to Windows the same 11MB/s as to the server.

    If the network is optimal, the speed should be around 100 MB / s. In my case I succeeded when I changed the router. The router provided by my ISP is real rubbish.

    You will have to investigate the hardware that makes up your network in addition to the server configuration.

    I am no expert on this. A search of the forum will provide you with threads on this topic.

  • If the network is optimal, the speed should be around 100 MB / s. In my case I succeeded when I changed the router. The router provided by my ISP is real rubbish.

    You will have to investigate the hardware that makes up your network in addition to the server configuration.

    I am no expert on this. A search of the forum will provide you with threads on this topic.

    I will do it as soon as my 10Gb system is up running. I will get a managed switch or two and much more control over my network. My network right now is far from optimal.


    100MB/s will be 800Mb/s and is a little low for me :D 120MB/s that is 960Mb/s sounds much better. Why does Microsoft use MB/s for file transfer? Just confusing!

    I have now started to copy my photo archive to my iSCSI drive and it looks good so far, almost maxed out on my network speed and that must be great.

    Skjermbilde-2021-11-28-kl.-21.04.47.png

    A newbie OMV user running:
    OMV 5.6.20-1 Usul
    Intel Core i5-4670K, 16Gb RAM, Some Hardrive in Raid 5 (2x1TB and 2x4TB).

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!