Home

Awesome

vzrepair

vzrepair - script for OpenVZ 6 for boot container to repair mode (same as repair from PCS/Virtuozzo)

It work on CentOS 6 and only with ploop based containers.

License: GPLv2

Install

wget  --no-check-certificate https://raw.githubusercontent.com/FastVPSEestiOu/vzrepair/master/vzrepair.pl -O /usr/local/sbin/vzrepair
chmod +x /usr/local/sbin/vzrepair
wget --no-check-certificate https://raw.githubusercontent.com/FastVPSEestiOu/vzrepair/master/open_vestat_bash_completion -O /etc/bash_completion.d/vzrepair_bash_completion

Usage

vzrepair.pl [ --help ] < --ctid CTID > [ --start | --stop | --status ] 

Options

Description

We use 1000000000+ number for repair CTIDs.

Repair CTID = CTID + 1000000000.

Hostname changed to "repair.HOSTNAME" on repair container.

In fact it create new container and mount ploop from needed container to /repair/ directory.

And it add to new container chroot-prepair script for more simple chroot in /repair/.

Please see check_and_change_ostemplate sub - it have rules for mutate ostemplate(used if you not set template via --template key)