Previous page

Next page

Locate page in Contents

Print this page

Stage 2: Creating a Chunk Server

Note: For large clusters (see Recommended Configuration ), it is critically important to configure proper failure domains to improve data availability. For more information, see Configuring Failure Domains .

To create the chunk server, use the pstorage make-cs command, for example:

# pstorage -c pcs1 make-cs -r /pstorage/pcs1-cs

This command:

  1. Creates the /pstorage/pcs1-cs directory if it does not exist and configures it for storing data chunks.
  2. Configures your disk as a chunk server and joins it to the pcs1 cluster.
  3. Assigns the chunk server to storage tier 0 by default.

    Storage tiers allow you to keep different kinds of data on different chunk servers. For details, see Configuring Storage Tiers .

After you have created the chunk server, start the chunk management service ( pstorage-csd ) and configure it to start automatically when the chunk server boots:

# service pstorage-csd start

# chkconfig pstorage-csd on

Once you set up the first chunk server, proceed with creating other chunk servers.

Creating Host UUIDs for Chunk Servers

Parallels Cloud Storage distinguishes hosts the CS services run on by unique host UUIDs generated during installation. If you plan to set up new hosts by deploying a golden image with an OS and preinstalled Parallels Cloud Storage packages, you will need to generate new host UUIDs instead of the one inherited from the golden image.

To create a CS on a copy of the host, do the following:

  1. Make sure the golden image does not contain any metadata servers, chunk servers, or clients.
  2. Deploy the golden image on a clean host.
  3. Generate a new UUID for the host to replace the one inherited from the golden image:

    # /usr/bin/uuidgen -r | tr '-' ' ' | awk '{print $1$2$3}' > /etc/pstorage/host_id

    Note: For more information on the uuidgen utility, see its man page.

  4. Create a CS on the host.