addnode.php

The addnode.php utility adds a slave node to master node.

Options

OptionValueDescription
–typekvm|xen|openvzThe virtualization type of the node.Mandatory
–nameThe name of the nodeMandatory
–idThe hash key for the API connection from /usr/local/solusvm/data/solusvm.conf fileMandatory
–keyThe hash password key for the API connection from /usr/local/solusvm/data/solusvm.conf fileMandatory
–ipIP address of the slave nodeMandatory
–portSSH port of the slave nodeMandatory
–lvmThe name of the volume group on the slave that will be used to create LVM storagesMandatory
–hostHostname of the slave node
–countryCountry where the node is located
–cityCity where the node is located
–licensetype1|2|31 - Micro Slave, 2 - Mini Slave, 3 - Unlimited Slave
–interfaceMain network interface of the node
–interfacespeedin Mbit/s. Speed of the main network interface
–friendlynameFriendly name of the node
–countinbwtrue|falseEnable/Disable counting of VPS inbound bandwidth (false by default)
–countoutbwtrue|falseEnable/Disable counting of VPS outbound bandwidth (false by default)
–nodegroupID of the node group (0 by default)
–maxvpsMaximum number of VPSes allowed on the node
–maxmemoryin MB. The maximum Amount of memory to allocate to virtual servers
–maxdiskin MB. The maximum amount of disk space to allocate to virtual servers
–ftp-passwordPassword of FTP server for AutoFTP backups

Example

php /usr/local/solusvm/scripts/addnode.php --type=kvm --name=slavekvmnode --ip=10.10.10.10 --port=22 --id=IDKey --key=KeyPass --lvm=vg0