NetApp ONTAP simulator tips

时间:2021-09-03
本文章向大家介绍NetApp ONTAP simulator tips ,主要包括NetApp ONTAP simulator tips 使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

折腾了几天,把NetApp ONTAP 环境搭建起来了,可以简单地做些测试。其中遇到了不少问题,现在简单的记录下:

1.下载并安装

下载ONTAP 9.7 simulator(9.8的ssh有些问题),新建2个虚拟机node1、node2,并导入ONTAP 9.7 simulator OVF。node1直接启动到结束,node2一定要在刚启动的时候按空格进入prompt command,按照下面修改节点的system ID 与serial number:

VLOADER> setenv SYS_SERIAL_NUM 4034389-06-2

VLOADER> setenv bootarg.nvram.sysid 4034389062

VLOADER> boot

有些文档写的进入boot menu后 clearn configuration and initialize all disk,这步骤可以不需要。

2.node1创建集群

登录到node1中,输入admin后进入命令行,通过cluster setup命令创建集群:

 

node::> cluster setup

Welcome to the cluster setup wizard.

You can enter the following commands at any time:
  "help" or "?" - if you want to have a question clarified,
  "back" - if you want to change previously answered questions, and
  "exit" or "quit" - if you want to quit the cluster setup wizard.
     Any changes you made before quitting will be saved.

You can return to cluster setup at any time by typing "cluster setup".
To accept a default or omit a question, do not enter a value.

This system will send event messages and periodic reports to NetApp Technical
Support. To disable this feature, enter
autosupport modify -support disable
within 24 hours.

Enabling AutoSupport can significantly speed problem determination and
resolution should a problem occur on your system.
For further information on AutoSupport, see:
http://support.netapp.com/autosupport/

Type yes to confirm and continue {yes}: yes

Enter the node management interface port [e0c]:
Enter the node management interface IP address: 192.168.2.13
Enter the node management interface netmask: 255.255.255.0
Enter the node management interface default gateway: 192.168.2.1
The node management interface has been modified to use port e0c with IP address 192.168.2.13.
Use your web browser to complete cluster setup by accessing
https://192.168.2.13

Otherwise, press Enter to complete cluster setup using the command line
interface:回车

 

Do you want to create a new cluster or join an existing cluster? {create, join}:
create

Do you intend for this node to be used as a single node cluster? {yes, no} [no]:回车并记录下其中一个地址***

Existing cluster interface configuration found:

Port    MTU     IP              Netmask
e0a     9000    169.254.69.8    255.255.0.0
e0b     9000    169.254.69.18   255.255.0.0

Do you want to use this configuration? {yes, no} [yes]:

Enter the cluster administrator's (username "admin") password:

Retype the password:

Step 1 of 5: Create a Cluster
You can type "back", "exit", or "help" at any question.

Enter the cluster name: cluster1

Creating cluster cluster1

Starting cluster support services .

Cluster cluster1 has been created.

Step 2 of 5: Add Feature License Keys
You can type "back", "exit", or "help" at any question.

Enter an additional license key []:

Step 3 of 5: Set Up a Vserver for Cluster Administration
You can type "back", "exit", or "help" at any question.

Enter the cluster management interface port [e0d]:e0c
Enter the cluster management interface IP address: 192.168.2.16
Enter the cluster management interface netmask: 255.255.255.0
Enter the cluster management interface default gateway [192.168.2.1]:

A cluster management interface on port e0c with IP address 192.168.2.16 has been created.  You can use this address to connect to and manage the cluster.

Enter the DNS domain names: example.com
Enter the name server IP addresses: 192.168.2.1
DNS lookup for the admin Vserver will use the example.com domain.

 

Step 4 of 5: Configure Storage Failover (SFO)
You can type "back", "exit", or "help" at any question.


SFO will not be enabled on a non-HA system.

 

Step 5 of 5: Set Up the Node
You can type "back", "exit", or "help" at any question.

Where is the controller located []: shanghai

Cluster "cluster1" has been created.

To complete cluster setup, you must join each additional node to the cluster
by running "system node show-discovered" and "cluster add-node" from a node in the cluster.

To complete system configuration, you can use either OnCommand System Manager
or the Data ONTAP command-line interface.

To access OnCommand System Manager, point your web browser to the cluster
management IP address (https://192.168.2.16).

To access the command-line interface, connect to the cluster management
IP address (for example, ssh admin@192.168.2.16).

cluster1::>

 

3.node2加入集群

node::> cluster setup

Welcome to the cluster setup wizard.

You can enter the following commands at any time:
  "help" or "?" - if you want to have a question clarified,
  "back" - if you want to change previously answered questions, and
  "exit" or "quit" - if you want to quit the cluster setup wizard.
     Any changes you made before quitting will be saved.

You can return to cluster setup at any time by typing "cluster setup".
To accept a default or omit a question, do not enter a value.

This system will send event messages and periodic reports to NetApp Technical
Support. To disable this feature, enter
autosupport modify -support disable
within 24 hours.

Enabling AutoSupport can significantly speed problem determination and
resolution should a problem occur on your system.
For further information on AutoSupport, see:
http://support.netapp.com/autosupport/

Type yes to confirm and continue {yes}: yes

Enter the node management interface port [e0c]:
Enter the node management interface IP address: 192.168.2.14
Enter the node management interface netmask: 255.255.255.0
Enter the node management interface default gateway: 192.168.2.1
A node management interface on port e0c with IP address 192.168.2.14 has been created.

Use your web browser to complete cluster setup by accessing
https://192.168.2.14

Otherwise, press Enter to complete cluster setup using the command line
interface:

Do you want to create a new cluster or join an existing cluster? {create, join}:
join

Existing cluster interface configuration found:

Port    MTU     IP              Netmask
e0a     9000    169.254.227.24  255.255.0.0
e0b     9000    169.254.227.34  255.255.0.0

Do you want to use this configuration? {yes, no} [yes]:

 

Step 1 of 3: Join an Existing Cluster
You can type "back", "exit", or "help" at any question.

Enter the IP address of an interface on the private cluster network from the
cluster you want to join: 169.254.69.8 (这里输入node1中的cluster interface,169.254.X.X)

joining cluster at address 169.254.69.8

This node has joined the cluster cluster1.

Step 2 of 3: Configure Storage Failover (SFO)
You can type "back", "exit", or "help" at any question.

SFO will not be enabled on a non-HA system.

 

Step 3 of 3: Set Up the Node
You can type "back", "exit", or "help" at any question.

This node has been joined to cluster "cluster1".

To complete cluster setup, you must join each additional node to the cluster
by running "system node show-discovered" and "cluster add-node" from a node in the cluster.

To complete system configuration, you can use either OnCommand System Manager
or the Data ONTAP command-line interface.

To access OnCommand System Manager, point your web browser to the cluster
management IP address (https://192.168.2.16).

To access the command-line interface, connect to the cluster management
IP address (for example, ssh admin@192.168.2.16).

4.集群配置

通过ssh 登录到集群中,查看集群状态:

cluster1::> cluster show

Node                  Health  Eligibility

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

cluster1-01           true    true

cluster1-02           true    true

2 entries were displayed.

 

cluster1::> timezone -timezone Asia/Shanghai

cluster1::> system timeout modify -timeout 0 

cluster1::> cluster date modify -dateandtime 2109031505

cluster1::> license add SMKQROWJNQYQSDAAAAAAAAAAAAAA

继续添加额外的license。

 

5.调整root volume空间

 

安装完之后,vol0基本上都是90%以上,很容易因为空间不足导致系统崩溃,所以要调整空间。

 

删除snapshot

cluster1::> snap delete -vserver cluster1-01 -volume vol0 -snapshot *

cluster1::> snap delete -vserver cluster1-02 -volume vol0 -snapshot *

 

cluster1::> system node run -node cluster1-01 vol options vol0 nosnap on

cluster1::> system node run -node cluster1-02 vol options vol0 nosnap on

 

cluster1::> storage aggregate add-disks -aggregate aggr0_cluster1_01 -diskcount 8

cluster1::> storage aggregate add-disks -aggregate aggr0_cluster1_02 -diskcount 8

磁盘数量可以自由调整,由于我还要升级系统,所以空间预留的比较大一些。

 

cluster1::> volume size -vserver cluster1-01 -volume vol0 -new-size 7g

cluster1::> volume size -vserver cluster1-02 -volume vol0 -new-size 7g

 

cluster1::> volume show

Vserver   Volume       Aggregate    State      Type       Size  Available Used%

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

cluster1-01

          vol0         aggr0_cluster1_01

                                    online     RW          7GB     6.16GB    7%

cluster1-02

          vol0         aggr0_cluster1_02

                                    online     RW          7GB     6.17GB    7%

2 entries were displayed.

 

现在simulator以及集群都正常运行了,可以进行下一步测试了。

参考:

https://www.kclouder.cn/netapp-ontap-simulator-1/

原文地址:https://www.cnblogs.com/gloplas/p/15223236.html