Templates on NFS VPS Server made on 1 Node with CentOS for Cluster

Bidi

Renowned Member
Feb 12, 2016
109
2
83
37
Hello guys,

I started to have big pain regarding the Templates we have made with cloud-init, windows...etc to avoid manualy installs but we have a small think and i`m tired of it.

So we got 6 servers with 5.4 on cluster, on each node we have 12 Templates, same Templates to avoid cloning on one node and migrate them after manualy on the node we whant to server.

I was thinking to make a VM on 1 node to install CentOS 7 on it with NFS and add it to the cluster as NFS Storage and store all the Templates on it to be shared on all the servers from the cluster, so to have them on 1 node only but stored on NFS.

I dont know if is ok, or if is working i didnt test this so this is why i open this thread.

Dose anyone test this ?
Dose anyone have a better solution ?
What happens if the node we made the templates dies ?
Is safe for the cluster ?

Thank you.
 
hi,

yes you can do this.

What happens if the node we made the templates dies ?
then you won't have access to templates until that VM is back up again (can be migrated/backup-restored to another node in case of failure)

Is safe for the cluster ?
try not to use it for holding disks of other VMs, it should be safe, treat it like a storage unit
 
Dose anyone have a better solution ?
actual NAS hardware, or possibly Ceph depending on your setup. check our documentation
 
hi,

yes you can do this.


then you won't have access to templates until that VM is back up again (can be migrated/backup-restored to another node in case of failure)


try not to use it for holding disks of other VMs, it should be safe, treat it like a storage unit


Each server has hes own storage/disk in RAID1 on all of them the storage is the same name ( local and localssd ) cuz we got SAS and SSD so 2 storage / node.

On the NFS ( VPS ) we whant to have only the Templates , no VMs no nothink else.
 
actual NAS hardware, or possibly Ceph depending on your setup. check our documentation

For what i uderstand NAS and Ceph it has to be a complet new server dedicated but i dont see the think to keep 1 dedicated server for 12 Templates and specialy we got servers with minimum 40 cores / 80 cores 256/512Gb Ram / Node so is waste of server, energy ...etc

Only if i guy a small small
 
Bk to this post, sompting is wrong or this is the way it is or is sompting i didnt made right.

So my templates ar on node 7 and storage on the NFS, when i whant to clone an template it lets me to select the node i whant to clone it but on the storage no :| it shows only the templates storage and not the servers storage ( local ) is sompting i didnt made tright ?

one.pngnode1.png
 
k to this post, sompting is wrong or this is the way it is or is sompting i didnt made right.

So my templates ar on node 7 and storage on the NFS, when i whant to clone an template it lets me to select the node i whant to clone it but on the storage no :| it shows only the templates storage and not the servers storage ( local ) is sompting i didnt made tright ?
you need to mark the storage as shared
available:
Datacenter -> Storage -> choose your storage -> Edit -> Nodes: all nodes
 
you need to mark the storage as shared
available:
Datacenter -> Storage -> choose your storage -> Edit -> Nodes: all nodes

It is :| , i think to be able to clone the templates acros other nodes on local even the local has to be shared otherwise i just dont explain this

itis.png
 
can you post the contents of /etc/pve/storage.cfg
 
can you post the contents of /etc/pve/storage.cfg

Hello,

Code:
root@d7:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content rootdir,vztmpl,images,snippets,iso
        maxfiles 0
        shared 0

dir: backup
        path /var/lib/vz/backup
        content vztmpl,backup
        maxfiles 2
        shared 0

dir: os-uri
        path /home
        content images,vztmpl,iso
        shared 0

dir: localssd
        path /home2
        content backup,rootdir,images,vztmpl,snippets,iso
        maxfiles 2
        nodes d7,d4,d3,d5
        shared 0

nfs: tpl-uri
        export /home/templates
        path /mnt/pve/tpl-uri
        server 89............
        content iso,images,vztmpl,rootdir

root@d7:~#
 
yes you can turn local to shared and try
 
create full clone of drive ide2 (tpl-uri:9011/vm-9011-cloudinit.raw)
TASK ERROR: clone failed: error with cfs lock 'storage-local': unable to parse volume filename 'vm-211-cloudinit'
 
what about making a clone locally first and migrating it?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!