服务器 频道

PowerVM虚拟化实战:VIO Server微分区实施

  padmin 环境下建立 vdev

  先察看以下 vhost 的虚拟 scsi 卡对应各个微分区是否如设计

  [ss55aa01][padmin][/home/padmin]#lsmap -all|grep vhost

  vhost0 U9133.55A.069511H-V2-C111 0x00000000

  vhost1 U9133.55A.069511H-V2-C112 0x00000000

  vhost2 U9133.55A.069511H-V2-C121 0x00000000

  ...

  vhost17 U9133.55A.069511H-V2-C192 0x00000000

  vhost18 U9133.55A.069511H-V2-C201 0x00000000

  vhost19 U9133.55A.069511H-V2-C202 0x00000000

  建立各个虚拟存储设备,将微分区 rootvg 映射到各个预先建立的 lv 上,如对于 ss55aa11 这个微分区,建立一个 rootvg1_55a11 将 55a11_rootvg1 这个 lv 映射到 vhost0 上,即 ss55aa11 上的一块 scsi 卡上,从而使得 ss55aa11 这个微分区能认出这块虚拟磁盘来。

  mkvdev -vdev rootvg1_55a11 -vadapter vhost0 -dev 55a11_rootvg1

  mkvdev -vdev rootvg1_55a12 -vadapter vhost2 -dev 55a12_rootvg1

  mkvdev -vdev rootvg1_55a13 -vadapter vhost4 -dev 55a13_rootvg1

  mkvdev -vdev rootvg1_55a14 -vadapter vhost6 -dev 55a14_rootvg1

  mkvdev -vdev rootvg1_55a15 -vadapter vhost8 -dev 55a15_rootvg1

  mkvdev -vdev rootvg1_55a16 -vadapter vhost10 -dev 55a16_rootvg1

  mkvdev -vdev rootvg1_55a17 -vadapter vhost12 -dev 55a17_rootvg1

  mkvdev -vdev rootvg1_55a18 -vadapter vhost14 -dev 55a18_rootvg1

  ...

  ...

  ...

  mkvdev -vdev rootvg2_55a14 -vadapter vhost7 -dev 55a14_rootvg2

  mkvdev -vdev rootvg2_55a15 -vadapter vhost9 -dev 55a15_rootvg2

  mkvdev -vdev rootvg2_55a16 -vadapter vhost11 -dev 55a16_rootvg2

  mkvdev -vdev rootvg2_55a17 -vadapter vhost13 -dev 55a17_rootvg2

  mkvdev -vdev rootvg2_55a18 -vadapter vhost15 -dev 55a18_rootvg2

  mkvdev -vdev rootvg2_55a19 -vadapter vhost17 -dev 55a19_rootvg2

  mkvdev -vdev rootvg2_55a20 -vadapter vhost19 -dev 55a20_rootvg2

  建立 datavg

  同理,建立各个微分区的 datavg,但这里使用磁盘直接对应的,而非 lv,但命令使用方法并无不同:

  mkvdev -vdev hdisk3 -vadapter vhost0 -dev 55a11_datavg1

  mkvdev -vdev hdisk4 -vadapter vhost2 -dev 55a12_datavg1

  mkvdev -vdev hdisk5 -vadapter vhost4 -dev 55a13_datavg1

  mkvdev -vdev hdisk6 -vadapter vhost6 -dev 55a14_datavg1

  mkvdev -vdev hdisk7 -vadapter vhost8 -dev 55a15_datavg1

  mkvdev -vdev hdisk8 -vadapter vhost10 -dev 55a16_datavg1

  mkvdev -vdev hdisk9 -vadapter vhost12 -dev 55a17_datavg1

  mkvdev -vdev hdisk10 -vadapter vhost14 -dev 55a18_datavg1

  mkvdev -vdev hdisk11 -vadapter vhost16 -dev 55a19_datavg1

  mkvdev -vdev hdisk12 -vadapter vhost18 -dev 55a20_datavg1

  注意 :tempvg 没有加以处理,分配方法一致,留待以后分配

  检查一下结果:

  [ss55aa01][padmin][/home/padmin]#lsmap -all

  SVSA Physloc Client Partition ID

  --------------- -------------------------------------------- ------------------

  vhost0 U9133.55A.069511H-V2-C111 0x00000003

  VTD 55a11_datavg1

  Status Available

  LUN 0x8200000000000000

  Backing device hdisk3

  Physloc U787B.001.DNWGNVK-P1-C3-T2-W2148000B5D6A02AA-L1000000000000

  VTD 55a11_rootvg1

  Status Available

  LUN 0x8100000000000000

  Backing device rootvg1_55a11

  Physloc

  .....

  SVSA Physloc Client Partition ID

  --------------- ----------------------------------

  vhost18 U9133.55A.069511H-V2-C201 0x00000000

  VTD 55a20_datavg1

  Status Available

  LUN 0x8200000000000000

  Backing device hdisk12

  Physloc U787B.001.DNWGNVK-P1-C3-T1-W2149000B5D6A02AA-LA000000000000

  VTD 55a20_rootvg1

  Status Available

  LUN 0x8100000000000000

  Backing device rootvg1_55a20

  Physloc

  SVSA Physloc Client Partition ID

  --------------- ----------------------------------

  vhost19 U9133.55A.069511H-V2-C202 0x00000000

  VTD 55a20_rootvg2

  Status Available

  LUN 0x8100000000000000

  Backing device rootvg2_55a20

  Physloc

  至此,每个微分区的 rootvg,datavg 已映射完成。

 

0
相关文章