Answer the question
In order to leave comments, you need to log in
How to properly make file resources in libvirt?
Hello. I hope to receive comments from professionals.
At the moment there is a powerful server on debian with kvm virtualization system. It also has a proxying nginx. There are
several virtual machines for different sites, since each one needs its own set of software and their versions, which cannot work on one server. One of these servers runs a single mysql server for all sites. All Wirth. machines work in the internal network, access to them from the outside is only through forwarding from the main server.
The idea is to change it like this:
Make a single storage location for all sites on the main server (single directory), and connect this directory to virtual machines as a network drive (File System Pass-Through). Will there be access conflicts if two virtual machines read / write data to this disk at the same time? And in general, how will it be faster and more reliable if each virtual machine has its own space for files, or as I described? I also want to make a mysql server and make it a separate Wirth. machine, the database storage folder is also in a single folder.
In general, why do I want a single storage location ...
- It's convenient to make a backup, I make one folder and that's it, and now I unload from each virtual machine
- I edit, complete, modify sites, thereby for each site its own connection to files from a working computer, which is not very convenient
- From time to time my clients need FTP access to the site. In this case, I will make a separate Wirth. the server on which there will be only ftp, I connect this shared folder to it and already distribute rights there ...
- It's easier to transfer everything in case of a server breakdown, the shared folder is copied every day via rsync, and Wirth machines that weigh 8 GB are enough once transfer, after I have configured them, and thus this structure will be easy to restore on another such server.
How viable is this scheme and is it better than what we have now? Thanks...
Answer the question
In order to leave comments, you need to log in
You are trying to unify a structure well separated by virtual machines. Don't do it, it's unreliable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question