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.cnblogs.com/gloplas/p/15223236.html
- Oracle 12c里的几点补充(一)(r11笔记第7天)
- Oracle备库的PDB无法连接的问题(r11笔记第6天)
- Golang语言社区--模板的使用
- Golang语言写Web 应用程序
- 强制wordpress后台HTTPS
- Golang语言 Cookie的使用
- Golang 语言调用动态库实现OpenGL及windows的API编程
- MySQL中的Online DDL(第一篇)(r11笔记第3天)
- 转--quick-cocos做客户端,golang做服务端,实现HTTP通信
- Nginx配置SSL证书
- Golang语言RPC Authorization进行简单ip安全验证的方法
- 深入理解Oracle中的DBCA
- Golang语言goto语句
- 转--Golang语言语法汇总
- JavaScript 教程
- JavaScript 编辑工具
- JavaScript 与HTML
- JavaScript 与Java
- JavaScript 数据结构
- JavaScript 基本数据类型
- JavaScript 特殊数据类型
- JavaScript 运算符
- JavaScript typeof 运算符
- JavaScript 表达式
- JavaScript 类型转换
- JavaScript 基本语法
- JavaScript 注释
- Javascript 基本处理流程
- Javascript 选择结构
- Javascript if 语句
- Javascript if 语句的嵌套
- Javascript switch 语句
- Javascript 循环结构
- Javascript 循环结构实例
- Javascript 跳转语句
- Javascript 控制语句总结
- Javascript 函数介绍
- Javascript 函数的定义
- Javascript 函数调用
- Javascript 几种特殊的函数
- JavaScript 内置函数简介
- Javascript eval() 函数
- Javascript isFinite() 函数
- Javascript isNaN() 函数
- parseInt() 与 parseFloat()
- escape() 与 unescape()
- Javascript 字符串介绍
- Javascript length属性
- javascript 字符串函数
- Javascript 日期对象简介
- Javascript 日期对象用途
- Date 对象属性和方法
- Javascript 数组是什么
- Javascript 创建数组
- Javascript 数组赋值与取值
- Javascript 数组属性和方法
- 再见,AOP,怀恋和你在一起的日子!
- Markdown笔记Ⅱ
- 使用 Ink!开发 Substrate ERC20 智能合约
- Python|Numpy的常用操作
- 提速72倍,在Python里面调用Golang函数
- JUC学习之基础
- 【DB笔试面试841】在Oracle中,如何跟踪tnsping过程?
- 系统设计:如何让系统高可用?
- 什么是事务隔离
- Python|Pandas的常用操作
- C++设计模式笔记(01)-设计模式的介绍
- 【DB笔试面试842】在Oracle中,如何启动Oracle数据库的监听日志?
- 【揭秘】C语言类型转换时发生了什么?
- JUC学习之8锁现象
- TensorFlow惊现大bug?网友:这是逼着我们用PyTorch啊!