BackupAssist Download Whitepaper

iSCSI Backups with BackupAssist

Introduction

With the implementation of BackupAssist v6.4, the software is now capable of providing specific destination functionality to an iSCSI destination.


This document outlines:

  • Basic introduction to iSCSI.
  • Speed Testing Comparison.
  • Best practices for gaining the most success out of iSCSI.
  • Configuring 'software' NAS using OpenFiler BSD.
  • Configuring BackupAssist to write to your iSCSI destination.
  • Some helpful troubleshooting tips and tricks for iSCSI.

Need to Know Terminology

iSCSI Target - This is the term used for the storage area for the backup on your destination.

iSCSI Initiator - This is essentially the 'client' side of your iSCSI connection. The initiator sends the SCSI commands over the network.

LUN - Stands for Logical Unit Number. This allows you to separate the physical drive on the iSCSI host into individual targets. Each target can then be used for a specific backup job.

iSCSI Portal - The physical hardware of which will be your backup destination. This is usually a PC/Server or a dedicated NAS device.

What is iSCSI - an Overview

iSCSI is a technology designed to provide access to data on a remote system over the TCP/IP protocol. It does this by sending SCSI type commands across TCP/IP which in turn allows the local machine to treat the network drive as a locally connected device. This allows for a lot of restrictions with remote storage to be lifted by the fact it's masked as a local drive.

When implemented correctly, iSCSI backups should be able to out-perform other backup destinations available (see performance testing later in this document) for commercial use.

iSCSI in BackupAssist is compatible with iSCSI targets implemented on most common distributions of Linux and Unix, as well as all versions of Windows from Server 2008 onwards. All newer style NAS devices come with iSCSI as a standard feature; however it's advised to confirm this with the hardware
vendor prior to purchasing to avoid disappointment.

Advantages of iSCSI

  • Faster transfer speeds than other network based protocols.
  • Allows for incremental images to be stored on a NAS device. When backing up to a network share, there isn't the presence of a snapshot manager which means that only one backup can be stored on the NAS at one time. However this limitation isn't present when using an iSCSI destination.
  • Bare Metal Recovery: Windows Server Backup doesn't allow for recovery from an iSCSI target. However; using the RecoverAssist utility this is now possible with your BackupAssist solution.

Performance/Speed Testing

The following tests were performed on a production workstation with 35GB of data.

* Results may vary depending on the environment in use. # iSCSI Target and Network Storage tests were run to the same physical machine with Windows installed. ^ We believe that the performance difference between the QNAP devices is that one is an 'entry' level device (Model 212) and the other an enterprise level device (Model TS-459).
Destination Time taken to complete (mins)* Throughput (GB/Per hour)
iSCSI Target # 10 210
Network Storage # 20 105
Locally connected USB 2.0 HDD 24 87.5
QNAP 212 Turbo NAS 18 116
QNAP TS-459 Pro II Turbo NAS 10 210

Recommended Best Practices with BackupAssist

  • Use one iSCSI target for each backup job
    We have found that running multiple backups to one iSCSI target can and will cause data corruption.
  • Use a dedicated iSCSI target for your backups.
    If you want to use the iSCSI device for file storage as well; have this set up within a different iSCSI target to that of your backups.
  • Allow BackupAssist to connect/disconnect your iSCSI device.
  • Consider limiting access to your iSCSI target by only allowing a select group of IP addresses to connect or use CHAP or IPsec authentication.

Supported Operating Systems

BackupAssist is able to support backups to iSCSI destinations on the following Windows operating systems:

  • Windows Vista
  • Server 2008
  • Small Business Server 2008
  • Windows 7
  • Server 2008 R2
  • Small Business Server 2011

Using OpenFiler as an iSCSI target

What is OpenFiler?

OpenFiler is an open source based networking operating system which has a configurable, front end, web based user management system - essentially turning a regular PC or server into a network attached storage (NAS) device with an underlying Linux operating system (more commonly known as a software NAS).

You can find more details on OpenFiler by visiting their website: www.openfiler.com

Installing OpenFiler

Pre-requisites

To be able to install and run OpenFiler successfully; make sure you have the following available:

  • Optical media (CD/DVD) created with the OpenFiler ISO. This is available for download from www.openfiler.com/community/download
  • A PC/Server that has a network card installed
  • Two physical hard drives. The drive to be used as the system drive requires a minimum of 10GB capacity.

Note:We found that having two physical drives (one for installing OpenFiler on and the other to use for backup data) available was easiest from a configuration standpoint. It's also the 'best practice' configuration as indicated by the developers of OpenFiler.


Installing OpenFiler - Graphical Installation

  1. Place your optical media into the CD/DVD drive which you're wishing to install off. The system should then boot off the CD/DVD.
  2. On the welcome screen press 'Enter' to install using the graphical mode.
  3. BackupAssist
  4. Click 'Next' in the bottom right hand corner of the opening page.
  5. Select the keyboard type that you're using for the install from the options available.
  6. BackupAssist
  7. A warning will now appear stating that the drive will be formatted and all data will be lost. Select 'Yes' to proceed with installation.
  8. BackupAssist
  9. You'll now need to select which drive you wish to install OpenFiler on. In our example we will be installing it on /dev/sda.
  10. BackupAssist
  11. A warning will now appear stating that the drives you selected will be formatted and all data will be lost. Select 'Yes' to proceed with installation
  12. BackupAssist
  13. On the next screen, click on the 'Edit' button to bring up the network interface settings
  14. BackupAssist
    • Ensure the tick box next to 'Enable IPv4 Support' is checked
    • Select the radio button next to 'Manual Configuration'
    • Enter the IP address you want to use for your OpenFiler installation and the network subnet under the 'Netmask'
    • Disable the check box next to IPv6.
    • Click 'OK' to commit these settings.
  15. Select manually under 'Hostname' and enter the name which you want your OpenFiler machine to be known as.
  16. Fill out the 'Miscellaneous Settings' as required and then click 'OK' once completed.
    Gateway: This is the IP address to connect OpenFiler to the Internet/outside network.
    Primary DNS: The IP address of the DNS server you wish for OpenFiler to use
    Secondary DNS: The IP address of an alternative DNS server you wish for OpenFiler to use. This option can be left blank.
  17. BackupAssist
  18. Select the relevant time zone and click 'Next'
  19. Enter the password for the 'Root' account within OpenFiler.
  20. The installation wizard is now complete - click 'Next' to begin the installation.

    BackupAssist
  21. Once the installation has completed, the CD will be automatically ejected and you'll need to re-boot the system.
BackupAssist

Once the system re-boots fully, you should then have access to OpenFiler in command line format (see screen shot below). The OpenFiler installation is now complete.

Note: Make sure to write down the Web Administration GUI IP address. This example is https:\\192.168.1.160:446

BackupAssist

Configuring OpenFiler as an iSCSI target via Web UI

Once you've correctly installed OpenFiler, you should now be able to access the web administration interface.
To be able to run the web administration interface, you'll need the Web Administration GUI IP address as listed when you access your OpenFiler machine locally from command line. In the example we're using https:\\192.168.1.160:446 is the web administration IP address

BackupAssist
  1. Open your web browser and enter the web administration IP address.
  2. Note: In some browsers you may receive an 'Untrusted Connection' or security certificate warning. There isn't a security issue and you'll need to accept this to configure your iSCSI target.

  3. The web administration UI login page should now appear (as shown to the right).
  4. Enter the Username and Password. The default settings are:
  5. Username: OpenFiler
    Password: password
    BackupAssist

  6. Once you've logged in, the 'Status' screen is displayed.
  7. BackupAssist
  8. Browse to the 'Services' screen.
  9. Enable and start 'iSCSI target' and 'iSCSI Initiator' services.
  10. Browse to the 'System' screen.
  11. Scroll to the bottom to add a 'Network Access Configuration' section.
  12. BackupAssist
  13. Fill in the details required to create a new network access configuration:
  14. Name: This is used for your own personal identification of the machine BackupAssist is on. It doesn't require any matching or special entry.
    Network/Host: Is the IP address of the system you're running BackupAssist on.
    Netmask: The subnet mask of the machine you're using.
    During our testing we found if you used 255.255.255.0 that the iSCSI target wouldn't be detected. Using 255.255.255.255 allowed for the iSCSI target to be detected successfully.

    Type: Leave this as the default 'Share'.

  15. Click on 'update' to create the network access.
  16. Browse to the 'Volumes' screen. You should now be prompted to create a new volume group.
    Fill in the 'Volume Group Name' field with a value of your choice.
    Select the physical volume(s) which you want to be part of the volume group by checking the tick box next to the relevant drive.

    In our example, the volume /dev/sdb1 is going to be a part of volume group 'iscsi_vg'.
  17. BackupAssist
  18. Click 'Add volume group' to complete the process with the details added.
  19. Click on the 'Add volume' option under 'Volumes section' to the right hand side.
  20. BackupAssist
  21. You now need to create a volume within the volume group you've just created.

    Volume Name: Identifier for the name of the volume you're creating. This can be set to anything.

    Volume Description: A brief outline of the purpose of the volume (if it's not obvious from the Volume name you've entered above). This field can be left blank if you choose.

    Require Space (MB)
    : Specified size of the volume you're creating in megabytes. The maximum is the amount of space available on the physical volume. However you can divide these into multiple volumes if you're backing up multiple machines to avoid conflicts.
  22. File System/Volume Type: Change this setting to 'block (iSCSI,FC,etc)'.
    BackupAssist
  23. Click on 'Create' to create the volume.
  24. Click on the 'iSCSI Targets' option under 'Volumes section' to the right hand side.
  25. BackupAssist
  26. Click on the 'Add' button to create a new iSCSI target. Once you've created your iSCSI target click on the 'LUN Mapping' tab.
  27. The 'LUN Mapping' tab allows for you to point the volume you created in step 13 to the iSCSI target you created in step 16.
  28. The variable options in this screen are as follows:

    R/W Mode: This is the permissions to the volume. The default option is full read/write permissions. This is the option that is required in this particular setup.
    BackupAssist Transfer Mode: The difference between 'blockio' and 'fileio' is the way caching is used on the target. We've found that transfer rates seem to be improved using blockio over fileio in our environment.

  29. Click on 'Map' to create the relationship between the volume and iSCSI target.
  30. Browse to the 'Network ACL' tab as this will allow you to specify which machines will be able to detect the iSCSI target you've created.

    Change the 'Access' option to either:
    Allow: This will let the IP address specified under Network/Host to access the iSCSI target.
    Deny: The IP address will not be able to detect the target when searching for valid iSCSI targets.
  31. Once you've made your selection, click 'Update' to commit your change.
  32. BackupAssist

    If you've made it this far, then you should now be able to configure BackupAssist to use your iSCSI target as a backup destination.

Configuring BackupAssist to use your iSCSI target

Once you have your iSCSI target configured; BackupAssist should be able to use this as a valid backup destination; provided you use the Zip, Imaging or File Replication engines (from BackupAssist v6.4 onward).

Install BackupAssist. You will have a free 30 day trial, but beyond this trial period, you will need to purchase a base BackupAssist license to continue using this functionality.

To begin this process, create a new BackupAssist backup job.

  1. Launch the BackupAssist console and choose New Job.
  2. Select either System Protection, File Protection or File Archiving from job type choices and then click 'Next' (see screenshot below).
  3. BackupAssist
  4. Select the data which you wish to back up to your iSCSI target and click 'Next' once completed.
  5. Select 'iSCSI' under Local Network as the destination then click 'Next'.

  6. BackupAssist
  7. Select the backup schedule which you wish to use for your backup job.
  8. In the iSCSI target settings:
    1. Enter your iSCSI target/portal IP address in the text box provided and click 'Search'. This should then produce an option under the 'Target' after a few seconds.
    2. Click on the target which you wish to run the backup to.
    3. Select to either have BackupAssist attempt to disconnect the target once it's finished initializing and testing the connection.
    4. Note: The operating system will not always be able to disconnect a target and this is not an error in the software.
    5. Enter a username and secret (password) if your iSCSI target has CHAP authentication enabled. If CHAP isn't enabled then you can leave this blank.
    6. Before using an iSCSI target for the first time it must be initialized. Click the “Test connection” button to have BackupAssist connect and initialize the target.
Note: If you have any issues on this section of the wizard, refer to the Troubleshooting section of this whitepaper.

Once you're happy with the configuration, click 'Next' to move through the wizard and finish configuring your backup job.

Recovery from an iSCSI Target

Individual File Recovery


To recover individual applications, files and folders from a backup on your iSCSI target, you'll need to use the BackupAssist Restore Console.

If you're unfamiliar with the BackupAssist Restore Console, please review the documentation which is located here.

Disaster Recovery – Bare Metal Restore

Note: Bare Metal Restores are only available if you've used the Windows Imaging engine. You will need to have also created boot media using RecoverAssist
 as well.

Pre-requisites

  • Boot media containing RecoverAssist.
  • Make sure that your system has permissions to your iSCSI target.
  • Your system is able to contact the iSCSI destination via a ping command.

Performing a Bare Metal Recovery


  1. Insert the bootable media which contains RecoverAssist.
  2. Boot machine, making sure the boot sequence has the bootable media in step 1 as the first option.

  3. Windows files will now be transferred across as would usually happen when installing a fresh version of Windows. RecoverAssist will then start and perform some staging tasks that are required prior to performing a recovery:
    BackupAssist
  4. Once RecoverAssist is loaded, select 'Recover from a backup located on an iSCSI target'.
  5. BackupAssist

  6. The Specify network settings page will appear. Select either 'Obtain IP address automatically' or 'Set IP address manually'.
  7. BackupAssist
    If you select to set the IP address manually, you'll need to fill in the following sections:

    IP Address: This is the IP that you wish to issue the system you're running the recovery on.
    Mask: The subnet which you wish the system to be part of (usually 255.255.255.0).
    Gateway: This is the IP address to connect the system to the Internet/outside networks.
    DNS: The IP address of the DNS server you wish for the machine to use.
    • Select 'Next' once completed.
    • Type in the location of the iSCSI target into 'Portal'. This can be either the IP address or domain name.
    • Then click 'Search'.
    BackupAssist

    A list of available targets should then appear.

  8. From the list of targets available under 'Target', select the one which contains the backup you wish to restore.
  9. Optional: Add the username and password if the destination is password protected under 'Username' and 'Secrets'.

    BackupAssist
  10. Click 'Next' to proceed.
  11. RecoverAssist will now attempt to locate valid image backups located on the target available for restoration. If successful, you'll see the following screen. Click 'Finish' to proceed.
  12. BackupAssist

  13. Select a system image backup will now appear. Select either 'use the latest available system image (recommended)' or 'Select a system image'.
  14. Once you've selected which image you wish to restore, click 'Next'.
  15. BackupAssist
  16. Additional Restore options will now appear. If you have to install drivers or wish to exclude disks from being restored, you can choose to on this screen. Once you've completed this select 'Next' to proceed.
  17. BackupAssist
  18. Confirm your settings and click on the 'Finish' button.
  19. BackupAssist
  20. Windows Recovery Environment will ask you whether you want to format the disks and restore the backups you have chosen. Click on the OK button.

Your bare-metal restore of Windows should begin. Once done, your system should reboot and Windows will load. Congratulations - the procedure is complete!

Troubleshooting

Connecting to your iSCSI Target with Windows iSCSI Initiator

If you experience issues connecting to your iSCSI target using BackupAssist, try connecting to the target directly through Windows native iSCSI initiator. If you're unable to connect via this method then this indicates that there is an issue with the iSCSI targets configuration and you may need to investigate this further.

  1. To access the iSCSI initiator within Windows (Server 2003 onward), open the Start menu and type 'iscsi' into the text box 'Search Programs and files'.
  2. BackupAssist
  3. Click on 'iSCSI Initiator' that appears under Programs. If this doesn't appear, you may need to download and install this from Microsoft.
  4. The iSCSI Initiator Properties screen should then appear. On the 'Targets' tab, type in the Target under the Quick Connect section and click 'Quick Connect'.
  5. BackupAssist
  6. You should then find that your iSCSI target is detected and connected if the configuration is correct.
  7. BackupAssist
  8. Just to double check everything is correct; open disk management (Start > Run > and type in diskmgmt.msc) to see if the iSCSI target appears correctly. In the screen shot; our iSCSI target appears as Disk 1.
BackupAssist

Connected through Windows iSCSI Initiator however BackupAssist can't connect

If you are able to connect via the Windows iSCSI Initiator and not within BackupAssist; it's most likely due to a DNS configuration issue. Add your iSCSI target the 'Hosts' file on the machine BackupAssist is installed on. The 'Hosts' file is located at C:\Windows\System32\drivers\etc.

To edit the 'Hosts' file, you'll need to logged in as an administrator account. Double click on the file within Windows Explorer and open within Notepad.

On the next free line, enter the details as follows:

<IP Address>   <UNC Name of OpenFiler Machine>

E.g. 192.168.1.116        openfiler.physical

Save the 'Hosts' file and then re-try connecting with BackupAssist as outlined on page 10 of this document.

References

http://forums.openfiler.com/viewtopic.php?id=1957
http://greg.porter.name/wiki/HowTo:Openfiler
https://forums.openfiler.com/viewtopic.php?id=6472
http://wbadmin.info/articles/howto-bare-metal-restores-windows-server-2008-backup.html