ViPR 2.1 - Ingest File System Data into ViPR Object Storage

Table of Contents


ViPR provides a mechanism for ingesting file-based data into object storage. The data is not moved, but is accessed from the ingested file system. Ingested object data can be used by object and HDFS storage clients and can also be accessed as files using the ViPR file-access mode. When accessing the ingested object data as HDFS data or using file-access mode, the original directory structure is preserved. This article describes how to perform the ingestion.

Back to Top

Ingestion overview

When ingesting data from a file system, the file system is added as a data store to an object virtual pool.

The data in the file system is associated with a specified destination bucket which must already exist and be empty. The type of bucket determines the type of access that is allowed, object, HDFS, or both, so it is important that the correct type of bucket is created for the ingest operation

Note Image
At Version 2.1, object ingestion is supported from file system based data stores, not from commodity nodes.

The ingest process is represented in the figure below.

Ingesting objects into object storage

The destination bucket will have been created on a file system-based data store within an object virtual pool, and the ingested file system is added as a data store to the same object virtual pool. The data store created from the ingested file system cannot be used for new data. New data written to the ingest bucket will be written to a different data store within the virtual pool. Similarly, the data store will not be used for new buckets.

Note Image

The object/HDFS storage capacity reported by ViPR, which is the same as the storage allocated against a license, will include the full capacity of the ingested file system. However, where the capacity of the ingested file system exceeds the size of the ingested data, the excess capacity cannot be used.

In data services, a bucket is associated with a project, which is used for metering purposes. Hence, once ingestion is done, all the ingested objects belong to the bucket, and are accounted against the project associated with this bucket for metering purposes.

The following procedures are provided to support Data Services ingestion:

In addition, the use of the API to support ingestion is described in: Ingest object data using the Controller REST API

Back to Top

Ingest file system data

Use this procedure to ingest data from a file system into ViPR object storage. Where a step requires access to the ViPR UI, you can use the Online Help associated with the specified page to obtain guidance.

Before you begin


  1. Select Service Catalog > View Catalog > Data Services > Ingest File Systems.
  2. Enter a name for the data store that will be created from the ingested file system.
    This is the data store that will be created from the ingested file system. The data store will be assigned to the data services virtual pool to which the specified bucket (sometimes referred to as a keypool) belongs.
  3. Enter a description that will be assigned to the data store that is created.
  4. Select the project that owns the file system from which data will be ingested.
    Only file systems that belong to the selected project will be offered as the source of the data.
    The data that is ingested is associated, for metering and showback/chargeback purposes, with the project that owns the bucket into which it is ingested.
  5. Select the file system from which the data is to be ingested.
    The file system is used as the storage that backs the data store that is created.
  6. Enter the name of an existing bucket into which the data will be ingested.
  7. Select Order.


When you ingest data into a bucket, all the files from the file share are now behaving as objects of the bucket. If the bucket was created using the UI, or created using a different mechanism but without specifying any access control list (ACL), the default ACL for the bucket will be applied and the owner of the bucket has full control. No other user has access unless the ACL is changed to allow access.

The data store that is created from the ingested file system cannot be used for new data. New data for the bucket into which the ingested data is placed, or new buckets, will be written to other data stores.

Back to Top

Ingest object data using the Controller REST API

The Controller REST API provides the ability to ingest files from a file system and make them available as objects.

The API provides a set of methods that enable ingestion tasks to be initiated and to be monitored. The methods are used by the ViPR UI to support the Ingestion service, and can be used when writing custom clients that want to implement the data ingest function.

Details of the payloads and return parameters for these methods can be found in EMC ViPR REST API Reference. The full procedure for performing object data ingestion is described in Ingestion overview.

The POST /object/ingestion method is used to initiate an object ingestion operation and the object data ingest parameters are provided in the table below.

The operation requires the Tenant Administrator role and the new data that is ingested belongs to the tenant that owns the data services virtual pool.

The file system identity can be obtained using the GET /file/filesystems/bulk methods to return the IDs of all ViPR-managed file systems and then using the list of IDs to obtain details of each file system using POST /file/filesystems/bulk.

The call is:
POST /object/ingestion
and a typical payload would be:
    <datastore_description>Data store for ingested file system</datastore_description>
Back to Top

Removing file system exports

You can remove file system exports using the ViPR Controller REST API or using the CLI.

Before you begin

This procedure identifies the steps required to remove file system exports. If you want to perform these steps programmatically, you can use the ViPR Java Client. If you want to perform them manually, you can use a client such as "curl" or a browser-based web client, or you can use the CLI.


  1. To unexport a file system using the API, follow the steps below:
    1. Get the identity of the ViPR-managed file system from which you want to remove the exports.
      You can find the identity by locating the file system on the Resources > File Systems page, expanding the file system, locating the File System field, and obtaining the associated urn:.
      Alternatively, you can:
      1. Get a list of the file system resources managed by ViPR.
        GET /file/filesystems/bulk
        Returns the identities of all file system resources. In the example below, only one file system exists.
      2. Retrieve information about each of the file system resources using the ids returned previously. Using:
        POST /file/filesystems/bulk

        and passing in a list of <id>s.

        The details of each file system are presented as below.
        From the information returned you can determine the identity of file system that you are interested in.
    2. List the file system exports.
      GET /file/filesystems/{id}/exports
      For example:
      GET /file/filesystems/urn:storageos:FileShare:bcf6cfbd-266e-4345-9cb4-c56bf2970690:/exports
      A typical response provides the following information.
    3. Delete the file system export.
      The syntax is as follows:
      DELETE /file/filesystems/{id}/exports/{protocol},{secType},{perm},{root_mapping}
      For example:
      Unexport is asynchronous, so the task is returned, as below.
      <link href="/file/filesystems/urn:storageos:FileShare:bcf6cfbd-266e-4345-9cb4-c56bf2970690:" rel="self"/>
      <link href="/file/filesystems/urn:storageos:FileShare:bcf6cfbd-266e-4345-9cb4-c56bf2970690:/tasks/
                                                         60a24f41-42cd-4495-a742-c0a356383ebf" rel="self"/>
      You will need to use GET /file/filesystems/{id}/tasks/{op_id}/, to show the status of the task and determine when it is complete.
  2. To unexport a file system using the CLI, follow the steps below:
    1. Authenticate with ViPR using:
      viprcli authenticate
      You will need to enter a username and a location in which an authentication token will be stored, as shown in the example below:
      viprcli authenticate -u root -d c:\tmp
      You will be prompted to enter the password for the specified user.
    2. List the file systems belonging to a project using filesystem list and specifying the project.
      viprcli filesystem list -pr Bluebird
        ing01   1.00        NFS
        ing02   1.00        NFS
    1. Get the details of a chosen file system, using filesystem show and specify the name of the export:
      viprcli filesystem show-exports -n ing01 -pr Bluebird
      The details of the export as listed, as shown below.
         "filesystem_export": [
               "endpoints": [
               "mount_point": "
               "permissions": "rw",
               "protocol": "NFS",
               "root_user": "root",
               "type": "sys"
    2. To remove the export, use filesystem export, as shown in the example below:
      viprcli filesystem unexport -n ing01 -pr Bluebird -pl NFS -security sys 
      -permission rw -rootuser root
Back to Top