← Back to Recovery methods

LUN, Thin Provisioning and Snapshot Recovery

A thin-provisioned LUN’s logical block order lives in an allocation map, not in the raw bytes of the pool — scan the pool without that map and you get content with no way to tell which volume it belonged to.

A LUN is a logical unit, not a disk

iSCSI and Fibre Channel both distinguish an initiator, a target and a logical unit (LUN) as separate concepts. A host can lose access to a LUN for reasons entirely outside the backing storage: iSCSI target configuration, network connectivity, Fibre Channel zoning, LUN masking, initiator authorization, a multipath or path failure, controller ownership or failover, or a lost target-to-LUN mapping. “The host no longer sees the disk” is not evidence that the storage pool or the LUN’s data was destroyed.

Preserve LUN identity before anything else

  • LUN ID and LUN UUID/WWN — the logical unit’s own identity.
  • Target IQN and initiator IQNs, or FC WWPNs — which endpoints were talking to which.
  • Host groups, LUN masking and mapping — who was allowed to see the LUN.
  • Controller owner and multipath identifiers — which controller and path served the LUN.
  • Host-side disk signatures, partition GUIDs, and the VMFS UUID or Windows disk ID — how the host itself recognized the volume.

These identifiers are what let a later recovery attempt map application, host disk, LUN, storage object and pool extents back onto each other.

Thick vs. thin changes what “the data” even means

A thick-provisioned volume has fixed, dedicated allocation. A thin-provisioned one allocates space on demand from the pool, and vendors such as QNAP explicitly allow a thin volume to be over-allocated beyond the pool’s physical capacity. The consequence for recovery is direct: in thin storage, the logical-to-physical allocation map is part of the data. A raw scan of pool sectors cannot by itself reconstruct the original block order of a thin volume, because unallocated logical blocks simply have no dedicated physical backing to scan.

Reclamation behaves like TRIM, one layer up

SCSI UNMAP and similar discard mechanisms let a thin pool reclaim space the host has released, changing recoverability in much the same way SSD TRIM does — except at the storage-array allocation layer rather than the flash layer. Reclaimed extents can be reallocated to a completely different volume or LUN, and a later write there can overwrite old data that belonged to another logical object entirely.

Deduplication adds a layer of indirection

Where deduplication is in use, a LUN block, another LUN block and a snapshot can all point through a shared dedup reference at one physical content block. Recovering that content block without the dedup index and reference metadata that explain which logical object it belonged to is not enough — losing the reference metadata can be as damaging as losing the content itself, even when the physical blocks are perfectly intact.

A snapshot is a mapping, not automatically a second copy

A storage snapshot commonly preserves an older mapping, copy-on-write or redirect-on-write references, and blocks shared with the live volume — it is not necessarily an independent physical duplicate. Deleting snapshot metadata can free the historical extents it was holding onto; clone lineage matters; flattening or consolidating snapshots can itself involve heavy writes. Always keep array snapshots, LUN snapshots, VM snapshots and file-system snapshots conceptually separate — they are different mechanisms with different failure modes.

Crash-consistent, file-system-consistent and application-consistent are not the same guarantee

Tools such as QNAP’s Snapshot Agent can coordinate a Windows host or VMware guest so that application or VM state is flushed before the underlying LUN snapshot is taken. A snapshot’s timestamp alone does not say which of the three consistency levels it actually achieved, and that difference can determine whether a database or VM recovered from it is directly usable or needs further repair.

Practical rule

Preserve the highest intact layer that still knows where the logical blocks belong. An allocation map or a dedup index that survives is often worth more than another raw image of pool sectors.

Related: SAN Storage Stack Reconstruction · Reconstructing NAS Storage Stacks · Sparse, Thin-Provisioned and Virtual Storage Recovery · SAN (Storage Area Network) Failure · NAS Device Failure