OpenVZ Forum


Home » Mailing lists » Users » backup VE with vzdump
backup VE with vzdump [message #13204] Wed, 23 May 2007 11:29 Go to next message
Andreas Wittig is currently offline  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
AW: backup VE with vzdump [message #13206 is a reply to message #13204] Wed, 23 May 2007 12:18 Go to previous messageGo to next message
dietmar is currently offline  dietmar
Messages: 54
Registered: March 2007
Member
> 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
Re: AW: backup VE with vzdump [message #13208 is a reply to message #13206] Wed, 23 May 2007 12:24 Go to previous messageGo to next message
pookey is currently offline  pookey
Messages: 12
Registered: March 2007
Junior Member
Dietmar Maurer wrote:

> Please use --snapshot if the VE root is on a LVM2 partition
>
> Else use --suspend


but don't use either until you understand :)

look back on this list for posts about vzbackup, it's better explained
elsewhere on list.
Re: AW: backup VE with vzdump [message #13272 is a reply to message #13206] Thu, 24 May 2007 05:21 Go to previous messageGo to next message
Markus Hardiyanto is currently offline  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 Go to previous message
dietmar is currently offline  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
Previous Topic: Net:Registered protocol family 16
Next Topic: Same as Physical PC
Goto Forum:
  


Current Time: Sun May 12 12:45:19 GMT 2024

Total time taken to generate the page: 0.01457 seconds