Product SiteDocumentation Site

2.21. Making API Requests

You can change the secondary storage IP address after it has been provisioned. After changing the IP address on the host, log in to your management server and execute the following commands. Replace HOSTID below with your own value, and change the URL to use the appropriate IP address and path for your server:
        # mysql -p
        mysql> use cloud;
        mysql> select id from host where type = 'SecondaryStorage';
        mysql> update host_details set value = 'nfs://192.168.160.20/export/mike-ss1'
          where host_id = HOSTID and name = 'orig.url';
        mysql> update host set name = 'nfs://192.168.160.20/export/mike-ss1' where type
          = 'SecondaryStorage' and id = #;
        mysql> update host set url = 'nfs://192.168.160.20/export/mike-ss1' where type
          = 'SecondaryStorage' and id = #;
        mysql> update host set guid = 'nfs://192.168.160.20/export/mike-ss1' where type
          = 'SecondaryStorage' and id = #;

Note

When copying and pasting a command, be sure the command has pasted as a single line before executing. Some document viewers may introduce unwanted line breaks in copied text.
Then log in to the cloud console UI and stop and start (not reboot) the Secondary Storage VM for that Zone.