Backup - Unix and Macintosh File Systems

Topics | How To | Related Topics


Overview

Supported Backup Types

Unix and Macintosh File System Backup Jobs

Back up VMware Virtual Machines

Maximum Filename Length for Unix File System iDataAgent Backups

Handling Files with non-ASCII Characters

Backing up Symbolic Links

Backing up Raw Devices

QSnap Enabled Backups

Backup Considerations for This Agent

Filter File Systems for Backup

Advanced Backup Options


Overview

Plan your backup jobs for this agent by reviewing the following information:


Supported Backup Types

This agent supports the following backup types:


Unix and Macintosh File System Backup Jobs

These agents have the following unique functionality.

Back up NFS-Mounted File Systems

If you keep critical data on an NFS-mounted file system, and if the computer on which the file system resides is not itself backed up, you can secure the mounted file system data by including it in the contents of a client computer on which the file system is NFS-mounted.

You must explicitly include an NFS-mounted file system in the contents of one of the subclients on the client computer as described in the following procedure.

If the NFS-mounted file system becomes unavailable before or during a backup/restore operation, a specific condition may result based on the status of the file system.  If the file system is soft-mounted, backup operations will fail.  If the file system is auto-mounted, backup operations may fail.  If the file system is not available during a restore, data may be restored to the mount point directory.

Backups hang if a hard NFS mount becomes stale. Therefore, to allow backups to complete, you must clear any stale NFS mounts.

Locked/Open Files

There are two types of file locks used by the Unix file system: advisory locks and mandatory locks. Files with an advisory lock are available to multiple users and applications. Files with mandatory locks cannot be used by any other user or application other than the current user. Files with a mandatory lock are skipped during the backup process and their file names and paths are logged to the Backup Job History log. You can use the CommCell Console to examine this log to determine if any files were skipped. The system automatically attempts to obtain any skipped files in the next backup.

Note that this does not apply to AIX clients and that the Macintosh File System supports only advisory locks.

It is recommended that you skip-detect locked files and continue with the backup whenever a Unix File System iDataAgent is backing up files on an NFS server that fails to get locks on these files. To do this, you must create and use the SSKIPLOCKF registry key.

Effect of Data Types on Backups by Macintosh/Unix File System iDataAgents

Backup jobs may have certain restrictions related to the type of file the agent is backing up.

See Effect of Data Types on Backups by Unix File System iDataAgents and Effect of Data Types on Backups by Macintosh File System iDataAgent for more information.

Using Classic File Scan or Data Classification Enabler for Backups

When configuring Unix File System backup sets, Classic File Scan is selected as the default method for scanning files to determine which files have changed and/or have been backed up. For all Unix File System iDataAgents, you can select Use Data Classification for the same purpose if the Data Classification Enabler is installed on the client. The preferred option is the Data Classification Enabler because it is the fastest scan method.

Classic File Scan is always used when files or file level wildcards are used to define subclient content. See Subclient Content Considerations for more information.

The options you set for classic file scan will be used whenever classic file scan is called (these appear grayed out unless classic file scan is selected). For example, you can select classic file scan, pick your options, and then Data Classification. In this case the Data Classification Enabler will be used, but your selected options for classic file scan will be saved and used whenever the classic file scan is called.

See Use Classic File Scan or Data Classification Enabler for step-by-step instructions on changing your selection.

Preserving the File Access Time

This option allows you to prevent the file access time from being changed for Windows/Unix/Macintosh File System iDataAgents as a result of running data protection operations on the client. When this option is selected, the file access time will be preserved. See Preserve the File Access Time for step-by-step instructions.


Back up VMware Virtual Machines

The data that resides on the virtual machines for VMware ESX Server can be backed up using an appropriate iDataAgent, in a variety of ways. This data can be Unix data as well as data for different platforms (e.g., Windows, NetWare, etc.) Backing up VMware virtual machines requires that the appropriate iDataAgent(s) be installed and that you create and apply the Pre- and Post-Backup scripts needed to snapshot the virtual machines. Also, you can use Command Line Interface to perform backups.

For step-by-step procedures for backing up VMware ESX Server 2.5.x Virtual Machines, see Back up a VMware ESX Server 2.5.x Virtual Machine.

For more information about backing up VMware ESX Server 3.x Virtual Machines, see Back up a VMware ESX Server 3.x Virtual Machine.


Maximum Filename Length for Unix File System iDataAgent Backups

The names of files (including the path) to be backed up by any Unix File System iDataAgent except the AIX File System iDataAgent cannot contain more than 1024 characters. For the AIX File System iDataAgent, the names of such files (including the path) cannot contain more than 1023 characters.


Handling Files with non-ASCII Characters

Files containing "international" (non-ASCII) characters can be backed up and restored as long as the appropriate locale is set correctly on the Unix/Linux server. "International" characters are those characters that fall outside of the ASCII character set (i.e., the character code for each such character is higher than 127). Since most Unix systems do not set a locale by default, you should configure the locale to ensure that the affected file names will be stored properly and that backups and restores will run successfully.

The following sections describe the configuration settings required to back up and restore files with names containing characters outside of the ASCII character set .

Once configured, these settings enable you to:

Configuring the Locale

Usually, UNIX systems have several locales installed. One of them should be selected by environment variable LANG, LC_CTYPE or LC_ALL in the system profile (/etc/profile or similar). The locale defines how to encode non-ASCII file name characters.

For example, if you want to store files with Russian names encoded using the KOI-8R character encoding scheme, set the system locale to ru.koi8-r as follows:

To configure the locale:

Set the Locale

  1. Stop services as described in Stop Services on Unix.
  2. Run the locale -a command to check which locales are installed on the server.
  3. Run the locale command (with no options) to determine which locale is currently set on the server. Output similar to the following will display:

    LANG=en_US.iso885915
    LC_CTYPE="en_US.iso885915"
    LC_NUMERIC="en_US.iso885915"
    LC_TIME="en_US.iso885915"
    LC_COLLATE="en_US.iso885915"
    LC_MONETARY="en_US.iso885915"
    LC_MESSAGES="en_US.iso885915"
    LC_ALL=

    This output shows that the en_US.iso885915 locale for the LANG environment variable is currently set.
  4. To set the locale, simply set (in this case) the LC_CTYPE environment variable to the desired locale. For example:

    LC_CTYPE=ru.koi8-r
  5. Export the locale as follows:

    # export LC_CTYPE

Now, if you run the locale command again, the following output should display:

LANG= en_US.iso885915
LC_CTYPE="ru.koi8-r"
LC_NUMERIC="ru.koi8-r"
LC_TIME="ru.koi8-r"
LC_COLLATE="ru.koi8-r"
LC_MONETARY="ru.koi8-r"
LC_MESSAGES="ru.koi8-r"
LC_ALL=

Determine if the Locale Works

  1. From the same shell or login session, restart the services as described in Start Services on Unix.
  2. Run a small test backup of the affected directory. If an error occurs, go back to Step 4; otherwise, go to the next step.

Include the Locale in the Startup Script

  1. A properly configured system will have the correct locale set in one of the operating system startup scripts (e.g., /etc/profile). If you have reservations about changing the locale for the entire system, you may make the following changes to the Calypso startup scripts by editing the /opt/simpana/galaxy_vm file. Note that the changes will not be preserved during upgrades.

    LC_CTYPE=ru.koi8-r
    export LC_CTYPE

Setup Complete

  1. To update the CRC consistency checking, run the following command as "root" from the Base directory:

    ./updatecrc32 galaxy/Base/Galaxy
  2. Reboot the server to allow the iDataAgent to start with the correct locale settings.

Sample settings in TotalNET Advanced Server (TAS)

It is very important to ensure that the selected locale corresponds to the actual character encoding scheme used to encode non-ASCII file names.

For example, Solaris partitions can be exported to Macs by TotalNET Advanced Server, which could emulate AppleTalk protocol allowing Macs to connect to Solaris box and use its file system. It was important to configure TotalNET Advanced Server (TAS) so that it encoded the file names properly on the Solaris disk.

The following settings are required for computers with Solaris 8 to export their disks to Macs with Japanese software:

  1. Host character set in TAS System must be set to euc-jp.

    The host character set can be accessed using the following options in the TAS system: TAS System -> TAS System Administration -> TAS System Setup

  2. Solaris locale must be set to ja_JP.eucJP.
  3. Client character set in the MAC computers must be set to mac-shift-jis.
  4. The client character set can be accessed using the following options in the MAC computer: AppleTalk Realm -> Manage AppleTalk File Services -> Configuration

    Note that in this case the Japanese locales and conversion filters are not available on the Solaris 8 system until the following packages are installed:

The correct Client character set in MAC computer allows TAS to properly convert Mac file names to UNICODE. Similarly the correct Host character set in Solaris allows TAS to store these file names in a way that the rest of Solaris software (including the iDataAgent) could understand after setting the system locale to ja_JP.eucJP.


Backing up Symbolic Links

For the Unix File System iDataAgents, you can back up symbolic links that are part of the subclient content. However, when you back up the symbolic links for a directory or file, ensure that the directory or file is present in the subclient content.


Backing up Raw Devices

Selected agents can be configured to back up raw device files, including block and character, that are either explicitly identified or referenced via one or more symbolic links.  However, note the following:

See Configure the Agent to Backup Raw Devices for step-by-step instructions.


QSnap Enabled Backups

When you are using supported versions of AIX, Linux, or Solaris, you can install and enable QSnap to back up locked files. See QSnap for the Unix File System iDataAgent for more information.

QSnap-enabled backups of raw devices are not supported by the affected Unix File System iDataAgents.

Filter File Systems for Backup

Consider the following:


Backup Considerations for This Agent

Before performing any backup procedures for this agent, review the following information:

Back to Top