PSTORAGE−MAKE−CS

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXIT STATUS
EXAMPLE
AUTHOR
SEE ALSO

NAME

pstorage-make-cs − create a new CS for a Pstorage cluster

SYNOPSIS

pstorage make−cs −r path [−a address] [−b address1[:port1][,address2...]] [−u user] [−x] [−j path] [−s dsize[:msize] ] [−S] [−t tier]

DESCRIPTION

pstorage−make−cs(1) creates a new CS repository directory and, optionally, adds it to a cluster’s auto−startup list on the current host. The −b option can be used to specify IP addresses of already active MDSs in the cluster if autodiscovery by a cluster name does not work.

Note that for a cluster to be operational, a sufficient number of CSs (equal or more than the replication factor that is set to 1 by default) must be running. Use pstorage top to look for running CSs and pstorage set−attr −p −R / replicas=norm:min to configure the replication factor, if necessary.

OPTIONS

−r, −−repo−dir=path

Set the path to the new CS repository directory.

−a, −−address=address

Set IP address to listen on (optional).

−b, −−bs−list=address1[:port1][,address2...]

Set the bootstrap list of MDSs if autodiscovery does not work (optional).

−x, −−no−auto−start

Do not register the new CS in the auto−start list for pstorage−csd (optional).

−u, −−user=user

Change the owner of the created files and directories to the specified user; "pstorage" by default. Must be run as root. (optional).

−j, −−journal=path

Set path to directory with CS’s write journal (optional).

−s, −−journal−size=dsize[:msize]

Set size for CS’s journal, where: dsize − maximum size of data stored in journal in megabytes, will be rounded up to multiple 64 Mb and msize is maximum size of metadata stored in journal (optional). See pstorage−ssd(7) for the journal discussion.

−S, −−no−checksums

Disable checksumming for journal transactions (optional).

−t, −−tier=tier

Set storage tier for new CS repository. The value of tier must be in range 0−3.

EXIT STATUS

0

Success

Non−zero

Failure (syntax or usage error; configuration error; cluster failure; unexpected error).

EXAMPLE

pstorage −c mycluster make−cs −r /mnt/storage/csd
service pstorage−csd start

AUTHOR

Copyright © 2011−2013, Parallels, Inc. All rights reserved.

SEE ALSO

pstorage(1), csd(1), pstorage−discovery(7), pstorage−overview(7), pstorage−ssd(7)