Previous page

Next page

Locate page in Contents

Print this page

Preparing Disks for Parallels Cloud Storage

Each chunk server is a service that handles a single physical disk in the cluster. Although the disk should be used solely by the CS service, technically, you can use it for multiple purposes. E.g., create a small partition for the operating system and leave the rest of disk space for Parallels Cloud Storage. If the disk is already partitioned, skip this section and proceed to creating a chunk server. Otherwise follow the instructions in this section to prepare the disk for use in Parallels Cloud Storage.

New disks attached to and recognized by the Hardware Node need to be prepared for use in the Parallels Cloud Storage cluster by means of the /usr/libexec/pstorage/prepare_pstorage_drive tool. The tool does the following:

  1. Removes existing partitions from the disk.
  2. Creates and formats the required partition(s).

After that, manually add the new partition to /etc/fstab .

Notes:

1. If you do not need the disk to be bootable, run the tool with the --noboot option to skip GRUB bootloader installation.

2. For SSD drives, use the --ssd option.

3. To have the tool proceed without confirmation prompts, use the -y option.

Preparing Disks for Use as Chunk Servers

  1. To prepare an HDD or SSD for use as a chunk server, run the tool with the drive name as the option. For example:

    # /usr/libexec/pstorage/prepare_pstorage_drive /dev/sdb

    ALL data on /dev/sdb will be completely destroyed. Are you sure to continue? [y]

    y

    Zeroing out beginning and end of /dev/sdb...
    Partitioning /dev/sdb...
    Waiting for kernel...
    Formatting /dev/sdb1 partition...
    Done!

  2. Add the new partition to /etc/fstab . For example:

    /dev/sdb1 eth4 defaults 1 2

Preparing SSDs for Write Journalling or Caching

  1. To prepare an SSD for write journalling or caching, run the tool with two options: --ssd and drive name. For example:

    # /usr/libexec/pstorage/prepare_pstorage_drive /dev/sdb --ssd

    ALL data on /dev/sdb will be completely destroyed. Are you sure to continue? [y]

    y

    Zeroing out beginning and end of /dev/sdb...
    Partitioning /dev/sdb...
    Waiting for kernel...
    Formatting /dev/sdb1 partition...
    Done!

  2. Add the new partition to /etc/fstab . For example:

    /dev/sdb1 eth4 defaults 1 2