Table of ContentsLibraryView in Frames

Backing up SAN systems to tape

In most cases, backup of SAN systems to tape takes place through a separate backup host to avoid performance degradation on the application host. It is imperative that you keep SAN and NAS data separated for backup purposes.

Before You Begin

The following procedure assumes that you have already performed the following tasks:
  • Created the production LUN
  • Created the igroup to which the LUN will belong

    The igroup must include the WWPN of the application server.

  • Mapped the LUN to the igroup
  • Formatted the LUN and made it accesssible to the host

Considerations

Configure volumes as SAN-only or NAS-only and configure qtrees within a single volume as SAN-only or NAS-only. From the point of view of the SAN host, LUNs can be confined to a single WAFL volume or qtree or spread across multiple WAFL volumes, qtrees, or storage systems.

The following diagram shows a SAN setup that uses two applications hosts and a pair of storage systems in an active/active configuration.
Figure 1. Backing up SAN data to tape

Volumes on a host can consist of a single LUN mapped from the storage system or multiple LUNs using a volume manager, such as VxVM on HP-UX systems.

To map a LUN within a Snapshot copy for backup, complete the following steps.

Step 1 can be part of your SAN backup application’s pre-processing script. Steps 5 and 6 can be part of your SAN backup application’s post-processing script.

Steps

  1. When you are ready to start the backup (usually after your application has been running for some time in your production environment), save the contents of host file system buffers to disk using the command provided by your host operating system, or by using SnapDrive for Windows or SnapDrive for UNIX.
  2. Create a Snapshot copy by entering the following command: snap create volume_name snapshot_name

    Example

    snap create vol1 payroll_backup

  3. To create a clone of the production LUN, enter the following command: lun clone create clone_lunpath -b parent_lunpath parent_snap

    Example

    lun clone create /vol/vol1/qtree_1/payroll_lun_clone -b /vol/vol1/qtree_1/payroll_lun payroll_backup

  4. Create an igroup that includes the WWPN of the backup server by entering the following command: igroup create -f-t ostype group [node ...]

    Example

    group create -f -t windows backup_server 10:00:00:00:d3:6d:0f:e1 i

    Data ONTAP creates an igroup that includes the WWPN (10:00:00:00:d3:6d:0f:e1) of the Windows backup server.

  5. To map the LUN clone you created in Step 3 to the backup host, enter the following command: lun map lun_path initiator-group LUN_ID

    Example

    lun map /vol/vol1/qtree_1/payroll_lun_clone backup_server 1

    Data ONTAP maps the LUN clone (/vol/vol1/qtree_1/payroll_lun_clone) to the igroup called backup_server with a SCSI ID of 1.

  6. From the host, discover the new LUN and make the file system available to the host.
  7. Back up the data in the LUN clone from the backup host to tape by using your SAN backup application.
  8. Take the LUN clone offline by entering the following command: lun offline /vol/vol_name/qtree_name/lun_name

    Example

    lun offline /vol/vol1/qtree_1/payroll_lun_clone

  9. Remove the LUN clone by entering the following command: lun destroy lun_path

    Example

    lun destroy /vol/vol1/qtree_1/payroll_lun_clone

  10. Remove the Snapshot copy by entering the following command: snap delete volume_name lun_name

    Example

    snap delete vol1 payroll_backup