Trees | Indices | Help |
|
---|
|
Node related commands
|
|||
|
|||
|
|||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
|
|||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
int |
|
||
|
|
|||
_LIST_DEF_FIELDS = ["name", "dtotal", "dfree", "mtotal", "mnod default list of field for ListNodes |
|||
_LIST_VOL_DEF_FIELDS = ["node", "phys", "vg", "name", "size", Default field list for ListVolumes |
|||
_LIST_STOR_DEF_FIELDS = [constants.SF_NODE, constants.SF_TYPE, default list of field for ListStorage |
|||
_LIST_POWER_COMMANDS = ["on", "off", "cycle", "status"] default list of power commands |
|||
_LIST_STOR_HEADERS = {constants.SF_NODE: "Node", constants.SF_ headers (and full field list) for ListStorage |
|||
_USER_STORAGE_TYPE = {constants.ST_FILE: "file", constants.ST_ User-facing storage unit types |
|||
_STORAGE_TYPE_OPT = cli_option("-t", "--storage-type", dest= "
|
|||
_REPAIRABLE_STORAGE_TYPES = [st for st, so in constants.VALID_
|
|||
_MODIFIABLE_STORAGE_TYPES = constants.MODIFIABLE_STORAGE_FIELD
|
|||
NONODE_SETUP_OPT = cli_option("--no-node-setup", default= True
|
|||
commands = {'add':(AddNode, [ArgHost(min= 1, max= 1)], [SECOND
|
Imports: cli, bootstrap, opcodes, utils, constants, errors, netutils, StringIO
|
Wrapper around utils.RunCmd to call setup-ssh
|
Add a node to the cluster.
|
List nodes and their properties.
|
List node fields.
|
Relocate all secondary instance from a node.
|
Failover all primary instance on a node.
|
Show node information.
|
Remove a node from the cluster.
|
Remove a node from the cluster.
|
Change/ask power state of a node.
|
List logical volumes on node(s).
|
List physical volumes on node(s).
|
Modify storage volume on a node.
|
Repairs a storage volume on a node.
|
Modifies a node.
|
|
_LIST_DEF_FIELDSdefault list of field for ListNodes
|
_LIST_VOL_DEF_FIELDSDefault field list for ListVolumes
|
_LIST_STOR_DEF_FIELDSdefault list of field for ListStorage
|
_LIST_STOR_HEADERSheaders (and full field list) for ListStorage
|
_USER_STORAGE_TYPEUser-facing storage unit types
|
_STORAGE_TYPE_OPT
|
_REPAIRABLE_STORAGE_TYPES
|
_MODIFIABLE_STORAGE_TYPES
|
NONODE_SETUP_OPT
|
commands
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Oct 27 14:18:48 2011 | http://epydoc.sourceforge.net |