设为首页 收藏本站
查看: 1130|回复: 0

[经验分享] Lesson10 vSphere 管理特性

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-6-30 08:29:25 | 显示全部楼层 |阅读模式
Lesson10 vSphere 管理特性1-使用AlarmsThe 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
1-1创建告警创建告警前需要考虑的问题
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
wKiom1WRG0nwy3fYAAFs-tVaGlA388.jpg
wKiom1WRG0rBoxF2AADnXDHESf8907.jpg
wKiom1WRG03imO72AADra_Oj0mU327.jpg
wKiom1WRG07Dg0trAADmC4GKVA8437.jpg
wKiom1WRG0_CZo7sAAEVMKcUFNs700.jpg
如果你要发送邮件通知的话,你需要在Vcenter上设置邮件
wKioL1WRHRGzFQobAADPI0o9Fuw115.jpg
2-察看性能我们可以基于集群看到一个summary
wKioL1WRHRLjTToKAABtx38S_p0356.jpg    
在不同的级别上可以看到不同的信息
wKioL1WRHRPCJV1WAACg-c4-v6U560.jpg
wKiom1WRG1OBTjiRAADrgDiZNgc346.jpg
2-1定义自己的一张性能表(最后基于一个host)
wKiom1WRG1PQpWNzAAB-DqEtLBM817.jpg
wKiom1WRG1XQDhK5AAIBNQ-9nY0857.jpg
3-Scheduled TaskvCenter 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的顺从性)
wKiom1WRG1byqjrvAABn0SOHD9g099.jpg
wKiom1WRG1eipj3UAABgfoX9QLI015.jpg
wKiom1WRG1jCt-FSAABX6SHzlV8227.jpg
wKiom1WRG1iA5Y-kAADQJ9XtR8o946.jpg
4-EventsThe Events view in vCenter Server brings together all the events that have been logged by vCenter Server.
wKiom1WRG1mCN1AkAADGZ5ktbRY366.jpg
wKioL1WRHRyAQN_IAAChOOR1DAA685.jpg
5-MapsThe 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
wKiom1WRG1uSUxmuAAEH5XpGT44602.jpg
6-Host ProfileA 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要进入维护模式
6-1创建一个host profile wKiom1WRG1yDNHPJAAC9N-tNfP8494.jpg
wKiom1WRG12TLKhMAACa7dLS6i8774.jpg
6-2把host profile附加到一个主机 wKioL1WRHR_Sj7aLAAB8fXE2TDU746.jpg
wKioL1WRHSDyZe_FAACwNAk2N40316.jpg
wKiom1WRG1_gSMAFAAC_ZuucXjY471.jpg
我们可以应用以前保存的host profile使其配置还原
wKioL1WRHSKQvyltAAC_AKeenn4268.jpg
7-VM Storage Profile两个属性
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中所定义的存储性能特征。
7-1自定义storage capability wKioL1WRHSPBiLNNAAEfS2PCM6w505.jpg
wKiom1WRG2KRhgVzAAD2-KCVjx4264.jpg
我们暂时指定这个存储的存储能力为raid 1
wKiom1WRG2PxWBiNAABVCLQkKLc017.jpg
7-2启用VM storage profile创建新的虚拟机配置文件
wKioL1WRHSWhc9oLAACrWNpl6co439.jpg
wKiom1WRG2Tzd0bSAACE9niniqw471.jpg
wKiom1WRG2Wy9IWHAACG3cUIrf4864.jpg
最后启动虚拟机配置文件
wKioL1WRHSeAtg8uAADIyvKeAnY961.jpg
用虚拟机调用存储配置文件
wKioL1WRHSjQxXVuAAD8r47qpeY353.jpg
wKioL1WRHSmgalZcAABpe2DFztc449.jpg
wKiom1WRG2iCsVp0AACFVpCJh2c668.jpg


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-81783-1-1.html 上篇帖子: 在vmware上安装kvm(debian) 下篇帖子: VNC连接VMware vSphere ESXi5.5
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表