PSTORAGE−CONFIGURE

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
EXIT STATUS
AUTHOR
SEE ALSO

NAME

pstorage-configure-mds − Change parameters of an existing MDS repository

SYNOPSIS

pstorage [−c CLUSTER_NAME] configure−mds −r,−−repo−dir PATH −n,−−mds−node MDS_ID@IP[:PORT] ...

pstorage [−c CLUSTER_NAME] configure−mds −r,−−repo−dir PATH −d,−−drop−node MDS_ID ...

pstorage [−c CLUSTER_NAME] configure−mds −r,−−repo−dir PATH −C,−−compact

DESCRIPTION

pstorage−configure−mds(1) change IP addresses[:ports] of metadata servers in journal or drop them. Note that pstorage−mdsd service must be stopped before executing this command.

OPTIONS

−c, −−cluster=CLUSTER_NAME

The name of the cluster to connect to. A valid cluster associated with the name is discovered using DNS or zeroconf (multicast). If the −c option is omitted, the PSTORAGE_NAME environment variable is used.

−r, −−repo−dir=PATH

Path to the MDS repository to change.

−n, −−mds−node=MDS_ID@IP[:PORT]

Set the new IP address[:port] of the metadata server with the id MDS_ID. If PORT is omitted, the default port 2510 is used. NOTE: IP addresses MUST be changed on ALL MDSes in cluster before you start them again!

−d, −−drop−node=MDS_ID

Drop MDS node with the id MDS_ID from local repository. NOTE: the MDS node MUST be dropped on ALL MDSes in cluster except itself before you start them again!

−C, −−compact

Compact MDS repository.

EXAMPLES

Let us suppose you have a cluster 'mycluster' consisting of three hosts with metadata servers:

host1 with MDS#1, 10.10.10.1:2510
host2 with MDS#2, 10.10.10.2:2510
host3 with MDS#3, 10.10.10.3:2510

And you want to move the metadata servers to a new network 10.10.20.0/24.
To do this, execute the following commands on each host (it is highly
recommended to back up all MDS repositories before doing this):

#1 [root@host1] service pstorage−mdsd stop
#2 [root@host1] pstorage −c mycluster configure−mds −r /mnt/storage/mds −n 1@10.10.20.1:2510 −n 1@10.10.20.2:2510 −n 3@10.10.20.3:2510
#3 [root@host1] service pstorage−mdsd start

#4 [root@host2] service pstorage−mdsd stop
#5 [root@host2] pstorage −c mycluster configure−mds −r /mnt/storage/mds −n 1@10.10.20.1:2510 −n 1@10.10.20.2:2510 −n 3@10.10.20.3:2510
#6 [root@host2] service pstorage−mdsd start

#7 [root@host3] service pstorage−mdsd stop
#8 [root@host3] pstorage −c mycluster configure−mds −r /mnt/storage/mds −n 1@10.10.20.1:2510 −n 1@10.10.20.2:2510 −n 3@10.10.20.3:2510
#9 [root@host3] service pstorage−mdsd start

Note
The cluster will be unavailable while commands #4 to #6 are executed! Afterwards, make sure you reconfigure discovery parameters as described in pstorage−discovery(7).

EXIT STATUS

0

Success

Non−zero

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

AUTHOR

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

SEE ALSO

pstorage(1), mdsd(1), pstorage−make−mds(1) pstorage−overview(7)