wiki:GTD_Cloud_One_oper_onehost
  • onehost <command> [<parameters>]
    ### 增加機器到pool ###
    $ onehost create <hostname> <im_mad> <vmm_mad>
    
    ### 從pool中移除主機 ###
    $ onehost delete <host_id>
    
    ### 顯示主機的資訊 ###
    $ onehost show <host_id>
    
    ### 列出所有在pool中的機器 ###
    $ onehost list
    $ onehost top
    
    ### 啟動和關掉在pool中的機器 ###
    $ onehost enable <host_id>
    $ onehost disable <host_id>
    
  • 測試指令於我們的Cluster
    root@one:~# onehost list
     HID NAME                      RVM   TCPU   FCPU   ACPU    TMEM    FMEM STAT
       0 one                         1    400    398      0 6216704       0   on
    
    root@one:~# onehost show 0
    HID      = 0
    HOSTNAME = one
    IM MAD   = im_xen
    VMM MAD  = vmm_xen
    TM MAD   = tm_ssh
    MANAGED  = 1
    ATTRIBUTES
    
    	ARCH=x86_64
    	CPUSPEED=2394
    	FREECPU=398
    	FREEMEMORY=0
    	HOSTNAME=one
    	MODELNAME=Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
    	NETRX=141194
    	NETTX=4505
    	TOTALCPU=400
    	TOTALMEMORY=6216704
    	USEDCPU=2
    	USEDMEMORY=6216704
    HOST SHARES
    	HID          = 0
    	ENDPOINT     = 
    	MAX_CPU      = 400
    	MAX_MEMORY   = 6216704
    	MAX_DISK     = 0
    	CPU_USAGE    = 400
    	MEMORY_USAGE = 131072
    	DISK_USAGE   = 0
    	RUNNING_VMS  = 1
    
    
Last modified 16 years ago Last modified on Dec 25, 2008, 11:54:46 AM