Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2048149
  • 博文数量: 213
  • 博客积分: 10474
  • 博客等级: 上将
  • 技术积分: 2149
  • 用 户 组: 普通用户
  • 注册时间: 2005-05-05 16:53
个人简介

顺着天性做事,逆着个性做人.

文章分类

全部博文(213)

文章存档

2020年(3)

2015年(1)

2014年(1)

2013年(1)

2012年(4)

2011年(8)

2010年(36)

2009年(17)

2008年(38)

2007年(25)

2006年(37)

2005年(42)

分类: WINDOWS

2009-12-12 00:50:11

本次实验需要特别感谢paul yi的协助和配合。
实验环境MD3000I,PE1950,SERVER2003 ENG
gather the storage config file in c:\.
C:\Program Files\Dell\MD Storage Manager\client>SMcli 192.168.128.101 -c "save storageArray configuration file=\"c:\config.txt\";"
Performing syntax check...
Syntax check complete.
Executing script...
Script execution complete.
SMcli completed successfully.

edit config,add new vd.
在配置文件的最后一段加入下面的内容,在diskgroup4中创建一个名称为wxl的VD,级别RAID1,容量95M,条带字段256
show "Creating RAID 1 Virtual Disk date on existing Disk Group 4.";
// Create Virtual Disk on the Disk Group created by the create virtual disk physical disks command.
// NOTE: For Disk Groups that use all available capacity, the last Virtual Disk on this group is
// created using all remaining capacity by omitting the capacity= virtual disk creation parameter.
create virtualDisk diskGroup[4] raidLevel=1 userLabel="wxl" owner=0 segmentSize=256 capacity=102400000 Bytes;
show "Setting additional attributes for Virtual Disk wxl.";
// Configuration settings that can not be set during Virtual Disk creation.
set virtualDisk["date"] cacheFlushModifier=10;
set virtualDisk["date"] cacheWithoutBatteryEnabled=false;
set virtualDisk["date"] mirrorEnabled=true;
set virtualDisk["date"] readCacheEnabled=true;
set virtualDisk["date"] writeCacheEnabled=true;
set virtualDisk["date"] mediaScanEnabled=true;
set virtualDisk["date"] consistencyCheckEnabled=true;
set virtualDisk["date"] readAheadMultiplier=1;
set virtualDisk["date"] modificationPriority=high;
然后将新的config.txt文件导入到storage中,其中px1是storage name。
C:\Program Files\Dell\MD Storage Manager\client>smcli -n px1 -f "c:\config.txt"
Setting additional attributes for Virtual Disk thomas.
Creating RAID 1 Virtual Disk date on existing Disk Group 4.
Setting additional attributes for Virtual Disk wxl.
Script execution complete.
SMcli completed successfully.
这边遇到一个问题,配置文件中修改vd大小不成功,修改segmentsize没问题。
还有一个关于创建出的主机无法和VD mapping的问题,注意看做mapping时的提示存储分区允许和已用数量,之前已用16后,一直无法mapping,找了很久发现删除一个主机即可。
can't modify the vd size,can modify the segment size in the config file
storage partitions -allowed:16 used:16 full allowed can't add new mapping.
一个diskgroup只有一个VD的recover方法,其中px1是存储名称,virtualdisk physicaldisks可以在config文件中找到,下面的意思4号和7号硬盘组成一个名字叫wxl的raid1。
one disk groups had one vd:
C:\Program Files\Dell\MD Storage Manager\client>smcli -n px1 -c "recover virtual
disk physicaldisks=(0,4 0,7) userlabel=\"wxl\" capacity=102400000 offset=0 raidl
evel=1 segmentsize=256 owner=0";
重点介绍:1个diskgroup中多个vd的vd恢复方法。
one disk groups had one and more vd(group):
C:\Program Files\Dell\MD Storage Manager\client>smcli -n px1 -c "recover virtual
disk diskgroup=4 userlabel=\"wxl\" capacity=102400000 offset=37467904 raidl
evel=1 segmentsize=256 owner=0";
开一个txt文档命名为cfg.txt,输入下面的内容,其中做这个之前,需要先抓日志和config文件。 offset是指快照之类的大小,这个需要去日志文件中找,其它的可以在config文件中找到。
recover virtualdisk diskgroup=4 userlabel="wxl" capacity=102400000 offset=37467904 raidl
evel=1 segmentsize=256 owner=0;
将上面的文件写入存储中。
C:\Program Files\Dell\MD Storage Manager\client>smcli -n px1 -f "c:\cfg.txt"
Performing syntax check...
Syntax check complete.
Executing script...
Script execution complete.
SMcli completed successfully.
直接扫描磁盘添加一下盘符,数据都存在。之前直接以为导入旧的配置文件就可以发现,实际上只是添加了vd而已,数据是找不回来的,绕了很多路。
删除lun31需要把所有的映射删除,最后再删除accesslun。下面的命令除了px1是存储名外,其它的都不要变。
C:\Program Files\Dell\MD Storage Manager\client>smcli -n px1 -c "set accessvirtu
aldisk logicalunitnumber=31 hostgroup=defaultgroup;"
Performing syntax check...
Syntax check complete.
Executing script...
Script execution complete.
SMcli completed successfully.
初始化第四块硬盘,如果有报错,检查网络和具体报错信息,最好用带外做。
C:\Program Files\Dell\MD Storage Manager\client>smcli 192.168.128.101 -c "start
physicaldisk [0,4] initialize";
Performing syntax check...
Syntax check complete.
Executing script...
Script execution complete.
SMcli completed successfully.
把第7块硬盘强制为failed,然后恢复硬盘。
C:\Program Files\Dell\MD Storage Manager\client>smcli 192.168.128.102 -c "set ph
ysicaldisk [0,7] operationalstate=failed";
Performing syntax check...
Syntax check complete.
Executing script...
Script execution complete.
SMcli completed successfully.
下面的命令是多controller0做一个读写测试。
C:\Program Files\Dell\MD Storage Manager\client>smcli 192.168.128.102 -c "diagno
se controller [0] loopbackphysicaldiskchannel=allchannels testid=1";
Performing syntax check...
Syntax check complete.
Executing script...
阅读(4649) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~