RHCA CL220 CloudForms 3.1 配置

目錄

configure server relationships

理論

實驗

configure chargeback data collection

理論

實驗

manage users and groups

理論

實驗

configure server roles

理論

實驗

define and use smarttags

理論

實驗


第3章主要是在web界面配置CFME,有5小節,可分爲2個部分(下列圖中的”重點”請忽略):

1. configure-configuration界面的使用

虛擬機與CFME的關係/用戶與組和角色授權/CFME服務器角色/類別與標籤

2. cloud intelligence-chargeback界面的使用

rate使用率的創建與分配

clip_image001

clip_image002

configure server relationships

理論

1. 如何全局配置cfme

使用Configure來管理用戶界面、創建標記、設置服務器、數據庫和SmartProxy選項、管理用戶、更新軟件和查看文檔。

configure中就configuration裏的配置比較複雜。

其中settings是全局配置。

clip_image003

2. 關於regions

CloudForms regions are used to create a central database for reporting and charting. For performance and organizational purposes, the database at the top level should not be used for operational tasks such as smartstate analysis or capacity and Utilization date collection. After create the top-level region,operators should create the subordinate regions, and set each to replicate to the top region.

CloudForms區域用於創建一個用於報告和圖表的中央數據庫(VMDB)。對於性能和組織目的,最高級別的數據庫不應該用於操作任務,如smartstate分析或容量和利用日期收集。在創建頂級區域之後,操作人員應該創建所屬區域,並將每個區域設置爲複製到頂部區域。

每個子區域之間的數據互不關聯。因此在其中一個區域,無法看到另一個區域的信息。只有頂級區域纔可以看到所有子區域的信息。

那麼點擊一個region可以幹嘛呢?

可以設置region級別

收集集羣和數據存儲的數據:C&U collection(capacity and utilization)

新建zone

設置/導入:類別(categories)和智能標籤(smarttags)

clip_image004

3. 關於zone

CloudForms server zones isolate traffic and divide CloudForms servers by functional roles. A provider discovered by a CloudForms server in a specific zone gets monitored and managed in that zone. All jobs, such as a smartstate analysis or vm start , dispatched by a CloudForms server in a specific zone can get processed by any CloudForms appliance assigned to that same zone.

Zones can be created based on enterprise environments. Operators can define zones based on:

1. geographic location

2. network location

3. function

when first started, a new CloudForms server is put into the default zone.

CloudForms服務器區域隔離了流量,並通過功能角色劃分了CloudForms服務器。在特定區域中由CloudForms server發現的提供者在該區域中受到監視和管理。所有的工作,如smartstate分析或vm啓動,由一個特定區域的CloudForms服務器發送,都可以被分配給該區域的任何CloudForms設備處理。

可以根據企業環境創建專區。操作人員可以根據:

1。地理位置

2。網絡位置

3。功能

當第一次啓動時,一個新的CloudForms服務器被放入默認區域。

實驗

1. 修改CFME全局設置

2. 打開C&U數據收集:計算資源和存儲資源

3. 定義CFME關係

configure chargeback data collection

理論

1. chargeback概述

可以爲虛擬機的CPU/內存/磁盤IO等計算使用率。

前提:C&U數據收集要打開。計算CPU時間的前提是虛擬機running狀態。

根據統計使用率可以生成一個報告。

2. 類型

有compute和storage 2種。

compute: CPU/內存/磁盤IO使用情況等。

storage:disk空間使用情況等。

clip_image005

clip_image006

3. 設置

首先創建rate然後assignment分配。

可以分配給誰?

entire enterprise, individual clusters, management systems, and even individual virtual machines based on tagging。整個企業,個體集羣,管理系統,甚至是基於標籤的個人虛擬機。

clip_image007

clip_image008

實驗

1. 創建一個compute rate

2. 創建一個storage rate

3. 分配assignment給provider

manage users and groups

理論

1. 概述

CFME有3種access control lists ACLs訪問控制,基於每個region。分別是用戶/組/roles。

用戶的功能是登陸CFME平臺,創建時必須添加到一個組。

組裏包含很多用戶,一個組分配一個role和多個filters。filters是範圍(主機/集羣/模板/tags)。

role是權限的集合(例如:是否有權限使用cloud intelligence界面或者configure界面等)。

role有3種操作項:view/operate/modify。

2. 用戶

創建用戶的方式:local/ldap/混合(將身份驗證信息存儲在LDAP中,但用戶授權和角色存儲在本地)。

3. 管理本地賬戶

添加用戶:

clip_image009

添加組:

clip_image010

添加role:

clip_image011

如何創建:

clip_image012

實驗

1. 創建role(複製原來的模板)

2. 創建組

3. 創建用戶

4. 檢證

configure server roles

理論

這個小節有2個小單元。

1. 什麼是server roles

這裏server roles決定CFME可以幹嘛。

共有12大類,17種。

clip_image013

2. roles的等級:primary/secondary/tertiary

這個小單元有4個小點。

1) 只有primary掛了,secondary纔會激活,secondary掛了,tertiary纔會激活

在界面顯示有role等級的,也就是可以修改role等級的,代表同一時間只能一個role運行。

在界面顯示沒有role等級的,也就是不能修改role等級,只能開始或者暫停的,代表同一時間可以多個role運行。

clip_image014

clip_image015

2) roles by servers:查看一臺CFME上有哪些server roles

通過region來看:

Regions are used primarily to consolidate multiple VMDBs into one master VMDB for reporting while zones are used to define functional groups of servers. There can be only one region per VMDB, but multiple zones per region (or VMDB). Some server roles are aware of each other across CloudForms Management Engine Appliances at the region level. This means that redundancy and failover rules apply at the region level. You can also set priorities for the server roles that provide failover.

Regions主要用於將多個VMDB合併爲一個主VMDB,用於報告,而zones用於定義服務器的功能組。每個VMDB只能有一個region,但是每個region (或VMDB)都有多個zones。一些服務器角色在該region級別的CloudForms管理引擎設備之間相互瞭解。這意味着冗餘和故障轉移規則適用於region級別。您還可以爲提供故障轉移的服務器角色設置優先級。

clip_image016

通過zone來看:

The console provides a way to see all the server roles that a server has been assigned and if these roles are running. This is especially helpful when you have multiple servers with different server roles. For each zone you can also set a central place for all logs to be collected, and collect capacity and utilization data that may be missing.

控制檯提供了一種方法,可以查看服務器分配的所有服務器角色,以及這些角色是否正在運行。當您擁有多個具有不同服務器角色的服務器時,這一點尤其有用。對於每個區域,您還可以爲收集的所有日誌設置一箇中心位置,並收集可能丟失的容量和利用率數據。

clip_image017

clip_image018

role爲secondary時可以設置等級:

通過znoe界面:

clip_image019

通過region界面:

clip_image020

3) servers by roles查看一個region上的一個server role有哪些server

clip_image021

4) roles by servers和servers by roles區別

roles by servers:主要看後面的單詞server上有多少roles

servers by roles:主要看後面的單詞role上有多少server

實驗

1. 開啓server roles(setting)

2. 激活server roles(diagnostics)

3. 修改zone的role等級

4. 修改region的role等級

define and use smarttags

理論

1. 概述

1) 什麼是tag

tag可以分配給對象。

tag可以應用於自動化/測試/provisioning等。

操作者可以創建一個tag基於自定義/引擎等,基於基礎設施。

注意:根據數據庫類型,標記可能是區分大小寫的。

2) tag的類型

company tag :這個可以通過My setting 創建/自定義/刪除等。

system tag :這個是CFME自動分配的。

3) categories類包含很多tag

clip_image022

single value鉤上是指這個categories裏有多個tag,但每次分配時,一個資源只能使用裏面的一個tag。

例如:

test1是把single value鉤上的,而test2沒有鉤。可以看到test1只能同時添加一個tag,而test2可以添加2個tag

clip_image023

clip_image024

clip_image025

4) 如何創建tag(創建順序:categories-tag)

實驗

1. 創建自定義categories類

2. 創建自定義tag

3. 將categories類assign分配給tag

clip_image026

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章