Difference between root and private, what to take in backup? [message #12277] |
Tue, 24 April 2007 02:57  |
ugob
Messages: 271 Registered: March 2007
|
Senior Member |
|
|
Hi,
I've started playing with vzdump and it reminded me that I have one question about OpenVZ: What is the difference between root and the private area?
What do I need to take in backup?
With vzdump, you have several options for taking the backup.
(without argument) -> no snapshot, just archive the VE private area and configuration files to the default dump directory
--stop (stop/start VPS if running)
--suspend (suspend/resume VPS when running)
--snapshot (Use LVM snapshot when running)
Which one is better for what kind of environment?
For example, I think that the without any arguments is ok for my VE running only SSH.
However, for my RT VE (httpd/mysql), I guess I should use --suspend or --stop to make sure the mysql data is consistent...
What is the big difference between --snapshot and --stop? The time needed for the VE to stop and boot?
Regards,
Ugo
Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
|
|
|
|
Re: Difference between root and private, what to take in backup? [message #12289 is a reply to message #12281] |
Tue, 24 April 2007 10:38   |
ugob
Messages: 271 Registered: March 2007
|
Senior Member |
|
|
Vasily Tarasov wrote on Tue, 24 April 2007 03:59 |
Quote: | I've started playing with vzdump and it reminded me that I have one question about OpenVZ: What is the difference between root and the private area?
|
When VE is stopped you have contents only in private/<veid> directory. When VE starts simfs filesystem is mounted on root/<veid>. Simfs is a mirror-like filesystem: it mirrors the contents of private/<veid> to root/<veid>. The reason to use simfs is to isolate VE's filesystem from HN's one.
|
Ok, so I guess one should never edit files directly in the root?
If, for example, I want to make a backup of my VE that is only an ftp server, should I do a rsync of /home in the root or private?
Thanks
Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
|
|
|
|
|
|
|
|
|
|
|