20150513-vSphere6-ICM-Day3
Lesson 2: iSCSI Storage
iSCSI Addressing
iSCSI Initiator
ESXi Network Configuration for IP Storage
Software initiator 設定步驟
VMkernel port IP Address 設定
Enable Software iSCSI initiator
optional ( 如果 initiator 與 target 名稱不一樣開頭, 就要修改名稱 )
Port binding ( 確認路由, 為了未來的 MultiPath )
Discovery iSCSI target
optional ( CHAP )
Creating Datastores and Discovering iSCSI Targets
The ESXi host supports two iSCSI target-discovery methods:
Static discovery
Dynamic discovery
透過 3260 port 來discovery
iSCSI Security: CHAP
ESXi supports the following CHAP authentication methods:
Unidirectional: Also called one-way CHAP. The target authenticates the initiator, but the initiator does not authenticate the target. You must specify the CHAP secret so that your initiators can access the target.
Bidirectional: Also called mutual CHAP. An additional level of security enables the initiator to authenticate the target. You must specify different target and initiator secrets.
預設 CHAP 不啟用
Software iSCSI only
Bidirectional CHAP
Per-target CHAP
Multipathing with iSCSI Storage
Software or dependent hardware iSCSI:
Hardware iSCSI:
Lab 9: Accessing iSCSI Storage
新增 VMkernel Port Group
設定 iSCSI
Lesson 3: NFS Datastores
Configuring an NFS Datastore
NFS v3 and NFS v4.1
NFS v3:
ESXi managed multipathing
AUTH_SYS (root) authentication
VMware proprietary file locking
Client-side error tracking
NFS v4.1:
Native multipathing and session trunking
Optional Kerberos authentication
Built-in file locking
Server-side error tracking
NFS Version Compatibility with Other vSphere Technologies
As of the release of vSphere 6, NFS v4.1 is not compatible with VMware vSphere Storage DRS, vSphere Storage I/O Control, VMware vCenter Site Recovery Manager, and Virtual Volumes, because of server protocol locking.
NFS Dual Stack Not Supported
NFS v3 locking is not compatible with NFS v4.1:
Best practice:
Configure an NFS array to allow only one NFS protocol.
Use either NFS v3 or NFS v4.1 to mount the same NFS share across all ESXi hosts.
Mounting an NFS share as NFS v3 on one ESXi host and as NFS v4.1 on another ESXi host can lead to data corruption.
Multipathing and NFS Storage
One recommended configuration for NFS multipathing:
Configure one VMkernel port.
Use adapters attached to the same physical switch to configure NIC teaming.
Configure the NFS server with multiple IP addresses:
To use multiple links, configure NIC teams with the IP hash load- balancing policy.
Lab 10: Accessing NFS Storage
-- Class break --
Lesson 4: VMFS Datastores
Using VMFS Datastores with ESXi Hosts
Use VMFS datastores whenever possible:
Use RDMs if the following conditions are true of your virtual machine:
It is taking storage array-level snapshots.
It is clustered to a physical machine.
It has large amounts of data that you do not want to convert into a virtual disk.
NFS not support
Managing Overcommitted Datastores
A datastore becomes overcommitted when the total provisioned space of thin-provisioned disks is greater than the size of the datastore.
Actively monitor your datastore capacity:
Actively manage your datastore capacity:
Notes:
這個部分可以在 Alarms 新增 Datastore disk provisioned 可以監控 overcommitted 狀況
觀察的話, 透過 Datastore 內的 Monitor -- > Performance -- > Space in GB 去看使用狀況
Increasing the Size of a VMFS Datastore
Ways to dynamically increase the size of a VMFS datastore:
You can expand but you can not shrink a VMFS datastore.
Deleting or Unmounting a VMFS Datastore
Before you unmount a VMFS datastore, use the vSphere Web Client to verify the following:
No virtual machines reside on the datastore.
The datastore is not part of a datastore cluster (not discussed in this course).
The datastore is not managed by vSphere Storage DRS.
Storage I/O Control is disabled.
The datastore is not used for vSphere HA heartbeat.
Multipathing Algorithms
vSphere 6 offers native path selection, load-balancing, and failover mechanisms.
An ESXi host can be attached to storage arrays with a storage processor configuration of:
•Active-active
•Active-passive
Configuring Storage Load Balancing
Scalability:
Availability:
-- 上午課程結束 --
Lab 11: Managing VMFS Datastores
Rename VMFS Datastore
建立 VMFS Datastore
Expend VMFS Datastore
Remove a VMFS Datastore
Extend VMFS Datastore
Lesson 5: Virtual SAN Datastores
About Virtual SAN
VSA ( vSphere Storage Appliance )
5.0 版本有
NFS
需要 2 到 3 台 host
VSAN ( vSphere virtual SAN )
Virtual SAN Requirements
Network
Controller
Cache
PCI/SAS/SATA SSD
At least 1 of each
Data
PCI/SAS/SATA HD/SSD
At least 1 of each
Using Virtual SAN
VM Storage Policies are what you configure so that a virtual machine can take advantage of Virtual SAN storage.( 設定Datastore 關聯性 )
Capabilities define the capacity, performance, and availability characteristics of the underlying physical storage.
vSphere Storage API
VASA (vStorage API for Storage Awareness)
VAAI ( vStorage APIs for Array Integration )
VADP ( vStorage APIs for Data Protection )
Lesson 6: Virtual Volumes
Protocol Endpoints
The protocol endpoint is set up by the storage administrator.
The protocol endpoint is part of the physical storage fabric. It is treated like a LUN.
The protocol endpoint supports typical SCSI and NFS commands.
Virtual volumes are bound and unbound to a protocol endpoint: ESXi or VMware vCenter Server initiates the bind and unbind operation
Storage Containers
In vCenter Server, the storage containers are represented by virtual datastores:
A storage container is configured by the storage administrator.
A storage container is a logical grouping of virtual volumes.
A storage containers capacity is limited only by the hardware capacity.
You must set up at least one storage container per storage system. You can have multiple storage containers per array.
You assign capabilities to storage containers.
-- Class break --
** MODULE 7 Virtual Machine Management **
Lesson 1: Creating Templates and Clones
Creating a Template
Clone to Template
Convert to Template
Clone a template:
Notes:
Template 與 VM 的差異
Deploying a Virtual Machine from a Template
To deploy a virtual machine, you must provide such information as the virtual machine name, inventory location, host, datastore, and guest operating system customization data. ( 呼叫 sysprep 或是其他的程式來客製化 VM )
Updating a Template
Update a template to include new patches, make system changes, and install new applications:
1.Convert the template to a virtual machine.
2.Place the virtual machine on an isolated network to prevent user access.
3.Make appropriate changes to the virtual machine.
4.Convert the virtual machine to a template.
將範本轉成VM 然後進行變更( 更新 ), 再轉回範本
Cloning a Virtual Machine
Customizing the Guest Operating System
Windows
使用 Microsoft Sysprep
設定 customizing
Notes:
Lab 12: Using Templates and Clones
Lesson 2: Modifying Virtual Machines
Hot-Pluggable Devices
CPU and memory can also be added while the virtual machine is powered on. This feature is called the CPU hot-plug and memory hot-add option. These options are disabled by default. To use these hot-plug features:
You must install VMware Tools.
The virtual machine must use hardware version 7 or later.
The guest operating system in the virtual machine must support CPU and memory hot-plug features.
The hot-plug options must be enabled in the VM Options tab of the Edit Settings dialog box.
Creating an RDM
An RDM supports two compatibility modes:
Physical compatibility (pass-through) mode: Allows the guest operating system to access the hardware directly.
Virtual compatibility mode: Allows the virtual machine to use VMware snapshots and other advanced features.
Inflating a Thin-Provisioned Disk
把 Thin Provision 變成 thick, eager-zeroed 格式
VM 必須關機
在VM的 .vmdk檔案上面按滑鼠右鍵, 選擇 Inflate
Lab 13: Modifying Virtual Machines
-- Class End --