Class: Pvectl::Commands::MoveDiskContainer

Inherits:
Object
  • Object
show all
Includes:
MoveDiskCommand
Defined in:
lib/pvectl/commands/move_disk_container.rb

Overview

Handler for the ‘pvectl move disk ct` command.

Moves a container volume (rootfs / mpN) to a different storage on the same node. The –format flag is rejected because the LXC move_volume API does not accept a format.

Examples:

Move rootfs of container 200 to storage2

pvectl move disk ct 200 rootfs --target storage2

Constant Summary collapse

RESOURCE_TYPE =
:container
SUPPORTED_RESOURCES =
%w[container ct].freeze

Constants included from MoveDiskCommand

Pvectl::Commands::MoveDiskCommand::VALID_FORMATS

Method Summary

Methods included from MoveDiskCommand

#execute, included, #initialize