addnode.php¶
The addnode.php utility adds a slave node to master node.
Options¶
Option | Value | Description | |
---|---|---|---|
--type | kvm|xen|openvz | The virtualization type of the node. | Mandatory |
--name | The name of the node | Mandatory | |
--id | The hash key for the API connection from /usr/local/solusvm/data/solusvm.conf file | Mandatory | |
--key | The hash password key for the API connection from /usr/local/solusvm/data/solusvm.conf file | Mandatory | |
--ip | IP address of the slave node | Mandatory | |
--port | SSH port of the slave node | Mandatory | |
--lvm | The name of the volume group on the slave that will be used to create LVM storages | Mandatory | |
--host | Hostname of the slave node | ||
--country | Country where the node is located | ||
--city | City where the node is located | ||
--licensetype | 1|2|3 | 1 - Micro Slave, 2 - Mini Slave, 3 - Unlimited Slave | |
--interface | Main network interface of the node | ||
--interfacespeed | in Mbit/s. Speed of the main network interface | ||
--friendlyname | Friendly name of the node | ||
--countinbw | true|false | Enable/Disable counting of VPS inbound bandwidth (false by default) | |
--countoutbw | true|false | Enable/Disable counting of VPS outbound bandwidth (false by default) | |
--nodegroup | ID of the node group (0 by default) | ||
--maxvps | Maximum number of VPSes allowed on the node | ||
--maxmemory | in MB. The maximum Amount of memory to allocate to virtual servers | ||
--maxdisk | in MB. The maximum amount of disk space to allocate to virtual servers | ||
--ftp-password | Password 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