设为首页收藏本站language 语言切换
查看: 5272|回复: 25
收起左侧

[转贴] Netapp Data Ontap 8.1.1模拟器添加磁盘

[复制链接]
发表于 2014-5-22 09:56:21 | 显示全部楼层 |阅读模式
dilidolo兄的地址没有翻墙是暂时上不去了的,先贴个技术贴解解馋
英文苦手的请自行google翻译,不是很难懂。
原帖位置https://communities.netapp.com/docs/DOC-17354
Instructions for adding disks to a Data ONTAP 8.1.1 Simulator
Background

Data ONTAP 8 provides a user mode system shell for rare diagnostic tasks. While most of the CPU cycles are spent in various Data ONTAP kernel modules, a user space exists and is used to run some processes and for diagnostics. The simulator takes advantage of this user space to implement simulated disks. These disks are kept as files in a special directory. The default simulator comes with 28 simulated disks of 1GB each.  It is possible to increase the simulated disk count to a maximum of 56 simulated disks. The following procedures will provide step-by-step instructions for doubling the disk count to 56 disks and making the disks available for use.

During these procedures we will unlock the diagnostic user account to gain access to the system shell, use the diag account to create the new simulated disks, and then reboot the simulator to have the new disks recognized.  The high-level process is same for both 7-Mode and Cluster-Mode, but the command syntax differs.  You can perform the procedure either through the console or through SSH.


Adding Disks to a 7-Mode Simulator

These are the steps for adding disks to a 7-Mode simulator.

1. Unlock the diag user and assign it a password:

       > priv set advanced
       *> useradmin diaguser unlock
       *> useradmin diaguser password
       Please enter a new password:
       Please enter it again:
2. Log in to the system shell using the diag user account:

       *> systemshell
       login: diag
       password:

3. Add the directory with the simulator disk tools to the path:

       % setenv PATH "${PATH}:/usr/sbin"
       % echo $PATH

4. Go to the simulated devices directory:

       % cd /sim/dev
       % ls ,disks/

At this point you will see a number of files which represent the simulated disks.  Notice that these files start with "v0." and "v1.". That means the disk are attached to adapters 0 and 1, and if you count the disk files you'll  see that there are 14 of them on each adapter. This is similar to the DS14 shelf topology with each shelf attached to its own adapter.

5. Add two more sets of 14 disks to the currently unused adapters 2 and 3:

       % vsim_makedisks -h
       % sudo vsim_makedisks -n 14 -t 23 -a 2
       % sudo vsim_makedisks -n 14 -t 23 -a 3
       % ls ,disks/

The first invocation of the command prints usage information. The remaining two commands tell the simulated disk creation tool to create 14 additional disk ("-n 14") of type 23 ("-t 23") on adapters 2 and 3 (e.g., "-a 2"). As you can see from the output of vsim_makedisks -h, type 23 disks are 1GB disks. You can add a different size and type of disk using the number that corresponds to the disk type.  Note that Data ONTAP 8.1.1 supports simulated disks up to 9GB (type 36 and 37), but make sure you have the space to add such large disks.

6. Now we're done with the system shell. We need to reverse some of the earlier steps and reboot the simulator so that it sees the new disks:

       % exit
       *> useradmin diaguser lock
       *> priv set admin
       > reboot

7. After the reboot complete, log back in and take ownership of all the new disks:

       > disk show -n
       > disk assign all
       > disk show -v

You should now see 56 disks of 1GB each listed in the simulator. The new disks should be listed as already zeroed and ready to use inside an aggregate.

Adding Disks to a Cluster-Mode Simulator

These are the steps for adding disks to a single Cluster-Mode simulator.  For a system with multiple nodes, you will need to perform this sequence for each node.

1. Unlock the "diag" user and assign it a password:

       > security login unlock -username diag
       > security login password -username diag
       Please enter a new password:
       Please enter it again:

2. Log in to the system shell using the diag user account:

       > set -privilege advanced
       *> systemshell local
       login: diag
       password:

3. Add the directory with the simulator disk tools to the path:

       % setenv PATH "${PATH}:/usr/sbin"
       % echo $PATH

4. Go to the simulated devices directory:

       % cd /sim/dev
       % ls ,disks/

At this point you will see a number of files which represent the simulated disks.  Notice that these files start with "v0." and "v1.". That means the disk are attached to adapters 0 and 1, and if you count the disk files you'll see that there are 14 of them on each adapter. This is similar to the DS14 shelf topology with each shelf attached to its own adapter.

5. Add two more sets of 14 disks to the currently unused adapters 2 and 3:

       % vsim_makedisks -h
       % sudo vsim_makedisks -n 14 -t 23 -a 2
       % sudo vsim_makedisks -n 14 -t 23 -a 3
       % ls ,disks/

The first invocation of the command prints usage information. The remaining two commands tell the simulated disk creation tool to create 14 additional disk ("-n 14") of type 23 ("-t 23") on adapters 2 and 3 (e.g., "-a 2"). As you can see from the output of vsim_makedisks -h, type 23 disks are 1GB disks. You can add a different size and type of disk using the number that corresponds to the disk type.  Note that Data ONTAP 8.1.1 supports simulated disks up to 9GB (type 36 and 37), but make sure you have the space to add such large disks.

6. Now we're done with the system shell. We need to reverse some of  the earlier steps and reboot the simulator so that it sees the new disks:

       % exit
       *> security login lock -username diag
       *> system node reboot local
       Warning: Are you sure you want to reboot the node? {y|n}: y

7. After the reboot completes, log back in and take ownership of all the disks.The example below is for a brand new system where all but disks in the root aggregate are currently unowned.
Substitute the name of the node for  in the commands below:

       > storage disk show
       > storage disk modify -disk :v4.* -owner
       14 entries were modified.
       > storage disk modify -disk :v5.* -owner
       14 entries were modified.
       > storage disk modify -disk :v6.* -owner
       14 entries were modified.
       > storage disk modify -disk :v7.* -owner
       14 entries were modified.
       > storage disk show

You should now see 56 disks of 1GB each listed in the simulator. The disks should be listed as already zeroed and ready to use inside an aggregate.
 楼主| 发表于 2014-5-22 09:57:05 | 显示全部楼层
本帖最后由 seanlaser 于 8-16-2012 00:18 编辑
dilidolo兄的传送门
http://bbs.hh010.com/thread-37397-1-1.html
补充
按照上面文中说的最多可以添加到56个虚拟磁盘,而且每个最大9G!
沙发 2014-5-22 09:57:05 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-5-22 09:57:37 | 显示全部楼层
看看,谢谢
板凳 2014-5-22 09:57:37 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-5-22 09:58:36 | 显示全部楼层
Netapp Data Ontap 8.1.1模拟器添加磁盘   以前删后悔了 哈哈
地板 2014-5-22 09:58:36 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-5-22 09:59:13 | 显示全部楼层
我看看是怎么回事
5# 2014-5-22 09:59:13 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-5-22 09:59:56 | 显示全部楼层
这篇文档不完整,模拟器自带28块1G的硬盘,这个只是增加了28块1G的硬盘。最多只能给你56G的空间。
我可以把它扩充到56块9G的硬盘,提供将近500G的空间,但是限制是VMDK只有250G,有办法把VMDK也扩充到500G,不过可能没必要了。
本来昨天想写的,不过没空写完。还包括如何完成基本配置,安装vCenter插件,然后通过vCenter来管理存储。
6# 2014-5-22 09:59:56 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-5-22 10:00:40 | 显示全部楼层
这个版本还和之前的几个版本一样吗 每3/4天就kernel panic?
7# 2014-5-22 10:00:40 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-5-22 10:01:36 | 显示全部楼层

文中提到了9G的硬盘是类型36和37了哦。
“As you can see from the output of vsim_makedisks -h, type 23 disks are 1GB disks. You can add a different size and type of disk using the number that corresponds to the disk type.  Note that Data ONTAP 8.1.1 supports simulated disks up to 9GB (type 36 and 37), but make sure you have the space to add such large disks ”
期待dilidolo兄的指导文档
8# 2014-5-22 10:01:36 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-5-22 10:02:28 | 显示全部楼层
呵呵!
9# 2014-5-22 10:02:28 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-5-22 10:02:58 | 显示全部楼层
学习学习了~
10# 2014-5-22 10:02:58 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-5-22 10:03:30 | 显示全部楼层
穷人想找个稳定的,免费的模拟器真难哦, 还好有snapshot, 一panic 就恢复
11# 2014-5-22 10:03:30 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-5-22 10:04:17 | 显示全部楼层
看看。。。
12# 2014-5-22 10:04:17 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-5-22 10:05:06 | 显示全部楼层
谢谢楼主!
13# 2014-5-22 10:05:06 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-3-11 00:32:58 | 显示全部楼层
多谢  看看好多谢
14# 2012-3-11 00:32:58 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-10-11 15:51:21 | 显示全部楼层
楼主有空一定要写写  期待呀
15# 2012-10-11 15:51:21 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-3-6 17:55 , Processed in 0.064467 second(s), 21 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表