Skip to content
Get a quote

SAN

iSCSI SAN for virtualisation on a budget

iSCSI lets you build shared block storage for hypervisors on ordinary Ethernet. Here is how to design it properly without overspending.

Panaro Tech · · 7 min read

Once you run more than one hypervisor host, shared storage becomes the thing that makes live migration, high availability and central backup possible. An iSCSI SAN for virtualisation is often the most affordable way to get there, because it carries block storage over the same kind of Ethernet switches and network cards you already know how to run.

Affordable does not mean casual, though. A badly designed iSCSI setup gives you shared storage that pauses every VM when a switch reboots, or crawls when a backup job runs. This post covers the design decisions that matter: network, multipathing, RAID layout and volume settings, plus a sizing example.

How iSCSI works in a virtualised environment

iSCSI carries SCSI commands inside TCP/IP. The storage system acts as the target and presents one or more LUNs. Each hypervisor host runs an initiator, either in software or on a supporting network card, and sees each LUN as a disk. The hypervisor then formats the LUN with a cluster-aware file system (VMFS on VMware, a cluster shared volume on Hyper-V, or a shared LVM or cluster setup on Proxmox and KVM) so several hosts can use it at once.

Access is controlled by the initiator's IQN (its iSCSI name), optional CHAP authentication, and which network the target listens on. If you are still deciding whether block storage is right at all, read NAS vs SAN: what is the difference first; NFS datastores are a valid alternative for many hypervisors.

Network design: where most problems start

Storage traffic is sensitive to latency and packet loss in a way that office traffic is not. The basics:

  • Separate the storage traffic. Use dedicated switches or at least dedicated VLANs and ports for iSCSI. Do not route it through firewalls or across the office core.
  • Two independent paths. Use two network ports on each host and on the storage, connected to two separate switches, on two separate subnets. This lets either switch fail without losing storage.
  • Use multipathing, not link aggregation, for iSCSI. Multipath I/O (MPIO) at the initiator handles failover and load balancing across paths. LACP bonding is the wrong tool for iSCSI sessions.
  • Choose sensible speed. 10GbE is a practical minimum for shared VM storage today; 25GbE gives headroom for flash-heavy designs.
  • Jumbo frames only if consistent. An MTU of 9000 can reduce overhead, but it must be set end to end on every port, switch and host. A mismatch causes confusing intermittent failures. If in doubt, leave the standard MTU.
  • Flow control and buffers. Use switches with adequate port buffers; cheap desktop switches drop packets under storage bursts.

Storage layout for VM workloads

Virtual machines generate small, random reads and writes from many guests at once. That shapes the storage design more than raw capacity does.

RAID choice

Mirrors (RAID 10, or striped mirrors in ZFS) give the best random I/O and the fastest rebuilds, at 50% capacity efficiency. RAID 6 or raidz2 gives more capacity but much lower random write performance per drive, because each small write touches parity. A common budget compromise is mirrors on SSD for VM disks, and a separate RAID 6 pool on hard drives for bulk data and backups.

ZFS volume settings

On ZFS-based storage, an iSCSI LUN is usually a zvol. Settings to consider:

  • volblocksize: set at creation and not changeable later. Smaller sizes suit small random I/O; larger sizes improve compression and sequential throughput. Match it to the workload and test.
  • Thin provisioning: sparse zvols save space but can run the pool out of room. Monitor pool usage carefully and keep free space headroom.
  • Synchronous writes: hypervisors often issue sync writes. A fast, power-loss-protected SSD log device (SLOG) can help a pool of hard drives; never disable sync to gain speed on production VMs.
  • Compression: lightweight compression such as LZ4 usually costs little and often helps.

Memory

ZFS caches hot data in RAM (the ARC). For VM storage, generous ECC memory directly improves read latency.

A sizing example with hypothetical numbers

Suppose three hosts run 40 VMs. You estimate an average of 50 IOPS per VM, with peaks double that, so about 4,000 peak IOPS, and 6 TB of VM disks growing to 10 TB.

  1. Performance: a 7,200 rpm hard drive gives in the order of 100 to 200 random IOPS. Reaching 4,000 random IOPS from HDDs alone would need many spindles in mirrors. A handful of enterprise SSDs in mirrored pairs exceeds that comfortably.
  2. Capacity: 10 TB usable in mirrors needs about 20 TB raw, plus headroom to stay below roughly 80% full, so about 25 TB raw of SSD.
  3. Network: two 10GbE paths per host and two or more on the storage give redundancy and adequate bandwidth for this scale.

Your IOPS assumptions matter more than any formula. Measure current hosts with the hypervisor's own performance tools before buying. The capacity calculator helps with the usable-capacity side.

Backing up VMs on iSCSI storage

Shared storage concentrates risk, so plan protection alongside the design. Storage snapshots of a zvol are crash-consistent; for application-consistent recovery, use the hypervisor's backup integration, which quiesces guests before taking its own snapshot. Send backups to a separate system, ideally a NAS on different hardware, and keep at least one copy offline or off site. Test a full VM restore, not just a file restore, so you know how long recovery really takes.

Common mistakes to avoid

  • Single switch, single path: one firmware update stops every VM.
  • Mixing iSCSI with user traffic on the same ports.
  • Large RAID 6 groups of hard drives for busy VM datastores.
  • Over-committing thin LUNs with no pool monitoring.
  • Treating storage snapshots as backups. Snapshots live on the same system; you still need copies elsewhere.
  • No CHAP or network isolation, leaving LUNs open to any initiator on the LAN.

Checklist before you go live

  1. Dedicated storage VLANs or switches, two independent paths.
  2. MPIO configured and tested by pulling one cable during a test VM's I/O.
  3. MTU consistent end to end, verified with a large non-fragmenting ping.
  4. LUNs restricted by initiator name, with CHAP where supported.
  5. Pool free-space alerts set below 80%.
  6. Snapshot schedule plus an off-system backup.
  7. Firmware and driver versions recorded for every host and the storage.

Using Panaro hardware for VM storage

Panaro servers run Awanstor SDS (ZFS-based) or Linux/Windows, with ECC memory and SSD support, and the LP series offers up to 2 TB of RAM with 10/25/40/100GbE options. Whether a given configuration includes iSCSI target support is something to confirm for your setup: ask Panaro's engineers whether your configuration includes iSCSI, and they will advise on layout, networking and alternatives such as NFS. Send your requirement with your host count, VM count and current performance data.

Frequently asked questions

Is iSCSI good enough for virtualisation?

Yes, when designed properly. iSCSI over a dedicated, redundant 10GbE or faster network with multipathing is widely used for hypervisor datastores. Most problems come from shared networks, single switches, missing multipathing or slow disk layouts rather than from the protocol itself.

Should I use link aggregation or multipathing for iSCSI?

Use multipathing (MPIO) at the initiator. Configure two ports on separate subnets and separate switches, and let the hypervisor's multipath driver handle failover and load balancing. Link aggregation suits NAS and general traffic, but it does not balance individual iSCSI sessions well.

What RAID level is best for VM storage?

Mirrors (RAID 10 or striped mirrors in ZFS) give the best random I/O and fastest rebuilds, which suits busy VM datastores. RAID 6 offers more capacity but much lower random write performance on hard drives. Many designs use mirrored SSDs for VMs and RAID 6 for bulk data.

Are storage snapshots a backup for my VMs?

No. Snapshots are an excellent quick rollback tool, but they live on the same storage system. If that system fails, is stolen or is fully encrypted by an attacker with admin access, snapshots go with it. Keep at least one copy on separate hardware and one offline or offsite.