You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "John Beredimas (JIRA)" <ji...@apache.org> on 2013/06/27 13:44:20 UTC

[jira] [Commented] (CLOUDSTACK-3048) Memory not reported correctly

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-3048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13694639#comment-13694639 ] 

John Beredimas commented on CLOUDSTACK-3048:
--------------------------------------------

I run into a similar issue. I have 3 XenServers (2x96GB, 1x48GB). One of the 96GB server was upgraded at some point in time from 48GB. While host statistics under infrastructure appear correctly, the total capacity was misreported in the dashboard as ~190 rather than ~240GB. 

Workaround: 
1. Figure out the total memory for this host

cloudmonkey> list hosts name=hulk.sil.priv | grep memorytotal
memorytotal = 100520582400

2. identify the host id in the database

[root@cloudstack ~]# mysql -u root -p cloud

mysql> select id,name from host;
+----+-------------------------------------+
| id | name                                |
+----+-------------------------------------+
...
| 10 | hulk.sil.priv                       |
...

3. Verify that total host capacity is misrepresented

mysql> select id,host_id,capacity_type,total_capacity from op_host_capacity where host_id=10 and capacity_type=0;
+----+---------+---------------+----------------+
| id | host_id | capacity_type | total_capacity |
+----+---------+---------------+----------------+
| 25 |      10 |             0 |   49810199040 |
+----+---------+---------------+----------------+
1 row in set (0.00 sec)

4. Update to the proper value

mysql> update op_host_capacity set total_capacity=100520582400 where id=25;

                
> Memory not reported correctly
> -----------------------------
>
>                 Key: CLOUDSTACK-3048
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3048
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.1.0
>            Reporter: drcursor
>
> I have two hosts, each with 128GB RAM ( 131985592 kb ).
> Inside the Cloudstack Dashboard and in Zone Details, total memory is
> incorrectly reported as 62.74 GB (instead of ~ 256GB).
> If I check the host's details, I have the following information:
> Host 1:
> Memory Total 125.87 GB
> Memory Allocated 9.38 GB
> Memory Used 9.33 MB
> Host 2:
> Memory Total 125.87 GB
> Memory Allocated 31.19 GB
> Memory Used 16.52 MB
> Problem I am having now is I can't launch new instances - if I try to
> launch them on Host 1, I get the following error "Free RAM: 734232576
> , Requested RAM: 1073741824 / Host does not have enough RAM available,
> cannot allocate to this host".
> Is there a way to make all RAM available ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira