• No results found

Using IBM Tivoli to Back UP the Node and Containers

IBM Tivoli Storage Manager (TSM) enables you to protect your organization’s data from failures and other errors by storing backup and archive data in a hierarchy of offline storage. The sections below explain the way to install and configure the TSM application on your server and to use it for backing up and restoring your Hardware Node and all Containers residing on it.

Supported Versions

Parallels Virtuozzo Containers currently provides support for version 6.1.3 of IBM Tivoli Storage Manager.

Installing and Configuring Tivoli Storage Manager

To start using Tivoli Storage Manager to back up the Hardware Node and its Containers, you should first install it on the server and properly configure its components.

When setting up the TSM server software, follow the installation and configuration instructions given in the Tivoli Storage Manager Installation Guide and Tivoli Storage Manager Backup-Archive Clients Installation and User's Guide and make sure that the following points are correctly handled:

1 During the TSM server installation, select the Complete radio button on the Setup Type screen of the IBM Tivoli Storage Manager Server Installation Wizard.

2 During the TSM server configuration:

 Launch Tivoli Management Console by selecting Programs > Tivoli Storage Manager >

Management Console on the Windows Start menu.

 In the displayed window, select the Standard Configuration radio button and click Start.

 Follow the instructions of the wizards (Initial Configuration Environment Wizard, Performance Configuration Wizard, Server Initialization Wizard, Configure Devices Wizard, Client Node Configuration Wizard) to complete the TSM server configuration.

When setting up the TSM client software, follow the installation and configuration instructions given in the Tivoli Storage Manager Installation Guide and Tivoli Storage Manager Backup-Archive Clients Installation and User's Guide and make sure that the following points are correctly handled:

1 During the TSM client installation:

a On the Setup Type screen, select the Custom Setup radio button.

b On the Custom Setup screen, select the Open File Support feature for installing on your server:

Note: The Open File Support feature is installed by default in version 5.4 or higher of IBM Tivoli Storage Manager; so, you can skip this step.

2 During the TSM client configuration, configure the "X:\Program Files\Tivoli\TSM\baclient\dsm.opt" file and the 'Open File Support' feature as described in the Configuring Tivoli Storage Manager chapter of the Tivoli Storage Manager Backup-Archive Clients Installation and User's Guide.

Backing Up the Hardware Node and Containers

Now that you have installed and configured the TSM software, you are ready to back up your Hardware Node and all its Containers.

Backing Up the Hardware Node Manually To back up the Hardware Node, do the following:

1 Launch the TSM backup-archive GUI by selecting Programs > Tivoli Storage Manager >

Backup-Archive GUI on the Windows Start menu.

2 In the GUI main window, click Backup to open the Backup window.

3 In the left part of the Backup window, expand the directory tree by clicking the plus sign and click the selection boxes next to the disk drives you wish to back up.

4 Expand the disk drive where the Parallels Virtuozzo Containers data folder is stored (C:\vz by default) and do the following:

 Clear the selection boxes for the Conf, private, root, and Templates folders to exclude them from the backup process.

 Expand the Templates folder and click the selection box for the __cache folder to include it in the backup.

5 Click the Backup button to start backing up the selected disk drives.

Backing Up Containers Manually

To back up all Containers currently existing on the Hardware Node, do the following:

1 Launch the TSM backup-archive GUI by selecting Programs > Tivoli Storage Manager >

Backup-Archive GUI on the Windows Start menu.

2 In the GUI main window, click Backup to open the Backup window.

3 In the left part of the Backup window, expand the System Services item and click the selection box next to the Virtuozzo VSS Writer component. For example:

4 Click the Backup button to start the backup procedure. During this procedure:

a The Virtuozzo VSS Writer service suspends all running Containers.

b The TSM application backs up the suspended and stopped Containers.

c The Virtuozzo VSS Writer service resumes the suspended Containers.

Automating the Backup Procedure

You can automate the process of taking backups of your Hardware Node and its Containers by doing the following:

1 Open the dsm.opt client options file for editing (e.g. using Notepad) and add the following strings to it:

INCLUDE.DIR "*:\...\vz\Templates\__cache"

EXCLUDE.DIR "*:\...\vz\Conf"

EXCLUDE.DIR "*:\...\vz\private"

EXCLUDE.DIR "*:\...\vz\root\*"

EXCLUDE.DIR "*:\...\vz\Templates"

This will exclude the Conf, private, root, and Templates folders from and include the Templates\__cache folder in the backup process.

2 Edit your automation script to include the following strings:

 To back up the contents of a Hardware Node disk drive:

dsmc.exe incremental X:

dsmc.exe incremental Y:

X: and Y: in the strings above denote the name of disk drives to be backed up. You can also configure individual folders to be backed up instead of entire disk drives. For information on how you can do it, refer to the Tivoli Storage Manager Backup-Archive Clients Installation and User's Guide.

 To back up all the Containers on the Hardware Node:

dsmc.exe backup systemservices "VIRTUOZZO VSS WRITER"

Restoring the Hardware Node and Containers

The restore process differs depending on whether you are trying to restore the backed up disk drives on the Hardware Node or the backed up Containers.

Restoring the Contents of Disk Drives

To restore the contents of a backed up disk drive:

1 Stop the Virtuozzo Management Service service on the Node:

a Click Start > Administrative Tools > Services to open the Services snap-in.

b In the list of services, locate the Virtuozzo Management Service service and click it.

c In the central part of the Services snap-in, click Stop.

2 Launch the TSM backup-archive GUI by selecting Programs > Tivoli Storage Manager >

Backup-Archive GUI on the Windows Start menu.

3 In the GUI main window, click Restore to open the Restore window.

4 In the left part of the Restore window, expand the backed up disk drive and click the selection boxes next to the folders you wish to restore. If you are going to restore the entire Hardware Node (including the Parallels Virtuozzo Containers data folder), make sure that you select all the folders of the backed up drives:

5 Click the Restore button to restore the selected folders.

6 Reinstall all OS and application templates on the Hardware Node. This step is needed if you are restoring the entire Node. The templates to be reinstalled are located in the X:\vz\Templates\__cache folder on the Hardware Node. So, you can use the following script to reinstall the templates from this folder:

vzpkgls > backup_pkgls.txt && for /f %i in (backup_pkgls.txt) do vzpkgdeploy -u %i && vzpkgdeploy -i %i && del back-up_pkgls.txt

7 Open the Services snap-in and make sure that the Virtuozzo Management Service service is running. If it is not, start this service.

Restoring Containers

To restore the backed up Containers:

1 Make sure that all Containers on the Hardware Node are stopped.

2 Launch the TSM backup-archive GUI by selecting Programs > Tivoli Storage Manager >

Backup-Archive GUI on the Windows Start menu.

3 In the GUI main window, click Restore to open the Restore window.

4 In the left part of the Restore window, expand the System Service folder and select the Virtuozzo VSS Writer component:

5 Click the Restore button to start restoring the backed up Containers.

Related documents