Editing Virtuozzo Storage

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
'''Virtuozzo Storage''' is a highly-available distributed storage (virtual SAN) with built-in replication and disaster recovery.
+
'''Parallels Cloud Storage''' (Pstorage) is a highly-available distributed storage (virtual SAN) with built-in replication and disaster recovery.
  
Virtuozzo Storage provides a storage virtualization platform on top of commodity hardware with locally attached hard drives and enables the unification of storage into a cluster in scenarios like virtualization with the help of virtual machines (VMs) and/or Containers ([[CT]]s). Pstorage ensures a fast live migration of VMs and CTs across hardware nodes, without the need to copy VM/CT data, and high availability as the storage becomes available remotely.
+
Pstorage provides a storage virtualization platform on top of commodity hardware with locally attached hard drives and enables the unification of storage into a cluster in scenarios like virtualization with the help of virtual machines (VMs) and/or Containers ([[CT]]s). Pstorage ensures a fast live migration of VMs and CTs across hardware nodes, without the need to copy VM/CT data, and high availability as the storage becomes available remotely.
  
 
== Features ==
 
== Features ==
 
<br clear="both">
 
<br clear="both">
[[File:Parallels_Cloud_Storage_is_a_software_defined_storage.png|300px|right|link=http://www.youtube.com/watch?v=6oEzW9w-1rg|Virtuozzo Storage is a software defined storage]]
+
[[File:Parallels_Cloud_Storage_is_a_software_defined_storage.png|300px|right|link=http://www.youtube.com/watch?v=6oEzW9w-1rg|Parallels Cloud Storage is a software defined storage]]
The main Virtuozzo Storage features are listed below:
+
The main Pstorage features are listed below:
  
 
* No special hardware requirements. Commodity hardware (SATA/SAS drives, 1Gbit+ Ethernet) can be used to create a storage.
 
* No special hardware requirements. Commodity hardware (SATA/SAS drives, 1Gbit+ Ethernet) can be used to create a storage.
Line 27: Line 27:
  
 
{{Warning|
 
{{Warning|
* Virtuozzo Storage is available as a TECHNOLOGY PREVIEW ONLY for OpenVZ users and can't be licensed for production.
+
* Parallels Cloud Storage is available as a TECHNOLOGY PREVIEW ONLY for OpenVZ users and can't be licensed for production.
* To unlock for running in production, you should upgrade to a full [[Virtuozzo]] product (see below).
+
* To unlock for running in production, you should upgrade to a full Parallels Cloud Server product (see below).
 
* Maximum capacity limited for usage in technology preview mode is 100 GB of logical (usable by containers) disk space.
 
* Maximum capacity limited for usage in technology preview mode is 100 GB of logical (usable by containers) disk space.
 
* After hitting this limit, writers can get blocked w/o errors expecting for a limit to be extended, so please avoid hitting the limit (it's not a bug :) ).
 
* After hitting this limit, writers can get blocked w/o errors expecting for a limit to be extended, so please avoid hitting the limit (it's not a bug :) ).
Line 35: Line 35:
 
=== Components ===
 
=== Components ===
  
[[File:Parallels_Cloud_Storage_components.png|650px|top|Virtuozzo Storage Components]]
+
[[File:Parallels_Cloud_Storage_components.png|650px|top|Parallels Cloud Storage Components]]
  
Any Virtuozzo Storage includes three components:
+
Any Pstorage includes three components:
  
 
* Metadata server (MDS). MDSs manage metadata, like file names, and keep control over how files are split into chunks and where the chunks are stored. They also track versions of chunks and ensure that the cluster has enough replicas. An MDS can be run in multiple instances to provide high availability. Besides, MDSs keep a global log of important events that happen in the cluster.
 
* Metadata server (MDS). MDSs manage metadata, like file names, and keep control over how files are split into chunks and where the chunks are stored. They also track versions of chunks and ensure that the cluster has enough replicas. An MDS can be run in multiple instances to provide high availability. Besides, MDSs keep a global log of important events that happen in the cluster.
Line 43: Line 43:
 
* Chunk server (CS). A CS is a service responsible for storing real user data chunks and providing access to these data. A Pstorage cluster must have multiple instances of CSs for high availability.
 
* Chunk server (CS). A CS is a service responsible for storing real user data chunks and providing access to these data. A Pstorage cluster must have multiple instances of CSs for high availability.
  
* Clients. Clients access a Virtuozzo Storage cluster by communicating with MDSs and CSs. Virtuozzo Containers and virtual machines can be run natively, i.e. directly from the Virtuozzo Storage cluster. An additional Virtuozzo Storage client -  can be used to mount Virtuozzo Storage as a conventional file system (though Pstorage is not POSIX-compliant). Besides, Pstorage files can be mounted as a block device using the "ploop" feature and formatted as ext4 file system for other needs.
+
* Clients. Clients access a Pstorage cluster by communicating with MDSs and CSs. Parallels Containers and virtual machines can be run natively, i.e. directly from the Pstorage cluster. An additional Pstorage client -  can be used to mount Pstorage as a conventional file system (though Pstorage is not POSIX-compliant). Besides, Pstorage files can be mounted as a block device using the "ploop" feature and formatted as ext4 file system for other needs.
  
 
A recommended cluster setup includes from 3 to 5 MDS instances (allowing you to survive the loss of 1 or 2 of MDSs, respectively) and multiple CSs providing storage capacity.
 
A recommended cluster setup includes from 3 to 5 MDS instances (allowing you to survive the loss of 1 or 2 of MDSs, respectively) and multiple CSs providing storage capacity.
Line 49: Line 49:
 
== Setup ==
 
== Setup ==
  
This HOWTO explains how to setup Virtuozzo Storage cluster and run OpenVZ containers stored there. Please note, that it's just a brief HOWTO for quick and easy evaluation of Virtuozzo Storage (configuring only 1x MDS and CS service) and is not a real manual. We highly recommend to consult [http://download.parallels.com/doc/pcs/pdf/Parallels_Cloud_Storage.pdf Pstorage manual] and man pages (such as pstorage, pstorage-make-cs, pstorage-make-mds etc.) as it contain a lot of important details on types of SSD drives supported, what are the recommended configurations, how to configure big clusters with failure domains and so on.
+
This HOWTO explains how to setup Parallels Cloud Storage (Pstorage) cluster and run OpenVZ containers stored there. Please note, that it's just a brief HOWTO for quick and easy evaluation of Parallels Cloud Storage (configuring only 1x MDS and CS service) and is not a real manual. We highly recommend to consult [http://download.parallels.com/doc/pcs/pdf/Parallels_Cloud_Storage.pdf Pstorage manual] and man pages (such as pstorage, pstorage-make-cs, pstorage-make-mds etc.) as it contain a lot of important details on types of SSD drives supported, what are the recommended configurations, how to configure big clusters with failure domains and so on.
  
=== Installing Virtuozzo Storage software ===
+
=== Installing Parallels Cloud Storage software ===
  
 
In order to install Pstorage RPM packages, log in as root to all the machines planned to be added to the cluster and perform the following actions.
 
In order to install Pstorage RPM packages, log in as root to all the machines planned to be added to the cluster and perform the following actions.
Line 59: Line 59:
 
  cat << EOF > /etc/yum.repos.d/pstorage.repo
 
  cat << EOF > /etc/yum.repos.d/pstorage.repo
 
  [openvz-pstorage]
 
  [openvz-pstorage]
  name=Virtuozzo Storage for OpenVZ
+
  name=Parallels Cloud Storage for OpenVZ
 
  baseurl=http://download.openvz.org/pstorage/current
 
  baseurl=http://download.openvz.org/pstorage/current
 
  enabled=1
 
  enabled=1
Line 82: Line 82:
 
  pstorage -c test_cluster make-mds -I -a 10.30.100.101 -r /pstorage/test_cluster-mds -p
 
  pstorage -c test_cluster make-mds -I -a 10.30.100.101 -r /pstorage/test_cluster-mds -p
  
This command creates new Virtuozzo 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.
+
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:
 
After you have created the MDS server, start the MDS management service ('''pstorage-mdsd''') and configure it to start automatically when the server boots:
Line 133: Line 133:
 
The command will ask you the password that you specified when setting up the first MDS server.
 
The command will ask you the password that you specified when setting up the first MDS server.
  
Create the directory to mount the Virtuozzo Storage cluster to and then mount it as a conventional file system:
+
Create the directory to mount the Parallels Cloud Storage cluster to and then mount it as a conventional file system:
  
 
  mkdir -p /pcs
 
  mkdir -p /pcs
Line 145: Line 145:
  
 
Running a container over Pstrage is no different from any other local file system, so below example is just for the reference.
 
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 Virtuozzo Storage cluster.
+
Log in to the computer running OpenVZ and that you have configured to act as a client for the Parallels Cloud Storage cluster.
  
 
Load OpenVZ ploop kernel modules if they aren't loaded yet:
 
Load OpenVZ ploop kernel modules if they aren't loaded yet:

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: