CA ARCserve D2D for Linux

Transcription

1 CA ARCserve D2D for Linux User Guide r16.5

2 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation ) is for your informational purposes only and is subject to change or withdrawal by CA at any time. This Documentation may not be copied, transferred, reproduced, disclosed, modified or duplicated, in whole or in part, without the prior written consent of CA. This Documentation is confidential and proprietary information of CA and may not be disclosed by you or used for any purpose other than as may be permitted in (i) a separate agreement between you and CA governing your use of the CA software to which the Documentation relates; or (ii) a separate confidentiality agreement between you and CA. Notwithstanding the foregoing, if you are a licensed user of the software product(s) addressed in the Documentation, you may print or otherwise make available a reasonable number of copies of the Documentation for internal use by you and your employees in connection with that software, provided that all CA copyright notices and legends are affixed to each reproduced copy. The right to print or otherwise make available copies of the Documentation is limited to the period during which the applicable license for such software remains in full force and effect. Should the license terminate for any reason, it is your responsibility to certify in writing to CA that all copies and partial copies of the Documentation have been returned to CA or destroyed. TO THE EXTENT PERMITTED BY APPLICABLE LAW, CA PROVIDES THIS DOCUMENTATION AS IS WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT. IN NO EVENT WILL CA BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS DOCUMENTATION, INCLUDING WITHOUT LIMITATION, LOST PROFITS, LOST INVESTMENT, BUSINESS INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF CA IS EXPRESSLY ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE. The use of any software product referenced in the Documentation is governed by the applicable license agreement and such license agreement is not modified in any way by the terms of this notice. The manufacturer of this Documentation is CA. Provided with Restricted Rights. Use, duplication or disclosure by the United States Government is subject to the restrictions set forth in FAR Sections , , and (c)(1) - (2) and DFARS Section (b)(3), as applicable, or their successors. Copyright 2013 CA. All rights reserved. All trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.

3 Contact CA Technologies Contact CA Support For your convenience, CA Technologies provides one site where you can access the information that you need for your Home Office, Small Business, and Enterprise CA Technologies products. At you can access the following resources: Online and telephone contact information for technical assistance and customer services Information about user communities and forums Product and documentation downloads CA Support policies and guidelines Other helpful resources appropriate for your product Providing Feedback About Product Documentation If you have comments or questions about CA Technologies product documentation, you can send a message to To provide feedback about CA Technologies product documentation, complete our short customer survey which is available on the CA Support website at

6 How to Manage Jobs Review the Prerequisites to Manage Jobs Modify Jobs Cancel Jobs Delete Jobs How to Perform a File-Level Recovery Review the Prerequisites Specify the Recovery Point Specify the Target Machine Details Specify the Advanced Settings Create and Run the Restore Job Verify that Files are Restored How to Create a Bootable Live CD Review the Live CD Prerequisites Install the Restore-Utility Package Create and Verify the Bootable Live CD How to Perform a Bare Metal Recovery (BMR) for Linux Machines Review the BMR Prerequisites Get the IP Address of the Target Machine Using the Live CD Review the D2D Server Specify the Recovery Points Specify the Target Machine Details Specify the Advanced Settings Create and Run the Restore Job Verify that the Target Node is Restored How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment Review the Automation Prerequisites Understanding the Scripting Utilities Manage Pre/Post Scripts for Automation Create the Backup Storage Alert Script Discover Nodes Using a Script Create the Scripts to Back Up Oracle Database Create the Scripts to Back Up MySQL Database Customize the Job Schedule Run a BMR Batch Job Replicate and Manage Backup Sessions How to Manage the D2D Server Settings Review the Prerequisites to Manage the D2D Server Configure the Job History and Activity Log Retention Settings Configure the Debug Log Retention Settings How to Manage the D2D Server from the Command Line Review the D2D Server Prerequisites User Guide

7 Start, Stop, or Release the D2D Server Change the Port Number of the D2D Server Change the D2D Server Protocol Avoid the SSL Certificate Error While Opening CA ARCserve D2D for Linux Configure the UI Timeout Duration Configure the System Settings When the Host Name or IP Address is Changed How to Manage the Non-Root Users Grant Login Permissions to the Non-Root Users Display the Default User in the Login Dialog Enable the Non-Root Users to Add Nodes Chapter 5: Troubleshooting 133 Contents 7

8

9 Chapter 1: Understanding CA ARCserve D2D for Linux This section contains the following topics: Introduction (see page 9) Introduction CA ARCserve D2D for Linux is a disk-based backup product that is designed for Linux operating systems. It provides a fast, simple, and reliable way to protect and recover critical business information. CA ARCserve D2D for Linux tracks changes on a node at the block level and then backs up only those changed blocks in an incremental process. As a result, CA ARCserve D2D for Linux lets you perform frequent backups, reducing the size of each incremental backup (and the backup window) and providing a more up-to-date backup. CA ARCserve D2D for Linux also provides the capability to restore files or folders and perform a bare metal recovery (BMR) from a single backup. You can store the backup information either on a Network File System (NFS) share, Common Internet File System (CIFS) share, or in the backup source node. BMR is the process of restoring a computer system from bare metal. Bare metal is a computer without any operating system, drivers, and software applications. The restoration includes installing the operating system, software applications, drivers, and then restoring the data and settings. BMR is possible because when CA ARCserve D2D for Linux performs a backup of data, it also captures information that is related to the operating system, installed applications, drivers, and so on. After a BMR is complete, the target node has the same operating system and data as the production node. CA ARCserve D2D for Linux uses a near-agentless approach to enable fast and flexible protection of all your Linux clients. The feature totally eliminates the need to manually install agents on each client node, thereby fully automating the detection, configuration, and protection of all your Linux clients. You can install CA ARCserve D2D for Linux to help protect your entire Linux production environment. The server where you install CA ARCserve D2D for Linux is known as D2D Server. After you install CA ARCserve D2D for Linux, you can then connect to the D2D Server over a network and can open the user interface using a web browser. Chapter 1: Understanding CA ARCserve D2D for Linux 9

10 Introduction The following diagram shows the overall work flow of CA ARCserve D2D for Linux: 10 User Guide

14 How to Install CA ARCserve D2D for Linux How to Install CA ARCserve D2D for Linux Install CA ARCserve D2D for Linux on a Linux server to protect and manage all your backup source nodes from one UI. It is not necessary to install this software on the backup source nodes. The following diagram displays the process to install CA ARCserve D2D for Linux: Perform these tasks to install CA ARCserve D2D for Linux: Installation Considerations (see page 15) Do You Have a 32-bit or a 64-bit Linux Server (see page 15) Install 32-bit glibc on a 64-bit Linux Server (see page 15) Install CA ARCserve D2D for Linux (see page 16) Verify the Installation (see page 19) 14 User Guide

15 How to Install CA ARCserve D2D for Linux Installation Considerations Consider the following points before you begin the installation: When you perform a Preboot Execution Environment (PXE)-based BMR, the CA ARCserve D2D for Linux server and the production source nodes have to be in the same subnet. If they are not in the same subnet, ensure that there is a gateway to forward the PXE broadcast packets across subnets. If the backup destination is an NFS server, verify that the NFS server supports lock. Also, verify that the root user has write access on the Linux nodes. To use an NFS server as the backup destination, install the NFS client package on the Linux nodes. Perl and sshd (SSH Daemon) are installed on the CA ARCserve D2D for Linux server and the Linux nodes that you want to back up. The unattended or silent installation is not supported. Do You Have a 32-bit or a 64-bit Linux Server If you install CA ARCserve D2D for Linux on a 64-bit Linux server, then your server must have the 32-bit glibc package installed. If you install CA ARCserve D2D for Linux on a 32-bit Linux server, then you can directly install CA ARCserve D2D for Linux. Install 32-bit glibc on a 64-bit Linux Server If you plan to install CA ARCserve D2D for Linux on a 64-bit Linux server, you must first install the 32-bit glibc application on the Linux server. The licensing module of CA ARCserve D2D for Linux depends on the 32-bit glibc application. If you do not install the 32-bit glibc, the CA ARCserve D2D for Linux installer stops the installation process. If you manage multiple D2D Servers (member servers) from a central D2D Server, you do not have to install glibc on the member servers. The member servers verify the licenses from the central server. Note: If you want to skip checking glibc during the installation of CA ARCserve D2D for Linux, run the installer with the following argument: --skipcheckglibc Chapter 2: Installing/Uninstalling CA ARCserve D2D for Linux 15

16 How to Install CA ARCserve D2D for Linux Follow these steps: 1. Log into the Linux server. 2. Perform one of the following steps depending on the operating system of the Linux server and the network connectivity: If you can install the software package from the online repository, run the following command: yum install glibc.i686 The installation begins. If you cannot install the software package from the online repository, follow these steps: a. Mount your DVD or ISO to your Linux machine. b. Run the following command: mount /dev/cdrom /media c. Create a file named dvd.repo in the following folder: /etc/yum.repos.d The dvd.repo file includes the following content: [My-Repository] name=myrep baseurl=file:///media enabled=1 gpgcheck=0 d. Run the following command to install the 32-bit glibc: yum install glibc.i686 The installation begins. The 32-bit glibc is installed on a 64-bit Linux server. Install CA ARCserve D2D for Linux Install CA ARCserve D2D for Linux on a D2D Server to manage backup and restore operations. After you install CA ARCserve D2D for Linux, you can open the user interface from any computer using a web browser. At the beginning of installation, the installation script verifies if some of the mandatory applications are installed on the D2D Server and the applications are running. 16 User Guide

17 How to Install CA ARCserve D2D for Linux The following mandatory applications are required for the installation file to work: sshd (SSH Daemon) Perl The installation file also verifies the following optional applications at the beginning of the installation: rpc.statd - This application is used by the NFS server to implement the file lock. mkisofs - CA ARCserve D2D for Linux uses this application to create a Live CD. mount.nfs - CA ARCserve D2D for Linux uses this application to mount the NFS server. mount.cifs - CA ARCserve D2D for Linux uses this application to mount the CIFS server. ether-wake - CA ARCserve D2D for Linux uses this application to send the wake-on-lan request. glibc.i686 - This application is specific to 64-bit Linux. CA ARCserve D2D for Linux uses this application to verify the applied licenses. Note: Ensure that the D2D Server has a minimum 1-GB memory. For more information about the system requirements for a D2D server, see the Release Notes. Follow these steps: 1. Log in to the D2D Server as a root user. 2. Download the CA ARCserve D2D for Linux installation package (*.bin file) and the restore-utility package file to the root folder. Important! When you download the two installation package files to a local folder, the full path of this local folder must not contain any special characters except blank spaces and the path should only include the following characters: a-z, A-Z, 0-9, - and _. 3. Provide the execution permission to the installation package. Chapter 2: Installing/Uninstalling CA ARCserve D2D for Linux 17

18 How to Install CA ARCserve D2D for Linux 4. Perform one of the following steps depending on the location of the installation package and the restore-utility package: If the installation package and the restore-utility package are in the same folder, then run the following command to begin the installation:./<linux_installation_file_name>.bin Note: If you rename the restore-utility package, the package name must include the restore utility characters for the installation command to automatically find the restore-utility package and install it. If the package name does not have the restore utility characters then you must provide the full path of the restore-utility package. The installation package verifies the supported platform and displays a confirmation message. If the installation package and the restore-utility package are in different folders, then provide the path of the restore-utility package in the first parameter:./<linux_installation_file_name>.bin -path=/<path_of_the restore-utility_package> The installation package verifies the supported platform and displays a confirmation message. Note: If a non-english operating system is detected, you are prompted to select the applicable language before continuing with the installation process. 5. Type Y and press Enter to confirm the installation. The installation package displays the licensing agreement information. 6. Type Y and press Enter to accept the licensing agreement. The CA ARCserve D2D for Linux installation process begins. When the restore-utility package installation is complete, the Live CD build information is displayed. The Live CD is built at the following location: /opt/ca/d2dserver/packages Note: Live CD is required to get the IP address of the target node when you perform a Bare Metal Recovery (BMR). CA ARCserve D2D for Linux is installed and the URL to browse the D2D Server is displayed. Note: Ensure that the following incoming ports are enabled on your firewall for the D2D Server: TCP port 22 (SSH Server) Broadcast port 67 (Boot Server) 8014 (D2D Web Service) User Datagram Protocol (UDP) port 69 (TFTP Server) 18 User Guide

19 How to Uninstall CA ARCserve D2D for Linux Ensure that the following incoming port is enabled on your firewall for the client nodes that you want to back up: TCP port 22 (SSH Server) Ensure that the required outgoing port for NFS, CIFS, or both backup destinations are enabled on your firewall for the D2D Server and client nodes. CA ARCserve D2D for Linux is successfully installed. Verify the Installation Verify that the installation is complete after you have installed CA ARCserve D2D for Linux. Follow these steps: 1. Open a web browser from any Windows computer. 2. Enter the URL of the D2D Server that is displayed on the install screen. Example: https://hostname:8014 The CA ARCserve D2D for Linux login page opens. 3. Enter your root login credentials and click Login. The CA ARCserve D2D for Linux user interface opens. CA ARCserve D2D for Linux is successfully installed and verified. How to Uninstall CA ARCserve D2D for Linux Uninstall CA ARCserve D2D for Linux from the Linux server to stop protecting all your nodes. Chapter 2: Installing/Uninstalling CA ARCserve D2D for Linux 19

20 How to Uninstall CA ARCserve D2D for Linux The following flowchart shows the uninstallation process of CA ARCserve D2D for Linux: Perform these tasks to uninstall CA ARCserve D2D for Linux: Review the Uninstallation Considerations (see page 20) Uninstall CA ARCserve D2D for Linux (see page 20) Verify the Uninstallation (see page 21) Review the Uninstallation Considerations Consider the following points before you begin the uninstallation: You have the root login credentials to the D2D Server. You do not have any running jobs. If a job is running, you cannot uninstall CA ARCserve D2D for Linux. Uninstall CA ARCserve D2D for Linux You can uninstall CA ARCserve D2D for Linux from the command line of the D2D Server. The uninstall process removes all the files and directories that are created during the installation of the software. 20 User Guide

21 How to Uninstall CA ARCserve D2D for Linux Follow these steps: 1. Log in to the D2D Server as a root user. 2. Navigate to the bin folder where CA ARCserve D2D for Linux is installed with the following command: # cd /opt/ca/d2dserver/bin/ 3. Run the following command to uninstall CA ARCserve D2D for Linux: #./d2duninstall A message displays after the uninstallation is complete. CA ARCserve D2D for Linux is uninstalled from the server. Verify the Uninstallation Verify that the CA ARCserve D2D for Linux is removed from the server after the uninstallation process is complete. Navigate to the following folder and verify that CA ARCserve D2D for Linux is removed: /opt/ca/d2dserver You have verified the uninstallation of CA ARCserve D2D for Linux. CA ARCserve D2D for Linux is removed from the Linux server. Chapter 2: Installing/Uninstalling CA ARCserve D2D for Linux 21

22

23 Chapter 3: User Interface This section contains the following topics: How to Navigate the CA ARCserve D2D for Linux User Interface (see page 23) How to Navigate the CA ARCserve D2D for Linux User Interface Before you start using CA ARCserve D2D for Linux, you must be familiar with the user interface (UI). From the interface, you can manage nodes, manage backup storage locations, manage backup and restore jobs, and access the help topics. The homepage interface includes four main areas: Menu bar, Status pane, D2D Servers pane, and Help. Chapter 3: User Interface 23

24 How to Navigate the CA ARCserve D2D for Linux User Interface The following diagram displays the process to navigate the CA ARCserve D2D for Linux interface: Perform these tasks to get started with the D2D Server interface: Access the D2D Server (see page 24) Understanding the Menu Bar (see page 25) Understanding the Status Pane (see page 27) Understanding the D2D Servers Pane (see page 31) Understanding the Help (see page 32) Access the D2D Server Interface As a storage manager, you can access the D2D Server using the web interface. Log in with root or non-root credentials to access the D2D Server. Use the IP address that was received during the installation of CA ARCserve D2D for Linux to log in to the server. If you have recorded the host name of the server, you can log in to the server using that host name. Note: For more information about providing the login permission to the non-root users, see Grant Login Permissions to the Non-Root Users (see page 129). Follow these steps: 1. Open a web browser and type the IP address of the D2D Server. Note: By default, the D2D Server follows https protocol and uses the 8014 port. 24 User Guide

25 How to Navigate the CA ARCserve D2D for Linux User Interface 2. Enter the login credentials and click Login. The D2D Server interface opens. The D2D Server is successfully accessed. Understanding the Menu Bar The menu bar lets you perform the following tasks: Manage D2D Servers Manage nodes Manage backup jobs Manage restore jobs Manage backup storage locations Filter searches Refresh pages The following screen displays the menu bar: The menu bar includes the following options: D2D Server Node Lets you add, modify, and delete servers that have CA ARCserve D2D for Linux installed. You can install CA ARCserve D2D for Linux to multiple servers and can manage all installed servers from a central UI. The nodes that are managed by the selected server are displayed in the Status pane. All the added servers are displayed in the D2D Servers pane. You cannot modify or delete the central server. A central server is the first server that is displayed in the D2D Servers pane. You can modify and delete other servers from the D2D Servers pane. The Modify button lets you update only the Port Number of the servers. Lets you add, modify, and delete nodes that you want to back up. Nodes are the machines that you want to back up. You can add multiple nodes to be backed up. You can also discover nodes that are present in your network using a script. You can add at least 100 nodes for each server. Chapter 3: User Interface 25

26 How to Navigate the CA ARCserve D2D for Linux User Interface Wizards Lets you launch the Backup Wizard and the Restore Wizard to help guide you through the backup and restore process. The Backup Wizard contains a drop-down list with three available options: Back Up Use this option if you have not previously added any nodes to be backed up. Selecting this option launches the Backup Wizard and lets you add your nodes during the process. Back Up Selected Nodes Use this option if you have previously added your nodes before launching the Backup Wizard. If you click Back Up Selected Nodes without adding any nodes or selecting the existing nodes, you get an error message. To avoid this error, select the node from the Nodes tab and then select Back Up Selected Nodes. Add Selected Nodes to an Existing Job Use this option if you have an existing backup job and you want to apply the same backup settings to new nodes. You do not have to configure the Backup Wizard. The Restore Wizard contains a drop-down list with two available options: Bare Metal Recovery (BMR) Use this option to perform a BMR. You can perform a BMR using the IP address or MAC address of the bare-metal computer to be recovered. Job Restore File Use this option to perform a file-level restore. You can select specific files from a recovery point and restore those files. Lets you manage jobs that you create. A job is an instance of a backup or a restore operation. After you create a backup job for a node, you do not have to create another job to run a backup for the same node next time. However, you have to create a restore job each time you want to perform a BMR. 26 User Guide

27 How to Navigate the CA ARCserve D2D for Linux User Interface Backup Storage Tools Lets you add and manage the backup storage locations. The backup storage location could be Network File System (NFS) share, Common Internet File System (CIFS) share, or Local. Local is a local path in the D2D Server. When you add a backup storage location, you have to provide your credentials for the selected backup storage location. You can only modify the user name and password of the CIFS share. You cannot modify any details of the NFS share. Select the Run script when free space is less than checkbox to run the backup_storage_alert.sh script when the free space is less than the specified value. This value can be a percentage of the total space at the backup destination or a minimum amount of space (in MB) at the backup destination. The backup_storage_alert.sh script can be configured to send an alert when the available free space becomes less than the specified value. Note: For more information about configuring the backup_storage_alert.sh script, see How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment. After you add a backup storage location, you can view the corresponding total file size and the empty space in the Status pane. Select a backup storage location to see the recovery sets and recovery points, and the used space for each node that are backed up in that backup storage location. The added storage destinations are also displayed in the Backup Destination page of the Backup Wizard and in the Recovery Points page of the Restore Wizard. The tools menu includes the Refresh button and the Filter button. Refresh Filter Lets you refresh the selected display area in the Status pane, including the Activity Log to view the latest backup or restore status messages. Lets you filter information displayed in the Status pane based on your input. The Filter button acts like a switch so that you can show and hide filters using the same button. When you show filters, the search fields are displayed in the Status pane. When you hide filters, the search fields are removed from the Status pane. The following screen displays the filters applied to the Activity Log: Understanding the Status Pane The Status pane is the area that displays all the information in the UI. The Status pane includes six tabs that let you view information based on the selected tab. Chapter 3: User Interface 27

28 How to Navigate the CA ARCserve D2D for Linux User Interface The following screen displays the Status pane: The Status pane includes the following tabs: Overview Provides a summary of the following items: Server Information Displays the operating system version, time elapsed since the server started, and the licensing information for CA ARCserve D2D for Linux. It also displays whether the restore utility is installed on this server. Resource Usage Displays the usage of CPU, total and available physical memory, and swap size. It also displays the installation volume size. 28 User Guide

29 How to Navigate the CA ARCserve D2D for Linux User Interface Backup Storage Displays all backup session locations that you have added and the available space in each location. This information helps you plan your next backup location depending on the available storage space. Node Summary Displays a graphical representation of the nodes that are protected and nodes with last unsuccessful backups. Node Summary includes the following categories: Total Nodes display the number of nodes that are included in CA ARCserve D2D for Linux, regardless of the backup status. Protected Nodes displays the number of nodes that the most recent backup was successful and are considered protected in case a recovery is necessary. Last Backup Unsuccessful displays the number of nodes that the most recent backup was not successful (failed, canceled, incomplete). Depending on the cause of the unsuccessful backup, some of these nodes are unprotected in case a recovery is necessary. Job History Summary Displays a pie chart that summarizes the history of all jobs. The summary does not include the running jobs. The following fields are not self-explanatory: Incomplete displays the number of jobs that ran successfully with minor changes. For example, when you restore files from Red Hat 6 to Red Hat 5, the files are restored successfully but some attributes are missing in the restored files. Other displays the number of jobs that you canceled. Chapter 3: User Interface 29

30 How to Navigate the CA ARCserve D2D for Linux User Interface Nodes Displays all nodes that you have added to the D2D Server. You can apply filters to the Nodes tab to search for the required nodes. The Nodes tab also includes a context menu. The context menu lets you search the job status or the job history for the selected node. The context menu also lets you restore data. You can filter the job history or the job status using either the job name or the node name. If you search the job history for the selected node, then the Job History tab opens with the search filter applied to the tab. Similarly, if you search the job status, then the Job Status tab opens with the search filter applied to the tab. The Restore option lets you perform BMR or File-level restore. It opens the Restore Wizard and displays all the recovery points of the selected node. Job Status Displays the list of backup and restore jobs that are created, including the status of each job. Use this tab to run a backup or restore job and rerun a backup job. You can see the progress of backup or restore jobs that you run. You can apply filters to the Job Status tab to search for the required jobs. The Job Status tab also includes a context menu. The context menu lets you search the job history for the selected job. You can filter the job history using either the job name or the node name. If you search the job history for the selected job, then the Job History tab opens with the search filter applied to the tab. The following screen displays the context menu in the Job Status tab: Job History Displays the list of backup and restore jobs that were previously run. You can apply filters to the Job History tab to search for the required job history. When you select a job, the status of that job is displayed at the bottom of the page. 30 User Guide

31 How to Navigate the CA ARCserve D2D for Linux User Interface Activity Log Displays a list of processing messages and status messages for backup and restore jobs. Refresh the Activity Log to get the latest messages for recent backup and restore jobs. You can apply filters to the Activity Log tab to search for required activity logs. Backup Storage Displays the backup destination that you have added from the menu bar. You can view the free storage space and manage your backup destination. This option is useful if you want to know the available free space at any particular backup destination to plan your backup. When you add a storage destination, this destination appears in the Backup Wizard. Understanding the D2D Servers Pane The D2D Servers pane displays the list of D2D Servers that are managed by the current server. You can add servers from the menu bar and can manage all the servers from one interface. If you have added multiple servers, then the Status pane displays the status of the selected server. Each server can manage at least 100 client nodes. The following screen displays the D2D Servers pane: Chapter 3: User Interface 31

32 How to Navigate the CA ARCserve D2D for Linux User Interface Understanding the Help The Help dialog lets you access the Help topics of CA ARCserve D2D for Linux. You can perform the following tasks from the Help dropdown list: The following options are available in the Help dropdown list: Help Lets you access the CA ARCserve D2D for Linux bookshelf. User Guide Lets you access the CA ARCserve D2D for Linux User Guide. Support and Community Access Lets you access the CA ARCserve D2D for Linux support site and ARCserve community sites. You can perform the following tasks from Support and Community Access: View product specific Access the ARCserve official website Provide feedback to the development team Read tips and comments from the ARCserve experts 32 User Guide

33 How to Navigate the CA ARCserve D2D for Linux User Interface Chat with a support executive Subscribe to RSS feeds Social Networking Lets you get connected with ARCserve social networking communities such as Facebook and Twitter. Manage License About Lets you access the License Management dialog and manage all your licenses from a central interface. Lets you view the product information (version number and build number) and access the Release Notes of CA ARCserve D2D for Linux. Chapter 3: User Interface 33

34

35 Chapter 4: Using CA ARCserve D2D for Linux This section contains the following topics: How to Manage the Licenses (see page 35) How to Back up Linux Nodes (see page 39) How to Manage Jobs (see page 64) How to Perform a File-Level Recovery (see page 66) How to Create a Bootable Live CD (see page 76) How to Perform a Bare Metal Recovery (BMR) for Linux Machines (see page 79) How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment (see page 96) How to Manage the D2D Server Settings (see page 115) How to Manage the D2D Server from the Command Line (see page 117) How to Manage the Non-Root Users (see page 128) How to Manage the Licenses CA ARCserve D2D for Linux requires you to license your product to receive authorized and uninterrupted access to the related components. In addition, if you want to deploy CA ARCserve D2D for Linux to remote locations, you must license these remote sites to take advantage of the benefits CA ARCserve D2D for Linux provides. CA ARCserve D2D for Linux will function for a trial period of 30 days after you begin using it. Then, apply an appropriate license key to continue using it. CA ARCserve D2D for Linux lets you manage the licenses for all of your D2D Servers from a central interface. Chapter 4: Using CA ARCserve D2D for Linux 35

36 How to Manage the Licenses The following diagram displays the process to manage licenses: Complete the following tasks to manage the licenses: Access the License Manager (see page 36) Understanding the License Management Dialog (see page 37) Manage the Licenses (see page 38) Access the License Manager You must access the License Management dialog from the CA ARCserve D2D for Linux web interface to manage all your licenses. Follow these steps: 1. Log in to the CA ARCserve D2D for Linux web interface. 2. From the home page, click Help, Manage License. The License Management dialog opens. The license manager is accessed. 36 User Guide

37 How to Manage the Licenses Understanding the License Management Dialog The License Management dialog lets you manage all your licenses for CA ARCserve D2D for Linux. You can manage the licenses for multiple D2D Servers from a single interface. The following screen displays the License Management dialog: The License Management dialog is divided into two sections: License Status and Licensed Machines. License Status Component Name Version Identifies the name of the license. Identifies the release number of the license. Chapter 4: Using CA ARCserve D2D for Linux 37

38 How to Manage the Licenses Active Identifies the number of licenses that are currently being used to back up the nodes. Available Total Identifies the number of licenses that are still available in the license pool and that can be used to back up Linux machines. Identifies the total number of licenses that have been obtained to back up the machine. Total is the sum of Active and Available licenses. Licensed Machines D2D Server Identifies the Linux server where you have installed CA ARCserve D2D for Linux. Licensed Machines Identifies the Linux machines for which you have applied a license to protect those machines. Manage the Licenses You can add and release licenses from the License Management dialog. The added license is displayed in the License Management dialog. If you do not want to backup any machine anymore, you can release the license from that machine. Follow these steps: To add a license, follow these steps: a. Check the license key on your media case or on your License certificate. b. Enter the license key in the License Key field and click Add. c. Close and open the License Management dialog. The license is added and is listed in the License Status area. To release a license, follow these steps: a. Select the license from the License Status area. b. Select the D2D Server from Licensed Machines and click Release. c. Close and open the License Management dialog. The license is released from the machine. The licenses are successfully managed. 38 User Guide

39 How to Back up Linux Nodes How to Back up Linux Nodes CA ARCserve D2D for Linux lets you back up Linux nodes and data that are stored in it. You can also back up the D2D Server itself like any other Linux node. When CA ARCserve D2D for Linux performs a backup of data, it also captures information that is related to the operating system, installed applications, drivers, and so on, from the production node. As a result, when you restore the backed up data, you can perform a BMR or you can restore files specific to your need. Chapter 4: Using CA ARCserve D2D for Linux 39

40 How to Back up Linux Nodes The following diagram displays the process to back up Linux nodes: 40 User Guide

41 How to Back up Linux Nodes Chapter 4: Using CA ARCserve D2D for Linux 41

42 How to Back up Linux Nodes Perform these tasks to back up a Linux node: Review the Backup Prerequisites (see page 42) Do You Have an Existing Backup Job (see page 43) Rerun an Existing Backup Job (see page 43) Add Linux Nodes for Backup (see page 45) Add Nodes to Existing Job (see page 46) Add Nodes to Existing Job and Run the Backup Job (see page 46) Configure the Backup Settings and Run Backup Job (see page 47) Specify the Backup Source (see page 47) Specify the Backup Destination (see page 48) Specify the Advanced Settings (see page 51) (Optional) Manage Pre/Posts Scripts for Automation (see page 60) Run the Backup Job (see page 63) Verify the Backup was Successful (see page 64) Review the Backup Prerequisites and Considerations Verify the following requirements before performing a backup: You have the supported hardware and software requirements for the backup node. Note: For more information about the supported hardware and software requirements, see the Release Notes. You have a valid destination to store your backed up data. You have the user names and passwords of nodes that you want to back up. The /tmp folder in the backup node has a minimum of 300 MB space. The /tmp folder is used to process the accumulation of incremental blocks. Perl and sshd (SSH Daemon) are installed on the nodes that you want to back up. mount.nfs is installed on the nodes that you want to back up. mount.cifs is installed on the nodes that you want to back up. The backup node can access your backup destination and you have the write permission. To rerun a backup job, verify that you have backed up the node before and you have a valid backup job. 42 User Guide

43 How to Back up Linux Nodes Review the following backup considerations: To optimize the management of your Recovery Points, you should consider the following recommendations when scheduling the frequency of your backups: For systems that are protected with Incremental Backups performed every 15 minutes, you should schedule a Full Backup every week (to refresh your base image). For systems that are protected with Incremental Backups performed every hour, you should schedule a Full Backup every month (to refresh your base image). Note: If the amount of space used to store your backup images is a concern, you should consider scheduling your Full Backups less frequently to consume less storage space. Do You Have an Existing Backup Job If you have previously backed up a node and you have not deleted the backup job, you can modify and rerun the same job. You do not have to create another backup job to back up that node. You can modify the backup settings but you cannot modify the name or IP address of the backup source node. If you do not have an existing backup job, you can create a backup job and can run it to back up your Linux nodes. Rerun an Existing Backup Job Rerun the backup job to take another backup of the specified nodes. A recovery point is created after each successful backup. If you have already backed up a node, you do not have to create another backup job to back up that node again. All of the previous jobs are listed in the Job Status tab in the Status pane. When you rerun a backup job, specify the type of job that you want to rerun. Note: If you update any information in the Backup Destination page of the Backup Wizard before rerunning a job, the job type automatically changes to Full Backup. Chapter 4: Using CA ARCserve D2D for Linux 43

44 How to Back up Linux Nodes Follow these steps: 1. Enter the URL of the CA ARCserve D2D for Linux server in a web browser to open the user interface. Note: During the installation of CA ARCserve D2D for Linux, you received the URL to access and manage the server. 2. Click the Job Status tab and select the job that you want to run. 3. Verify that the status of the selected job is Done or Ready. Done implies that the job is not scheduled and Ready implies that the job is scheduled. 4. Perform one of the following steps: To run the job without any changes, a. Click Run Now from the Job menu. The Run backup job now dialog opens. b. Select the Backup Type. c. Select an option from the Run job for dropdown list: Selected Node Specifies that the backup job runs for only the selected node. All nodes protected by the selected job Specifies that the backup job runs for all the nodes protected by the selected job. d. Click OK. The Run backup job now dialog closes. The status of the job changes to Active in the Job Status tab and the same job runs again. To modify the job before you run the job, follow these steps: a. Select a job and click Modify. The Backup Wizard opens. b. Update the required field in the Backup Wizard. c. Click Submit. The job runs again depending on the job schedule. The backup job successfully reruns. 44 User Guide

45 How to Back up Linux Nodes Add Linux Nodes for Backup Add Linux nodes so that you can back up those nodes to a backup storage location. Linux nodes are your machines that you want to back up. You can either add nodes manually or you can run a script to discover and add nodes. Follow these steps: 1. Enter the URL of the D2D Server in a web browser to open the user interface. Note: During the installation of CA ARCserve D2D for Linux, you received the URL to access and manage the server. 2. Perform the following tasks if you want to discover nodes using a script: a. Click Add from the Node menu and select Discovery. The Node Discovery dialog opens. b. Select a script from the Script drop-down list. Note: For more information about creating the node discovery script, see Discover Nodes Using a Script in How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment. c. Specify the Schedule and click OK. The Node Discovery dialog closes and the node discovery process starts. The Activity Log tab is updated with a new message. 3. Perform the following tasks if you want to add each node manually: a. Click Add from the Node menu and select Hostname/IP Address. The Add Node dialog opens. b. Enter the host name or IP address of the Linux node, the user name that has the root permission, and the password. c. (Optional) Enter a description for the node to assist you in locating the node. d. Select one of the following options. Add and More Lets you add multiple nodes one at a time. After you finish adding your nodes, click Add and Close or Close to close the Add Node dialog. Add and Close Close Lets you add one node and then the Add Node dialog closes. Closes the dialog without adding any nodes. 4. Click the Nodes tab and verify that new nodes are listed in it. Linux nodes are added for backup. Chapter 4: Using CA ARCserve D2D for Linux 45

46 How to Back up Linux Nodes Add Nodes to Existing Job If you have added nodes to the interface and you want to apply the same backup setting to all the new nodes, you can add all such nodes to an existing backup job. This option lets you create a job for all the nodes without changing any backup configuration settings. If you have the same backup settings for all the nodes, then you can easily manage all the jobs. If you have added nodes to the interface and you want to apply new backup settings, you can create a backup job. You have to specify new settings for each backup job. Add Nodes to Existing Job and Run the Backup Job You can add new nodes to an existing backup job and can run the job. All the settings of the selected job are applied to the new node and you do not have to configure any new backup settings. Use this option if you want to keep the same backup settings for all the nodes. Follow these steps: 1. Select all the new nodes from the Nodes tab in the Status pane. 2. From the Wizard menu, click Backup and select Add Selected Nodes to an Existing Job. The Add Selected Nodes into an Existing Job dialog opens. 3. Select a job from the Job Name drop-down list and click OK. The node is added to the selected backup job and the Protected column in the Nodes tab changes to Yes. 4. From the Job Status tab, select the job that you have added. 5. From the Job menu, click Run Now. The Run backup job now dialog opens. 6. Select the Backup Type. 7. Select an option from the Run job for dropdown list: Selected Node Specifies that the backup job runs for only the selected node. All nodes protected by the selected job Specifies that the backup job runs for all the nodes protected by the selected job. 46 User Guide

47 How to Back up Linux Nodes 8. Click OK. The Run backup job now dialog closes. The status of the job changes to Active in the Job Status tab and the same job runs again. Nodes are added to an existing job and the backup job is run. Configure the Backup Settings and Run Backup Job Specify the Backup Source Configure the backup settings using the Backup Wizard. You can back up your data to a Network File System (NFS) location, Network-attached storage (NAS), Common Internet File System (CIFS), or to a source local location. A source local location is a location in the backup source node where the backed up data is stored. The backup process is initiated by a backup job. The Backup Wizard creates the backup job and runs the job. Each time that you perform a successful backup, a recovery point is created. A recovery point is a point-in-time copy of the backup node. Specify the backup source nodes in the Backup Wizard so that you can back up those nodes to a desired location. The Backup Source page of the Backup Wizard displays the node that you want to backup. Use the Add button on this page to add more nodes for backup. Note: If you open the Backup Wizard using the Back Up Selected Nodes button, then all the selected nodes are listed in the wizard page. If you open the Backup Wizard using the Back Up button, then nodes are not listed in the wizard page. You have to add nodes using the Add button in the wizard page. Chapter 4: Using CA ARCserve D2D for Linux 47

48 How to Back up Linux Nodes Follow these steps: 1. Select the nodes that you want to back up from the Nodes tab. 2. Click Backup, and select the Back Up Selected Nodes option from the Wizard menu. The D2D Server page of the Backup Wizard opens. The D2D Server page displays the server name. 3. Click Next. The Backup Source page opens. The previously selected nodes are displayed on this page. 4. (Optional) Click Add in the Backup Source page to add more nodes and provide the details in the Add Node dialog. 5. (Optional) Click the Exclude Volumes icon. The Exclude Volume Settings dialog opens which includes all the volumes of that node. 6. (Optional) Select the check box for each volume that you do not want to back up and click OK. The Exclude Volume Settings dialog closes. Note: To exclude a specific volume from all the backup nodes, enter the volume name at the bottom of the Backup Source page. If you exclude the / volume or the /boot volume of a node, then you cannot perform a BMR of that node. 7. Click Next. Specify the Backup Destination The Backup Destination page opens. The backup source is specified. Specify a location to store the backed up data (recovery points) in the Backup Destination page of the Backup Wizard. The backup destination could be an NFS share, a CIFS share, or Source local. Source local is the backup source node. If your backup destination is Source local, then the backup data is written to its own local disk directly. If a physical disk includes two logical volumes, then you can specify one volume as the backup source and the other volume as the backup destination. Note: If you select Source local as your backup destination, the D2D Server cannot manage the recovery points. The D2D Server cannot connect to the Source local directly and so the Recovery Set settings are not applied on the recovery points. You have to modify the Source local settings. 48 User Guide

49 How to Back up Linux Nodes Follow these steps: 1. Select a destination from the Backup Destination drop-down list and enter the complete path of the storage location. If you have selected NFS share, then type the Backup Destination detail in the following format: IP address of the NFS Share:/full path of the storage location Note: Some versions of Data Domain NAS do not support the file locking mechanism of NFS. As a result, such NFS share cannot be used as a backup destination. For more information about this issue, see Compatibility Issues with CA ARCserve D2D for Linux in the Release Notes. If you have selected CIFS share, then type the Backup Destination detail in the following format: //hostname/share_folder Note: The shared folder name cannot contain any spaces. If you have selected Source local, then you have to modify some settings so that the D2D Server can manage the recovery points. For example, consider server-a as the host name of the D2D Server and node-b as the host name of the source node. Now, follow these steps to modify the settings of node-b: Ensure that the NFS server is running. You can run the following command to verify the NFS server status: service nfs status If the NFS server is not running, run the following command to start the NFS server: service nfs start If your backup destination folder on node-b is /backup/test, then add the following line to /etc/exports: /backup/test server-a(rw,no_root_squash) Now, run the following command: exportfs -a On the D2D Server UI, add node-b:/backup/test as a backup storage location. The Source local storage location is displayed in the Backup Destination drop-down list. Chapter 4: Using CA ARCserve D2D for Linux 49

50 How to Back up Linux Nodes 2. Click the arrow button to validate the Backup Destination information. If the backup destination is invalid, an error message is displayed. 3. Select a compression level from the Compression drop-down list to specify a type of compression that is used for backup. The available options for Compression are: Standard Compression Specifies that this option provides a good balance between the CPU usage and the disk space usage. This compression is the default setting. Maximum Compression Specifies that this option provides the highest CPU usage (lowest speed), but also has the lowest disk space usage for your backup image. 4. Select an algorithm from the Encryption Algorithm drop-down list and type the encryption password, if necessary. a. Select the type of encryption algorithm that you want to use for backups. Data encryption is the translation of data into a form that is unintelligible without a deciphering mechanism. CA ARCserve D2D for Linux data protection uses secure, AES (Advanced Encryption Standard) encryption algorithms to achieve the maximum security and privacy of your specified data. The available format options are No Encryption, AES-128, AES-192, and AES-256. (To disable encryption, select No Encryption). A full backup and all its related incremental backups must use the same encryption algorithm. If the encryption algorithm for an incremental backup has changed, you must perform a full backup. For example, if you change the algorithm format and then you run an incremental backup, then the backup type automatically converts to a full backup. b. When an encryption algorithm is selected, you must provide (and confirm) an encryption password. 5. Click Next. The encryption password is limited to a maximum of 23 characters. A full backup and all its related incremental backups use the same password to encrypt data. The Advanced page opens. The backup destination is specified. 50 User Guide

51 How to Back up Linux Nodes Specify the Advanced Settings Specify the backup schedule, recovery set settings, and pre-backup and post-backup settings on the Advanced page. The following diagram displays the Advanced page of the Backup Wizard. In this diagram, None option is selected for the Schedule Type. Chapter 4: Using CA ARCserve D2D for Linux 51

52 How to Back up Linux Nodes The following settings are available on the Advanced page: The Schedule settings ensure that the backup job runs periodically at a specified time. The Recovery Set Settings ensures periodic maintenance of the recovery sets. If the number of recovery sets exceeds the specified number, then the oldest recovery set is deleted to maintain the specified number all the time. The Throttle Backup setting lets you enable and specify the maximum speed (MB/min) at which the backups are written. The Pre/Post Scripts Settings defines the scripts that can be run on the D2D Server and the target node. You can configure the scripts to take specific actions before the start of a job, during the job is running, or after the completion of the job. To optimize the management of your Recovery Points, you should consider the following recommendations when scheduling the frequency of your backups: For systems that are protected with Incremental Backups performed every 15 minutes, you should schedule a Full Backup every week (to refresh your base image). For systems that are protected with Incremental Backups performed every hour, you should schedule a Full Backup every month (to refresh your base image). Note: If the amount of space used to store your backup images is a concern, you should consider scheduling your Full Backups less frequently to consume less storage space. 52 User Guide

53 How to Back up Linux Nodes Follow these steps: 1. Set the start date and time by selecting one of the following options from the Schedule Type dropdown list: Simple Select the Simple option to schedule the Incremental Backup, Full Backup, and Verify Backup per the specified Start Date and Start Time. For each type of backup, you can also specify the repeat duration for a backup or never repeat a backup. The start date and time is fixed for all types of backup. So, you cannot specify a different start date and time for different types of backup. Note: For more information about the backup types, see Understanding the Types of Backup (see page 57). Chapter 4: Using CA ARCserve D2D for Linux 53

54 How to Back up Linux Nodes Advanced Select the Advanced option to specify multiple backup schedules each day of the week. You can specify different start date and time for different types of backup. You can add, modify, delete, and clear the Advanced schedule. When you click Clear, all the Advanced backup schedules are deleted from the Advanced Schedule Tray. 54 User Guide

55 How to Back up Linux Nodes To add a backup schedule, follow these steps: a. Click Add. The Add backup schedule dialog opens. None b. Specify your backup schedule options and click OK. The specified backup schedule displays on the Advanced Schedule Tray. Select the None option to create the backup job and stores the job in the Job Status tab. This option will not run the job because there is no specified schedule. When you submit the job, the status of the job changes to Ready. When you want to run the job, you have to select the job and click Run Now from the Job menu. Each time you want to run the job, you must run the job manually. You can also write a script to run this job at your own customized schedule. 2. Specify your recovery set settings. Note: For more information about the recovery sets, see Understanding the Recovery Sets (see page 58). Specify the number of recovery sets to retain Specifies the number of recovery sets retained. Chapter 4: Using CA ARCserve D2D for Linux 55

56 How to Back up Linux Nodes Start a new recovery set on every: Selected day of the week Specifies the day of the week selected to start a new recovery set. Selected day of the month Specifies the day of the month selected to start a new recovery set. Specify 1 through 30, or the last day of the month. Note: The D2D Server checks for the number of recovery sets in the configured backup storage every 15 minutes and deletes any extra recovery set from the backup storage location. 3. Specify the throttle backup value. You can specify the maximum speed (MB/min) at which backups are written. You can throttle the backup speed to reduce CPU or network use. However, limiting the backup speed has an adverse effect on the backup window. As you lower the maximum backup speed, it increases the amount of time of perform the backup. For a backup job, the Job Status tab displays the average Read and Write speed of the job in progress and the configured throttle speed limit. Note: By default, the Throttle Backup option is not enabled and backup speed is not being controlled. 4. Specify your pre-backup settings and post-backup settings in Pre/Post Scripts Settings. These scripts run script commands for actions to take before the start of the job and/or upon the completion of the job. Note: The Pre/Post Script Settings fields are populated only if you already created a script file and placed it at the following location: /opt/ca/d2dserver/usr/prepost Note: For more information about creating the pre/post scripts, see Manage Pre/Post Scripts for Automation (see page 60). 5. Click Next. The Summary page opens. The advanced schedule is specified. Note: If at a given time there is more than one type of backup scheduled to be performed simultaneously, the type of backup that will be performed is based on the following priorities: Priority 1 - Full backup Priority 2 - Verify backup Priority 3 - Incremental backup 56 User Guide

57 How to Back up Linux Nodes Understanding the Types of Backup For example, if you schedule all three types of backups to be performed simultaneously, CA ARCserve D2D for Linux will perform the Full Backup. If there is no Full Backup scheduled, but you scheduled a Verify Backup and Incremental Backup to be performed simultaneously, CA ARCserve D2D for Linux will perform the Verify Backup. A scheduled Incremental Backup is performed only if there is no conflict with any other type of backup. You can specify the following types of backup in the Advanced page of the Backup Wizard: Incremental Backup Backs up only those blocks that have changed since the last successful backup. The advantages of Incremental Backup are that it is a fast backup and it produces a small backup image. CA ARCserve D2D for Linux uses a driver to monitor the changed blocks in the source node since the last successful backup. The available options are Repeat and Never. If you select the Repeat option, you must also specify the elapsed time period (in minutes, hours, or days) between backup attempts. Minimum: 15 minutes Default: 1 day Full Backup Backs up the entire source node. Depending on the volume size of the backup node, Full Backup produces a large backup image and usually takes a longer time to complete. The available options are Repeat and Never. If you select the Repeat option, you must also specify the elapsed time period (in minutes, hours, or days) between backup attempts. Minimum: 1 day Default: Never (no scheduled repeat) Verify Backup Verifies that the protected data is valid and complete by performing a confidence check of the stored backup image to the original backup source. If necessary, the image is resynchronized. A Verify Backup looks at the most recent backup of each individual block and compares the content and information to the source. This comparison verifies that the latest backed up blocks represent the corresponding information at the source. If the backup image for any block does not match the source (possibly because of changes in the system since the last backup), CA ARCserve D2D for Linux refreshes (resynchronizes) the backup of the block that does not match. You can also use a Verify Backup (very infrequently) to get the guarantee of full backup without using the space required for a full backup. Chapter 4: Using CA ARCserve D2D for Linux 57

58 How to Back up Linux Nodes Advantages: Produces a small backup image when compared to full backup because only the changed blocks (blocks that do not match the last backup) are backed up. Disadvantages: Backup time is long because all source blocks are compared with the blocks of the last backup. The available options are Repeat and Never. If you select the Repeat option, you must also specify the elapsed time period (in minutes, hours, or days) between backup attempts. Minimum: 1 day Default: Never (no scheduled repeat) The type of backup that runs depends on the following situations: If you run the backup job for the first time for the selected nodes, the first backup is always a Full Backup. If you run the backup job again for the same set of nodes and the backup destination is also same, the backup type is Incremental Backup. If you run the backup job for the same set of nodes but the backup destination is different, the backup type is Full Backup. This is because you have changed the backup destination and for the new destination this is the first backup. So, the first backup is always a Full Backup. If you delete your node and then add the same node again but you do not change the backup destination, the backup will be a Verify Backup. This is because you have already backed up that node in your previous backup jobs. When you delete the node and then you add the node again, the backup job verifies all the blocks of that node with the last backup image. When the backup job decides that it is the same node then it backs up only the changed blocks. If the backup job does not find any backup image of that node in the backup destination, the backup type is a Full Backup. Understanding the Recovery Sets A recovery set is a storage setting where a group of recovery points backed-up over a specified period is stored as one set. A recovery set includes a series of backups, starting with a full backup, and then followed by a number of incremental, verify, or full backups. You can specify the number of recovery sets to retain. The Recovery Set Settings ensures periodic maintenance of recovery sets. When the specified limit is exceeded, the oldest recovery set is deleted. The following values define the default, minimum, and maximum recovery sets in CA ARCserve D2D for Linux: 58 User Guide

59 How to Back up Linux Nodes Default: 2 Minimum: 1 Maximum number of recovery sets: 100 Maximum number of recovery points (Including one Full backup): 1344 Note: If you want to delete a recovery set to save backup storage space, reduce the number of retained sets and D2D Server automatically deletes the oldest recovery set. Do not attempt to delete the recovery set manually. Example Set 1: Full Incremental Incremental Verify Incremental Example Set 2: Full Incremental Full Incremental A full backup is required to start a new recovery set. The backup that starts the set will be automatically converted to a full backup, even if there is no full backup configured or scheduled to be performed at that time. After the recovery set setting is changed (for example, changing the recovery set starting point from the first backup of Monday to the first backup of Thursday), the starting point of existing recovery sets will not be changed. Note: An incomplete recovery set is not counted when calculating an existing recovery set. A recovery set is considered complete only when the starting backup of the next recovery set is created. Example 1 - Retain 1 Recovery Set: Specify the number of recovery sets to retain as 1. D2D Server always keeps two sets to keep one complete set before starting the next recovery set. Chapter 4: Using CA ARCserve D2D for Linux 59

60 How to Back up Linux Nodes Example 2 - Retain 2 Recovery Sets: Specify the number of recovery sets to retain as 2. D2D Server deletes the first recovery set when the fourth recovery set is about to start. This ensures that when the first backup is deleted and the fourth is starting, you still have two recovery sets (recovery set 2 and recovery set 3) available on disk. Note: Even if you choose to retain only one recovery set, you will need space for at least two full backups. Example 3 - Retain 3 Recovery Sets: The backup start time is 6:00 AM, August 20, An incremental backup runs every 12 hours. A new recovery set starts at the last backup on Friday. You want to retain 3 recovery sets. With the above configuration, an incremental backup will run at 6:00 AM and 6:00 PM every day. The first recovery set is created when the first backup (must be a full backup) is taken. Then the first full backup is marked as the starting backup of the recovery set. When the backup scheduled at 6:00 PM on Friday is run, it will be converted to a full backup and marked as the starting backup of the recovery set. (Optional) Manage Pre/Post Scripts for Automation Pre/Post scripts let you run your own business logic at specific stages of a running job. You can specify when to run your scripts in Pre/Post Script Settings of the Backup Wizard and the Restore Wizard in the UI. The scripts can be run on the D2D Server depending on your setting. Managing the pre/post script is a two part process, consisting of creating the pre/post script and placing the script in the prepost folder. Create Pre/Post Scripts Follow these steps: 1. Log into the D2D Server as a root user. 2. Create a script file using the environment variables in your preferred scripting language. Pre/Post Script Environment Variables To create you script, use the following environment variables: D2D_JOBNAME Identifies the name of the job. 60 User Guide

61 How to Back up Linux Nodes D2D_JOBID Identifies the job ID. Job ID is a number provided to the job when you run the job. If you run the same job again, you get a new job number. D2D_TARGETNODE Identifies the node that is being backed up or restored. D2D_JOBTYPE Identifies the type of the running job. The following values identify the D2D_JOBTYPE variable: backup.full Identifies the job as a full backup. backup.incremental Identifies the job as an incremental backup. backup.verify Identifies the job as a verify backup. restore.bmr Identifies the job as a bare-metal recovery (bmr). This is a restore job. restore.file Identifies the job as a file-level restore. This is a restore job. D2D_SESSIONLOCATION Identifies the location where the recovery points are stored. D2D_PREPOST_OUTPUT Identifies a temp file. The content of the first line of the temp file is displayed in the activity log. D2D_JOBSTAGE Identifies the stage of the job. The following values identify the D2D_JOBSTAGE variable: pre-job-server Identifies the script that runs on the D2D Server before the job starts. Chapter 4: Using CA ARCserve D2D for Linux 61

62 How to Back up Linux Nodes post-job-server Identifies the script that runs on the D2D Server after the job completes. pre-job-target Identifies the script that runs on the target machine before the job starts. post-job-target Identifies the script that runs on the target machine after the job completes. pre-snapshot Identifies the script that runs on the target machine before capturing the snapshot. post-snapshot Identifies the script that runs on the target machine after capturing the snapshot. D2D_TARGETVOLUME Identifies the volume that is backed up during a backup job. This variable is applicable for pre/post snapshot scripts for a backup job. D2D_JOBRESULT Identifies the result for a post job script. The following values identify the D2D_JOBRESULT variable: success fail D2DSVR_HOME Identifies the result as successful. Identifies the result as unsuccessful. Identifies the folder where D2D Server is installed. This variable is applicable for the scripts that run on the D2D Server. The script is created. Note: For all scripts, a return value of zero indicates success and a nonzero return value indicates failure. 62 User Guide

63 How to Back up Linux Nodes Place the Script in the Prepost Folder and Verify All the pre/post scripts for a D2D Server are centrally managed from the prepost folder at the following location: /opt/ca/d2dserver/usr/prepost Follow these steps: 1. Place the file in the following location of the D2D Server: /opt/ca/d2dserver/usr/prepost 2. Provide the execution permission to the script file. 3. Log into the CA ARCserve D2D for Linux web interface. 4. Open the Backup Wizard or the Restore Wizard and navigate to the Advanced tab. 5. Select the script file in the Pre/Post Script Settings drop-down list and then submit the job. 6. Click Activity Log and verify that the script is executed to the specified backup job. The script is executed. The pre/post scripts are successfully created and placed in the prepost folder. Run the Backup Job Run the backup job so that a recovery point is created. You can use this recovery point to restore data. On the Summary page, review the summary of the backup details and provide a job name to distinguish it from other jobs. Follow these steps: 1. Review the summary and enter a job name. The Job Name field has a default name initially. You can enter a new job name of your choice but you cannot leave this field empty. 2. (Optional) Click Previous to modify any settings on any wizard pages. 3. Click Submit. The backup process starts. In the Job Status tab, the job is added and the backup status is displayed. The backup job is created and run. Chapter 4: Using CA ARCserve D2D for Linux 63

64 How to Manage Jobs Verify the Backup was Successful After the backup job is complete, verify that the recovery point is created at the specified destination. Follow these steps: 1. Navigate to the specified destination where you have stored your backup data. 2. Verify that the backup data is present in that destination. For example, if the backup job name is Demo and the backup destination is xxx.xxx.xxx.xxx:/data, then navigate to the backup destination and verify that a new recovery point is generated. The backup data is successfully verified. The Linux nodes are successfully backed up. How to Manage Jobs After you create a backup or a restore job, you can manage all your jobs from the Job menu. Managing a job includes the following tasks: Modifying a job Canceling a job Deleting a job The following diagram displays the process to manage jobs: 64 User Guide

65 How to Manage Jobs Perform these tasks to manage your jobs: Modify Jobs (see page 65) Cancel Jobs (see page 65) Delete Jobs (see page 66) Review the Prerequisites to Manage Jobs Consider the following prerequisites before you manage your jobs: You have a valid existing job to manage You have the appropriate permission to manage jobs. Modify Jobs You can open any existing job and modify the settings for the job from the web interface. For example, if you want to change the backup destination for an already protected machine, you do not have to create a new job. You can open the existing job that protects the machine and modify only the backup destination section. Your all other settings remain unchanged except the backup destination settings. Follow these steps: 1. Select a job from the Job Status tab. 2. Click Modify from the Job menu. The wizard for the selected job opens. 3. Modify your settings in the wizard. 4. Click Submit on the Summary page of the wizard. The job is submitted and the job runs depending on your settings. The job is successfully modified. Cancel Jobs You can cancel a running job from the web interface of CA ARCserve D2D for Linux. Follow these steps: 1. Select a job from the Job Status tab. 2. Click Cancel from the Job menu. The Cancel job dialog opens. Chapter 4: Using CA ARCserve D2D for Linux 65

66 How to Perform a File-Level Recovery 3. Select one of the following options from the Cancel job for dropdown list: Selected node Specifies that the job is canceled only for the selected node. All nodes protected by the selected job 4. Click OK. Specifies that the job is canceled for all the nodes protected by the selected job. The job is canceled. Delete Jobs You can delete a job when you do not want to protect or restore a machine anymore. You can also delete a job that protects a group of nodes. When you delete a job, the previously backed up recovery points still remain available in the specified backup destination. You can use those recovery points to restore your data. For a running job, the Delete option is inactive. You have to cancel the running job and then delete the job. Follow these steps: 1. Select a job from the Job Status tab. 2. Click Delete from the Job menu. The Delete job dialog opens. 3. Select one of the following options from the Delete job for dropdown list: Selected node Specifies that the job is deleted only for the selected node. All nodes protected by the selected job 4. Click OK. Specifies that the job is deleted for all the nodes protected by the selected job. The job is deleted. How to Perform a File-Level Recovery A file-level recovery restores individual files and folders from a recovery point. You can restore as minimum as one file from the recovery point. This option is useful if you want to restore selected files and not the entire recovery point. 66 User Guide

67 How to Perform a File-Level Recovery The following diagram displays the process to perform a file-level recovery: Chapter 4: Using CA ARCserve D2D for Linux 67

68 How to Perform a File-Level Recovery Perform these tasks for a file-level recovery: Review the Restore Prerequisites (see page 68) Specify the Recovery Point (see page 68) Specify the Target Machine Details (see page 70) Specify the Advanced Settings (see page 71) (Optional) Manage Pre/Post Scripts for Automation (see page 72) Create and Run the Restore Job (see page 75) Verify that Files are Restored (see page 76) Review the Prerequisites Consider the following options before you perform a file-level recovery: You have a valid recovery point and the encryption password, if any. You have a valid target node to recover data. You have verified that the CA ARCserve D2D for Linux server supports the file system that you want to restore. For example, RedHat 5.x does not support the reiserfs file system. If the operating system of the D2D Server is RedHat 5.x and you want to restore the reiserfs file system, you must install the file system driver to support reiserfs. You can also use CA ARCserve D2D for Linux Live CD to perform the file-level restore because Live CD supports all types of file system. Specify the Recovery Point Each time that you perform a backup, a recovery point is created. Specify the recovery point information in the Restore Wizard so that you can recover the exact data that you want. You can restore specific files or all files depending on your requirement. Note: If you have selected Source local as your backup destination, the D2D Server cannot manage the recovery points. The D2D server cannot connect to the Source local directly and so the Recovery Set settings are not applied on the recovery points. To restore files from Source local, follow these steps: a. Share the backup destination (Source local) and ensure that the D2D server can connect to the backup destination. b. Add the shared destination as the backup storage location to the D2D server. Now, Source local behaves as an NFS backup storage location and you can restore files from the share. 68 User Guide

69 How to Perform a File-Level Recovery Follow these steps: 1. Enter the URL of the D2D server in a web browser to open the CA ARCserve D2D for Linux interface. Note: During the installation of CA ARCserve D2D for Linux, you received the URL to access and manage the server. 2. Click Restore from the Wizard menu and select Restore File. Restore Wizard - File Restore opens. You can see the selected D2D server in the D2D Server page of the Restore Wizard. 3. Click Next. The Recovery Points page of the Restore Wizard opens. 4. Select a session from the Session Location drop-down list and enter the full path of the share. For example, consider the Session Location as NFS share, xxx.xxx.xxx.xxx as the IP address of the NFS share, and the folder name is Data. You would enter xxx.xxx.xxx.xxx:/data as the NFS share location. Note: If the backed up data is stored in Source local, then you must first convert the source node to an NFS server, and then share the session location. 5. Click Connect. All the nodes that have been backed up to this location get listed in the Machine drop-down list. 6. Select the node that you want to restore from the Machine drop-down list. All the recovery points of the selected node get listed. 7. Apply the date filter to display the recovery points that are generated between the specified date and click Search. Default: Recent two weeks. All the recovery points available between the specified dates are displayed. 8. Select the recovery point that you want to restore and click Add. If the recovery point is encrypted, enter the encryption password to restore data. The Browse-<node name> dialog opens. Chapter 4: Using CA ARCserve D2D for Linux 69

70 How to Perform a File-Level Recovery 9. Select the files and folders that you want to restore and click OK. Note: If you try to locate a file or folder using the Search field, ensure that you select the highest folder in the hierarchy. The search is conducted on all the child folders of the selected folder. The Browse-<node name> dialog closes and you return to the Recovery Points page. The selected files and folders are listed under Files/Folders to be restored. 10. Click Next. The Target Machine page opens. The recovery point is specified. Specify the Target Machine Details Specify the target node details so that data is restored to that node. You can restore the selected files or folders to the source node or to a new node. Follow these steps: To restore to the node from where the data was backed up, follow these steps: 1. Select Restore to original location on the Target Machine page. The Host Name field in Target Machine Settings gets populated with the name of the source node. 2. Enter the user name and the password of the node. 3. Select one of the following options to resolve conflicting files: Overwrite existing files Specifies that if the file exists in the target machine then the backup file from the recovery point replaces the existing file. Rename files Specifies that if the file exists in the target machine, then a new file is created with the same file name and.d2dduplicate<x> file extension. <x> specifies the number of times the file is restored. All the data is restored to the new file. Skip existing files 4. Click Next. Specifies that if the same file exists in the target machine, then those files are not restored from the recovery point. The Advanced page opens. 70 User Guide

71 How to Perform a File-Level Recovery To restore to a new node, follow these steps: 1. Select Restore to alternative location on the Target Machine page. 2. Enter the host name or the IP address of the target node. 3. Enter the user name and the password of the node. 4. Enter the path where the data is restored, or click Browse to select the folder where the data is restored and click OK. 5. Select one of the following options to resolve conflicting files: Overwrite existing files Specifies that if the file exists in the target machine then the backup file from the recovery point replaces the existing file. Rename files Specifies that if the file exists in the target machine, then a new file is created with the same file name and.d2dduplicate<x> file extension. <x> specifies the number of times the file is restored. All the data is restored to the new file. Skip existing files Specifies that if the same file exists in the target machine then those files are not restored from the recovery point. 6. (Optional) Select Create root directory. 7. Click Next. The Advanced page opens. The target machine details are specified. Specify the Advanced Settings Specify the advanced settings to perform a scheduled recovery of your data. Scheduled recovery ensures that your data is recovered at the specified time even in your absence. Follow these steps: 1. Set the start date and time by selecting one of the following options: Run Now Starts the file-level restore job as soon as you submit the job. Set Starting Date and Time Starts the file-level restore job at the specified date and time after submitting the job. Chapter 4: Using CA ARCserve D2D for Linux 71

72 How to Perform a File-Level Recovery 2. (Optional) Select Estimate file size. 3. (Optional) Select a script from the Pre/Post Scripts Settings option. These scripts run script commands for actions to take before the start of the job and/or upon the completion of the job. Note: The Pre/Post Script Settings fields are populated only if you already created a script file and placed it at the following location: /opt/ca/d2dserver/usr/prepost Note: For more information about creating the pre/post scripts, see Manage Pre/Post Scripts for Automation (see page 72). 4. Click Next. The Summary page opens. The advanced settings are specified. (Optional) Manage Pre/Post Scripts for Automation Pre/Post scripts let you run your own business logic at specific stages of a running job. You can specify when to run your scripts in Pre/Post Script Settings of the Backup Wizard and the Restore Wizard in the UI. The scripts can be run on the D2D Server depending on your setting. Managing the pre/post script is a two part process, consisting of creating the pre/post script and placing the script in the prepost folder. Create Pre/Post Scripts Follow these steps: 1. Log into the D2D Server as a root user. 2. Create a script file using the environment variables in your preferred scripting language. Pre/Post Script Environment Variables To create you script, use the following environment variables: D2D_JOBNAME Identifies the name of the job. 72 User Guide

73 How to Perform a File-Level Recovery D2D_JOBID Identifies the job ID. Job ID is a number provided to the job when you run the job. If you run the same job again, you get a new job number. D2D_TARGETNODE Identifies the node that is being backed up or restored. D2D_JOBTYPE Identifies the type of the running job. The following values identify the D2D_JOBTYPE variable: backup.full Identifies the job as a full backup. backup.incremental Identifies the job as an incremental backup. backup.verify Identifies the job as a verify backup. restore.bmr Identifies the job as a bare-metal recovery (bmr). This is a restore job. restore.file Identifies the job as a file-level restore. This is a restore job. D2D_SESSIONLOCATION Identifies the location where the recovery points are stored. D2D_PREPOST_OUTPUT Identifies a temp file. The content of the first line of the temp file is displayed in the activity log. D2D_JOBSTAGE Identifies the stage of the job. The following values identify the D2D_JOBSTAGE variable: pre-job-server Identifies the script that runs on the D2D Server before the job starts. Chapter 4: Using CA ARCserve D2D for Linux 73

74 How to Perform a File-Level Recovery post-job-server Identifies the script that runs on the D2D Server after the job completes. pre-job-target Identifies the script that runs on the target machine before the job starts. post-job-target Identifies the script that runs on the target machine after the job completes. pre-snapshot Identifies the script that runs on the target machine before capturing the snapshot. post-snapshot Identifies the script that runs on the target machine after capturing the snapshot. D2D_TARGETVOLUME Identifies the volume that is backed up during a backup job. This variable is applicable for pre/post snapshot scripts for a backup job. D2D_JOBRESULT Identifies the result for a post job script. The following values identify the D2D_JOBRESULT variable: success fail D2DSVR_HOME Identifies the result as successful. Identifies the result as unsuccessful. Identifies the folder where D2D Server is installed. This variable is applicable for the scripts that run on the D2D Server. The script is created. Note: For all scripts, a return value of zero indicates success and a nonzero return value indicates failure. 74 User Guide

75 How to Perform a File-Level Recovery Place the Script in the Prepost Folder and Verify All the pre/post scripts for a D2D Server are centrally managed from the prepost folder at the following location: /opt/ca/d2dserver/usr/prepost Follow these steps: 1. Place the file in the following location of the D2D Server: /opt/ca/d2dserver/usr/prepost 2. Provide the execution permission to the script file. 3. Log into the CA ARCserve D2D for Linux web interface. 4. Open the Backup Wizard or the Restore Wizard and navigate to the Advanced tab. 5. Select the script file in the Pre/Post Script Settings drop-down list and then submit the job. 6. Click Activity Log and verify that the script is executed to the specified backup job. The script is executed. The pre/post scripts are successfully created and placed in the prepost folder. Create and Run the Restore Job Create and run the restore job so that you can initiate the file-level recovery. Verify the recovery point information before you restore the files. If needed, you can go back and can change the restore settings on the wizard. Follow these steps: 1. Verify the restore details on the Summary page of the Restore Wizard. 2. (Optional) Click Previous to modify the information that you have entered on any page of the Restore Wizard. 3. Enter a job name and click Submit. The Job Name field has a default name initially. You can enter a new job name of your choice but you cannot leave this field empty. The Restore Wizard closes. You can see the status of the job in the Job Status tab. The restore job is successfully created and run. Chapter 4: Using CA ARCserve D2D for Linux 75

76 How to Create a Bootable Live CD Verify that Files are Restored After the completion of restore job, verify that all the files are restored in the target node. Check the Job History and Activity Log tabs in the Status pane to monitor the progress of the restore process. Follow these steps: 1. Navigate to the target machine where you restored data. 2. Verify that the required data from the recovery point is restored. The files are successfully verified. The file-level recovery is successfully performed. How to Create a Bootable Live CD As a storage manager, you can create a bootable Live CD. When created, this bootable Live CD contains a complete read-only image of the computer operating system, and can be used to provide a temporary operating system functionality. This Live CD includes all your system settings and operating system files and can be used to perform the following functions: You can use CA ARCserve D2D for Linux without actually installing the product. This allows you to experience and evaluate the product without installing it or making any changes to the existing hard drive of your computer. You can install CA ARCserve D2D for Linux (to multiple servers) using only one setup package. Without a Live CD, you must install two separate files (.bin file and restore-utility package) to install CA ARCserve D2D for Linux. The restore-utility package is included in the same Live CD setup package. You can perform a Bare Metal Recovery (BMR). You can use this Live CD to get the IP address of the target machine (which is required during the BMR). The bin folder contains the scripts that you can run from the command line to create a bootable Live CD. The bin folder is located in the following path: # /opt/ca/d2dserver/bin 76 User Guide

77 How to Create a Bootable Live CD The following diagram displays the process to create a bootable Live CD: The following list describes each task to create a bootable Live CD: Review the Live CD Prerequisites (see page 77) Install the Restore-Utility Package (see page 78) Create and Verify the Bootable Live CD (see page 78) Review the Live CD Prerequisites Consider the following prerequisites before you create a Live CD: You have the root login credentials to log into the D2D Server. You have read the Release Notes to understand the functions of a Live CD. You have knowledge of Linux scripting. You have installed the mkisofs tool in the D2D Server. The D2D Server uses the mkisofs tool to create the Live CD.iso file. You have at least 1024 MB free memory on your machine to boot and run the Live CD. Chapter 4: Using CA ARCserve D2D for Linux 77

78 How to Create a Bootable Live CD Install the Restore-Utility Package You must install the restore-utility package to perform any restore operations. If you do not install the restore-utility package, you cannot perform file-level restore or BMR. You can install the restore-utility package during the installation of CA ARCserve D2D for Linux. You can also download and install the restore-utility package any time after CA ARCserve D2D for Linux is installed. After you install the restore-utility package, you can create a Live CD. Follow these steps: 1. Log in to the D2D Server as a root user. 2. Navigate to the bin folder using the following command: # cd /opt/ca/d2dserver/bin 3. Run the following command to install the restore-utility package: #./configutility A message is displayed prompting you to provide the path of the restore-utility package. 4. Provide the full path where you have downloaded the restore-utility package. The installation begins. The restore-utility package is installed. Create and Verify the Bootable Live CD Live CD creates the D2D Server's environment without installing the software. Live CD facilitates BMR using IP in a private network. Live CD is a complete bootable computer operating system which runs in the computer's memory, rather than loading from the hard disk. Live CD allows you to experience and evaluate an operating system without installing it or changing the existing operating system on the computer. Follow these steps: 1. Navigate to the bin folder using the following command: # cd /opt/ca/d2dserver/bin 2. Run the following command to create a Live CD: #./makelivecd 78 User Guide

79 How to Perform a Bare Metal Recovery (BMR) for Linux Machines 3. Navigate to the following location and verify that the LiveCD.iso file is created: /opt/ca/d2dserver/packages You have successfully created and verified the bootable Live CD. If you want to use the Live CD on a virtual network, you can directly mount the LiveCD.iso file to the virtual machine. If you want to use you the Live CD on a physical machine, then you must burn the LiveCD.iso image on a media file (CD or DVD) and then use the media file to boot your machine. How to Perform a Bare Metal Recovery (BMR) for Linux Machines A BMR restores the operating system and software applications, and recovers all the backed-up data. BMR is the process of restoring a computer system from bare metal. Bare metal is a computer without any operating system, drivers, and software applications. After the restore is complete, the target machine automatically reboots in the same operating environment as the backup source node and all data is restored. A complete BMR is possible because when CA ARCserve D2D for Linux performs a backup of data, it also captures information related to the operating system, installed applications, drivers, and so on. You can perform a BMR using the IP address or the Media Access Control (MAC) address of the target machine. If you boot the target machine using the CA ARCserve D2D for Linux Live CD, you can get the IP address of the target machine. Chapter 4: Using CA ARCserve D2D for Linux 79

80 How to Perform a Bare Metal Recovery (BMR) for Linux Machines The following diagram displays the process to perform a BMR: 80 User Guide

81 How to Perform a Bare Metal Recovery (BMR) for Linux Machines Complete the following tasks to perform a BMR: Review the BMR Prerequisites (see page 81) Get the IP Address of the Target Machine Using the Live CD (see page 81) Review the D2D Server (see page 82) Specify the Recovery Points (see page 83) Specify the Target Machine Details (see page 84) Specify the Advanced Settings (see page 85) (Optional) Manage Pre/Posts Scripts for Automation (see page 86) Create and Run the Restore Job (see page 89) (Optional) Perform Post-BMR Operations (see page 90) Verify that the Target Machine is Restored (see page 96) Review the BMR Prerequisites Consider the following options before performing a BMR: You have a valid recovery point and the encryption password, if any, for restore. You have a valid target machine for BMR. You have created the CA ARCserve D2D for Linux Live CD. If you want to perform a BMR using the IP address, you must get the IP address of the target machine using the Live CD. If you want to perform a PXE-based BMR using the MAC address, you must have the MAC address of the target machine. Get the IP Address of the Target Machine Using the Live CD Before performing a BMR using the IP address, you need to get the IP address of the target machine. A bare-metal machine does not have any IP address initially. So, you have to boot the bare-metal machine using the CA ARCserve D2D for Linux Live CD to get the IP address. After you get the IP address of the target machine, you can configure the static IP of the target machine. Follow these steps: 1. Insert the CA ARCserve D2D for Linux Live CD or mount the.iso file of the CA ARCserve D2D for Linux Live CD into the CD-ROM drive of the target node. 2. Boot the target machine from CD-ROM. The target machine boots into the CA ARCserve D2D for Linux Live CD environment. On the screen, the IP address of the target machine is displayed. Chapter 4: Using CA ARCserve D2D for Linux 81

82 How to Perform a Bare Metal Recovery (BMR) for Linux Machines 3. To configure the static IP of the target machine, follow these steps: a. On the target machine's screen, press Enter to enter the shell environment. b. Run the following command to configure the static IP: ifconfig <NIC name> <static IP address> route add default gw <gateway IP address> <NIC name> Note: The Network Interface Card (NIC) name depends on your hardware. For example, the typical NIC names are eth0 or em0. The static IP is configured. The IP address of the target machine is acquired. Important! Maintain a record of this IP address as it is used in the Restore Wizard when you have to specify the target machine details. Review the D2D Server When you open the Restore Wizard, review the D2D Server where you want to perform the restore operation. Follow these steps: 1. Enter the URL of the D2D Server in a web browser to open the CA ARCserve D2D for Linux interface. Note: During the installation of CA ARCserve D2D for Linux, you received the URL to access and manage the server. 2. Click Restore from the Wizard menu and select Bare Metal Recovery (BMR). The D2D Server page of the Restore Wizard - BMR opens. 3. Verify the server from the D2D Server drop-down list in the D2D Server page. You cannot select any option from the D2D Server drop-down list. 4. Click Next. The Recovery Points page of the Restore Wizard - BMR opens. The D2D Server is specified. 82 User Guide

83 How to Perform a Bare Metal Recovery (BMR) for Linux Machines Specify the Recovery Points Each time that you perform a backup, a recovery point is created. Specify the recovery point information in the Restore Wizard so that you can recover the exact data that you want. You can restore specific files or all files depending on your requirement. Important! To perform a BMR from a recovery point, the root volume and the boot volume must be present in the recovery point. Follow these steps: 1. Perform one of the following steps depending on your backup storage. Perform the following steps to access the recovery points if the recovery points are stored on a mobile device: a. Start the target machine using the Live CD. b. Log into the CA ARCserve D2D for Linux web interface from the Live CD. c. Open the BMR Wizard. d. Navigate to the Recovery Points page. e. Select Local as the Session Location on the Recovery Points page of the BMR Wizard. Perform the following steps if the session location is NFS share or CIFS share: a. Select a session from the Session Location drop-down list and enter the full path of the share. For example, consider the Session Location as NFS share, xxx.xxx.xxx.xxx as the IP address of the NFS share, and the folder name is Data. You would enter xxx.xxx.xxx.xxx:/data as the NFS share location. Note: If the backed up data is stored in Source local, then you must first convert the source node to an NFS server, and then share the session location. Chapter 4: Using CA ARCserve D2D for Linux 83

84 How to Perform a Bare Metal Recovery (BMR) for Linux Machines 2. Click Connect. All the nodes that have been backed up to this location get listed in the Machine drop-down list. 3. Select the node that you want to restore from the Machine drop-down list. All the recovery points of the selected node get listed. 4. Apply the date filter to display the recovery points that are generated between the specified date and click Search. Default: Recent two weeks. All the recovery points available between the specified dates are displayed. 5. Select the recovery point that you want to restore and click Next. The Target Machine page opens. The recovery point is specified. Specify the Target Machine Details Specify the target machine details so that data is restored to that machine. A target machine is a bare metal machine where you will perform a BMR. If you restore using the IP address, you need the IP address of the target machine that you previously recorded at the beginning of this process. If you restore using the Media Access Control (MAC) address, you need the MAC address of the target machine. Follow these steps: 1. Enter the MAC address or the IP address of the target machine in the MAC/IP Address field. 2. Enter a name in the Host Name field. The target machine will use this name as the host name after the restore process is complete. 3. Select one of the following options as the network: DHCP Automatically configures the IP address. This is the default option. Use this option if you have a Dynamic Host Configuration Protocol (DHCP) server to restore with the DHCP network. 84 User Guide

85 How to Perform a Bare Metal Recovery (BMR) for Linux Machines Static IP Manually configures the IP address. If you select this option then, enter the IP Address, Subnet Mask, and Default Gateway of the target machine. Important! Ensure that the Static IP is not used by any other machines on the network during the restore process. 4. (Optional) Select the Reboot option to automatically restart the target node after the BMR is complete. 5. Click Next. The Advanced page opens. The target machine details are specified. Specify the Advanced Settings Specify the advanced settings to perform a scheduled BMR of your data. Scheduled BMR ensures that your data is recovered at the specified time even in your absence. Follow these steps: 1. Set the start date and time by selecting one of the following options: Run Now Starts the restore job as soon as you submit the job. Set Special Time Starts the restore job at the specified time after submitting the job. 2. (Optional) Select a script from the Pre/Post Scripts Settings option for the D2D server and the target machine. These scripts run script commands for actions to take before the start of the job and/or upon the completion of the job. Note: The Pre/Post Script Settings fields are populated only if you already created a script file and placed it at the following location: /opt/ca/d2dserver/usr/prepost Note: For more information about creating the pre/post scripts, see Manage Pre/Post Scripts for Automation. (see page 86) 3. (Optional) Click Show More Settings to display more settings for BMR. 4. (Optional) Reset the password for the specified user name for the recovered target machine. 5. (Optional) Enter the full path of the backup storage location of the recovery points in Recover Point Local Access. Chapter 4: Using CA ARCserve D2D for Linux 85

86 How to Perform a Bare Metal Recovery (BMR) for Linux Machines 6. (Optional) Enter the full name of the disk in the Disks field to exclude those disks on the target machine from participating in the recovery process. 7. (Optional) Select Enable Wake-on-LAN if you are performing Preboot Execution Environment (PXE) BMR. Note: The Enable Wake-on-LAN option is applicable only for physical machines. Ensure whether you have enabled the Wake-on-LAN settings in the BIOS settings of your physical machine. 8. Click Next. The Summary page opens. The advanced settings are specified. (Optional) Manage Pre/Post Scripts for Automation Pre/Post scripts let you run your own business logic at specific stages of a running job. You can specify when to run your scripts in Pre/Post Script Settings of the Backup Wizard and the Restore Wizard in the UI. The scripts can be run on the D2D Server depending on your setting. Managing the pre/post script is a two part process, consisting of creating the pre/post script and placing the script in the prepost folder. Create Pre/Post Scripts Follow these steps: 1. Log into the D2D Server as a root user. 2. Create a script file using the environment variables in your preferred scripting language. Pre/Post Script Environment Variables To create you script, use the following environment variables: D2D_JOBNAME Identifies the name of the job. 86 User Guide

87 How to Perform a Bare Metal Recovery (BMR) for Linux Machines D2D_JOBID Identifies the job ID. Job ID is a number provided to the job when you run the job. If you run the same job again, you get a new job number. D2D_TARGETNODE Identifies the node that is being backed up or restored. D2D_JOBTYPE Identifies the type of the running job. The following values identify the D2D_JOBTYPE variable: backup.full Identifies the job as a full backup. backup.incremental Identifies the job as an incremental backup. backup.verify Identifies the job as a verify backup. restore.bmr Identifies the job as a bare-metal recovery (bmr). This is a restore job. restore.file Identifies the job as a file-level restore. This is a restore job. D2D_SESSIONLOCATION Identifies the location where the recovery points are stored. D2D_PREPOST_OUTPUT Identifies a temp file. The content of the first line of the temp file is displayed in the activity log. D2D_JOBSTAGE Identifies the stage of the job. The following values identify the D2D_JOBSTAGE variable: pre-job-server Identifies the script that runs on the D2D Server before the job starts. Chapter 4: Using CA ARCserve D2D for Linux 87

88 How to Perform a Bare Metal Recovery (BMR) for Linux Machines post-job-server Identifies the script that runs on the D2D Server after the job completes. pre-job-target Identifies the script that runs on the target machine before the job starts. post-job-target Identifies the script that runs on the target machine after the job completes. pre-snapshot Identifies the script that runs on the target machine before capturing the snapshot. post-snapshot Identifies the script that runs on the target machine after capturing the snapshot. D2D_TARGETVOLUME Identifies the volume that is backed up during a backup job. This variable is applicable for pre/post snapshot scripts for a backup job. D2D_JOBRESULT Identifies the result for a post job script. The following values identify the D2D_JOBRESULT variable: success fail D2DSVR_HOME Identifies the result as successful. Identifies the result as unsuccessful. Identifies the folder where D2D Server is installed. This variable is applicable for the scripts that run on the D2D Server. The script is created. Note: For all scripts, a return value of zero indicates success and a nonzero return value indicates failure. 88 User Guide

89 How to Perform a Bare Metal Recovery (BMR) for Linux Machines Place the Script in the Prepost Folder and Verify All the pre/post scripts for a D2D Server are centrally managed from the prepost folder at the following location: /opt/ca/d2dserver/usr/prepost Follow these steps: 1. Place the file in the following location of the D2D Server: /opt/ca/d2dserver/usr/prepost 2. Provide the execution permission to the script file. 3. Log into the CA ARCserve D2D for Linux web interface. 4. Open the Backup Wizard or the Restore Wizard and navigate to the Advanced tab. 5. Select the script file in the Pre/Post Script Settings drop-down list and then submit the job. 6. Click Activity Log and verify that the script is executed to the specified backup job. The script is executed. The pre/post scripts are successfully created and placed in the prepost folder. Create and Run the Restore Job Create and run the restore job so that you can initiate the process of BMR. Verify the recovery point information before you perform a BMR. If needed, you can go back and can change the restore settings. Follow these steps: 1. Verify the restore details on the Summary page of the Restore Wizard. 2. (Optional) Click Previous to modify the restore settings on any of the Restore Wizard pages. 3. Enter a job name and click Submit. The Job Name field has a default name initially. You can enter a new job name of your choice but you cannot leave this field empty. The Restore Wizard closes. You can see the job in the Job Status tab. If you use the IP address for the BMR, the target machine automatically reboots to the same operating system as the backup source after the BMR process. If you use the MAC address for BMR, the status in the Job Status tab changes to Waiting for target node startup. Chapter 4: Using CA ARCserve D2D for Linux 89

90 How to Perform a Bare Metal Recovery (BMR) for Linux Machines (Optional) Perform Post-BMR Operations 4. (Optional) For BMR using the MAC address, start the target machine when you see the Waiting for target node startup message in the Job Status tab. Note: If the target machine is already started before you submit the restore job, you must restart the target machine. Ensure that BIOS is configured to boot from the network. The status in the Job Status column changes to Restoring volume. This indicates the restore is in progress. After the restore job is complete, the target machine automatically reboots with the same operating system as the backup source. The restore job was successfully created and run. The following topics are optional configuration settings that you may have to perform after a BMR: Configure X Windows When you perform a BMR across a dissimilar hardware, X Windows of the restored OS does not function properly and the target node displays an error dialog. The error dialog appears because the display configuration has changed. To resolve this error, follow the instructions in the error dialog to configure the graphic card. After that, you can see the X Windows and the desktop UI. Configure the System Fully Qualified Domain Name (FQDN) When you need an FQDN, then you must configure the FQDN. The BMR process does not automatically configure the FQDN. Maximum character count for FQDN: 63 Follow these steps to configure the FQDN: 1. Edit the /etc/hosts file and provide the IP Address, the FQDN name, and the server name. #vi /etc/hosts ip_of_system servername.domainname.com servername 2. Restart the network service. #/etc/init.d/network restart 3. Verify the host name and the FQDN name. #hostname servername #hostname -f servername.domainname.com The FQDN is configured. 90 User Guide

91 How to Perform a Bare Metal Recovery (BMR) for Linux Machines Extend the Data Volume after a BMR on Dissimilar Disks When you perform a BMR to a larger disk than the disk on the original node, some disk space is left unused. The BMR operation does not automatically process the unused disk space. You can format the disk space to a separate partition or resize the existed partition with the unused disk space. The volume that you want to resize must be unused, so you must avoid resizing a system volume. In this section, we will focus on how to extend a data volume with the unused disk space. Note: To avoid data loss, resize your volumes immediately after the BMR process. You can also back up the node before starting the volume resizing task. When the target machine successfully restarts after the BMR, you can extend the data volume. Raw partition volume For example, a 2-GB disk in the session is restored to a 16-GB disk named /dev/sdb with only one partition. The /dev/sdb1 raw partition is directly mounted on the /data directory. This example is used to explain the procedure of extending Raw partition volume. Follow these steps: 1. Check the status of the /dev/sdb1 volume. # df h /dev/sdb1 /dev/sdb1 2.0G 40M 1.9G 3% /data 2. Umount the /dev/sdb1 volume. # umount /data 3. Resize /dev/sdb1 to occupy the entire disk space using the fdisk command. To perform this operation, first delete your existing partition and then recreate it with the same start sector number. The same start sector number is responsible for avoiding the data loss. # fdisk -u /dev/sdb Command (m for help): p Disk /dev/sdb: 17.1 GB, bytes 255 heads, 63 sectors/track, 2088 cylinders, total sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System /dev/sdb Linux Command (m for help): d Chapter 4: Using CA ARCserve D2D for Linux 91

96 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment Type linear Physical volume /dev/sdc1 Physical extents 0 to 2046 Logical extent 2047 to 4065: Type linear Physical volume /dev/sdc2 Physical extents 0 to 2018 The LVM volume extends to 16 GB and is ready for use. Verify that the Target Node is Restored After the completion of restore job, verify that the target node is restored with relevant data. Follow these steps: 1. Navigate to the target machine that you restored. 2. Verify that the target machine has all the information that you backed up. The target machine is successfully verified. The BMR is successfully performed for Linux Machines. How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment As a Storage Manager, you can create scripts and can automate tasks to integrate CA ARCserve D2D for Linux with your existing IT environment. Scripts reduce the manual intervention and decrease the dependency on the web interface of the D2D Server to perform any task. CA ARCserve D2D for Linux also provides the interface and utilities to perform the job management, node management, and activity log management tasks. 96 User Guide

98 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment Review the Automation Prerequisites Consider the following prerequisites before you automate and manage CA ARCserve D2D for Linux: You have the root login credentials to the D2D Server. You have knowledge of Linux scripting. You have a better understanding of the CA ARCserve D2D for Linux web interface. Understanding the Scripting Utilities CA ARCserve D2D for Linux provides scripting utilities to help you create your automation script. These utilities are merely for scripting so their output is scripting friendly. The utilities are used to manage nodes, jobs, replicate backup destinations, and manage activity logs. All the utilities are contained in the bin folder at the following location: /opt/ca/d2dserver/bin Follow these steps: 1. Log into the D2D Server as a root user. 2. Navigate to the bin folder using the following command: # cd/opt/ca/d2dserver/bin 98 User Guide

99 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment 3. Run the following commands to manage nodes: #./d2dnode Displays a list of available commands to help you manage all related D2D nodes. Using this command, you can add, delete, and modify nodes. # d2dnode --list Lists all the nodes that are managed by the D2D Server. # d2dnode - add=nodename/ip - user=username - password=password - description= the description of that node --attach=jobname --force Adds the specific node to the D2D Server. --attach=jobname --force Adds a new node to an existing backup job. Adds the node forcefully even if the node is managed by another D2D Server. If you remove the force parameter, then the node is not added to this server if it is managed by another D2D Server. # d2dnode --node=nodename --attach=jobname Adds the specified node to an existing backup job. # d2dnode --modify=nodename/ip --user=username --password=newpassword --description=newdescription Modifies the username, password, or the description of the added node. # d2dnode - delete=nodename1:nodename2:nodename3 Deletes the specified nodes from the D2D Server. To delete multiple nodes, use a colon (:) as a delimiter. 4. Run the following commands to manage jobs: #./d2djob Displays a list of commands to help you manage jobs. Using this command, you can run, cancel, and delete jobs. # d2djob - delete=jobname Deletes the specified job from the Job Status tab. # d2djob - run=jobname - jobtype=1 - wait Runs the specified job. To submit a job, you must provide a value for jobtype. For a backup job, the values for jobtype are 0, 1, and 2, where 0 indicates a Full backup job, 1 indicates an Incremental job, and 2 indicates a Verify backup job. Chapter 4: Using CA ARCserve D2D for Linux 99

100 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment For a restore job, the value for jobtype is 3. If you include --wait in the command, the status message is displayed after the completion of the job. If you do not include --wait in the command, the status message is displayed immediately after submitting the job. # d2djob - cancel=jobname - wait Cancels a job that is in progress. If you include --wait in the command, the job status is displayed after the job is canceled. If you do not include --wait in the command, the job status is displayed immediately after submitting the cancellation request. # d2djob --newrestore=restorejobname --target=macaddress/ipaddress --hostname=hostname --network=dhcp/staticip --staticip=ipaddress --subnet=subnetmask --gateway=gateway --runnow --wait Runs a restore job for a new target machine based on an existing restore job. This command lets you use the same restore settings as the existing restore job and only the target machine details are different. If you use this command, you do not have to create multiple restore jobs for different target machines. You must provide a value for --newrestore, --target, --hostname, and --network. If the value for --network is staticip, then you must provide a value for --staticip, --subnet, and --gateway. If the value for --network is dhcp, then you do not have to provide any value for --staticip, --subnet, and --gateway. If you include --runnow in the command, the job runs immediately after you submit the job, irrespective of the job schedule. If you include --wait in the command, the status message is displayed after the completion of the job. If you do not include --wait in the command, the status message is displayed immediately after submitting the job. 5. Run the following commands to create or update the recovery points configuration file. CA ARCserve D2D for Linux uses the configuration file to manage and display the recovery points in the UI. #./d2drp Creates or updates the recovery points configuration files based on the recovery points detail. Using this command, you can create or update the configuration files. Note: d2drp does not support the NFS share or the CIFS share. If you want to use the NFS share or the CIFS share, you must first mount the share to the local host and then use the mount point as the storagepath. 100 User Guide

101 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment #./d2drp - storagepath=/backupdestination -node=node_name Verifies all recovery points that belong to node_name and update all the recovery points configuration files. If the recovery point configuration files are not present, this command create the files automatically. #./d2drp -storagepath=/backupdestination -node=node_name -session=session_name Verifies the specified session name and update all the recovery points configuration files. If the recovery point configuration files are not present, this command create the files automatically. 6. Run the following commands to manage activity logs: #./d2dlog Displays the format that helps you get the activity logs for the specified job id in the specified format. # d2dlog - show=jobid - format=text/html Displays the activity log of the specified job. The format value is optional because the default value is text. The scripting utilities have been used to successfully manage nodes, jobs, and activity logs. Manage Pre/Post Scripts for Automation Pre/Post scripts let you run your own business logic at specific stages of a running job. You can specify when to run your scripts in Pre/Post Script Settings of the Backup Wizard and the Restore Wizard in the UI. The scripts can be run on the D2D Server depending on your setting. Managing the pre/post script is a two part process, consisting of creating the pre/post script and placing the script in the prepost folder. Create Pre/Post Scripts Follow these steps: 1. Log into the D2D Server as a root user. 2. Create a script file using the environment variables in your preferred scripting language. Pre/Post Script Environment Variables To create you script, use the following environment variables: D2D_JOBNAME Identifies the name of the job. Chapter 4: Using CA ARCserve D2D for Linux 101

102 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment D2D_JOBID Identifies the job ID. Job ID is a number provided to the job when you run the job. If you run the same job again, you get a new job number. D2D_TARGETNODE Identifies the node that is being backed up or restored. D2D_JOBTYPE Identifies the type of the running job. The following values identify the D2D_JOBTYPE variable: backup.full Identifies the job as a full backup. backup.incremental Identifies the job as an incremental backup. backup.verify Identifies the job as a verify backup. restore.bmr Identifies the job as a bare-metal recovery (bmr). This is a restore job. restore.file Identifies the job as a file-level restore. This is a restore job. D2D_SESSIONLOCATION Identifies the location where the recovery points are stored. D2D_PREPOST_OUTPUT Identifies a temp file. The content of the first line of the temp file is displayed in the activity log. D2D_JOBSTAGE Identifies the stage of the job. The following values identify the D2D_JOBSTAGE variable: pre-job-server Identifies the script that runs on the D2D Server before the job starts. 102 User Guide

103 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment post-job-server Identifies the script that runs on the D2D Server after the job completes. pre-job-target Identifies the script that runs on the target machine before the job starts. post-job-target Identifies the script that runs on the target machine after the job completes. pre-snapshot Identifies the script that runs on the target machine before capturing the snapshot. post-snapshot Identifies the script that runs on the target machine after capturing the snapshot. D2D_TARGETVOLUME Identifies the volume that is backed up during a backup job. This variable is applicable for pre/post snapshot scripts for a backup job. D2D_JOBRESULT Identifies the result for a post job script. The following values identify the D2D_JOBRESULT variable: success fail D2DSVR_HOME Identifies the result as successful. Identifies the result as unsuccessful. Identifies the folder where D2D Server is installed. This variable is applicable for the scripts that run on the D2D Server. The script is created. Note: For all scripts, a return value of zero indicates success and a nonzero return value indicates failure. Chapter 4: Using CA ARCserve D2D for Linux 103

104 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment Place the Script in the Prepost Folder and Verify All the pre/post scripts for a D2D Server are centrally managed from the prepost folder at the following location: /opt/ca/d2dserver/usr/prepost Follow these steps: 1. Place the file in the following location of the D2D Server: /opt/ca/d2dserver/usr/prepost 2. Provide the execution permission to the script file. 3. Log into the CA ARCserve D2D for Linux web interface. 4. Open the Backup Wizard or the Restore Wizard and navigate to the Advanced tab. 5. Select the script file in the Pre/Post Script Settings drop-down list and then submit the job. 6. Click Activity Log and verify that the script is executed to the specified backup job. The script is executed. The pre/post scripts are successfully created and placed in the prepost folder. 104 User Guide

105 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment Create the Backup Storage Alert Script Create the backup storage alert script so that you can run the script when your backup storage space is less than the specified value. When you add a backup storage location in the UI, you have the option to select the Send alert checkbox. When you select the checkbox, CA ARCserve D2D for Linux monitors the available storage space every 15 minutes. Every time the storage space is less than the specified value, CA ARCserve D2D for Linux runs the backup_storage_alert.sh script. You can configure the backup_storage_alert.sh script to perform any task for you when the backup storage space is less. Example 1: You can configure the script to automatically send you an alert to remind you of the decreasing storage space. Example 2: You can configure the script to automatically delete some data from the backup storage space when the storage space is less than the specified value. Follow these steps: 1. Log into the D2D Server as a root user. 2. Create the backup_storage_alert.sh script using the following variables: backupstoragename freesize Defines the name of backup storage location. For example, NFS or CIFS. Defines the available free space in the backup storage location. 3. Place the script at the following location: /opt/ca/d2dserver/usr/alert/backup_storage_alert.sh The backup_storage_alert.sh script is created. Discover Nodes Using a Script CA ARCserve D2D for Linux provides the capability to run a script that discovers nodes in your network. You can write a script to discover nodes in your network and then place the script in the discovery folder. You can configure the node discovery setting on the web interface and set the frequency of running the script. In the script, you can specify the utilities to discover nodes in your network. After the script discovers a node, use the d2dnode command to add that node to CA ARCserve D2D for Linux. There is an activity log for every time the script is run. Note: For all scripts, a return value of zero indicates success and a nonzero return value indicates failure. Chapter 4: Using CA ARCserve D2D for Linux 105

106 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment If you want to print something into the Activity Log regarding your node discovery script, you can use the following special environment variable: echo "print something into activity log" > "$D2D_DISCOVER_OUTPUT" A sample script is placed in the discovery folder at the following location that can discover the Linux nodes in a sub network. /opt/ca/d2dserver/examples/discovery You can copy the sample script to the following location and modify that script per your requirement: /opt/ca/d2dserver/usr/discovery Follow these steps: 1. Log into the D2D Server as a root user. 2. Create a node discovery script and place the script in the discovery folder at the following location: /opt/ca/d2dserver/usr/discovery 3. Provide the necessary execution permission to the script file. 4. Log into the web interface. 5. Configure the node discovery settings in the Node menu to run your script. 6. Click Activity Log and verify that the script is executed. The Activity Log displays a list of all discovered nodes. Nodes are successfully discovered using the script. Create the Scripts to Back Up Oracle Database You can create scripts that you use to back up your Oracle Database. You do not have to stop your database to perform a backup. You create the following two scripts to back up Oracle Database: pre-db-backup-mode.sh - This script prepares and keeps the entire database in the backup mode. post-db-backup-mode.sh - This script removes the database from the backup mode. You can specify the scripts to run on the Oracle Database nodes in Pre/Post Scripts Settings of the Backup Wizard. 106 User Guide

108 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment 6. Log into the CA ARCserve D2D for Linux web interface. 7. Open the Backup Wizard and navigate to the Advanced tab. 8. In the Pre/Post Scripts Settings option, select the pre-db-backup-mode.sh script file from the "Before snapshot is taken" dropdown list. 9. In the Pre/Post Scripts Settings option, select the post-db-backup-mode.sh script file from the "After snapshot is taken" dropdown list. 10. Submit the backup job. The backup job is submitted. The scripts are created to back up Oracle Database. Note: CA ARCserve D2D for Linux supports the volume level snapshot. To ensure the data consistency, all data files of the database must be on one volume. Create the Scripts to Back Up MySQL Database You can create scripts that you use to back up MySQL Database. You do not have to stop your database to perform a backup. You create the following two scripts to back up MySQL Database: pre-db-backup-mode.sh - This script closes all open tables, and it locks all the tables for all the databases with a global read lock. post-db-backup-mode.sh - This script releases all the locks. You can specify the scripts to run on the MySQL Database nodes in Pre/Post Scripts Settings of the Backup Wizard. 108 User Guide

110 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment 4. Provide the execution permission to both the scripts. 5. Place both the scripts in the following location: /opt/ca/d2dserver/usr/prepost/ 6. Log into the CA ARCserve D2D for Linux web interface. 7. Open the Backup Wizard and navigate to the Advanced tab. 8. In the Pre/Post Scripts Settings option, select the pre-db-backup-mode.sh script file from the "Before snapshot is taken" dropdown list. 9. In the Pre/Post Scripts Settings option, select the post-db-backup-mode.sh script file from the "After snapshot is taken" dropdown list. 10. Submit the backup job. The backup job is submitted. The scripts are created to back up MySQL Database. Note: CA ARCserve D2D for Linux supports the volume level snapshot. To ensure the data consistency, all data files of the database must be on one volume. Customize the Job Schedule CA ARCserve D2D for Linux provides the capability to define your own schedule using a script to run a job. If you require to run a job periodically and you cannot schedule using the web UI, you can create a script to define such schedule. For example, you want to run a backup at 10:00 PM on the last Saturday of every month. You cannot define such schedule using the web interface, but you can create a script to define such schedule. You can submit a backup job without specifying any schedule (using the Manually option on the Advanced page). Use the Linux Cron scheduler to define your customized schedule and run the d2djob command to run the job. Note: The following procedure assumes that you have submitted a backup job without specifying any schedule and you want to run a backup at 10:00 PM on the last Saturday of every month. Follow these steps: 1. Log into the D2D Server as a root user. 2. Create a script file and enter the following command to run a backup at 10:00 PM on the last Saturday of every month: 110 User Guide

111 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment #!/bin/bash LAST_SAT=$(cal awk '$7!=""{t=$7} END {print t}') TODAY=$(date +%d) if [ "$LAST_SAT" = "$TODAY" ]; then source /opt/ca/d2dserver/bin/setenv d2djob --run=your_job_name --jobtype=your_job_type #run your backup job here fi Note: You must provide the necessary execution permission to the file. 3. Navigate to the crontab folder and add the following command to your system crontab (/etc/crontab): * * Saturday root runjob.sh Cron runs the runjob.sh script at 10:00 PM every Saturday. In runjob.sh, it first checks if today is last Saturday of the month. If yes, it uses d2djob to run the backup job. The job schedule is customized to run a backup at 10:00 PM on the last Saturday of every month. Run a BMR Batch Job If you want to perform a BMR on multiple machines and you want to install the same operating environment on all the machines, you can perform a batch BMR. You do not have to create a job for each BMR job. You can save time and effort, and you can reduce the risk of any error while configuring the BMR machines. Note: You must have a valid recovery point of the source machine that you want to restore. If you do not have a valid recovery point, you must first back up the source machine and then submit a restore job. You first define all your BMR settings in a template BMR job and then change the target machine s address (IP or MAC), hostname, and network configuration using the following command: d2djob Follow these steps: 1. Create a BMR job named BMR-TEMPLATE and run the job for one machine of your multiple machines. Note: You can provide any name for the BMR job. You must provide the same job name in the batch BMR script. 2. Log in to the D2D Server as a root user. Chapter 4: Using CA ARCserve D2D for Linux 111

112 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment 3. Create a batch BMR script based on the BMR-TEMPLATE job to automatically submit multiple BMR jobs. Use the following script to create a batch BMR script: #!/bin/sh prename=lab-server serverlist[0]="<mac_address>" serverlist[1]=" <MAC_Address>" serverlist[2]=" <MAC_Address>"... serverlist[300]=" <MAC_Address>" do./d2djob --newrestore="bmr-template" --target=${serverlist[i]} --hostname=$prename$i --network=dhcp done 4. Run the batch BMR script. The script runs. Multiple BMR jobs are created in the UI. A batch of BMR job is run. 112 User Guide

113 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment Replicate and Manage Backup Sessions You can create a script to replicate your backup sessions so that you can recover your data when your original backup data is corrupted. The backup sessions include all the recovery points that were backed up. You can protect your backup sessions by replicating your backup sessions to a replication destination. After you have replicated your backup sessions, you can then manage your replication destination by adding the destination to the CA ARCserve D2D for Linux interface. Replicating and managing backup sessions is a three part process. It includes the following three parts: Replicating the backup sessions to the replication destination Creating or updating the recovery points configuration files so that recovery points can be managed and displayed on the CA ARCserve D2D for Linux web interface Adding the replication destination to the CA ARCserve D2D for Linux web interface Replicating the Backup Sessions You can leverage the Pre/Post Scripts Settings feature in the Backup Wizard to replicate the backup sessions to the replication destination. You can choose any option, such as File Transfer Protocol (FTP), Secure Copy (SCP), or the cp command, to replicate the backup session. Follow these steps: 1. Log into the D2D Server as a root user. 2. Create a pre/post script to replicate the backup sessions. 3. Place the script at the following location: /opt/ca/d2dserver/usr/prepost 4. Log into the CA ARCserve D2D for Linux web interface. 5. Open the Backup Wizard and navigate to the Advanced page. 6. In the Pre/Post Scripts Settings option for Run on D2D server, select the replication script from the After job is over dropdown list. 7. Submit the backup job. The backup session is replicated to the backup destination. Create or Update the Recovery Point Configuration Files After you replicate the backup sessions, you create and configure the recovery points configuration file. This file is used to identify the recovery points when you perform the restore operation from the CA ARCserve D2D for Linux interface. Chapter 4: Using CA ARCserve D2D for Linux 113

114 How to Integrate and Automate CA ARCserve D2D for Linux with the Existing IT Environment Follow these steps: 1. Log into the D2D Server as a root user. 2. Navigate to the following location: /opt/ca/d2dserver/bin 3. Enter the following command to create or update the recovery points configuration file:./d2drp --storagepath=/backupdestination --node=node_name --session=session_name If you provide only the --storagepath and --node information, then the command updates all the backup sessions for the selected node. If you provide the --session information, then the command updates the specific session information. Note: For more information about the d2drp command, see Understanding the Scripting Utilities (see page 98). The recovery points configuration file is created or updated depending on the status of the file. Add the Replication Destination Add the replication destination to the CA ARCserve D2D for Linux interface to manage the destination. After you add the replication destination, you can see the available free space in that destination and manage your data accordingly. Follow these steps: 1. Log into the replication destination. 2. Create a file named Settings and enter the following code in the Settings file: RecoverySetLimit=n n indicates the number of recovery sets that you want to retain in the replication destination. 3. Place the file in the node folder of the replication destination. For example, /backup_destination/node_name/settings 4. Log into the CA ARCserve D2D for Linux web interface. 5. Add the replication destination from the Backup Storage menu. The replication destination is added to the CA ARCserve D2D for Linux web interface. The backup sessions are successfully replicated and managed. 114 User Guide

115 How to Manage the D2D Server Settings How to Manage the D2D Server Settings You can perform the following tasks to manage the D2D Server: Configure the duration to retain the Job History and Activity Logs Configure the duration to retain the debug logs The following diagram displays the process to manage the D2D Server: Perform the following tasks to manage the D2D Server settings: Review the Prerequisites to Manage the D2D Server (see page 115) Configure the Job History and Activity Log Retention Settings (see page 116) Configure the Debug Log Retention Settings (see page 116) Review the Prerequisites to Manage the D2D Server Consider the following prerequisites before you manage the D2D Server: You have the root login credentials to the D2D Server. Chapter 4: Using CA ARCserve D2D for Linux 115

116 How to Manage the D2D Server Settings Configure the Job History and Activity Log Retention Settings You can configure the duration to retain the Job History and Activity Logs. If you want to retain the Activity Logs and Job History for a longer duration, you have to configure the server file. Follow these steps: 1. Log into the D2D Server as a root user. 2. Open the server.cfg file: /opt/ca/d2dserver/configfiles/server.cfg Note: If the file is not present, create the server.cfg file. 3. Add the following line in the server.cfg file: job_history_activity_log_keep_day=<number of days> Example: To retain the Job History and Activity Log for 30 days, enter the following line: job_history_activity_log_keep_day=30 Note: By default, the Job History and Activity Logs are retained for 90 days. The Job History and Activity Log is retained for the specified time. Configure the Debug Log Retention Settings You can configure the duration to retain the debug logs. If you want to retain the debug logs for a longer duration, you have to configure the server file. Follow these steps: 1. Log into the D2D Server as a root user. 2. Open the server.cfg file: /opt/ca/d2dserver/configfiles/server.cfg Note: If the file is not present, create the server.cfg file. 3. Add the following line in the server.cfg file: d2d_log_keep_day =<number of days> Example: To retain the debug log for 30 days, enter the following line: d2d_log_keep_day =30 Note: By default, the Debug Logs are retained for 90 days. The CA ARCserve D2D for Linux debug log is retained for the specified period. 116 User Guide

117 How to Manage the D2D Server from the Command Line How to Manage the D2D Server from the Command Line The D2D Server performs all the processing tasks of CA ARCserve D2D for Linux. For smooth functioning of CA ARCserve D2D for Linux, you must ensure that the D2D Server is running all the time. You can log into the D2D Server and manage the server using some commands. For example, if you want to access the web interface of CA ARCserve D2D for Linux, you must ensure that the web server is running. You can verify the running status of the web server from the D2D Server and ensure proper functioning of CA ARCserve D2D for Linux. The following diagram displays the process to manage the D2D Server from the command line: Chapter 4: Using CA ARCserve D2D for Linux 117

118 How to Manage the D2D Server from the Command Line Perform the following tasks to manage the D2D Server: Review the D2D Server Prerequisites (see page 118) Start, Stop, or Release the D2D Server (see page 118) Change the Port Number of the D2D Server (see page 120) Change the D2D Server Protocol (see page 121) Avoid the SSL Certificate Error While Opening CA ARCserve D2D for Linux (see page 122) Configure the UI Timeout Duration (see page 123) Configure the System Settings When the Host Name or IP Address is Changed (see page 124) Review the D2D Server Prerequisites Consider the following prerequisites before you manage the D2D Server: You have the root login credentials to the D2D Server. Start, Stop, or Release the D2D Server Manage your D2D Server to know the running status of the D2D Server. You can verify whether your D2D Server has stopped or is still running and then manage the server accordingly. CA ARCserve D2D for Linux supports the following command-line functions: Start the D2D Server Stop the D2D Server Release the D2D Server Follow these steps: 1. Navigate to the bin folder using the following command: # cd/opt/ca/d2dserver/bin You gain access to the bin folder. 118 User Guide

119 How to Manage the D2D Server from the Command Line 2. From the bin folder, run the following commands depending on the task that you want to perform on the server: Note: If any command is not successful, an error message is displayed explaining the reason. #./d2dserver start Starts the D2D Server. If you are successful, a message is displayed informing you that the server has started. #./d2dserver stop Stops the D2D server. If you are successful, a message is displayed informing you that the server has stopped. #./d2dserver restart Restarts the D2D server. If you are successful, a message is displayed informing you that the server has restarted. #./d2dserver status Displays the status of the D2D server. # /opt/ca/d2dserver/bin/d2dreg --release Releases the remaining D2D Servers that are managed by the main server. For example, if D2D Server A manages two other servers, D2D Server B and D2D Server C, then when you uninstall D2D Server A you cannot access D2D Server B and D2D Server C. You can release D2D Server B and D2D Server C using this script and can access those servers. The D2D Server is successfully managed from the command line. Chapter 4: Using CA ARCserve D2D for Linux 119

120 How to Manage the D2D Server from the Command Line Change the Port Number of the D2D Server CA ARCserve D2D for Linux uses port 8014 by default. If the 8014 port number is used by other application, CA ARCserve D2D for Linux will not function properly. In such situations, you must change the CA ARCserve D2D for Linux default port number to a different port number. Follow these steps: 1. Open the server.xml file from the following location: /opt/ca/d2dserver/tomcat/conf/server.xml 2. Search the following string in the file and change the port number 8014 to your desired port number: <Connector port="8014" protocol="http/1.1" SSLEnabled="true" maxthreads="150" scheme="https" secure="true" clientauth="false" sslprotocol="tls" keystorefile="${catalina.home}/conf/server.keystore" keystorepass="linuxd2d"/> 3. Run the following command to restart the D2D Server: /opt/ca/d2dserver/bin/d2dserver restart The default port number is changed to your desired port number. 120 User Guide

121 How to Manage the D2D Server from the Command Line Change the D2D Server Protocol CA ARCserve D2D for Linux is installed with the https protocol. You can change your protocol if you do not want to transfer data with encryption. We recommend you to use https because all the data transferred with https are encrypted. The data transferred with http are plaintext. Follow these steps: 1. Open the server.xml file from the following location: /opt/ca/d2dserver/tomcat/conf/server.xml 2. Search the following string in the server.xml file: <!--<Connector connectiontimeout="180000" port="8014" protocol="http/1.1"/>--> 3. Remove the <!-- and --> string characters as shown in the following example: Example: The following string is the desired output after removing the <!-- and --> string characters: <Connector connectiontimeout="180000" port="8014" protocol="http/1.1"/> 4. Search the following string in the server.xml file: <Connector port="8014" protocol="http/1.1" SSLEnabled="true" maxthreads="150" scheme="https" secure="true" clientauth="false" sslprotocol="tls" keystorefile="${catalina.home}/conf/server.keystore" keystorepass="linuxd2d"/> 5. Add the <!-- and --> string characters as shown in the following example: Example: The following string is the desired output after adding the <!-- and --> string characters: <!--<Connector port="8014" protocol="http/1.1" SSLEnabled="true" maxthreads="150" scheme="https" secure="true" clientauth="false" sslprotocol="tls" keystorefile="${catalina.home}/conf/server.keystore" keystorepass="linuxd2d"/>--> 6. Run the following command to restart the D2D Server: /opt/ca/d2dserver/bin/d2dserver restart The D2D Server protocol is changed from https to http. Chapter 4: Using CA ARCserve D2D for Linux 121

122 How to Manage the D2D Server from the Command Line Avoid the SSL Certificate Error While Opening CA ARCserve D2D for Linux Remove the custom SSL certificate so that you do not get the certificate error when you open the CA ARCserve D2D for Linux web interface. Once you configure the SSL certificate, you do not get the certificate error again. Follow these steps: Use the certificate generated by CA ARCserve D2D for Linux for the Firefox browser. 1. Open CA ARCserve D2D for Linux in Firefox. 2. Click I Understand the Risks and then click Add Exception. The Add Security Exception dialog opens. 3. Click View to review the certificate. The Certificate Viewer dialog opens. 4. Review the certificate details and click Close. You do not have to perform any action on the Certificate Viewer dialog. 5. On the Add Security Exception dialog, select the Permanently store this exception check box. 6. Click Confirm Security Exception. The certificate is added. Use the certificate generated by CA ARCserve D2D for Linux for the Internet Explorer (IE) or the Chrome browser. 1. Open CA ARCserve D2D for Linux in IE or Chrome. 2. Click Continue to this website (not recommended). The address bar is displayed in red and a Certificate Error message is displayed in the security status bar. 3. Click Certificate Error. The Untrusted Certificate dialog appears. 4. Click View certificates. The Certificate dialog opens. 5. On the General tab, click Install Certificate. The Certificate Import Wizard opens. 6. Click Next. 122 User Guide

123 How to Manage the D2D Server from the Command Line 7. On the Certificate Store page, select Place all certificates in the following store and then click Browse. The Select Certificate Store dialog opens. 8. Select Trusted Root Certification Authorities and click OK. The Certificate Store page of the Certificate Import Wizard opens. 9. Click Next and then click Finish. The Security Warning dialog opens. 10. Click Yes. 11. Restart IE or Chrome. The certificate is added. Note: After you add the certificate, the Chrome browser still shows the error icon for the SSL certificate in the address bar. This is a reminder that the certificate is not identified by the certificate authorities but the certificate is trusted by Chrome and all the data transferred in the network is encrypted. Perform the following steps to use a signed certificate: 1. Use the certificate signed by a certificate authority. 2. Import the signed certificate using the keytool command. The certificate is added. The ssl certificate error is resolved. Configure the UI Timeout Duration You can configure the webserver configuration file so that you are logged out of the UI when the UI is inactive. After you configure the file, if you do not perform any activity on the UI for the specified duration, you are logged out automatically. You can log in again and resume your activity. Follow these steps: 1. Log into the D2D Server as a root user. 2. Open the server.cfg file from the following location: /opt/ca/d2dserver/configfiles/server.cfg Note: If the server.cfg file is not present, create the file. Chapter 4: Using CA ARCserve D2D for Linux 123

124 How to Manage the D2D Server from the Command Line 3. Add the following line in the server.cfg file: ui_timeout=<value> The value must be in minutes. The maximum limit for the UI timeout value is 60. Example: ui_timeout=40 The example indicates that if the D2D Server does not detect any activity on the UI for 40 minutes, it logs out the user. 4. Refresh the web browser to implement the changes. The duration for the UI timeout is configured. Configure the System Settings When the Host Name or IP Address is Changed If you change the host name or the IP address of the D2D Server or the client node (backup node), you have to configure the system settings. You configure the system settings to help ensure the following items: To ensure that the communication between the central server and the member server is good. A member server is a D2D Server that you manage from the central D2D Server. To manage the member server from the central server UI, you must add the member server in the central server UI. To ensure that after you change the host name or IP address of the client node you can back up the client node without any error 124 User Guide

125 How to Manage the D2D Server from the Command Line When the Host Name of the Central D2D Server is Changed When you change the host name of the central D2D Server, you must configure the server so that you can use CA ARCserve D2D for Linux without any problem. Follow these steps: 1. Log into the central D2D Server as a root user. 2. To update the host name and the license information, enter the following commands: source /opt/ca/d2dserver/bin/setenv /opt/ca/d2dserver/sbin/sqlite3 /opt/ca/d2dserver/data/arcservelinuxd2d.db "update D2DServer set Name= New_Hostname where IsLocal=1" /opt/ca/d2dserver/sbin/sqlite3 /opt/ca/d2dserver/data/license.db "update LicensedMachine set ServerName = New_Hostname where ServerName = Old_Hostname " 3. Rename the keystore file: mv /opt/ca/d2dserver/tomcat/conf/server.keystore /opt/ca/d2dserver/tomcat/conf/server.keystore.old 4. Create a keystore file using the following keytool Java command. keytool -genkey -alias tomcat -keyalg DSA -keypass <YOUR_VALUE> -storepass <YOUR_VALUE> -keystore /opt/ca/d2dserver/tomcat/conf/server.keystore -validity dname "CN=<New Hostname>" Note: Update the YOUR_VALUE field according to your requirement. Typically, the value is your password. Example: keytool -genkey -alias tomcat -keyalg DSA -keypass LinuxD2D -storepass LinuxD2D -keystore /opt/ca/d2dserver/tomcat/conf/server.keystore -validity dname "CN=New Hostname" 5. Open the server.xml TOMCAT configuration file and change the keystorefile value and the keystorepass value according to the keystore file that you just created. <Connector port="8014" protocol="http/1.1" SSLEnabled="true" maxthreads="150" scheme="https" secure="true" clientauth="false" sslprotocol="tls" keystorefile="${catalina.home}/conf/server.keystore" keystorepass="your_value"/> Example: <Connector port="8014" protocol="http/1.1" SSLEnabled="true" maxthreads="150" scheme="https" secure="true" clientauth="false" sslprotocol="tls" keystorefile="${catalina.home}/conf/server.keystore" keystorepass="linuxd2d"/> 6. Restart the central D2D Server. /opt/ca/d2dserver/bin/d2dserver restart The central D2D Server is configured. When the Host Name or IP Address of the Member Server is Changed Chapter 4: Using CA ARCserve D2D for Linux 125

126 How to Manage the D2D Server from the Command Line When you change the host name or the IP address of the member D2D Server, configure the member server to manage it from the central server. If you do not configure the member server, then you will have an error when you try to manage it from the central server. A member server is a server that you have added to the central D2D Server web interface. Follow these steps: 1. Log into the member D2D Server as a root user: 2. To change the host name, enter the following commands: source /opt/ca/d2dserver/bin/setenv /opt/ca/d2dserver/sbin/sqlite3 /opt/ca/d2dserver/data/arcservelinuxd2d.db "update D2DServer set Name= New_Hostname where IsLocal=1" 3. Rename the keystore file: mv /opt/ca/d2dserver/tomcat/conf/server.keystore /opt/ca/d2dserver/tomcat/conf/server.keystore.old 4. Create a keystore file using the following keytool Java command. keytool -genkey -alias tomcat -keyalg DSA -keypass <YOUR_VALUE> -storepass <YOUR_VALUE> -keystore /opt/ca/d2dserver/tomcat/conf/server.keystore -validity dname "CN=<New Hostname>" Note: Update the YOUR_VALUE field according to your requirement. Typically, the value is your password. Example: keytool -genkey -alias tomcat -keyalg DSA -keypass LinuxD2D -storepass LinuxD2D -keystore /opt/ca/d2dserver/tomcat/conf/server.keystore -validity dname "CN=New Hostname" 5. Open the server.xml TOMCAT configuration file and change the keystorefile value and the keystorepass value according to the keystore file. <Connector port="8014" protocol="http/1.1" SSLEnabled="true" maxthreads="150" scheme="https" secure="true" clientauth="false" sslprotocol="tls" keystorefile="${catalina.home}/conf/server.keystore" keystorepass="your_value"/> Example: <Connector port="8014" protocol="http/1.1" SSLEnabled="true" maxthreads="150" scheme="https" secure="true" clientauth="false" sslprotocol="tls" keystorefile="${catalina.home}/conf/server.keystore" keystorepass="linuxd2d"/> 6. Restart the member D2D Server. /opt/ca/d2dserver/bin/d2dserver restart 7. Log into the central CA ARCserve D2D for Linux web interface. 8. From the D2D Servers pane, select the old host name server. 9. From the D2D Server menu, click Delete. 10. In the Delete dialog, click OK. The old host name server is deleted. 126 User Guide

127 How to Manage the D2D Server from the Command Line 11. From the D2D Server menu, click Add. The Add Server dialog opens. 12. Enter the new host name details in the dialog and click OK. The Add Server dialog closes and the member server with the new host name is added to the UI. 13. Log into the central D2D Server that manages the member D2D Server. 14. To update the license information, enter the following commands: source /opt/ca/d2dserver/bin/setenv /opt/ca/d2dserver/sbin/sqlite3 /opt/ca/d2dserver/data/license.db "update LicensedMachine set ServerName = New_Hostname where ServerName = Old_Hostname " The member D2D Server is configured. When the Host Name or the IP Address of the Client Node is Changed If you change the host name or the IP address of a node, you can configure the host name or the IP address in the system settings so that you can back up that node without any error. Follow these steps: 1. Log into the backup destination. 2. Locate the folder named "Old_Hostname" in the backup destination of this node and rename it to "New_Hostname". For example, consider the old host name for node1 is First_Node. The backup destination for node1 is //Backup_Destination/LinuxBackup. After the first successful backup, a folder named First_Node is created in //Backup_Destination/LinuxBackup. Now, you have modified the old host name to Second_Node. Locate the First_Node folder in //Backup_Destination/LinuxBackup and rename the folder to Second_Node. 3. Log into the D2D server as a root user. 4. To update the host name, enter the following commands: source /opt/ca/d2dserver/bin/setenv /opt/ca/d2dserver/bin/d2drp --storagepath=backup Destination --node=new_hostname /opt/ca/d2dserver/sbin/sqlite3 /opt/ca/d2dserver/data/arcservelinuxd2d.db "update JobQueue set TargetName= New_Hostname where JobType in (1,3,4,5) and TargetName= Old_Hostname " /opt/ca/d2dserver/sbin/sqlite3 /opt/ca/d2dserver/data/arcservelinuxd2d.db "update TargetMachine set Name= New_Hostname where Name= Old_Hostname " Note: If you use NFS share or CIFS share as the backup destination, you should mount it to Local share. Example: If your mount point is /mnt/backup_destination. Chapter 4: Using CA ARCserve D2D for Linux 127

128 How to Manage the Non-Root Users /opt/ca/d2dserver/bin/d2drp --storagepath=<mount point> --node=new_hostname Note: If you use Local share, then the command is: /opt/ca/d2dserver/bin/d2drp --storagepath=<local path> --node=new_hostname 5. Log into the central D2D Server as a root user. 6. To update the license information, enter the following command: /opt/ca/d2dserver/sbin/sqlite3 /opt/ca/d2dserver/data/license.db "update LicensedMachine set MachineName = New_Hostname where MachineName = Old_Hostname " The host name is configured to perform a backup without any error. How to Manage the Non-Root Users You can manage all your non-root users that access CA ARCserve D2D for Linux and can define the permissions for the non-root users to limit the access level for CA ARCserve D2D for Linux. You can manage the non-root users by modifying the webserver configuration file (server.cfg file). The following diagram displays the process to manage the non-root users: Perform these tasks to manage the non-root users: Grant Login Permissions to the Non-Root Users (see page 129) Display the Default User in the Login Dialog (see page 129) Enable the Non-Root Users to Add Nodes (see page 130) 128 User Guide

129 How to Manage the Non-Root Users Grant Login Permissions to the Non-Root Users A root user can grant permissions to non-root users to log into the D2D Server. If non-root users get the permission to log into the D2D Server, they can use CA ARCserve D2D for Linux to perform all the data protection and recovery tasks. Note: To grant login permissions to the non-root users, connect to the D2D Server as a root user using the SSH connection. Follow these steps: 1. Log into the D2D Server as a root user. 2. Open the server.cfg file from the following location: /opt/ca/d2dserver/configfiles/server.cfg Note: If the server.cfg file is not present, create the file. 3. Add the following code to the server.cfg file: allow_login_users=user1 user2 Note: Use blank spaces to distinguish multiple users. The code is added. 4. Verify the non-root user can connect to the D2D Server using the SSH connection. The login permission is granted to the non-users to access the D2D Server. Display the Default User in the Login Dialog You can manage your users and change the name that is displayed in the login dialog of CA ARCserve D2D for Linux. The default user that is displayed in the login dialog is root. If you do not have root users accessing the product, you can change the default name to any non-root user name. You achieve this by modifying the server.cfg that is located in the D2D Server. Note: To modify the server.cfg file, connect to the D2D Server as a root user using the SSH connection. Follow these steps: 1. Log into the D2D Server as a root user. 2. Open the server.cfg file from the following location: /opt/ca/d2dserver/configfiles/server.cfg Note: If the server.cfg file is not present, create the file. Chapter 4: Using CA ARCserve D2D for Linux 129

130 How to Manage the Non-Root Users 3. Add the following code to the server.cfg file: show_default_user_when_login=false true 4. Open a web browser and enter the URL of CA ARCserve D2D for Linux. If you have added the allow_login_users command, the login dialog displays the first user added in the allow_login_users command. If you have not added the allow_login_users command, the login dialog displays the root user. The default user is displayed in the login dialog of CA ARCserve D2D for Linux. Enable the Non-Root Users to Add Nodes If the SSH Server disables the root user login, you can enable the non-root user login to add any nodes. When you enable the non-root user login credentials, the Add Node dialog changes and displays the Root Credential option. Note: If you change the client node credential from a root user to a non-root user, it is recommended that you clear the /tmp folder on the client node before you run the backup job. 130 User Guide

131 How to Manage the Non-Root Users Follow these steps: 1. Log into the D2D Server as a root user. 2. Open the server.cfg file from the following location: /opt/ca/d2dserver/configfiles/server.cfg Note: If the server.cfg file is not present, create the file. 3. Add the following line in the server.cfg file to enable the non-root user function: enable_non_root_user=true The non-root user function is enabled. 4. (Optional) Add the following line in the server.cfg file to disable the non-root user function: enable_non_root_user=false The non-root user function is disabled. The non-root users are enabled to add nodes. Note: If you change the password for the root user or the non-root user and then you modify the node, you must reenter both the root password and the non-root password in their respective fields in the Modify Node dialog. Note: The non-root users cannot manage nodes using the d2dnode command from the command line. Chapter 4: Using CA ARCserve D2D for Linux 131

132

133 Chapter 5: Troubleshooting This section contains the following topics: CA ARCserve D2D for Linux Fails to Install on Supported Servers (see page 134) CA ARCserve D2D for Linux Displays an Operation Timeout Error (see page 135) All Scheduled Jobs Fail When the System Time Is Changed to an Already Passed Value (see page 136) CA ARCserve D2D for Linux Fails to Mount Linux Software RAID Devices (see page 136) A Paravirtual Machine (PVM) Displays a Black Screen on the Virtual Network Computing (VNC) Client Window When Booted Using a Live CD (see page 137) How to Adjust the Disk Boot Sequence After a BMR Job on an Oracle VM Server (see page 138) The Backup Job Fails to Collect the BMR-related Information or the BMR Job Fails to Create a Disk Layout (see page 140) Backup Read Throughput is Less When the Backup Node is RHEL, CentOS, or Oracle Linux 5.x On a Xen- based PVM (see page 141) Backup Read Throughput is Less When an NFS v3 Share is Used as a Backup Destination (see page 142) Chapter 5: Troubleshooting 133

134 How to Manage the Non-Root Users CA ARCserve D2D for Linux Fails to Install on Supported Servers Valid on CentOS 6.x and Red Hat Enterprise Linux (RHEL) 6.x Symptom When I install CA ARCserve D2D for Linux, the installation fails with the following Linux warning messages: mkisofs mount.nfs mount.cifs Create Live CD image Mount NFS share file system as backup destination and restore source Mount CIFS share file system as backup destination and restore source The following processes must be running Inactive Processes Affected Function rpc.statd The NFS file locking function does not work Solution At the beginning of the installation, CA ARCserve D2D for Linux verifies if the Linux OS meets the requirement of the D2D Server. If the Linux OS does not meet the minimum requirements, CA ARCserve D2D for Linux displays a warning message to inform you of this problem. The message includes the list of all the packages that are required for D2D Server. To troubleshoot this CA ARCserve D2D for Linux installation problem, perform the following steps: 1. Install the following packages using the yum command: genisoimage nfs-utils cifs-utils 2. Run the following two commands: service rpcbind start service nfs start 3. Run the following command to verify if rpc.statd is running: ps Cef grep rpc.statd 4. Reinstall CA ARCserve D2D for Linux. CA ARCserve D2D for Linux is successfully installed. 134 User Guide

135 How to Manage the Non-Root Users CA ARCserve D2D for Linux Displays an Operation Timeout Error Valid on CentOS 6.x and Red Hat Enterprise Linux (RHEL) 6.x Symptom I get the following error message: The operation has timed out. The maximum amount of time to complete the operation has been exceeded. Please try again later. I get this message frequently when I perform a file-level restore and browse recovery points that have more than 1000 incremental recovery points. Solution The default timeout value is 3 minutes. You can troubleshoot the problem by increasing the timeout value. Perform the following steps to increase the timeout value: 1. Log into the D2D Server as a root-user. 2. Add the following system environment variable: D2D_WEBSVR_TIMEOUT The value for the environment variable is a number. The number must be greater than 3. The unit for the value is minute. 3. Restart the D2D server. The timeout value is successfully increased. Chapter 5: Troubleshooting 135

136 How to Manage the Non-Root Users All Scheduled Jobs Fail When the System Time Is Changed to an Already Passed Value Valid on CentOS 6.x and Red Hat Enterprise Linux (RHEL) 6.x Symptom When I change the system time to an already passed value, all my scheduled jobs are affected. The scheduled jobs fail to run after I change the system time to a previous time. Solution After you change the system time, restart the D2D service. Follow these steps to restart the D2D service: 1. Log into the D2D Server as a root user. 2. Navigate to the bin folder /opt/ca/d2dserver/bin/ 3. Restart the D2D server using the following command: d2dserver restart The D2D Server restarts. All the scheduled jobs run per schedule. CA ARCserve D2D for Linux Fails to Mount Linux Software RAID Devices Valid on CentOS 6.x and Red Hat Enterprise Linux (RHEL) 6.x Symptom Sometimes the BMR process fails to mount Linux Software RAID devices after the target machine restarts. Solution To solve this problem, restart your target machine. 136 User Guide

137 How to Manage the Non-Root Users A Paravirtual Machine (PVM) Displays a Black Screen on the Virtual Network Computing (VNC) Client Window When Booted Using a Live CD Valid on PVM on Oracle VM Server Symptom On an Oracle VM Server, when I boot the Paravirtual Machine (PVM) using a Live CD, I see a black screen on the VNC client window. Solution To resolve this issue, log into the Live CD console from the backend. Follow these steps: 1. Start the VM using a Live CD. 2. Make a note of the VM s ID that you can access from the Oracle VM Manager. 3. Log into the Oracle VM Server on which the VM is running using the Secure Shell (ssh). 4. Run the xm console $ID command as shown in the following diagram: 5. (Optional) Press Enter when prompted to confirm the operation. 6. The console of the Xen PVM booted with the Live CD opens. 7. Configure the network. 8. Exit the console by pressing ctrl+] or ctrl+5. The issue is resolved. Chapter 5: Troubleshooting 137

138 How to Manage the Non-Root Users How to Adjust the Disk Boot Sequence After a BMR Job on an Oracle VM Server Valid on Oracle VM Server Symptom When I perform a BMR job to a target node on an Oracle VM Server, I get the following warning message in the Activity log: The boot volume is restored to disk /dev/xxx. Please adjust the disk boot sequence in the BIOS to boot from /dev/xxx. Solution To avoid this problem, swap the disk boot sequence of the BMR target node. Follow these steps: 1. Edit the BMR target node from the Oracle VM Manager and click the Disks tab. 2. Select Slot N disk as the Boot Disk. 3. Make a note of the disk name and the slot number N. You will use the disk name and the slot number in the later steps. 4. From the Actions column, select the Virtual Machine Disk button. 5. Select the Leave Slot Empty option and click Save. 138 User Guide

CA arcserve Unified Data Protection Agent for Linux User Guide Version 5.0 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as

Arcserve Unified Data Protection Agent for Linux User Guide Version 5.0 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the

CA ARCserve Backup Patch Manager for Windows User Guide r16 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation

Arcserve Cloud Arcserve Cloud Getting Started Guide This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation ) is

Upgrade Guide CA Application Delivery Analysis 10.1 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation ) is

BrightStor ARCserve Backup for Linux Agent for MySQL Guide r11.5 D01213-2E This documentation and related computer software program (hereinafter referred to as the "Documentation") is for the end user's

CA VPN Client User Guide for Windows 1.0.2.2 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation ) is for your

BrightStor ARCserve Backup for Windows Serverless Backup Option Guide r11.5 D01182-2E This documentation and related computer software program (hereinafter referred to as the "Documentation") is for the

CA Cloud Service Delivery Platform Customer Onboarding Version 01.0.00 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the

CA ARCserve Backup for Windows Agent for Microsoft SharePoint Server Guide r15 This documentation and any related computer software help programs (hereinafter referred to as the "Documentation") are for

CA Spectrum and CA Service Desk Integration Guide CA Spectrum 9.4 / CA Service Desk r12 and later This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter

CA Nimsoft Service Desk Single Sign-On Configuration Guide 6.2.6 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation

Unicenter NSM Integration for BMC Remedy User Guide This documentation and any related computer software help programs (hereinafter referred to as the Documentation ) is for the end user s informational

CA Nimsoft Monitor Probe Guide for Active Directory Response ad_response v1.6 series Legal Notices This online help system (the "System") is for your informational purposes only and is subject to change

CA Spectrum Microsoft MOM and SCOM Integration Guide Release 9.4 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation

CA Nimsoft Monitor Probe Guide for E2E Application Response Monitoring e2e_appmon v2.2 series Copyright Notice This online help system (the "System") is for your informational purposes only and is subject

CA Cloud Service Delivery Platform Service Level Manager Version 01.0.00 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the

CA APM Cloud Monitor Scripting Guide Release 8.2 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation ) is for

CA Performance Center Managed Service Provider Guide Version Release 2.3.00 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as

BrightStor ARCserve Backup for Windows Tape RAID Option Guide r11.5 D01183-1E This documentation and related computer software program (hereinafter referred to as the "Documentation") is for the end user's

CA Technologies SiteMinder Agent for Microsoft SharePoint r12.0 Second Edition This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to

CA Nimsoft Monitor Probe Guide for Performance Collector perfmon v1.5 series CA Nimsoft Monitor Copyright Notice This online help system (the "System") is for your informational purposes only and is subject

CA SiteMinder Web Agent Installation Guide for IIS r12.5 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation

CA ERwin Data Modeler Installation Guide Version 9.5.0 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation )

CA XOsoft Replication for Windows Microsoft SQL Server Operation Guide r12.5 This documentation and any related computer software help programs (hereinafter referred to as the Documentation ) is for the

DevTest Solutions Local License Server Version 2.1.2 This Documentation, which includes embedded help systems and electronically distributed materials (hereinafter referred to as the Documentation ), is

CA Nimsoft Monitor Probe Guide for Cloud Monitoring Gateway cuegtw v1.0 series Legal Notices This online help system (the "System") is for your informational purposes only and is subject to change or withdrawal

BrightStor ARCserve Backup for Windows Agent for Microsoft SQL Server r11.5 D01173-2E This documentation and related computer software program (hereinafter referred to as the "Documentation") is for the

(CAT-360) Version 1.1 - PROPRIETARY AND CONFIDENTIAL INFORMATION - These educational materials (hereinafter referred to as the Materials ) are for the end user s educational purposes only and are subject

CA Performance Center Single Sign-On User Guide 2.4 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation ) is

CA Cloud Service Delivery Platform Business Relationship Manager Version 01.0.00 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred

CA Nimsoft Monitor Probe Guide for CA ServiceDesk Gateway casdgtw v2.4 series Copyright Notice This online help system (the "System") is for your informational purposes only and is subject to change or

User Guide CTERA Agent for Linux September 2013 Version 4.0 Copyright 2009-2013 CTERA Networks Ltd. All rights reserved. No part of this document may be reproduced in any form or by any means without written

For Mac OS X Software version 4.1.7 Version 2.2 Disclaimer This document is compiled with the greatest possible care. However, errors might have been introduced caused by human mistakes or by other means.

CA SiteMinder Directory Configuration - OpenLDAP r6.0 SP6 This documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation

etrust Audit Using the Recorder for Check Point FireWall-1 1.5 This documentation and related computer software program (hereinafter referred to as the Documentation ) is for the end user s informational

Dell Statistica 13.0 2015 Dell Inc. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright. The software described in this guide is furnished under a software license or

CA Nimsoft Monitor Probe Guide for iseries System Statistics Monitoring sysstat v1.1 series Legal Notices This online help system (the "System") is for your informational purposes only and is subject to

CA Workload Automation Agent for Databases Implementation Guide r11.3.4 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the

CA Unified Infrastructure Management Probe Guide for IIS Server Monitoring iis v1.7 series Copyright Notice This online help system (the "System") is for your informational purposes only and is subject

CA Performance Center Release Notes Release 2.3.3 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation ) is for

CA Change Manager Enterprise Workbench r12 Database Support for Microsoft SQL Server 2008 This documentation and any related computer software help programs (hereinafter referred to as the "Documentation")

CA Workload Automation Agent for Remote Execution Release Notes r11.3.1 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the

User Manual Onsight Management Suite Version 5.1 Another Innovation by Librestream Doc #: 400075-06 May 2012 Information in this document is subject to change without notice. Reproduction in any manner

Arcserve Backup for Windows Agent for Microsoft SharePoint Server Guide r16 Pre-release Document, only for reference This Documentation, which includes embedded help systems and electronically distributed

CA Nimsoft Monitor Probe Guide for DNS Response Monitoring dns_response v1.6 series Legal Notices This online help system (the "System") is for your informational purposes only and is subject to change

CA ARCserve Backup UNIX and Linux Data Mover Guide r16 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation )

CA Nimsoft Monitor Probe Guide for Java Virtual Machine Monitoring jvm_monitor v1.4 series Legal Notices This online help system (the "System") is for your informational purposes only and is subject to

Interworks Interworks Cloud Platform Installation Guide Published: March, 2014 This document contains information proprietary to Interworks and its receipt or possession does not convey any rights to reproduce,

CA Process Automation Glossary Service Pack 04.0.01 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation ) is

CA Nimsoft Monitor Probe Guide for Apache HTTP Server Monitoring apache v1.5 series Legal Notices This online help system (the "System") is for your informational purposes only and is subject to change

CA ARCserve Backup for Windows Agent for Sybase Guide r16 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation

For Linux distributions Software version 4.1.7 Version 2.0 Disclaimer This document is compiled with the greatest possible care. However, errors might have been introduced caused by human mistakes or by

CA ARCserve Replication and High Availability for Windows Microsoft SQL Server Operation Guide r15 This documentation and any related computer software help programs (hereinafter referred to as the "Documentation")

CA ehealth Setting Up Live Monitoring of Your Service Availability Tests r6.1 This documentation and any related computer software help programs (hereinafter referred to as the Documentation ) is for the

IBM WebSphere Application Server Version 7.0 Centralized Installation Manager for IBM WebSphere Application Server Network Deployment Version 7.0 Note: Before using this information, be sure to read the

User Guide CTERA Agent for Mac OS-X September 2013 Version 4.0 Copyright 2009-2013 CTERA Networks Ltd. All rights reserved. No part of this document may be reproduced in any form or by any means without

CA ARCserve Backup for Windows Agent for Sybase Guide r16.5 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation

For Linux distributions Software version 4.1.7 Version 2.0 Disclaimer This document is compiled with the greatest possible care. However, errors might have been introduced caused by human mistakes or by

Web Remote Access User Guide Notice to Users 2005 2Wire, Inc. All rights reserved. This manual in whole or in part, may not be reproduced, translated, or reduced to any machine-readable form without prior

CA Cloud Storage for System z Release Notes Release 1.1.00 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation

Veeam Backup Enterprise Manager Version 7.0 User Guide August, 2013 2013 Veeam Software. All rights reserved. All trademarks are the property of their respective owners. No part of this publication may

Communications Release 04.1.00 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation ) is for your informational

BrightStor ARCserve Backup for UNIX Disaster Recovery Option Guide r11.5 D01200-1E This documentation and related computer software program (hereinafter referred to as the "Documentation") is for the end

CA Unified Infrastructure Management hyperv Release Notes All series Copyright Notice This online help system (the "System") is for your informational purposes only and is subject to change or withdrawal