QNAP, Inc. - Network Attached Storage (NAS)

Language

Support

How to Back up/Restore iSCSI LUN, and Create iSCSI LUN Snapshot on QNAP Turbo NAS?

QNAP Turbo NAS supports multiple iSCSI targets and logical unit numbers (LUN) for storage expansion and backup destination of the servers on an IP-SAN. In this document, users will learn how to back up and restore an iSCSI LUN, create an iSCSI LUN snapshot on the Turbo NAS, and how to manage LUN backup by using a command line.

Note that the LUN backup, restore, and snapshot features are only supported by a Turbo NAS running firmware v3.5.0 or above.

Quick Links:

Back up an iSCSI LUN

Before backing up an iSCSI LUN, make sure at least one iSCSI LUN has been created on the Turbo NAS. To create iSCSI targets and LUNs, go to “iSCSI” > “iSCSI Storage”.

1. Go to “iSCSI” > “LUN Backup” and click “Create a new job”.

2. Select “Back up an iSCSI LUN” and click “Next”.

3. Select the source LUN for backup. If an online LUN is selected, the Turbo NAS will automatically create a point-in-time snapshot for the LUN.

Note that the LUN backup feature supports both file-based and block-level LUNs on a Turbo NAS running firmware v4.1.2 or above.

4. Specify the destination where the LUN will be backed up to. The Turbo NAS supports LUN backup to a Linux share (NFS), a Windows share (CIFS/SMB), and a local folder on the Turbo NAS. Click “Test” to confirm that the settings are correct before clicking “Next”.

5. Enter a name for the backup LUN image or use the one generated by the Turbo NAS. Select the subfolder where the image file will be stored. Select whether to use compression* or not before clicking “Next”.

*Use Compression: When this option is enabled, more system resources will be used but the size of the backup LUN can be reduced. The backup time will vary depending on the size of the iSCSI LUN.

6. Specify the backup schedule. The options available are:

  • Now
  • Hourly
  • Daily
  • Weekly
  • Monthly

In this example, the backup job will be executed at 20:00 daily. Click “Next”.

7. The settings will be shown. Enter a name for the job or use the one generated by the Turbo NAS and click “Next”.

8. Click “Finish” to exit.

9. The backup job will be shown on the list.

Restore an iSCSI LUN

1. To restore an iSCSI LUN to the Turbo NAS, go to “iSCSI” > “LUN Backup” and click “Create a new job”.

2. Select “Restore an iSCSI LUN” and click “Next”.

3. Specify the protocol, IP address/host name, and folder/path of the restore source. Click “Test” to confirm that the settings are correct before clicking “Next”.

4. Browse and select the LUN image file and click “Next”.

5. Select the destination.

  • Overwrite existing LUN: Restore the iSCSI LUN and overwrite the existing LUN on the Turbo NAS. All of the data on the original LUN will be overwritten.
  • Create a new LUN: Restore the iSCSI LUN to the Turbo NAS as a new LUN. Enter the name and select the location of the new LUN.

Click “Next”.

6. The settings will be shown. Enter a name for the job or use the one generated by the Turbo NAS and click “Next”.

7. Click “Finish” to exit.

8. The restore job will be executed immediately.

Create an iSCSI LUN Snapshot

Before creating an iSCSI LUN snapshot, make sure at least one iSCSI LUN and one iSCSI target where the iSCSI LUN snapshot will be mapped to have been created on the Turbo NAS. To create iSCSI targets and LUN, go to “iSCSI” > “iSCSI Storage”.

1. To create an iSCSI LUN snapshot, go to “iSCSI” > “LUN Backup” and click “Create a new job”.

2. Select “Create a LUN Snapshot” and click “Next”.

3. Select an iSCSI LUN on the Turbo NAS and click “Next”.

4. Enter a name for the LUN snapshot or use the one generated by the Turbo NAS. Select an iSCSI target where the LUN snapshot will be mapped to and click “Next”.

Note that you cannot map the LUN snapshot to the target contains the source LUN.

5. Specify the snapshot schedule and the snapshot duration. The snapshot will be removed automatically when the snapshot duration is reached.

6. The settings will be shown. Enter a name for the job or use the one generated by the Turbo NAS and click “Next”.

7. Click “Finish” to exit.

8. The snapshot will be created immediately. The status and duration will be shown on the list.

9. Go to “iSCSI” > “iSCSI Target List” and the snapshot LUN will be shown on the iSCSI Target List. Use iSCSI initiator software to connect to the iSCSI target and access the point-in-time data on the snapshot LUN. For the information of connecting to the iSCSI targets on the Turbo NAS, please refer to How to create and use the iSCSI target service on the QNAP NAS.

Manage LUN Backup/Restore/Snapshot by Command Line

Turbo NAS users can execute or stop the iSCSI LUN backup, restore, or snapshot jobs by using a command line interface. Follow the below instructions to use this feature.

Note: The following instructions should only be operated by IT administrators who are familiar with command line interfaces and the necessary syntax.

1. First ensure that the iSCSI LUN backup, restore, or snapshot jobs have been created on the Turbo NAS in “iSCSI” > “LUN Backup”.

2. Connect to the Turbo NAS by using an SSH utility (such as PuTTY).

3. Login to the Turbo NAS as an administrator.

4. Input the command “lunbackup”. The command usage description will be shown.

5. Use the lunbackup command to start or stop an iSCSI LUN backup, restore, or snapshot job on the Turbo NAS.

Release date: 2013-07-02
Was it helpful?
Thank you for your feedback.
Thank you for your feedback. If you have any question, please contact support@qnap.com
63% of people think it helps.