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, these topics are covered:

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

 

Note: This function or its content is only applicable on some models. To check for applicable models, please refer to the product comparison table on the QNAP website.

A minimum of 4 GB RAM is required to use snapshots.
x51 series models only support up to 256 snapshots instead of 1024. The HS-251 does not support snapshots.

 

Backing up iSCSI LUNs

 

The entire LUN can be backed up as an image file and saved to a different location. The storage location can be a Windows share (SMB/CIFS), a Linux share (NFS), or a local folder on the NAS.

 

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, go to "Storage Manager" > "LUN Backup".

1.Click "Create a 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". (Use Compression: When this option is enabled, more CPU resources of the NAS will be used but the size of the backup LUN 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 is shown on the list.

 

Refer to the table below for actions (the "Action" button) available to manage the backup jobs.

Action

Description

Edit

Edit the job settings.

Delete

Delete the job.

Start

Start the job immediately.

Stop

Stop the running job.

View Logs

View the job status and logs.

 

Restoring iSCSI LUNs

 

A LUN image can be restored to the NAS. Users can choose to overwrite the original LUN or create a new one by renaming the LUN. To restore an iSCSI LUN to the NAS, follow these steps:

1.Go to "Storage Manager" > "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.

 

Refer to the table below for actions (the "Action" button)  available to manage restore jobs.

Action

Description

Edit

Edit the job settings.

Delete

Delete the job.

Start

Start the job immediately.

Stop

Stop the running job.

View Logs

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

 

A read-only LUN snapshot can be created and mounted to an iSCSI target on the NAS for data access from other hosts or LUN backup. The contents of the LUN snapshot will remain the same regardless of the changes made to the original LUN. 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 an iSCSI LUN snapshot, follow these steps:

1.Go to "Storage Manager" > "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 and click "Next". The snapshot will be automatically removed 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 "Storage Manager" > "iSCSI Storage", and 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 or certain operating systems such as Windows 7 and Windows 2008 R2. In this case, mount the LUN snapshot to a different NAS or server.

 

Managing LUN Backup/Restore/Snapshot by Command Line

 

QNAP NAS users can execute or stop the iSCSI LUN backup, restore, or snapshot jobs on the NAS by command line. Follow the instructions below to use this feature:

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

 

Note: The above procedure should only be carried out by administrators who are familiar with command line interfaces.

 


© 2017 QNAP Systems, Inc.