ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Konstantin A. Lepikhov" <lakostis@unsafe.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] ovz backup & checkpointing
Date: Wed, 11 Oct 2006 14:40:59 +0400
Message-ID: <20061011104059.GA19521@lks.home> (raw)
In-Reply-To: <452B690E.6020506@stc.donpac.ru>

Hi Eugene!

Tuesday 10, at 01:34:06 PM you wrote:

> Alexey I. Froloff пишет:
> > * Eugene Prokopiev <prokopiev@> [061010 12:55]:
> > 
> >>После установки описанных параметров и рестарта VE все отработало, но 
> >>размер дампа оказался 512K:
> >>Что бы это могло значить?
> > 
> > chkpnt <vpsid> [--dumpfile <name>]
> >        This command saves all the state of running VPS to dump
> >        file and stop the VPS.  if option --dumpfile is not set
> >        default path /vz/dump/Dump.VPSID is used.
> 
> Ага, значит я плохо читал. Правильно ли я понял теперь, что процедура 
> бэкапа должна выглядеть так:
> 
> 1. делаем suspend и chkpnt
> 2. сжимаем var/lib/vz/private/$VEID и откладываем в сторонку вместе с дампом
> 3. делаем resume
> 
> При необходимости восстановить VE из бэкапа мы:
> 
> 1. делаем resume
> 2. на место var/lib/vz/private/$VEID переносим то, что отложили
> 3. делаем vzctl restore $VEID --undump --dumpfile <path>
> 
> И работаем с тем что было до бэкапа, верно?
да, только ваша процедура больше похожа на миграцию, а не на backup.

> 
> Правильно ли я также понимаю, что VE, внутри которых не происходит 
> интенсивных модификаций ФС (или то, что модифицировали, не страшно 
> потерять) проще бэкапить на ходу с помощью tar/cpio/rsync?
проще сделать drbd :)

> 
> Если внутри VE живет, скажем, PostgreSQL, что будет правильнее: бэкапить 
> его с помощью suspend/chkpnt/copy или бэкапить БД средствами самого 
> PostgreSQL, а все прочее с помощью tar/cpio/rsync?
проще настроить репликацию.

-- 
WBR et al.


  reply	other threads:[~2006-10-11 10:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-10  6:04 Eugene Prokopiev
2006-10-10  7:34 ` Alexey I. Froloff
2006-10-10  8:58   ` Eugene Prokopiev
2006-10-10  9:08     ` Alexey I. Froloff
2006-10-10  9:34       ` Eugene Prokopiev
2006-10-11 10:40         ` Konstantin A. Lepikhov [this message]
2006-10-11 14:28           ` Eugene Prokopiev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061011104059.GA19521@lks.home \
    --to=lakostis@unsafe.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git