LUN
Before creating a LUN, you need to create a volume first in Storage Manager.
LUN types with different features will be displayed in different colors:
- Thin Provisioned LUNs created on an ext4 volume.
- Thin Provisioned LUNs created on a Btrfs volume.
- Thick Provisioned LUNs.
Important:
- Only LUNs created on a Btrfs volume on DSM 6.2 and above versions support new advanced features and instant snapshots. LUNs on an ext4 volume support only legacy advanced features.
To create a LUN:
- Click Create.
- Set the properties of this LUN.
- LUN name
- Location
- Capacity: LUN size must be at least 1 GB. For LUNs with legacy advanced features, the size must be at least 10 GB.
- Space Allocation: Thick Provisioning provides better stability and performance, while Thin Provisioning supports on-demand allocation and all advanced features but may cause file system crash on the LUN when its volume runs out of space.
Note: Thick Provisioned LUNs do not support snapshots and space reclamation.
- Select a protocol for the LUN.
- Set access permissions for hosts and initiators.
- Click Done to finish the wizard.
Note:
- New LUNs cannot be created when a volume has less than 1 GB of free space.
- Btrfs LUNs support VMware VAAI and Windows Offload Data Transfer (ODX) by default.
- Enabling legacy advanced features may affect the I/O performance.
- The number of supported LUNs varies depending on Synology NAS models. For detailed product specifications, please refer to www.synology.com.
- Advanced features include:
- Hardware-Assisted Zeroing: Helps VMware ESXi hosts to initialize virtual disks with better efficiency when creating new virtual disks.
- Hardware-Assisted Locking: Locks only required parts of a LUN when a VMware ESXi host accesses data on it, allowing multiple VMware ESXi hosts to access the same LUNs simultaneously without compromising the performance.
- Hardware-Assisted Data Transfer: Data transferring can be done quickly on your Synology NAS without taking up the resource of the hosts when copying data on VMware ESXi and Microsoft Hyper-V hosts.
- Snapshot: With the help of Btrfs file system features, instant snapshots and replication are available.
- Space Reclamation: Supports space reclamation command of the initiator. When data is deleted or transferred, the space it used will be released. However, this may affect I/O performance.
To delete a LUN:
When you delete a LUN, all data on the LUN will be deleted. Connections between the LUN and any mapped targets will also be lost.
- Select the LUN you want to remove.
- Click Delete and follow the wizard to complete the process.
Note:
- When you delete a LUN, all its snapshots will be deleted, and space reclamation may take some time to process.
- You cannot delete LUNs that have immutable snapshots until the protection period of the snapshots ends.
To edit a LUN:
- Select the LUN you want to edit.
- Select Edit from the Action drop-down menu.
- Edit the desired properties.
- Click OK to save the settings.
Note:
- To avoid data loss when editing LUN capacity, you can only make it larger than the current size.
- If the status of a LUN changes to Unavailable, it means that some data-related errors occurred while accessing the LUN. In order to avoid severe data loss on your system, this LUN will be temporarily inaccessible. Please contact Synology for support as soon as possible.
- Moving a LUN will delete all its snapshots.
- Block LUNs and Legacy advanced LUNs cannot be moved.
If your Synology NAS serves as the storage backend of OpenStack Cinder, LUNs with storage acceleration commands will be used when creating Cinder volumes. Operations and management of the LUNs/targets used by Cinder will be limited on your Synology NAS.
- Cinder LUNs cannot be edited.
- Information such as the name, IQN, mapping, and masking of the Cinder Targets cannot be edited.
- You cannot map Cinder LUNs/Targets to general LUNs/Targets.
- You cannot take snapshots of Cinder LUNs via the DSM user interface nor edit, delete or restore snapshots of Cinder LUNs.
- LUNs cloned from Cinder LUNs/snapshots will become general LUNs.
Terminology:
- FUA: A SCSI command with FUA bit enabled makes sure that data are written to the drives before reporting I/O process as completed.
- Sync Cache: A SCSI command which asks the device to flush cache to the drive.
To clone a LUN:
- Select the LUN you want to clone.
- Select Clone from the Action drop-down menu.
- Edit the name of the cloned LUN, and select the destination volume.
- Click OK to start cloning.
To defrag a LUN:
Defragmentation can recover deteriorated LUN performance caused by data fragmentation or snapshots. During defragmentation, the LUNs' I/O performance may be affected, but you can stop it anytime and resume the process afterward.
- Select the LUN you want to defrag.
- Click Defrag > Start.
To stop defragging a LUN:
- Select the LUN which is defragging.
- Click Defrag > Stop.
Note:
- Defragmentation is supported on Thin Provisioned Btrfs LUNs only.
- In the process of defragmentation, you cannot edit/clone the LUN or take snapshots; however, you could remove it.
- Defragmentation can be stopped anytime. The system keeps a record of the progress and will resume from where it was last stopped.
- Existing LUN snapshots will take up extra volume space after a LUN defragmentation.
Additional Information
- LUNs with snapshot feature or legacy advanced features enabled can be cloned quickly within the same volume.
- LUNs with the new advanced features can only be cloned to Btrfs volumes.
- When LUNs with legacy advanced features are cloned to a Btrfs volume, they will be converted into LUNs with new advanced features. When cloned to another ext4 volume, the LUNs' legacy advanced features will be disabled.
- LUN properties will not change after being cloned except for LUNs with legacy advanced features.
- While you are cloning LUNs without snapshot or legacy advanced features, it is recommended that you disconnect these LUNs to prevent failed cloning or data inconsistency.
To convert a LUN with legacy advanced features:
- Select the LUN you want to convert.
- Select Convert from the Action drop-down menu.
- Configure the settings:
- LUN name
- Location: You cannot modify the location after a LUN is created, but you can convert this LUN to another Btrfs volume.
- Tick the checkbox if you wish to delete the original LUN and map the target to the new LUN after the conversion.
- Click Apply to confirm the settings.
Note:
- Only LUNs with legacy advanced features can be converted to LUNs with new advanced features.
- LUNs can only be converted onto Btrfs volumes with enough free space.
- To ensure data consistency, LUNs will be unmapped from the target during the conversion.
- There will be no snapshots on the converted new Advanced LUN.
Terminology:
- Thin Provisioning: Thin Provisioning is a method for optimizing storage utilization by allocating storage space in a dynamic and on-demand manner.
- VMware VAAI: The VMware vStorage APIs for Array Integration (VAAI) can offload the work of the standard operations from the server to the storage device in the VMware vSphere environment and optimize the storage performance.
- Windows ODX: Offload Data Transfer (ODX) is a new data transfer technology developed by Microsoft in Windows Server 2012 and 8. ODX improves transfer performance by offloading some of the workloads to the storage array.
If the data source and destination are located on LUNs that are located on the same volume, cloning will be processed by storage acceleration commands, which saves up to 99.9% of the storage space consumption and accelerates cloning at the same time. - Target Mapping: Map the LUN to one or more targets.