Bachelor Tech
  • Home
  • Tutorials
  • Tips
  • Portfolio
  • About Jan
  • Contact Jan

5. Turn the MariaDB container to a template – full vs linked clones?

by Jan Bachelor October 21, 2025

So now we have a container prepared and need to turn it into a template and then create the actual Maria DB galera nodes from the template.

  • In Proxmox GUI, right click on the CT template and select ‘Convert to template’.
  • Then right click on the newly created template and choose ‘Clone’.
    • Choose an adequate hostname, such as ‘galera-A1’, which indicates it will be the first node in cluster A (since you may have more clusters in the future).
    • Storage is typically local-lvm unless you have shared storage between Proxmox nodes set up.
    • Mode: Full Clone
Create a clone from an LXC template
Create a clone from an LXC template

In the future, we can keep this template updated by creating an instance from it, updating it and then turning it back into a template.

What is the difference between a Full vs Linked Clone in Proxmox?

Just a little stop in case you have not had to deal with this one before and why would I strongly recommend ‘Full Clone’ for a DB container.

  • A Full Clone is a full independent copy of the template’s disk image:
    • Disk operation: It’s a byte-for-byte copy. If your template’s disk is 8GB, a full clone will immediately occupy 8GB of space on your storage.
    • Independence: Once created, it has no connection to the original template. You can delete the template, and the full clone will continue to run without issues.
    • Creation Speed: This is the slowest method, as Proxmox must read every block from the template and write it to the new location.
  • A Linked Clone is a lightweight, dependent copy that shares the template’s disk image:
    • Disk operation: While light because it works as snapshots (starting with zero difference), it uses a “copy-on-write” mechanism. There is therefore a performance penalty on the first write to a block, as that data block must first be copied from the template to the clone’s own storage area before it can be modified. This is the main reason for not using linked clones for database servers (unless you do not need many write operations at all).
    • Independence: A linked clone requires the original template to exist. One cannot delete the template if it has dependent (linked) clones.
    • Creation Speed: Nearly instantaneous. Since no data is copied initially, a linked clone can be created in just a couple of seconds.
4. Security Hardening & Logging on Galera template LXC
6. Deploy 4x LXC containers on 2x Proxmox nodes
Go back to course overview: Deploy MariaDB Galera Cluster on Proxmox

Leave a Comment Cancel Reply

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 FacebookWhatsappEmail

Course Steps

  1. 1. Galera Cluster - what is it and why is it good for your home set up
  2. 2. Create your first container as a template on Proxmox
  3. 3. Create an SST user on your template container
  4. 4. Security Hardening & Logging on Galera template LXC
  5. 5. Turn the MariaDB container to a template - full vs linked clones?
  6. 6. Deploy 4x LXC containers on 2x Proxmox nodes
  7. 7. Configure Galera on each CT
  8. 8. Configure HAPRoxy for your Galera cluster
  9. 9. Understanding Quorum - When the Raspberry Pi comes in
  10. 10. Set up Monitoring - UpTime Kuma
  11. 11. Entrust your Galera Cluster with data
  12. 12. Beyond the set up - recovery & self-healing options

Other courses

Create an automated Gravity workflow that will allow...

January 19, 2024

Dynamically Populate Gravity Forms from Google Sheets (GSheets...

March 16, 2021

Concur Alternative: Import Employees’ Credit Card Expenses to...

January 19, 2024

Turn your Raspberry Pi into a Proxmox Backup...

July 13, 2025

Install iRedMail Mail Server As Proxmox VM With...

October 31, 2024

Recent Posts

  • How to get LXC containers for Proxmox outside of ready-made templates

  • How to join two Proxmox nodes into a cluster (PVE 8.x)

  • How to Rename a Proxmox Node

Facebook Twitter Instagram Pinterest Linkedin Youtube

All Rights Reserved. The theme was customized from Soledad, see PenciDesign

Bachelor Tech
  • Home
  • Tutorials
  • Tips
  • Portfolio
  • About Jan
  • Contact Jan