VCP复习笔记(1) -- Storage

文章转自Live空间( http://delxu.spaces.live.com/blog/cns!D04F87F9ED029F69!2583.entry )和51cto技术博客( http://delxu.blog.51cto.com )首发。转发时务必表明出处,顺便给博主做个广告,文章写的真的很好,深入浅出,期待看到更好的博文,再次表示对博主的感谢!!!
6/15/2008

VCP复习笔记(1) -- Storage

iSCSI

* iSCSI的优点:1)cost低;2) Infrastructure简单,和Ethernet一样;3) 支持Internet; 4) Longhaul transfer,就是指可以通过Internet连接到远程的data center里面的storage,这点FC很难做到
* RFC3720 : iscsi node命名规则(最长256字符):iqn.year-mo.公司域名(反向):storage名字
e.g. iqn.1992-08.com.netapp:stor1
* iscsi node可以是一个target或者是一个initiator或者both
* initiator -- Host 端 (ESX Server)
  target -- Storage端 (Netapp)
* SP --指Storage Processor,是位于Stoarge上的接口,类似于Host上面的HBA
* ESX Server支持从iSCSI boot
  只支持从Hardware initiator启动,不支持software initiator
  要更改QLogic Adapter的BIOS中的启动顺序
* iSCSI session的建立,需要3个参数:target的(1) IP,(2) TCP端口(默认是3260)以及(3) iqn名
这不是用作LUN discovery的,LUN discovey仍然需要用SCSI的协议来发现
* iSCSI LUN的discovery method --- 2 种
(1) Static (2) SendTarget (也叫Dynamic)
Static,就是所有参数都配置好的,无需discovey
SendTarget,就是只配了IP和port,用这2个参数来建立一个discovery的session,然后initiator会发出一个SendTargets的命令来query target
* Hardware initiator同时支持这2种(Static和SendTargets),Software initiator只支持SendTargets
* iSCSI authentication用CHAP (Challenge-Handshake Authentication Protocol). 默认情况CHAP是Disable的
  Good Practice是:(1)用独立的网络(或者VLAN)来跑iSCSI数据传输;(2) 启用CHAP
* ESX Server不能同时支持Hardware initiator和software initiator
* 每台ESX Host最多2个Hardware initiator (2块HBA卡),最多支持64个target,256个LUN。

VMFS

* VMFS Volume是用来存放VM和VM State的地方,也可以用来放ISO image和VM Template
* VMFS Volume从console进去可以到/vmfs/volumes/下面访问
* Multipathing, 2 种Failover:MRU(Most Recently Used, default,不会自动failback)和Fixed(会自动failback)
  MRU is best for active/passive (比如HP MSA1000/EMC Clariion).  Fixed is best for active/active
* iSCSI Multipathing主要是通过IP网络来实现的。ESX 3 iSCSI Multipathing只支持active/passive
* 每个ESX Server 可以最多有256个VMFS Volume,VMFS Volume最小1.2GB,最大2TB,再大就需要extent,最多可以extend到64TB
* 越多VM共享一个VMFS Volume,就越有可能因为争用disk I/O导致性能下降,VMware推荐每VMFS最多32个VM
* VM Virtual disk最大2TB,最大的文件大小2TB,block size:1MB - 8MB (Block1MB时,最大VMFS volume 256GB,Block 8MB时是2TB)
* 最多可以有32台ESX Server链接到同一个Volume

NFS Storage

* ESX只支持NFS3 over TCP,不支持CIFS
* NFS Volume可以用来存放VM,VM template, ISO image, VM state。支持boot VM,创建VM,支持VMotion。
* NFS Volume不可以用来boot ESX Host
* 每台NFS server默认只能有8 个NFS mount(要修改这个值,到configuration --> advanced settings --> NFS 修改NFS.MaxVolumes值),最多32个NAS Datastore。
* NAS server要启用no_root_squash,允许root帐号可以RW
* 避免VM Swapping放在NFS volume上,

你可能感兴趣的:(笔记,storage,虚拟化,复习,VCP)