vzlist -o laverage,hostname,ctid
vztop.sh
#! /bin/bash
# Usage: ovzps <CTID> [ps flags ...]
ctid=${1:-0}
shift
ps $* -p $(grep -l "^envID:[[:space:]]*$ctid\$" /proc/[0-9]*/status |
sed -e 's=/proc/\([0-9]*\)/.*=\1=')
Показаны сообщения с ярлыком virtualization. Показать все сообщения
Показаны сообщения с ярлыком virtualization. Показать все сообщения
понедельник, 5 ноября 2012 г.
четверг, 15 сентября 2011 г.
Как сохранять нужное кол-во Proxmox vzdump бекапов ?
в /etc/vzdump.conf
добавить строчку
maxfiles: N
N - необходимое кол-во
больше о vzdump.conf можно узнать в man vzdump
добавить строчку
maxfiles: N
N - необходимое кол-во
больше о vzdump.conf можно узнать в man vzdump
понедельник, 5 июля 2010 г.
backup by tar
http://wiki.openvz.org/Physical_to_container
Create a file /tmp/excludes.excl with these contents:
Then create the tar. But remember, when the system is 'not' using udev, you have to look into /proc/ after creating your container because some devices might not exist. (/dev/ptmx or others)
Naturally, you can only do this when the critical services (MySQL, apache, ..) are stopped and your /tmp filesystem is big enough to contain your tar.
Tar
Another approach is using tar and excluding some dirs, you could do it like this:Create a file /tmp/excludes.excl with these contents:
.bash_history /dev/* /mnt/* /tmp/* /proc/* /sys/* /usr/src/*
Then create the tar. But remember, when the system is 'not' using udev, you have to look into /proc/ after creating your container because some devices might not exist. (/dev/ptmx or others)
# tar --numeric-owner -cjpf /tmp/mysystem.tar.bz2 / -X /tmp/excludes.excl
Naturally, you can only do this when the critical services (MySQL, apache, ..) are stopped and your /tmp filesystem is big enough to contain your tar.
Подписаться на:
Сообщения (Atom)