Changes

Jump to: navigation, search

Virtuozzo Storage

162 bytes added, 05:22, 13 January 2014
no edit summary
This command creates new Parallels Cloud Storage cluster and metadata server and configures the IP address of ''10.30.100.101'' for communication with this server (replace ''10.30.100.101'' with IP address of your own MDS server). MDS will store its data at location specified by '''-r''' option. The command will also ask you to enter the password for authentication in your cluster.
After you have created the MDS server, start the MDS management service ('''pstorage-mdsd''') and configure it to start automatically when the server boots:
service pstorage-mdsd start
To create 2nd and subsequent MDS services on other nodes do:
 
1. Login to the node as root.
 
2. Setup cluster discovery. Normally, all the Pstorage components should be capable to discover each other on the network using multicast discovery (mDNS). This may not work however in Virtual Machines or if your network doesn't support multicasts. In this case you need to setup an MDS bootstrap list on the nodes manually. To do so create the '''bs.list''' file in the '''/etc/pstorage/clusters/<cluster_name>''' directory (make this directory if it does not exist) on the server you are configuring for the cluster and specify IP addresses and ports of the MDS servers in the cluster.
For example to create a bootstrap list for above cluster created type:
echo "10.30.100.101:2510" >> /etc/pstorage/clusters/test_cluster/bs.list
Now future Pstorage services started on this machine will be able to discover other parties.
 
3. Authenticate the server in the cluster and add a new MDS to the cluster using similar to the above make-mds command w/o -I and -p options:
pstorage -c test_cluster auth-node
pstorage -c test_cluster make-cs -r /pstorage/test_cluster-cs
This command will create a CS service and use the directory specified after '''-r ''' option for CS data store.After you have created the chunk server, start is as a service ('''pstorage-csd''') and configure it to start automatically when the machine boots:
service pstorage-csd start
The command will ask you the password that you specified when setting up the first MDS server.
Create the directory to mount the Parallels Cloud Storage cluster to and then mount Pstorage cluster it as a conventional file system:
mkdir -p /pcs
Running a container over Pstrage is no different from any other local file system, so below example is just for the reference.
Log in to the computer running OpenVZ and that you have configured to act as a client for the Parallels Cloud Storage cluster.
 
Mount Pstorage cluster at /pcs as described above if not done yet.
Load OpenVZ ploop kernel modules if they aren't loaded yet:
modprobe ploop pfmt_ploop1 pio_kaio
Mount Pstorage cluster at '''/pcs''' as described above if not done yet. Create a folder on Pstorage for the containers:
mkdir -p /pcs/containers
vzctl create 101 --layout ploop --ostemplate centos-6-x86_64 --private /pcs/containers/
Now container with CTID=101 is ready for use and can be started right from the cluster shared on any Pstorageclient node:
vzctl start 101
==Upgrading to Parallels Cloud Server==
Please contact sales FIXMErequest more information on upgrading to Parallels Cloud Server on a [http://www.parallels.com/products/pcs/ product page] (see '''Request Information''' button).
==Pstorage Links & Documentation==

Navigation menu