(Discovered) Best Practice Config for OpenFiler iSCSI Storage for ESXi4
Update: OpenFiler performance and reliability remained low. I've since moved to another platform, and no, this isn't an ad so I'm not saying where I ended up.
That title sucks, but I'm hoping Google will like it.
The OpenFiler iSCSI box at the Eastern site bailed, due largely to congestion on the still-not-redundant switch we have in place (new stuff still in shipping, argh) and after the fallout I found some config tips for the OF 2.3 server. This thing's a physical box with nothing but iSCSI on it, so it may be different if you're simulating some ESXi-ESXi virtual worlds in your mini-lab at work.
That title sucks, but I'm hoping Google will like it.
The OpenFiler iSCSI box at the Eastern site bailed, due largely to congestion on the still-not-redundant switch we have in place (new stuff still in shipping, argh) and after the fallout I found some config tips for the OF 2.3 server. This thing's a physical box with nothing but iSCSI on it, so it may be different if you're simulating some ESXi-ESXi virtual worlds in your mini-lab at work.
- Disable Delayed ACK in the iSCSI storage adapter advanced properties on the ESXi host. (scroll down)(via)
- Reduce the VMs-per-LUN count to reduce the reservation count and conflict Smaller LUNs, kids, despite what you hear.(via)
- Change the default iSCSI timeout on your ESX server to 14 seconds: esxcfg-advcfg -s 14000 /VMFS3/HBTokenTimeout (
via, via, via) - Keep your snapshots down: they increase load, with the obvious impact.(via)
- Consider upgrading your intel e1000 or exgb NICs, code here, intel instructions here, openFiler-derived procedure here.
- Don't use more than one NIC (bonding) or more than one interface (different subnets) at a time with Openfiler. (via, via, instructions for OF)
- Target tuning (via):
- DefaultTime2Wait should be changed to "10"
- ImmediateData should be changed to "Yes"
- MaxRecvDataSegmentLength should be changed to "262144"
- MaxXmitDataSegmentLength should be changed to "262144"
- LUN tuning
- R/W mode should be changed to "write-back"
(it should go without saying that a BBU is essential for your RAID controller) - Transfer mode should be changed to "fileio"
(this is controversial)
- R/W mode should be changed to "write-back"
- NEVER, EVER share LUNs between ESX hosts using Openfiler and IET.
(Not sure how doable this one is in an ESXi cluster, but that's the suggestion.) (via)
So in my case, we're looking to implement a few of those. Hopefully we'll not see this kind of issue any time soon, but watch this space in case we do see something after the upgrade/tuning.
The good news is that OF is considering another iSCSI target, and the changes are supposed to be very beneficial for performance and for us.
The good news is that OF is considering another iSCSI target, and the changes are supposed to be very beneficial for performance and for us.
Labels: ESXi, iSCSI, openfiler, performance, VMware, vSphere
<< Home