Performing an NFS capture

You can capture data directly from a Network File System (NFS) export using an NFS capture. Using Google Transfer Appliance Capture Utility, an appliance capture “pulls” data from a workstation instead of pushing it. From the point of view of the NFS server (the workstation), Google Transfer Appliance is the NFS client. See Data Capture for more information on data capture options.

Prerequisites

You need to know the following information before you can perform an NFS capture:

  • The IP address for Transfer Appliance, which is presented when you set up Transfer Appliance.
  • The IP address must not change throughout the data capture process. For example, use a static IP address.
  • The capture user credentials, which are initially supplied to you by Google. You can change the capture password.

In addition, make sure that:

Exporting an NFS Share from a workstation

Before you can mount the NFS share on Transfer Appliance, export the NFS share with the no_root_squash export option and specify the IP address of the Transfer Appliance. Delete the Transfer Appliance export configuration file after the data transfer is complete.

  1. On the server where the data resides, open a terminal.
  2. Install NFS:

    Microsoft Windows

    Use the procedures in one of the following guides to deploy services for Network File System (NFS) on your Windows server:

    1. Services for NFS Step-by-Step Guide for Windows Server 2008 R2.
    2. Deploy Network File System for Windows Server 2012.

    RHEL & CentOS

    If not already installed, install the NFS server software by running the following command in a terminal window:

    sudo yum -y install nfs-utils nfs-utils-lib

    Debian & Ubuntu

    If not already installed, install the NFS server software by running the following command in a terminal window:

    sudo apt-get install -y nfs-kernel-server

  3. Export the directories containing the data you want to capture:

    Microsoft Windows

    Use the procedures in one of the following guides to create an NFS export on your Windows server. NFS exports for appliance captures must be read-only:

    1. Services for NFS Step-by-Step Guide for Windows Server 2008 R2.
    2. Deploy Network File System for Windows Server 2012.

    Linux

    1. Run the following command to create an export in the /etc/exports file. Add each directory to export one at a time:

      echo "[SHARED DIRECTORY] [TRANSFER APPLIANCE IP ADDRESS](ro,no_root_squash)" | sudo tee -a /etc/exports

      where [SHARED DIRECTORY] is the directory with data you want to capture, and [TRANSFER APPLIANCE IP ADDRESS] is the IP address of the Transfer Appliance.

      For example, the following creates an export for /usr/bin/logs:

      echo "/usr/bin/logs 123.45.67.89(ro,no_root_squash)" | sudo tee -a /etc/exports

      Note that the export must be read-only (ro option).

      For more information about setting up NFS exports on Linux, see exports(5) - Linux man page.

    2. Start the NFS server processes (or ensure they have been started). Use one of these commands:

            sudo systemctl start nfs
            sudo systemctl start nfs-kernel-server
    3. Load the contents of /etc/exports:

      sudo exportfs -a

      For more information, see exportfs(8) - Linux man page.

Mounting NFS exports on Transfer Appliance

  1. Open Transfer Appliance Web User Interface.
  2. Select NFS from the Data Capture menu.

    The NFS Capture window appears and displays any currently mounted NFS exports.

  3. Click Add Mount Point.

  4. For the NFS Server Name or IP Address, enter the IP address of the source server or workstation. This is the address of the system on which you created the NFS export.
  5. For the NFS Share Path, enter the path of the export. This path is the same path that was specified when you created the export on the source server or workstation.
  6. For Advanced Mount Parameters, you can optionally specify advanced options for accessing the share as a comma-separated list. If your user account needs different permissions for data access on that server, consider user ID (UID) mapping. For more information about NFS options, see nfs(5) - Linux man page.
  7. Click Mount.

    If the NFS share mounts successfully, it appears on the NFS Capture screen under Mount Points, indicating that the share is available for capture.

Performing an NFS capture

Before you start an NFS capture, make sure you have the following permissions to your data source:

  • Read and execute permissions for folders.
  • Read permissions for files.

If you are only capturing data that you own, you already have the required file and folder permissions. If you want to capture data owned by other people, contact your IT administrator and ask for an account that grants you access to the data. If you are in IT administrator in charge of moving other people's data, use a backup operator or service account that has read access to all of the data.

If you specify a directory for capture that has been previously captured, Transfer Appliance recognizes it and presents you with options to capture all data or only skipped files.

  1. Open the Transfer Appliance Web User Interface.
  2. Select NFS from the Data Capture menu. The NFS Capture window appears and displays currently mounted NFS exports.
  3. Select a mount point and folder for capture.
  4. Click Capture.
  5. Enter a meaningful job name. The job name is used to identify the capture job and the files it contains.
  6. If you want to exclude file symbolic links, click Exclude symlinks.
  7. Click OK.

    A capture job is initiated. You can monitor jobs using the Jobs Monitor pane in the Transfer Appliance web interface.

Unmounting NFS exports from Transfer Appliance

After each NFS capture completes, unmount the corresponding NFS export.

  1. Open Transfer Appliance Web User Interface.
  2. Select NFS from the Data Capture pane.

    The NFS Capture window appears and displays currently mounted NFS exports.

  3. Select the mount point you want to unmount.

  4. Click Unmount.
  5. Click OK.

What's next

To perform other types of parallel data capture tasks, follow these instructions on a separate workstation or Transfer Appliance:

If your data size exceeds the capacity of a single Google Transfer Appliance, capture your data using multiple appliances in succession.

To monitor data capture jobs, see Monitoring Data Capture Jobs.

If you are done capturing data, see Preparing and Shipping Transfer Appliance.

Esta página foi útil? Conte sua opinião sobre:

Enviar comentários sobre…

Google Transfer Appliance