4.12. set

4.12.1. set cluster power

rocks set cluster power {host} [action=string] [delay=string] {key=string}

Turn the power on or off for each client host in a virtual cluster. This command will *not* affect a virtual frontend.

arguments

host

The host name of a virtual frontend.

parameters

[action=string]

The power setting. This must be one of 'on', 'off' or 'install'. The 'install' action will turn the power on and force the host to install.

[delay=string]

Sets the time (in seconds) to delay between each power command. Default is '1'.

key=string

A private key that will be used to authenticate the request. This should be a file name that contains the private key.

examples

$ rocks set cluster power frontend-0-0-0 action=on

Turn on the power for each client node that is associated with frontend-0-0-0.

4.12.2. set host vm

rocks set host vm {host} [disk=string] [disksize=string] [mem=string] [physnode=string] [slice=string] [virt-type=string]

Change the VM configuration for a specific VM.

arguments

host

One or more VM host names.

parameters

[disk=string]

A VM disk specification. More than one disk can be supplied. Each disk specification must separated by a space.

[disksize=string]

The size of the VM disk in gigabytes.

[mem=string]

The amount of memory in megabytes to assign to this VM.

[physnode=string]

The physical machine this VM should run on.

[slice=string]

The slice ID for this VM.

[virt-type=string]

Set the virtualization type for this VM. This can be 'para' or 'hvm'.

examples

# rocks set host vm compute-0-0-0 mem=4096

Change the memory allocation for VM compute-0-0-0 to 4 GB.