QNAP Turbo NAS Software User Manual

LUN Backup

LUN Backup

Previous topic Next topic helpdesk  

LUN Backup

Previous topic Next topic helpdesk  

The NAS supports backing up iSCSI LUNs to different storage locations (Windows, Linux, or local shared folders), restoring the LUNs to the NAS, or creating a LUN snapshot and mapping it to an iSCSI target.

 

In this chapter, the following topics are covered:

Backing up iSCSI LUNs
Restoring iSCSI LUNs
Creating iSCSI LUN Snapshots
Managing LUN Backup/Restore/Snapshot by Command Line

 

Backing up iSCSI LUNs

 

Before backing up an iSCSI LUN, make sure at least one iSCSI LUN has been created on the NAS. To create iSCSI targets and LUN, follow these steps.

1.Go to "Storage Manager" > "iSCSI" > "LUN Backup". 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 NAS will automatically create a point-in-time snapshot for the LUN.
4.Specify the destination where the LUN will be backed up to. The NAS supports LUN backup to a Linux share (NFS), a Windows share (CIFS/SMB), and a local folder on the NAS. Click "Test" to test the connection to the specified path. Then click "Next".
5.Enter a name of the backup LUN image or use the one generated by the NAS. Select the subfolder where the image file will be stored. Select to use compression or not and click "Next". (More system resources will be used for compression, but the backup LUN size can be reduced. The backup time may vary depending on the size of the iSCSI LUN.)
6.Specify the backup schedule, choose the backup period (Now, Hourly, Daily, Weekly, or Monthly) and click "Next".
7.The settings will be shown. Enter a name for the job or use the one generated by the NAS. Click "Next."
8.Click "Finish" to exit.
9.The backup job will be shown on the list.

Button

Name

Description

Button_bt_play

Start

Start the job immediately.

Button_back_up_stop

Stop

Stop the running job.

Button_rr_edit

Edit

Edit the job settings.

Button_group_details

View

View the job status and logs.

 

Restoring iSCSI LUNs

 

To restore an iSCSI LUN to the NAS, follow the steps below:

1.Go to "Storage Manager" > "iSCSI" > "LUN Backup". Click "Create a 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 test the connection. Then click "Next".
4.Browse and select the LUN image file and click "Next."
5.Select the destination and click "Next".
6.The settings will be shown. Enter a name for the job or use the one generated by the NAS. Click "Next".
7.Click "Finish" to exit.

 

The restore job will be executed immediately.

Button

Name

Description

Button_back_up_stop

Stop

Stop the running job.

Button_rr_edit

Edit

Edit the job settings.

Button_group_details

View

View the job status and logs.

 

Note: For Step 5 above:

Overwrite existing LUN: Restore the iSCSI LUN and overwrite the existing LUN on the NAS. All the data on the original LUN will be overwritten.
Create a new LUN: Restore the iSCSI LUN to the NAS as a new LUN. Enter the name and select the location of the new LUN. Make sure you have created at least one LUN on the NAS before editing the default LUN policy.

 

Creating iSCSI LUN Snapshots

 

Before creating an iSCSI LUN snapshot, make sure at least one iSCSI LUN and one iSCSI target has been created on the NAS. To create iSCSI targets and LUN, go to "Storage Manager" > "iSCSI" > "Target Management".

 

To create an iSCSI LUN snapshot, follow these steps:

1.Go to "Storage Manager" > "iSCSI" > "LUN Backup". Click "Create a job".
2.Select "Create a LUN Snapshot" and click "Next".
3.Select an iSCSI LUN on the NAS. Only one snapshot can be created for each iSCSI LUN. Click "Next".
4.Enter a name for the LUN snapshot or use the one generated by the NAS. Select an iSCSI target where the LUN snapshot is mapped to. Click "Next". The LUN snapshot must be mapped to another iSCSI target different from the original one.
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 NAS. 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" > "Target Management", the snapshot LUN will be shown in 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.

 

Note: The source LUN and snapshot LUN cannot be mounted on the same NAS in certain operating systems such as Windows 7 and Windows 2008 R2. In such case, mount the LUN to a different NAS.

 

Managing LUN Backup/Restore/Snapshot by Command Line

 

NAS users can start or stop the iSCSI LUN backup, restore, or snapshot jobs by command line. Follow these instructions to use this feature.

 

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

 

1.First make sure the iSCSI LUN backup, restore, or snapshot jobs have been created on the NAS in "Storage Manager" > "iSCSI" > "LUN Backup".
2.Connect to the NAS using an SSH utility such as Pietty.
3.Login to the 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 NAS.

 


© 2017 QNAP Systems, Inc.