The first tool vCenter Server provides is its alarms mechanism.
The administrator can create alarms for virtual machines, hosts,
networks, and datastores based on predefined triggers(預先定
義的觸發器) provided with vCenter Server. Depending upon the
object, these alarms can monitor resource consumption or the
state of the object and alert the administrator when certain
conditions have been met, such as high resource usage or even
low resource usage. These alarms can then provide an action
(提供一個行為)that informs the administrator of the condition by
email or SNMP trap(發送郵件和SNMP通告). An action can
also automatically run a script(運作腳本) or provide other
means to correct the problem the virtual machine or host might be
experiencing.
可以預先定義告警然後采取些action
它有系統自己定義的告警(default Alarms)
These default alarms are usually generic in nature. Some of
the predefined alarms include alarms to alert the administrator
if any of the following happen:
1. A host’s storage status, CPU status, voltage, temperature, or
power status changes
(主機存儲狀态,CPU狀态,電壓,溫度或者電源狀态改變)
2. A cluster experiences a VMware High Availability (HA) error
(叢集經曆高可用性錯誤)
3. A datastore runs low on free disk space
(資料存儲閑置空間低)
4. A virtual machine’s CPU usage, memory usage, disk latency,
or even fault tolerance status changes
(虛拟機CPU使用率,記憶體使用率,磁盤延時,容錯狀态改變)
When you define an alarm on an object, that alarm applies to all
objects beneath that object in the vCenter Server hierarchy.(當你定義
一個告警在一個目标,這個告警會被運用到這個目标層次以下的所有目标)具有可繼承性
Alarms are also associated with specific types of objects(有些告警和特
殊類型的object有關). For example, some alarms apply only to virtual
machines, while other alarms apply only to ESX/ESXi hosts.(有些隻能運用
到VM,有些隻能運用到Hosts)
建立告警前需要考慮的問題
First, is there an existing alarm that already handles
this task for you?
(第一,是否存在告警已經能夠處理相同的任務)
Second, if you’re going to create a new alarm, where
is the appropriate place within vCenter Server to
create that alarm?
(第二,如何選擇vCenter适當位置來建立告警)
注意:Alarm技術必須使用vCenter!
<a href="http://s3.51cto.com/wyfs02/M01/6F/10/wKioL1WRHQrCVtIlAAFpxTNzQ2w006.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M02/6F/10/wKioL1WRHQuT-lJsAADgIrjrbWM360.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M00/6F/10/wKioL1WRHQywmhFkAADhDDf2rt0717.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M01/6F/10/wKioL1WRHQ-xMa_6AADdqh6L_pg927.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M02/6F/10/wKioL1WRHRDQ6kbzAAEIwD6MRJ8369.jpg" target="_blank"></a>
如果你要發送郵件通知的話,你需要在Vcenter上設定郵件
<a href="http://s3.51cto.com/wyfs02/M00/6F/10/wKioL1WRHRHg5fhaAADFKeQPzNI936.jpg" target="_blank"></a>
我們可以基于叢集看到一個summary
在不同的級别上可以看到不同的資訊
<a href="http://s3.51cto.com/wyfs02/M02/6F/13/wKiom1WRG1GihO-JAACbU2cMIXM527.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M00/6F/13/wKiom1WRG1LA0aS2AADhNbO0pcI956.jpg" target="_blank"></a>
2-1定義自己的一張性能表(最後基于一個host)
<a href="http://s3.51cto.com/wyfs02/M01/6F/10/wKioL1WRHRTDrnC3AAB3qPuDkjY703.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M02/6F/10/wKioL1WRHRbDVX5LAAH2RZ-0D7c398.jpg" target="_blank"></a>
vCenter Server supports quite a list of tasks you can schedule to run
automatically:
1.Change the power state of a VM.(修改虛拟機電源狀态)
2.Clone a VM.(克隆虛拟機)
3.Deploy a VM from a template. (從一個模版部署虛拟機)
4.Move a VM with vMotion. (使用vMotion技術線上遷移一個虛拟機)
5.Move a VM’s virtual disks with Storage vMotion. (線上遷移虛拟機磁盤)
6.Create a VM. (建立一個虛拟機)
7.Make a snapshot of a VM. (為虛拟機制作一個快照)
8.Add a host. (添加一個主機)
9.Change the power settings for a cluster. (修改叢集電源狀态)
10.Change resource settings for a resource pool or VM. (修改資源設定)
11.Check compliance for a profile. (檢查host profile的順從性)
<a href="http://s3.51cto.com/wyfs02/M00/6F/10/wKioL1WRHRfAmYJUAABkKK-VBUI867.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M01/6F/10/wKioL1WRHRjjYRqZAABaFcI0exk830.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M02/6F/10/wKioL1WRHRmRf70vAABTnxStRw4394.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M00/6F/10/wKioL1WRHRmh_RbFAADIuanWt6Y003.jpg" target="_blank"></a>
The Events view in vCenter Server brings together all the events that have been logged by vCenter Server.
<a href="http://s3.51cto.com/wyfs02/M01/6F/10/wKioL1WRHRrSlHyGAADAwyygDbc891.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M00/6F/10/wKioL1WRHRugnwpKAACaj9aJkA8373.jpg" target="_blank"></a>
The Maps feature of vCenter Server is a great tool for quickly reviewing your virtual infrastructure(快速的檢視虛拟架構). Topology maps graphically represent the relationship
that exists between different types of objects in the virtual infrastructure(圖形化的表現不同類型元件之間的關系). The maps can display any of the following relationships:
1.Host to VM
2.Host to network
3.Host to datastore
4.VM to network
5.VM to datastore
<a href="http://s3.51cto.com/wyfs02/M00/6F/14/wKiom1WRG1uRi3DBAAD65dQa790710.jpg" target="_blank"></a>
A host profile is essentially a collection of all the various configuration settings for an ESXi host. This includes settings such as NIC assignments, virtual switches, storage configuration, date and time, and more. (HostProfile收集ESXi主機的各種配置資訊)By attaching a host profile to an ESXi host, you can then compare the compliance of that host with the settings outlined in the host profile(附着一個Profile到一個主機,比較是否順從). If the host is compliant, then you know its settings are the same as the settings in the host profile. If the host is not compliant, then you can enforce the settings in the host profile to make it compliant. This provides administrators with a way not only to verify consistent settings across ESXi hosts but also to quickly and easily apply settings to new ESXi hosts.(檢查ESXi配置的一緻性,和快速輕松的部署新的ESXi主機).
它是針對host的,且HOST要進入維護模式
<a href="http://s3.51cto.com/wyfs02/M00/6F/10/wKioL1WRHR2htVJ8AAC12P0iiyM569.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M01/6F/10/wKioL1WRHR7w8Mq2AACUGs3up44202.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M02/6F/10/wKioL1WRHR_xfN4UAABvP8ZM5S8829.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M01/6F/14/wKiom1WRG16BrzOuAACqjsbVPFQ578.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M02/6F/14/wKiom1WRG1-TJ9zWAAC56d7w22k352.jpg" target="_blank"></a>
我們可以應用以前儲存的host profile使其配置還原
<a href="http://s3.51cto.com/wyfs02/M00/6F/10/wKioL1WRHSHRmXMrAACybi5kSlA046.jpg" target="_blank"></a>
兩個屬性
Storage Capability:指儲存設備提供給存儲的一系列特征:如 容量,性能,可用性等。
system-defined storage : 存儲系統具有VASA(vSphere Storage APIs for Storage Awareness)功能,随着存儲系統自動生成。(一般來說需要第三方的支援)
user-defined storage : 使用者手動給存儲指定存儲特征。(如果第三方不支援,可以手工指定)
VM storage profile :定義了虛拟機所需求的存儲能力性能。管理者可以根據虛拟機檔案或虛拟磁盤不同的存儲需求給它們指定不同的VM storage profile。在将VM storage profile指定給VM之
後,VM storage profile将執行順從性檢查以确認虛拟機或者虛拟磁盤所使用的存儲是否符合在VM storage profile中所定義的存儲性能特征。
<a href="http://s3.51cto.com/wyfs02/M00/6F/14/wKiom1WRG2HCRTIrAAEa_LZGADI947.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M00/6F/14/wKiom1WRG2LQKgVHAADsex8EtN0453.jpg" target="_blank"></a>
我們暫時指定這個存儲的存儲能力為raid 1
<a href="http://s3.51cto.com/wyfs02/M02/6F/10/wKioL1WRHSSwqwNVAABOPCOuUTc489.jpg" target="_blank"></a>
建立新的虛拟機配置檔案
<a href="http://s3.51cto.com/wyfs02/M00/6F/10/wKioL1WRHSSztI8EAAClJz6p52Y836.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M01/6F/14/wKiom1WRG2TTKaRjAAB8FFzQl5A497.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M01/6F/10/wKioL1WRHSaQYfuAAAB5mAi-oaY859.jpg" target="_blank"></a>
最後啟動虛拟機配置檔案
<a href="http://s3.51cto.com/wyfs02/M02/6F/10/wKioL1WRHSeg3r7wAADD1jcVT8k862.jpg" target="_blank"></a>
用虛拟機調用存儲配置檔案
<a href="http://s3.51cto.com/wyfs02/M02/6F/14/wKiom1WRG2bxPfjYAAD2ReTRGRU870.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M00/6F/14/wKiom1WRG2ezDbJgAABaeOiG7Fw590.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M02/6F/14/wKiom1WRG2iQr-XnAAB4i6U2v-0264.jpg" target="_blank"></a>
本文轉自 bilinyee部落格,原文連結: http://blog.51cto.com/ericfu/1669110如需轉載請自行聯系原作者