Dobrica Pavlinušić's random unstructured stuff
WebGUI upgrade 2010: Revision 5
This page is continuation from WebGUI upgrade from 7. to 7. Create snapshot of productionWhere is WebGUI ?root@mjesec:~# vzlist 212005 CTID NPROC STATUS IP_ADDR HOSTNAME 212005 43 running 193.198.212.5 webgui.rot13.org root@mjesec:~# vzquota stat 212005 resource usage softlimit hardlimit grace 1k-blocks 11474572 20971520 22020096 inodes 140595 286527 315180 Create LVM snapshotroot@mjesec:~# lvcreate -s -n vz-snap -L 30g /dev/vg/vz Logical volume "vz-snap" created root@mjesec:~# mkdir /mnt/vz-snap root@mjesec:~# mount /dev/vg/vz-snap /mnt/vz-snap -o ro rsync config[vz-snap] comment = /vz read-only snapshot for backup path = /mnt/vz-snap use chroot = yes lock file = /var/lock/rsyncd read only = yes list = yes uid = root gid = root strict modes = yes hosts allow = 10.60.0.201 ignore errors = no ignore nonreadable = no transfer logging = no timeout = 600 refuse options = checksum dry-run dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz Create LXC for upgraderoot@stage:~# mkdir /mnt/webgui-upgrade root@stage:~# lvcreate -n webgui-upgrade -L 50G /dev/stage Logical volume "webgui-upgrade" created root@stage:~# mkfs.btrfs /dev/stage/webgui-upgrade WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.kernel.org before using fs created label (null) on /dev/stage/webgui-upgrade nodesize 4096 leafsize 4096 sectorsize 4096 size 50.00GB root@stage:~# mount /dev/stage/webgui-upgrade /mnt/webgui-upgrade/ root@stage:~# time rsync -ravH --numeric-ids --sparse 10.60.0.9::vz-snap/private/212005 /mnt/webgui-upgrade/ |