You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Prashant s <op...@gmail.com> on 2015/04/25 20:47:13 UTC

please help trying to change the ip of my secondary storage

Greetings !


i  trying to change the ip of my secondary storage  , was following these
steps

can you please advice , what im doing wrong


thanks in advance for  your help and reading !

prashant



i was following these steps

https://github.com/apache/cloudstack-docs/blob/master/en-US/changing-secondary-storage-ip.xml



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 = #;


*But i dont see any host in cloud.host with type secondarystorage *

*can you please help*


mysql> select id,name,status,available from cloud.host where
type="SecondaryStorage";

Empty set (0.00 sec)

mysql> select type from cloud.host ;

+--------------------+

| type               |

+--------------------+

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| SecondaryStorageVM |

| ConsoleProxy       |

| Routing            |

| Routing            |

| SecondaryStorageVM |

| Routing            |

| Routing            |

| Routing            |

| SecondaryStorageVM |

| ConsoleProxy       |

| SecondaryStorageVM |

+--------------------+

15 rows in set (0.00 sec)


mysql> select id,name,status,available from cloud.host where
type="SecondaryStorageVM";

+----+----------+--------------+-----------+

| id | name     | status       | available |

+----+----------+--------------+-----------+

|  5 | s-1-VM   | Disconnected |         1 |

|  9 | s-354-VM | Disconnected |         1 |

| 13 | s-689-VM | Disconnected |         1 |

| 15 | s-768-VM | Up           |         1 |

+----+----------+--------------+-----------+

4 rows in set (0.00 sec)


mysql> select id,name,status,available from cloud.host where
type="SecondaryStorage";

Empty set (0.00 sec)


mysql>

Re: please help trying to change the ip of my secondary storage

Posted by Guntis Liepins <tu...@gmail.com>.
I had the same problem.  I changed SecSt address according to
instructions. I noticed that SecSt has old ip address in properties 
under Infrastructure->SecondaryStorage and CloudStack uses old IP to
mount SecSt and snapshots ar failing.
I found out that CloudStack DB has table cloud.image_store which 
contains SecSt URL too.
Look at she table with SELECT * FROM cloud.image_store; 
You have to update URL parameter in this table also. 
It is not documented , but it seems it worked for me.
I suppose it is documentation bug, but man, this was pain...


Re: please help trying to change the ip of my secondary storage

Posted by Prashant s <op...@gmail.com>.
Thanks for looking Somesh,

i updated my dns to point to the new ip  for the secondary storage url  ...
that  solved my issue.

But yes this document did not help me ....
https://github.com/apache/cloudstack-docs/blob/master/en-US/changing-secondary-storage-ip.xml


*we at isightpartners are  running cloudstack 4.2.1.*

mysql> select id,name,status,available from cloud.host where
type="SecondaryStorage";

Empty set (0.00 sec)

mysql>

mysql> select * from version;

+----+---------+---------------------+----------+

| id | version | updated             | step     |

+----+---------+---------------------+----------+

|  1 | 4.0.0   | 2014-04-28 16:58:01 | Complete |

|  2 | 4.1.0   | 2014-04-28 20:58:43 | Complete |

|  3 | 4.2.0   | 2014-04-28 20:58:43 | Complete |

|  4 | 4.2.1   | 2014-04-28 20:58:43 | Complete |

+----+---------+---------------------+----------+

4 rows in set (0.00 sec)


mysql> select id from host where type = 'SecondaryStorage';

Empty set (0.00 sec)


mysql> select type from host;

+--------------------+

| type               |

+--------------------+

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| SecondaryStorageVM |

| ConsoleProxy       |

| Routing            |

| Routing            |

| SecondaryStorageVM |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| SecondaryStorageVM |

| ConsoleProxy       |

| SecondaryStorageVM |

| SecondaryStorageVM |

| SecondaryStorageVM |

| ConsoleProxy       |

| ConsoleProxy       |

| ConsoleProxy       |

+--------------------+

32 rows in set (0.00 sec)


mysql>

On Fri, May 1, 2015 at 11:06 AM, Somesh Naidu <So...@citrix.com>
wrote:

> Prashant,
>
> Looks like the doc you are referring to might be for older version. What
> version of ACS are you using?
>
> Somesh
> CloudPlatform Escalations
> Citrix Systems, Inc.
>
> -----Original Message-----
> From: Prashant s [mailto:opsrunbook@gmail.com]
> Sent: Saturday, April 25, 2015 2:47 PM
> To: dev@cloudstack.apache.org
> Subject: please help trying to change the ip of my secondary storage
>
> Greetings !
>
>
> i  trying to change the ip of my secondary storage  , was following these
> steps
>
> can you please advice , what im doing wrong
>
>
> thanks in advance for  your help and reading !
>
> prashant
>
>
>
> i was following these steps
>
>
> https://github.com/apache/cloudstack-docs/blob/master/en-US/changing-secondary-storage-ip.xml
>
>
>
> 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 = #;
>
>
> *But i dont see any host in cloud.host with type secondarystorage *
>
> *can you please help*
>
>
> mysql> select id,name,status,available from cloud.host where
> type="SecondaryStorage";
>
> Empty set (0.00 sec)
>
> mysql> select type from cloud.host ;
>
> +--------------------+
>
> | type               |
>
> +--------------------+
>
> | Routing            |
>
> | Routing            |
>
> | Routing            |
>
> | Routing            |
>
> | SecondaryStorageVM |
>
> | ConsoleProxy       |
>
> | Routing            |
>
> | Routing            |
>
> | SecondaryStorageVM |
>
> | Routing            |
>
> | Routing            |
>
> | Routing            |
>
> | SecondaryStorageVM |
>
> | ConsoleProxy       |
>
> | SecondaryStorageVM |
>
> +--------------------+
>
> 15 rows in set (0.00 sec)
>
>
> mysql> select id,name,status,available from cloud.host where
> type="SecondaryStorageVM";
>
> +----+----------+--------------+-----------+
>
> | id | name     | status       | available |
>
> +----+----------+--------------+-----------+
>
> |  5 | s-1-VM   | Disconnected |         1 |
>
> |  9 | s-354-VM | Disconnected |         1 |
>
> | 13 | s-689-VM | Disconnected |         1 |
>
> | 15 | s-768-VM | Up           |         1 |
>
> +----+----------+--------------+-----------+
>
> 4 rows in set (0.00 sec)
>
>
> mysql> select id,name,status,available from cloud.host where
> type="SecondaryStorage";
>
> Empty set (0.00 sec)
>
>
> mysql>
>

RE: please help trying to change the ip of my secondary storage

Posted by Somesh Naidu <So...@citrix.com>.
Prashant,

Looks like the doc you are referring to might be for older version. What version of ACS are you using?

Somesh
CloudPlatform Escalations
Citrix Systems, Inc.

-----Original Message-----
From: Prashant s [mailto:opsrunbook@gmail.com] 
Sent: Saturday, April 25, 2015 2:47 PM
To: dev@cloudstack.apache.org
Subject: please help trying to change the ip of my secondary storage

Greetings !


i  trying to change the ip of my secondary storage  , was following these
steps

can you please advice , what im doing wrong


thanks in advance for  your help and reading !

prashant



i was following these steps

https://github.com/apache/cloudstack-docs/blob/master/en-US/changing-secondary-storage-ip.xml



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 = #;


*But i dont see any host in cloud.host with type secondarystorage *

*can you please help*


mysql> select id,name,status,available from cloud.host where
type="SecondaryStorage";

Empty set (0.00 sec)

mysql> select type from cloud.host ;

+--------------------+

| type               |

+--------------------+

| Routing            |

| Routing            |

| Routing            |

| Routing            |

| SecondaryStorageVM |

| ConsoleProxy       |

| Routing            |

| Routing            |

| SecondaryStorageVM |

| Routing            |

| Routing            |

| Routing            |

| SecondaryStorageVM |

| ConsoleProxy       |

| SecondaryStorageVM |

+--------------------+

15 rows in set (0.00 sec)


mysql> select id,name,status,available from cloud.host where
type="SecondaryStorageVM";

+----+----------+--------------+-----------+

| id | name     | status       | available |

+----+----------+--------------+-----------+

|  5 | s-1-VM   | Disconnected |         1 |

|  9 | s-354-VM | Disconnected |         1 |

| 13 | s-689-VM | Disconnected |         1 |

| 15 | s-768-VM | Up           |         1 |

+----+----------+--------------+-----------+

4 rows in set (0.00 sec)


mysql> select id,name,status,available from cloud.host where
type="SecondaryStorage";

Empty set (0.00 sec)


mysql>