- 积分
- 728
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 40
- 听众
- 收听
中级工程师
   
|
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. |
|