backup VE with vzdump [message #13204] |
Wed, 23 May 2007 11:29 |
Andreas Wittig
Messages: 1 Registered: May 2007
|
Junior Member |
|
|
Hi!
I'd like to have a complete backup of a VE. Is vzdump the right tool to
do this? Which paramter, should I use --stop, --suspend or --snapshot?
I dont't really understand the difference?
Is there anything else I should consider?
Regards!
Andreas
|
|
|
|
|
Re: AW: backup VE with vzdump [message #13272 is a reply to message #13206] |
Thu, 24 May 2007 05:21 |
Markus Hardiyanto
Messages: 27 Registered: April 2007
|
Junior Member |
|
|
does --suspend causing downtime of the VE? if yes how long? in the case a VE have used 40GB of disk space.
i tried to use --snapshot, but it seems that it wants to create new partition on the LVM, while all the space on my disk already allocated to /vz (it's on LVM)
i do have a second HDD which is formated to ext3, can i used it as the backup destination? and how to do it?
i know that there is an option for the backup destination on vzdump, but as i said before, vzdump tried to make new partition on LVM (which is on the main HDD not in the secondary. I intended to backup on the second HDD)
thank yous
Best Regards,
Markus
----- Original Message ----
From: Dietmar Maurer <dietmar@proxmox.com>
To: users@openvz.org
Sent: Wednesday, May 23, 2007 7:18:20 PM
Subject: AW: [Users] backup VE with vzdump
> I'd like to have a complete backup of a VE. Is vzdump the
> right tool to do this?
vzdump does complete backups, only the log files (/var/log/*)
and /tmp/ and /var/tmp are excluded (to save space)
> Which paramter, should I use --stop,
> --suspend or --snapshot?
> I dont't really understand the difference?
>
Please use --snapshot if the VE root is on a LVM2 partition
Else use --suspend
- Dietmar
Send instant messages to your online friends http://uk.messenger.yahoo.com
|
|
|
AW: AW: backup VE with vzdump [message #13274 is a reply to message #13272] |
Thu, 24 May 2007 06:38 |
dietmar
Messages: 54 Registered: March 2007
|
Member |
|
|
> does --suspend causing downtime of the VE? if yes how long?
> in the case a VE have used 40GB of disk space.
Several seconds delay, but services will continue to work.
>
> i tried to use --snapshot, but it seems that it wants to
> create new partition on the LVM, while all the space on my
> disk already allocated to /vz (it's on LVM)
The LVM snapshots need 500m free space.
> i do have a second HDD which is formated to ext3, can i used
> it as the backup destination? and how to do it?
Use option --dumpdir, for example
vzdump --dumpdir /space/backup --suspend 777
> i know that there is an option for the backup destination on
> vzdump, but as i said before, vzdump tried to make new
> partition on LVM (which is on the main HDD not in the
> secondary. I intended to backup on the second HDD)
The LVM snapshot needs space on the VG you want to
take the snapshot. (See LVM2 howto and mauanl pages).
So if you want to use snapshot you must provide some
free space on that VG (Volume Group). You can do that by
adding another partition/disk to that VG (man pvcreate).
- Dietmar
|
|
|