whould the situation be any different if the array was connected to a switch rather that directly to the hypler-v hosts ? Could I then attach a LUN directly to a VM using a standard External vSwitch and for example a specific vlan ?
Assistant
User
The reason I'm curious is that I'm using LUNs (from a Qnap) mapped directly via iSCSI to a fileserver failover cluster running on VMs and its working just fine. There are only two differences to that setup: There are no LUNs form said Qnap connected to the hosts, and second they are served form a Qnap not an Array, so there are no two controllers, no different IP - its just a simple 4 port aggregation on a single network connected to a standard switch. Thas why I was sure I could do the same witch an array, but it seems the multipath is the source of the problem or am I not right ?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Great follow-up question — the physical connectivity (direct vs. switched) changes some details, but not the core architectural recommendation. Let’s break it down.
🔍 Short Answer: No, It Doesn’t Change the Recommendation
Whether your iSCSI array is direct-connected or switched, Microsoft still recommends using Shared VHDX on CSV for guest failover clusters (like a File Server Failover Cluster Instance, or FSFCI). Direct LUN mapping to VMs over iSCSI (even via a switch) is still not supported for guest clusters — and performance, live migration, and manageability will suffer.
But let’s explore why the switch doesn’t save you from the problems — and when (if ever) you might consider direct VM iSCSI.
🔄 1. Direct vs. Switched: What Changes?
Aspect
Direct-Attached
Switched (via Ethernet)
Latency
Lower (no switch hop)
Slightly higher (switch latency ~0.1–0.5 μs)
Bandwidth
Dedicated (no contention)
Shared (unless you use dedicated VLANs/NICs)
MPIO
Easier (2 paths = 2 NICs)
More flexible (4+ paths with multiple switches)
Scalability
Limited (2 hosts per LUN)
High (many hosts, many LUNs)
VM Mobility
❌ Live migration breaks iSCSI
❌ Still breaks (same reason)
Security
Physically isolated
Can use VLANs, ACLs, CHAP
Complexity
Simpler setup
More complex (VLANs, switch config, jumbo frames)
✅ Switched gives you more flexibility (e.g., more hosts, better redundancy), but doesn’t solve the fundamental issues of guest iSCSI.
❌ 2. Why VM iSCSI Over a Switched Network Still Fails for Guest Clusters
Even with a dedicated iSCSI VLAN, jumbo frames, MPIO in the guest, and persistent reservations, you still face:
A. No Live Migration Support
When you live-migrate a VM, the iSCSI session stays bound to the old host’s IP/NIC.
The VM loses access to the LUN until you manually re-login or use iSCSI persistent reservations (PRs) with cluster coordination.
Microsoft does not support guest clustering over iSCSI unless the storage is managed by the hypervisor (i.e., Shared VHDX, CSV, or SMB 3.0+).
📌 KB 2857651: "Guest clusters must use cluster-aware storage provided by the hypervisor."
B. Double iSCSI Stack (Again!)
The VM still sends iSCSI over the virtual NIC → vSwitch → host NIC → physical switch → array.
The host’s iSCSI stack is still involved — it just sees the VM’s traffic as regular TCP/IP.
You still get:
Extra CPU overhead (TCP/IP in guest + host)
Extra latency (extra hops, context switches)
No MPIO coordination between host and guest
Risk of queue depth exhaustion (host NIC queues fill up with VM’s iSCSI traffic)
C. Persistent Reservations Are Fragile
You can use iSCSI PRs to allow multiple VMs to access the same LUN (for clustering).
But:
Requires cluster-aware applications (like WSFC) to manage PRs.
No automatic failover — the cluster must issue PR_REGISTER and PR_RESERVE commands.
No support for live migration — you must pause the cluster, migrate, then resume.
Microsoft does not recommend this for FSFCI (file servers).
📌 Microsoft Docs: "Guest clusters should use Shared VHDX or SMB 3.0+ for shared storage. iSCSI with PRs is not supported for FSFCI."
D. Security & Management Overhead
You now have to:
Configure CHAP, IQNs, target portals, MPIO in each VM.
Manage iSCSI initiators across dozens of VMs.
Troubleshoot iSCSI session drops during host reboots.
With Shared VHDX, all of this is handled at the host level — one place, one config.
✅ 3. When Could You Use VM iSCSI Over a Switch? (Rare Cases)
Only consider direct VM iSCSI if:
Use Case
Why It Might Work
Non-clustered VM (single VM, no HA)
No need for shared storage or live migration.
Application that requires raw block access (e.g., Oracle RAC, some databases)
Some apps need direct LUNs, but not Windows file servers.
Testing / Lab Environment
You’re okay with manual failover and downtime.
SMB 3.0+ or Shared VHDX is not an option (very rare)
e.g., legacy OS, no CSV support.
⚠️ Even then, use a dedicated vSwitch with VLAN, jumbo frames, and QoS to isolate iSCSI traffic from VM traffic.
✅ 4. The Correct Switched Architecture (Recommended)
Even with a switched iSCSI network, the best practice is the same:
External vSwitch with dedicated NICs for iSCSI (not shared with VMs)
VLAN
Dedicated iSCSI VLAN (e.g., VLAN 100), tagged on switch and host NICs
Jumbo Frames
9014 bytes on: switch ports, host NICs, array ports
MPIO
On Hyper-V hosts only (not in VMs)
iSCSI Initiator
Configured on hosts, not VMs
VM Storage
Shared VHDX on CSV (not direct LUNs)
Live Migration
Use default vSwitch (separate from iSCSI)
QoS
Optional: prioritize iSCSI traffic on switch
✅ This gives you:
Low latency (switched, but dedicated)
High bandwidth (10/25/40 GbE)
Live migration
Failover clustering
Microsoft support
📚 Microsoft’s Position (Again)
🔗 "Guest clusters must use cluster-aware storage provided by the hypervisor."
🔗 "For virtualized file servers, use Shared VHDX on a CSV."
🔗 "iSCSI LUNs presented directly to VMs are not supported for FSFCI."
💬 Result: Full Microsoft support, live migration, high performance, and no iSCSI complexity in the VMs.
Stick with Shared VHDX on CSV — it’s the only architecture that’s supported, performant, and manageable for a virtualized file server cluster, whether direct-attached or switched.
You're absolutely on the right track — you've discovered a critical nuance about iSCSI multipathing (MPIO) vs. single-path iSCSI, and why your QNAP setup works but the array setup doesn't. Let's unpack this.
🔍 Why Your QNAP Setup Works (And Why the Array Setup Fails)
Factor
QNAP Setup
Array Setup (Multi-Controller)
iSCSI Target
Single IP (4-port LAG, single controller)
Two controllers, two IPs (or more)
Multipathing
No MPIO needed — LAG = single logical path
MPIO required — multiple active paths
Persistent Reservations (PR)
Works fine with single path
Fails or degrades with MPIO + PR
Guest iSCSI + Clustering
✅ Works (by accident, but works)
❌ Breaks due to MPIO complexity
Live Migration
❌ Still broken — VM iSCSI session tied to host IP
❌ Also broken
Microsoft Support
❌ Not supported — even if it works
❌ Not supported
✅ Your QNAP works because it's single-path iSCSI — no MPIO, no path switching, no controller failover.
❌ Your array setup fails because it's multi-path, multi-controller iSCSI — and MPIO + guest iSCSI + clustering = a fragile, unsupported combo.
Performance is better than QNAP setup (due to array + host MPIO)
💡 Bonus: You can now use larger LUNs, snapshots, deduplication, and replication — things QNAP can’t do.
✅ Option 2: The "It Works, But..." Way — Single-Path iSCSI to VMs (Not Recommended)
If you must keep iSCSI in VMs (e.g., for legacy reasons), disable MPIO and use single-path iSCSI — like your QNAP.
How:
On the array: present the LUN to one controller only (single IP).
On the VM: connect to one iSCSI target IP (no MPIO).
Disable MPIO in the guest — use fail-over only (not round-robin).
Use a dedicated vSwitch and VLAN for iSCSI.
Enable jumbo frames on all devices.
Test failover carefully — watch for PR conflicts.
⚠️ Caveats:
No MPIO = no redundancy = single point of failure.
No live migration — you must manually migrate the iSCSI session.
Not supported by Microsoft for FSFCI.
Not scalable — only works for 2-node clusters.
Performance still worse than Shared VHDX (double stack).
🔍 Use this only for labs or non-critical workloads.
📊 Performance Comparison
Metric
QNAP (Single-Path)
Array (MPIO in VM)
Shared VHDX on CSV
Latency
Medium
High (double stack)
Low (direct CSV)
IOPS
Medium
Low (queue contention)
High
Throughput
Medium
Medium
High
Failover Reliability
Medium (PR works)
Low (PR conflict)
High
Live Migration
❌ No
❌ No
✅ Yes
Microsoft Support
❌ No
❌ No
✅ Yes
Scalability
Low
Low
High
📚 Microsoft’s Stance (Again, But Now You Understand Why)
🔗 "Guest clusters must use cluster-aware storage provided by the hypervisor."
🔗 "Shared VHDX is the supported method for virtualized file servers."
🔗 "iSCSI with persistent reservations is not supported for guest clusters unless using Shared VHDX or SMB 3.0+."
💬 They don’t hate iSCSI — they hate iSCSI in VMs with MPIO and PRs, because it’s unreliable and hard to support.
✅ Final Answer
🔍 You were right: the problem is MPIO.
QNAP works because it’s single-path — no MPIO, no path switching, no PR conflict.
Array fails because it’s multi-path, multi-controller — and MPIO + guest iSCSI + clustering = unsupported and unreliable.
✅ The fix:
Stop using iSCSI in VMs.
Map LUNs to Hyper-V hosts only.
Use Shared VHDX on CSV.
Let the host handle MPIO.
Let the VMs see a simple shared disk.
💬 This will be faster, more reliable, and fully supported — even on your simple QNAP, but especially on a real array.
You’re not losing functionality — you’re gaining scalability, performance, and support. That’s the power of the hypervisor-managed storage model.