PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer For Office Environments
PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer For Office Environments
Proxmox Ceph
7/14/2017 9 Comments
GO BACK
The following article describes the steps to create a PROXMOX Cluster with "High Availability" on a Virtualized
environment. The objective is to thoroughly understand PROXMOX Cluster, Ceph, "High Availability" among other
features and benefits to bring it to a productive environment.
NOTE :
Part of this documentation takes as a reference the official PROXMOX videos on its YouTube account and the
documentation at https://pve.proxmox.com/wiki/Main_Page
For those who have asked about the tools we use to edit these articles:
Ubuntu Desktop , Inkscape , Gimp , Shutter , LibreOffice Write , free fonts from Google Fonts and Weebly are used .
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 1/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
1. What is Ceph?
2. Enable "Nested Virtualization" in PROXMOX
3. Creation of "Virtual Machines" in PROXMOX
4 . Prepare "Virtual Machines" for Cluster
5. Activate Cluster PROXMOX
6. Prepare links in "Virtual Machines" for Ceph
7. Add Hard Disks in Nodes for Ceph
8. Install Ceph libraries and Service Activation
9. Submit "SpaceBYBlocks" to the Cluster
POWERED
1. What is Ceph?
Graph 1.1 - Ceph conceptual description
This graph shows two Servers/Nodes with PROXMOX, forming a Cluster.
Each "Node" through Ceph makes its storage units available to the Cluster, thus allowing the creation of a
"Storage Ceph" with common access for the Nodes.
In other terms: Each "Node" becomes a "Storage Unit" and similar (not equal) to a Raid5, Ceph replicates the
information between the "Nodes" returning to the Cluster a Storage with "Fault Tolerance" and High
Performance.
The "Nodes" can store in the "Storage Ceph" the "Virtual Disks" of the "Virtual Machines (VM's) and Containers (LXC)",
enabling in the Cluster the possibility of "Migrating/Moving" the "Virtual Machines" between each Node and define
"High Availability" rules.
This
is a brief summary of what we can expect from Ceph for this lab. It is suggested to go into more technical detail through
the official page: www.ceph.com and Wikipedia (More information click on each link).
Additional: It is important to know how PROXMOX Cluster works, for this reason we suggest to see the link:
PROXMOX NAS/SAN. In the following article we are going to present the basic concepts of storage
based on NAS/SAN and how PROXMOX works in virtualized environments .
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 3/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
The lab requires three "Virtual Machines" and the Host Hypervisor is at your discretion, however in this article we
suggest configuring a PROXMOX 4.x/5.x server with "Nested Virtualization".
Nested Virtualization: "Nested Virtualization" refers to running one or more hypervisors inside another
hypervisor, thus optimizing our resource. More information click on this Wikipedia link.
If you want to review the steps to install PROXMOX , click on the following link:
modprobe -r kvm_intel
modprobe kvm_intel
After executing these commands, the following statement should return " Y":
POWERED BY
modprobe -r kvm_amd
modprobe kvm_amd
After executing these commands, the following statement should return "Y ":
cat /sys/module/kvm_amd/parameters/nested
It is not necessary to restart the server, however to ensure that everything works properly it is
suggested to restart the server and validate that everything starts properly.
POWERED BY
Graph
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 5/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
3.2 - VirtualTranslated
Machines to: with PROXMOX
English Show original Options ▼
IP Network: 10.42.0.200
IP Network: 10.42.0.201
Third Virtual Server:
Hostname: nodeX002.cosysco.network
IP Network: 10.42.0..202
Important!
After installing the three servers, it is convenient to update.
Run in a terminal or Proxmox Shell
:
apt-get update && apt-get -y dist-upgrade && apt-get remove --purge && apt-get -y
autoremove --purge && apt-get clean && apt-get autoclean
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 6/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 7/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
Technical Information: Linux Bridge (vmbrX) is a "Virtual Bridge" that switches with the physical card of our
physical server. It behaves like a Virtual Switch, allowing the "Virtual Cards" of the "Virtual Machines" to
connect to the physical interface. Additionally, it allows defining "Virtual Networks (VLAN)" isolating the
communication of the "Virtual Cards" in the group that is defined. This example shows the new isolated and
switched cards in group 7 or VLAN 7.
fter adding the "Virtual Cards" to the Nodes, it is necessary to enter the Web administrator of each unit and configure
A
the Network card with a valid IP. Take into account that the card is grouped in VLAN 7
.
In the three Nodes we are going to activate the new card following the scheme of
COSYSCO.NETWORK
NodeX000 -> 10.0.0.200
NodeX001 -> 10.0.0.201
NodeX002 -> 10.0.0.202
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 8/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
After making these changes, it is convenient to add a "Network Cards" Map to each Node . With this we ensure
that the services of the PROXMOX Cluster are switched through the appropriate channels.
vi /etc/hosts
Important!
After this configuration it is necessary to restart the three Nodes.
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 9/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
The activation of the PROXMOX Cluster is a fairly simple process that takes 2 steps:
Creation of the Cluster in one of the Nodes which will become the "Primary Node".
Add the rest of the Nodes to the Cluster pointing to the "Primary Node".
In previous "911-ubuntu" publications on "Installing PROXMOX and how to create a Cluster", we presented a simple scenario
where the Nodes have only one "Network Card", for this reason it did not require more diligence. There is a separate link in this
documentation for Cluster communication (CoroSync)
.
We leave NodeX000
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 11/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
Note: The concepts that we are going to use to enable "High Availability" in the Cluster are similar for environments
with SAN/NAS.
With the web administrator PROXMOX of the HOST, we are going to add in each "Virtual Machine" two
Network cards, with the characteristic that they are connected to a VLAN.
In this example we follow the scheme of COSYSCO.NETWORK, we select VLAN 13.
In the "Virtual Machines" the new "Virtual Cards" should automatically appear.
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 12/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
After adding the "Virtual Cards" to the Nodes, it is necessary to enter the Cluster Web Administrator and add a "Linux
Bond" to each unit that intertwines the two new cards. Take note that both cards are grouped in VLAN 13.
For this part of the article, the Nodes are in a Cluster and it is much easier to access each of them. So, following the
COSYSCO.NETWORK schema, we are going to configure it as follows:
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 13/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
echnical Information: Linux Bond is presented as a Virtual Interface that links two or more "Network Cards",
T
providing a link tolerant to "Faults" and high performance in "Data Transfer". To use "Ceph Storage" it is necessary to
have links that switch efficiently.
We
are going to configure "Linux Bond" in each Cluster Node as follows
:
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 14/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 15/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
Important!
After configuring "Linux Bond" and adding the "Extra Storage Units" it is recommended to
restart each Node to start with the installation of the Ceph libraries and activation of the
service.
We activate the Ceph-Monitor service in the Link created with "Linux Bond".
NOTE: This is done only on the Primary Node, which in this example is
nodeX000
ssh [email protected]
pveceph init --network 10.10.0.0/24
pveceph createmon
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 16/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
We activate the Ceph-Monitor service in the Link created with "Linux Bond".
NOTE: This is done only on the Primary Node, which in this example is
nodeX000
ssh [email protected]
pveceph init --network 10.10.0.0/24
pveceph createmon
NOTE: All the Cluster Nodes that share the "Extra Storage Units" resource must be integrated.
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 17/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 18/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 19/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 20/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
Ceph builds small containers called "Objects" which in turn are grouped (pg_num), for storage and replication in
the ODS.
On the Create Ceph Pool screen , the Size, Min. Size, Crush RuleSet, and pg_num fields are presented. In short,
it represents the pool of objects and their maximum and minimum replication in the ODS. To complete this
information, we will be working on an additional article that describes in detail the parameterization of these
fields as well as the monitoring of this type of infrastructure.
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 21/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
Pool: Name of the pool to which the Storage will be associated. In this example it is ceph-vms
Monitor(s): It is important to enter the IP of each "Linux Bond", it is suggested that you enter:
COSYSCO.NETWORK Scheme
NodeX000 -> 10.10.0. 200
NodeX001 -> 10.10.0. 201 NodeX002
-> 10.10.0. 202 NOTE: IP's are entered with a separating space.
Nodes: Nodes that will have access.
Enable: To Enable or Disable Storage.
Content: Indicates the type of content that will be accepted.
Disk Image is for "Virtual Machines" and Container is for "LXC".
LXC has extra parameters, for this reason it is convenient that the "Virtual Machines" do not coexist with LXC in
the same Pool, they must be separated.
KRBD: Enables multiple disk and snapshot support for LXC.
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 22/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
You can also use LXC which optimizes the resource consuming a minimum of RAM and CPU.
Important: Don't forget to create a Pool and Storage RBD for LXC and enable KRBD extended properties
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 24/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
As long as the "Offline" migration , both outward and return, works properly, we can conclude that the communication
between the Nodes and Storage works properly. The next step is to turn on the VM and carry out the same tests, taking
into account that this scenario only shows the concepts and that at some point the VM may stay due to the limited
POWERED BY
nature of the scenario
.
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 25/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
One of the advantages of creating a "Cluster" is the enabling of "High Availability" which, in short, is to define automatic
migration rules to the "Virtual Machines", between the Nodes in case of contingencies. More information:
https://pve.proxmox.com/wiki/High_Availability
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 26/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 28/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
PROXMOX Storage Directory with SSHFS. How to Generate Backups, Restore, Import and
Export Virtual Machines in a "Remote Directory". This article aims to demonstrate how easy it can be to manage
this type of task through a graphical environment .
GO BACK
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 29/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
Tweet
Translated to: English Show original Options ▼
9 Comments
Maxwell 3/4/2018
3/4/2018 09:15:22
09:15:22
Majestic explanation, very well detailed. I would like this article to cover using SAN/NAS instead
of Ceph. Thank you for everything you post. A hug.
REPLY
Rafael 3/4/2018
3/4/2018 22:27:49
22:27:49
Excellent Handbook.
It worked perfectly for me.
Thank you.
REPLY
systems 4/26/2018
4/26/2018 09:59:49
09:59:49
I have an extra drive on two of the four nodes I have, but when I try to create the OSD it doesn't
detect it.
Thanks in advance.
Salu2.
REPLY
Nico 6/10/2018
6/10/2018 02:03:10
02:03:10
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 30/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
REPLY
David 3/28/2019
3/28/2019 14:13:59
14:13:59
Thanks for the information, finally an excellently explained article for Proxmox.
REPLY
Ricardo 4/30/2019
4/30/2019 05:46:45
05:46:45
Thank you!
REPLY
Out 6/26/2019
6/26/2019 12:59:48
12:59:48
We had already created the Cluster with Proxmox, but the HA option would really help the
business a lot
REPLY
Out 6/26/2019
6/26/2019 13:04:31
13:04:31
We had already created the Cluster with Proxmox, but the HA option would really help the
business a lot
REPLY
Stanley 10/6/2019
10/6/2019 12:55:07
12:55:07
POWERED BY
Excellent explanation.
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 31/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
I would like to see how you do the migration from XenServer 6.X to ProxMox 6, since it is
Translated to: English Show original Options ▼
REPLY
Leave a Reply.
Name (required)
Website
Comments (required)
Editor:
Juan Estuardo Hernandez
Consultant Free Software,
POWERED
Accumulating BY is
information
only the first step towards
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 32/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
only the first step towards
Translated to: English Show original Options ▼
Conditions of use:
POWERED BY
This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 33/34
4/12/22, 9:47 PM PROXMOX CEPH Laboratory - Configure Ubuntu, Proxmox, Zabbix & NethServer for Office environments
POWERED BY
911-ubuntu.weebly.com/proxmox-ceph/proxmox-ceph-laboratorio 34/34