Monday to Saturday 9:00–19:00, Sunday closedFree pickup anywhere in Germany · drop-off in Berlin and Hamburg

NAS and RAID

iSCSI LUN on a NAS gone: why the volume is not lost yet

Many small companies use their NAS as storage for a server: the NAS provides an iSCSI LUN, and Windows or a hypervisor formats it as its own disk. If the LUN disappears, the server sees an empty or unknown drive. The data is rarely gone. It is usually still in the LUN file or block area on the NAS, behind one more layer that has lost its link.

Published 2 min readBy Mirush Murataj

Cover of the RecDati guide: iSCSI LUN on a NAS gone: why the volume is not lost yet
A LUN is a disk inside the NAS volume, with its own file system.

In short

  • A LUN is a disk inside the NAS volume, with its own file system.
  • Do not initialise the drive on the server, even if Windows asks you to.
  • The lab reads the LUN from copies of the NAS disks and opens its NTFS, VMFS or ReFS.

Two kinds of LUN

NAS systems offer two types. A file-based LUN is a large file on the NAS volume. A block-based LUN takes its own area of the storage pool, without a file system in between. QNAP uses both, depending on the setting chosen when it was created. Inside the LUN lies the file system of the server: NTFS, ReFS or VMFS.

Frequent causes

  • The NAS volume behind the LUN is degraded or read-only, so the target goes offline.
  • The storage pool is full. A thin LUN can no longer grow and is switched off.
  • After a firmware update, the target or its access rights were changed, and the initiator can no longer log in.
  • Two servers wrote to the same LUN without a cluster file system. NTFS is damaged in this case.

What you can check

On the NAS, look at the state of the pool and the volume, the free space, and whether the target is shown as online. On the server, look at the iSCSI initiator: does it connect, and is the disk listed in Disk Management?

If Windows shows the disk as "not initialised", do not initialise it. Doing so writes a new partition table over the old one. The same applies to "format" or to a hypervisor that offers to create a new datastore.

If the pool is full, delete old snapshots on the NAS only if you know they are not needed, and do not delete anything inside other LUNs.

How the lab recovers a LUN

The NAS disks are copied, the RAID and the pool are assembled from the copies, and the LUN is extracted as a single image. For a block-based LUN, the lab reads the allocation tables of the pool to put the blocks in the right order. The image is then opened like a server disk: partition table, then NTFS, ReFS or VMFS, then the files or virtual machines inside.

For virtual machines on such a LUN, see also VMFS datastore missing after an ESXi update: causes and recovery. More about the device: QNAP NAS data recovery.

Frequently asked questions

Can I connect the LUN to another server to test?

Only read-only and only if you know how. Never connect it to two servers at once with write access.

Do snapshots on the NAS contain the LUN?

Usually yes. A snapshot from before the problem can often be mounted as a new LUN. Ask before restoring it over the original.

How long does it take?

Depending on the size, usually a few days. The Express level brings the diagnosis within 24 to 48 hours.

Official sources and useful links

  • Synology Knowledge Center: Official Synology help: SHR, Btrfs, storage pools, iSCSI and DSM updates.
  • QNAP: Official QNAP site with support, firmware and security advisories for QTS and QuTS hero.

Are these files business-critical?

Stop every repair attempt that writes to the disks. The lab diagnosis is free and you receive a fixed price before anything is done.

Request a free diagnosis QNAP NAS data recovery

Switch the device off, leave it as it is and let the lab have a look first.

Get a price