Hello,
I am running storage system on ZFS, what I needed was iSCSI target for my Vmware systems. I have four disks in RAID10 used only for iSCSI and FreeBSD OS needs and 6 GB RAM, no other services running on that system. iSCSI is usually working with block devices, but ZFS doesn't use them. So I created a block device this way:
I used blocksize 128k because above it is going to be a vmfs filesystem and it deals with even larger block sizes. Still this is the maximum block size you can get from ZFS.
After many performance issues, I start tracing the problem trough the network, iSCSI protocol, multipathing, switches flow control. I ended up with making normal UFS filesystem at /dev/zvol/zpool/DISK0, mounting it locally and transferring file with SCP trough localhost, so I can see the transfer speed.
I got transfer speed 2-5 MB/s. But if I go to some local directory, fill up a file with zeros, create a UFS filesystem on it and mount it, I got about 30 MB/s transfer speed to it.
Any idea, is this normal for ZFS block devices? And would it be a problem if I use files instead of block devices for iSCSI? And also any idea if the HAST can work with local files instead of block devices? Because I am interested in running a redundant storage system
Thank you.
I am running storage system on ZFS, what I needed was iSCSI target for my Vmware systems. I have four disks in RAID10 used only for iSCSI and FreeBSD OS needs and 6 GB RAM, no other services running on that system. iSCSI is usually working with block devices, but ZFS doesn't use them. So I created a block device this way:
zfs create -b 128k -o sync=always -o compress=on -s -V 600G zpool/DISK0
I used blocksize 128k because above it is going to be a vmfs filesystem and it deals with even larger block sizes. Still this is the maximum block size you can get from ZFS.
After many performance issues, I start tracing the problem trough the network, iSCSI protocol, multipathing, switches flow control. I ended up with making normal UFS filesystem at /dev/zvol/zpool/DISK0, mounting it locally and transferring file with SCP trough localhost, so I can see the transfer speed.
I got transfer speed 2-5 MB/s. But if I go to some local directory, fill up a file with zeros, create a UFS filesystem on it and mount it, I got about 30 MB/s transfer speed to it.
Any idea, is this normal for ZFS block devices? And would it be a problem if I use files instead of block devices for iSCSI? And also any idea if the HAST can work with local files instead of block devices? Because I am interested in running a redundant storage system

Thank you.