Class: Pvectl::Commands::MoveDiskContainer

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

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 =

Returns:

  • (Symbol)
:container
SUPPORTED_RESOURCES =

Returns:

  • (Array[String])
%w[container ct].freeze

Constants included from MoveDiskCommand

Pvectl::Commands::MoveDiskCommand::VALID_FORMATS

Method Summary

Methods included from MoveDiskCommand

#build_service, #confirm_operation, #disk_label, #execute, #id_label, included, #initialize, #load_config, #output_result, #perform_operation, #resolve_resource, #resource_not_found, #resource_type_symbol, #service_options, #usage_error