RSS

case 14 当900块磁盘资源要求添加到MSCS群集中,你会怎么办?

10 Sep

通常来说要添加一个磁盘资源到群集中,大家都是使用的cluadmin的图形界面来处理。当你遇到900块磁盘都需要添加到群集中的时候,你会怎么办?用GUI的操作界面进行超过10,000次的鼠标点击?在担惊受怕中,在麻木的操作中,在不停的验证中进行操作?

需求:900块磁盘资源都要被加入到群集中。

分析:900块磁盘资源分为2类,一类是挂载磁盘,一类是挂载根盘。

在微软KB http://support.microsoft.com/kb/555312中提到:

c:\>Cluster . res "Disk X:" /create /group:"Disk Group 1" /type:"physical disk"
– This command creates a physical disk resource named Disk X: in a group named Disk Group 1.

c:\>Cluster . res "Disk X:" /priv Drive="X:"
– This command associates the physical disk with disk using the X: drive letter. If you are using mount points, you must specify the Volume information for the mount point. For example: Drive=Volume{Volume guid}
c:\>Cluster . res "Disk X:" /On
– This command brings the newly created physical disk resource online.

对于挂载根盘当然好处理了

   1: Cluster . res "Disk X:" /create /group:"Disk Group 1" /type:"physical disk"  /priv drive="G:"

那挂载磁盘怎么来处理呢? Volume GUID从哪里找呢?

于是乎一个牛逼的命令现身了 mountvol

直接在cmd中运行mountvol,你可以看到

这不就是我需要的Volume guid么?下面还有一个问题,挂载磁盘还需要设计依赖性的,这里需要使用到priv开关设置挂载磁盘依赖挂载根盘上。

运行下面的命令添加挂载磁盘

   1: cluster .res “Disk G:\log06” /create /group:”VM-mlclu-12” /type:”physical disk” /adddep":”disk g:” /priv drive=volume{xxxxxxxx}

最后,整合一下解决方案

   1: 对于挂载根盘
   2: cluster .res "Disk G:" /create /group:"VM-mlclu-12" /type:"physical disk" /priv drive="g:"
   3: 对于挂载盘
   4: cluster .res "Disk G:\log06" /create /group:"VM-mlclu-12" /type:"physical disk” /priv drive=volume{xxxxxxxx} /adddep:"disk g:"
   5: Volume GUID由mountvol来获取

这样只需要做好一个excle文件然后去服务器上粘贴就好了。

Advertisements
 
1 Comment

Posted by on September 10, 2009 in Exchange Server

 

One response to “case 14 当900块磁盘资源要求添加到MSCS群集中,你会怎么办?

  1. September 10, 2009 at 16:18

    不错

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: