日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

Useful Tips and Tricks

 richsky 2012-08-03

Useful Tips and Tricks

This is a work in progress and most data is in bits-and pieces. Some of it is sketchy. Please help improve the article further. It's a wiki and self-organizing so everyone is encouraged to contribute and improve the knowledge base.


Compiled here are a list of tips and tricks on how to monitor, debug a running cloudstack instance (in no particular order). List down the problems you come across often and how you resolve them. Once there is sizable content here we can consider organizing it into logical categories


1. To list all the queries hitting the CloudStack database

For seeing this one must enable the general query log of mysql

 

mysql>  show variables like '%log%';
mysql>  set global general_log=ON;

 

 The default location of the general query log on most distributions is /var/run/mysqld/mysqld.log

2. Unable To Migrate the Instances which are with vCenter

Check if vMotion is enabled [http://kb./selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1036145]

To enable vMotion
1) Log in to vCenter Server using the vSphere Client.
2) Click the ESX host.
3) Click the Configuration tab.
4) Under the Hardware section, click Networking.
5) Click Properties for the virtual switch where a VMkernel port has been configured.
6) In the dialog box that opens, select vmkernel in the Ports tab and click Edit.
7) To enable vMotion, select Enabled next to vMotion and click OK.

3. How to get the CloudStack version from database?

mysql> select * from cloud.version order by id desc limit 1;

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

| id | version | updated             | step     |

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

|  2 | 3.0.1   | 2012-04-03 06:42:06 | Complete |

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

1 row in set (0.00 sec)

4. How to get the complete details of a vm instance?

mysql> select * from cloud.vm_instance;

5. How to enable trace logging for a particular class in CloudStack?

Add the following lines to /etc/cloud/management/log4j-cloud.xml

<category name="namespace.of.your.class">
     <priority value="TRACE"/>
</category>

where namespace.of.your.class is the something like com.cloud.utils for example

6. How to enable the ssh in vmware esx server

  Edit the configuration file for SSH with the command:nano /etc/ssh/sshd_config
  Find the line that starts with PermitRootLogin and change the no to  yes. You can find this line about 2 pages down from the top. Save the file by first pressing Ctrl-O and then Enter.
.  Exit with Ctrl-X.
  Restart the sshd service with the command:
   service sshd restart

7. Possible causes for Host to get into Alert State are :

1) Ping times out
2) Network connectivity is lost
3) Primary storage didn't mount correctly
4) Heart beat has failed

8.  Failed to deploy Virtual Router : Reasons

1)No capacity in hypervisor - CPU/Memory
2)No ip address(public) availability
3)No storage space available
4)System vm template has not been properly downloaded to primary storage while deploying first vm in account

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類(lèi)似文章 更多