/[vz-tools]/trunk
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Log of /trunk

View Directory Listing Directory Listing


Sticky Revision:

Revision 77 - Directory Listing
Modified Mon Apr 27 12:08:07 2009 UTC (12 years, 1 month ago) by dpavlin
document IP address to VEID mungling

Revision 76 - Directory Listing
Modified Thu Mar 26 17:52:06 2009 UTC (12 years, 2 months ago) by dpavlin
call vzconf with correct barriers and limit


Revision 75 - Directory Listing
Modified Thu Mar 26 17:41:41 2009 UTC (12 years, 2 months ago) by dpavlin
set parametars from /etc/vz/conf to running VE


Revision 74 - Directory Listing
Modified Mon Mar 9 19:09:22 2009 UTC (12 years, 3 months ago) by dpavlin
rewrite /dev/mapper/vg-lv to /dev/vg/lv

Revision 73 - Directory Listing
Modified Mon Mar 9 19:04:19 2009 UTC (12 years, 3 months ago) by dpavlin
use VZ.pm to correctly detect vz location and
try to guess correct params when vz doesn't have
it's own logical volume (still broken)


Revision 72 - Directory Listing
Modified Wed Mar 4 19:34:11 2009 UTC (12 years, 3 months ago) by dpavlin
update Debian packaging

Revision 71 - Directory Listing
Modified Wed Mar 4 19:29:12 2009 UTC (12 years, 3 months ago) by dpavlin
make lenny default for vz-create.pl

Revision 70 - Directory Listing
Modified Wed Mar 4 19:27:20 2009 UTC (12 years, 3 months ago) by dpavlin
install *.pl and *.sh scripts

Revision 69 - Directory Listing
Modified Tue Mar 3 20:58:48 2009 UTC (12 years, 3 months ago) by dpavlin
fix destroy

Revision 68 - Directory Listing
Modified Sun Mar 1 11:50:04 2009 UTC (12 years, 3 months ago) by dpavlin
make all usb devices visible to contailer for printing

http://wiki.openvz.org/USB_Printing_in_VE


Revision 67 - Directory Listing
Modified Sat Feb 28 16:32:12 2009 UTC (12 years, 3 months ago) by dpavlin
enlarge snapshot to 10G and add iptable rule

Revision 66 - Directory Listing
Modified Fri Feb 27 20:49:06 2009 UTC (12 years, 3 months ago) by dpavlin
remove snapshot on destroy

Revision 65 - Directory Listing
Modified Fri Feb 27 20:05:02 2009 UTC (12 years, 3 months ago) by dpavlin
implement clone on live snapshot with quota turned off
to speed up first startup (which would otherwise check
quota for whole vz logical volume)

Revision 64 - Directory Listing
Modified Fri Feb 27 18:41:06 2009 UTC (12 years, 3 months ago) by dpavlin
rest of m{} patterns

Revision 63 - Directory Listing
Modified Fri Feb 27 18:38:19 2009 UTC (12 years, 3 months ago) by dpavlin
added few ideas

Revision 62 - Directory Listing
Modified Fri Feb 27 18:37:34 2009 UTC (12 years, 3 months ago) by dpavlin
better s{}{} delimiters so we don't confuse vim syntax hightlight

Revision 61 - Directory Listing
Modified Fri Feb 6 10:02:13 2009 UTC (12 years, 4 months ago) by dpavlin
munin plugin for bean counters

http://wiki.openvz.org/Monitoring_openvz_resources_using_munin

Revision 60 - Directory Listing
Modified Mon Feb 2 15:21:36 2009 UTC (12 years, 4 months ago) by dpavlin
create /etc/fstab


Revision 59 - Directory Listing
Modified Mon Feb 2 15:10:11 2009 UTC (12 years, 4 months ago) by dpavlin
use /var/lib/vz (Debian default) if /vz doesn't exist


Revision 58 - Directory Listing
Modified Mon Feb 2 12:35:22 2009 UTC (12 years, 4 months ago) by dpavlin
don't create VEID in reserved range 0 .. 100


Revision 57 - Directory Listing
Modified Mon Feb 2 11:09:13 2009 UTC (12 years, 4 months ago) by dpavlin
init output from vzlist so that we don't die when
we use it as hash and no machines are started


Revision 56 - Directory Listing
Modified Tue Oct 21 18:38:19 2008 UTC (12 years, 7 months ago) by dpavlin
added link to vzprocfs at http://download.openvz.org/debian-systs/pool/openvz/v/vzprocps/

Revision 55 - Directory Listing
Modified Tue Oct 21 18:12:52 2008 UTC (12 years, 7 months ago) by dpavlin
this script requires tools available at:

https://svn.rot13.org/index.cgi/perl/checkout/trunk/groupby.pl
https://svn.rot13.org/index.cgi/perl/checkout/trunk/sum.pl

and module not available in lenny:

cpanp i IPC::System::Simple

insert following in /etc/sudoers if you are in staff group on remote machine for this to work:

%staff ALL=(root) NOPASSWD: /usr/sbin/vzlist

Revision 54 - Directory Listing
Modified Fri Aug 15 10:53:25 2008 UTC (12 years, 10 months ago) by dpavlin
enter into any virtual machine by unique part of hostname

Revision 53 - Directory Listing
Modified Fri Aug 15 10:50:32 2008 UTC (12 years, 10 months ago) by dpavlin
skip if not run as root

Revision 52 - Directory Listing
Modified Fri Aug 15 09:59:29 2008 UTC (12 years, 10 months ago) by dpavlin
update Module::Install

Revision 51 - Directory Listing
Modified Thu Aug 14 22:52:56 2008 UTC (12 years, 10 months ago) by dpavlin
small helper to execute command on all hosts

Revision 50 - Directory Listing
Modified Thu Aug 14 22:49:05 2008 UTC (12 years, 10 months ago) by dpavlin
fix iptables with cloned IP number

Revision 49 - Directory Listing
Modified Thu Aug 14 22:47:54 2008 UTC (12 years, 10 months ago) by dpavlin
fix vim syntax highlightning

Revision 48 - Directory Listing
Modified Wed Aug 13 10:40:28 2008 UTC (12 years, 10 months ago) by dpavlin
Debian packaging from Josip Rodin

Revision 47 - Directory Listing
Modified Sun Mar 30 12:48:39 2008 UTC (13 years, 2 months ago) by dpavlin
cleanup hard-coded dist and arh

Revision 46 - Directory Listing
Modified Sun Mar 30 12:48:18 2008 UTC (13 years, 2 months ago) by dpavlin
runscript now skips non-existent scripts

Revision 45 - Directory Listing
Modified Wed Mar 12 00:43:49 2008 UTC (13 years, 3 months ago) by dpavlin
initial support for command line options, for now
--dist --arh --mirror and --split

Revision 44 - Directory Listing
Modified Sat Feb 9 00:28:10 2008 UTC (13 years, 4 months ago) by dpavlin
- moved runscript into VZ.pm
- hide passwords in vzctl

Revision 43 - Directory Listing
Modified Fri Feb 8 23:53:52 2008 UTC (13 years, 4 months ago) by dpavlin
stop VE only if started

Revision 42 - Directory Listing
Modified Fri Feb 8 23:53:40 2008 UTC (13 years, 4 months ago) by dpavlin
- added vzlist
- added tests

Revision 41 - Directory Listing
Modified Fri Feb 8 23:16:29 2008 UTC (13 years, 4 months ago) by dpavlin
basic load test

Revision 40 - Directory Listing
Modified Fri Feb 8 23:02:25 2008 UTC (13 years, 4 months ago) by dpavlin
- added new common functions
- export $vz_root and $vz_conf

Revision 39 - Directory Listing
Modified Fri Feb 8 21:46:09 2008 UTC (13 years, 4 months ago) by dpavlin
ignore some files

Revision 38 - Directory Listing
Modified Fri Feb 8 21:45:37 2008 UTC (13 years, 4 months ago) by dpavlin
- make own hostname2ip instead of using host command
- restart using sudo if needed

Revision 37 - Directory Listing
Modified Fri Feb 8 21:43:29 2008 UTC (13 years, 4 months ago) by dpavlin
stop VE before removal

Revision 36 - Directory Listing
Modified Fri Feb 8 20:03:16 2008 UTC (13 years, 4 months ago) by dpavlin
remove VE

Revision 35 - Directory Listing
Modified Thu Dec 13 23:50:47 2007 UTC (13 years, 6 months ago) by dpavlin
use Regexp::Common to extract IP from host output which works
even when hostname is CNAME

Revision 34 - Directory Listing
Modified Thu Nov 8 11:35:15 2007 UTC (13 years, 7 months ago) by dpavlin
added inc/ to enable installation from checkout

Revision 33 - Directory Listing
Modified Tue Oct 16 09:35:59 2007 UTC (13 years, 8 months ago) by dpavlin
alternative ip mungling to 192.168.x.y

Revision 32 - Directory Listing
Modified Tue Oct 16 08:13:28 2007 UTC (13 years, 8 months ago) by dpavlin
Makefile.PL with dependencies

Revision 31 - Directory Listing
Modified Thu Oct 11 19:28:27 2007 UTC (13 years, 8 months ago) by dpavlin
delete files on cloned VE which no longer exist on master to create perfect copy

Revision 30 - Directory Listing
Modified Fri Oct 5 01:09:12 2007 UTC (13 years, 8 months ago) by dpavlin
cleanup umount sub-command: not accepts oritinal VE ID as
other commands do

Revision 29 - Directory Listing
Modified Fri Oct 5 01:01:13 2007 UTC (13 years, 8 months ago) by dpavlin
added mount

Revision 28 - Directory Listing
Modified Fri Oct 5 00:28:43 2007 UTC (13 years, 8 months ago) by dpavlin
rsync directly to mounted directory insted through mount --bind

Revision 27 - Directory Listing
Modified Thu Oct 4 23:42:24 2007 UTC (13 years, 8 months ago) by dpavlin
variable to skip snapshot usage,
fixed logic which machine to vzctl stop on create/destroy

Revision 26 - Directory Listing
Modified Thu Oct 4 23:23:20 2007 UTC (13 years, 8 months ago) by dpavlin
clone lv are now always named vz-clone-10VEID and not
dependent on OpenVZ lv name

Revision 25 - Directory Listing
Modified Thu Oct 4 23:19:33 2007 UTC (13 years, 8 months ago) by dpavlin
new syntax: subcommands create, umount and destroy

Revision 24 - Directory Listing
Modified Thu Oct 4 18:54:41 2007 UTC (13 years, 8 months ago) by dpavlin
rsync know how to handle device and special files, ssync doesn't.
So it's out...

Revision 23 - Directory Listing
Modified Thu Oct 4 16:58:01 2007 UTC (13 years, 8 months ago) by dpavlin
Create new logical volume for each clone of virtual machine.
That allows snapshots to actually works, because otherwise,
we would have to write content twice:

1. new cloned copy on disk
2. in snapshot (so that we see "old" copy)

This requires snapshot partition at least as big as filesystem
of cloned machine. It also slows down cloning. 

The root of the problem is usage of vg logical volume both as source
(which we want to have snapshot of to achieve consistent copy)
and destination for new cloned fs. Creating new logical volume per
VE cloned allows easy management and update also.

But, this might be optional (and there is fallback in the codei
if there is no lvm for vz data) if we want to create another
persistant clone (TODO).

If possible, we will try to use ssync binary (which sadly
isn't packaged for Debian) because it's much faster than
rsync.

Revision 22 - Directory Listing
Modified Thu Oct 4 13:19:26 2007 UTC (13 years, 8 months ago) by dpavlin
hint how to add NAT rule for cloned VE

Revision 21 - Directory Listing
Modified Thu Oct 4 13:12:08 2007 UTC (13 years, 8 months ago) by dpavlin
prepare and use temporary lvm snapshot while coping data,
annotate changed configuration variables,
new VE will have prefix 10 and first octet of IP adress 10.

Revision 20 - Directory Listing
Modified Thu Oct 4 11:30:05 2007 UTC (13 years, 8 months ago) by dpavlin
a simple script to create clone of VE

Revision 19 - Directory Listing
Modified Tue Apr 17 13:05:11 2007 UTC (14 years, 2 months ago) by dpavlin
added --force-yes to apt-get install


Revision 18 - Directory Listing
Modified Tue Apr 17 12:46:31 2007 UTC (14 years, 2 months ago) by dpavlin
added external config file


Revision 17 - Directory Listing
Modified Mon Apr 16 20:37:13 2007 UTC (14 years, 2 months ago) by dpavlin
wget will just try once for 5s to access apt-iselect on external URI


Revision 16 - Directory Listing
Modified Mon Apr 16 20:35:03 2007 UTC (14 years, 2 months ago) by dpavlin
don't prefix VEID with 0


Revision 15 - Directory Listing
Modified Thu Feb 1 10:40:05 2007 UTC (14 years, 4 months ago) by dpavlin
extract parametars in variables (pending options addition)


Revision 14 - Directory Listing
Modified Wed Jan 31 21:12:47 2007 UTC (14 years, 4 months ago) by dpavlin
new limit is 10% larger than current value, and new barrier is 20% larger.
execute vzctl with --save

Revision 13 - Directory Listing
Modified Fri Jan 12 21:23:44 2007 UTC (14 years, 5 months ago) by dpavlin
track things to do

Revision 12 - Directory Listing
Modified Mon Jan 8 22:59:26 2007 UTC (14 years, 5 months ago) by dpavlin
rename of optimizer

Revision 11 - Directory Listing
Modified Sun Jan 7 23:53:16 2007 UTC (14 years, 5 months ago) by dpavlin
minor tweaks to configuration (machine is now split in 4 VEs),
fix apt-iselect installer, change root password and create first
user

Revision 10 - Directory Listing
Modified Sun Jan 7 23:25:19 2007 UTC (14 years, 5 months ago) by dpavlin
fix warnings

Revision 9 - Directory Listing
Modified Sun Jan 7 15:21:36 2007 UTC (14 years, 5 months ago) by dpavlin
added telnet and finger packages, setup diskspace for VE

Revision 8 - Directory Listing
Modified Sun Jan 7 13:35:10 2007 UTC (14 years, 5 months ago) by dpavlin
install apt-iselect to /usr/local/bin/

Revision 7 - Directory Listing
Modified Sun Jan 7 12:54:14 2007 UTC (14 years, 5 months ago) by dpavlin
add screen

Revision 6 - Directory Listing
Modified Sun Jan 7 12:34:27 2007 UTC (14 years, 5 months ago) by dpavlin
wait on startup

Revision 5 - Directory Listing
Modified Sun Jan 7 12:32:37 2007 UTC (14 years, 5 months ago) by dpavlin
packages -- add sudo, remove nano

Revision 4 - Directory Listing
Modified Sun Jan 7 12:11:36 2007 UTC (14 years, 5 months ago) by dpavlin
create new virtual enviroment using debootstrap

Revision 3 - Directory Listing
Modified Mon Nov 27 15:35:36 2006 UTC (14 years, 6 months ago) by dpavlin
increase_over variable


Revision 2 - Directory Listing
Modified Mon Nov 27 14:16:52 2006 UTC (14 years, 6 months ago) by dpavlin
few more touches


Revision 1 - Directory Listing
Added Mon Nov 27 14:08:47 2006 UTC (14 years, 6 months ago) by dpavlin
initial import of optimizer


  ViewVC Help
Powered by ViewVC 1.1.26