6.1. Miscellaneous Ploop Operations

The following is the quick introduction of what operations can be performed with ploop images. For more details about ploop, see https://openvz.org/Ploop.

When using the ploop command-line tool, you need to refer to ploop images by path to its DiskDescriptor.xml file. The docker-volume-ploop driver creates images under img subdirectory of its home ($DKV_PLOOP_HOME). So, to use the following example commands, you need to cd to the image directory, for example:

# cd /pcs/img/MyFirstVol/

6.1.1. Managing Docker Volume Snapshots

To create a snapshot, run

# ploop snapshot DiskDescriptor.xml

To list snapshots, run

# ploop snapshot-list DiskDescriptor.xml

To delete a snapshot, run

# ploop snapshot-delete -u <UUID> DiskDescriptor.xml

To mount a snapshot (read-only), run

# ploop mount -r -u <UUID> -m <mount_point> DiskDescriptor.xml

6.1.2. Resizing Ploops

To resize a running or stopped volume, run

# ploop resize -s <size> DiskDescriptor.xml

6.1.3. Checking Ploop Status

In case of issues with a ploop image (e.g., it cannot be mounted, may be corrupted, etc.), you can check its status as follows:

# ploop check DiskDescriptor.xml

If you want to run fsck on ploop’s inner filesystem, run

# ploop mount -F DiskDescriptor.xml

Then make sure to unmount it with

# ploop umount DiskDescriptor.xml