分类: LINUX
2017-01-06 10:38:35
目前仅有的NAS是生产用,于是打算从网上下载操作系统的安装包,搭建一个测试环境学习学习。无奈官网上不提供该安装包,但提供模拟器Data Ontap Simulator,据说能够涵盖Data ONTAP 99.9%的功能。决定就用这个东东了。
1.从51CTO.COM上下载Data Ontap Simulator。这个是需要豆豆的,我没有注册,还好同事有,下载搞定。公司用的是Data ONTAP的7.3.6版本的,下载地址。
2.在网上找simulator的用法,都说必须在Linux环境下安装。目前我的测试环境是UNIX的,不能用,好吧,装vmware,虚拟出一个Linux环境。通常用的都是RedHat Linux,最近常常看到ubuntu Linux,正好没用过,就试用这个了。
3.先找的VMware是精简汉化版的7.1.4,ubuntu用的12.04版本ubuntu-12.04-desktop-i386.iso(从china unix下载),装VMware和ubuntu的时候都很顺利,没有出现问题。但是装好之后的ubuntu打开就是Terminal命令窗口,并不是文档中所说的类似windows的操作界面。这点可以忍受;
4.下面就应该是将simulator传到ubuntu上了。查资料说要把文件放到ubuntu中,必须要装VMware Tools,装好之后就可以与windows之间进行共享。问题就在这儿了,选择“虚拟机”-》“安装VMware Tools”,倒是出现了下载界面,等至少半个小时之后,下载完成,但是不知道文件到底放在哪儿了。使用find命令在后台查找,根本找不到。
换一种方式,从网上下载VMware Tools的安装包iso,放到VMware的安装路径下(默认路径是C:\Program Files\VMware\VMware Workstation),选择“虚拟机”-》“可移动设备”-》“CD/DVD(CDE)”-》“设置”,选择镜像文件路径为VMware Tools安装包存放路径,点击确定。系统并没有自动安装VMware Tools。在命令窗口中敲vm并敲2次Tab键,出来的命令只有vmwarectrl、vmstat,并没有所谓的vmware-config等。
网上有说英文版的会自动安装VMware Tools,于是重新执行了一遍汉化版的英文安装程序,还是安装不了。抓狂了。
5.推倒重做。从控制面板中卸载VMware没能卸载干净。在网上找到一个完全卸载的工具。
6.重新下载VMware和ubuntu,都下载最新版本的。
VMware下载VMware workstation 9.0版本,下载地址:;
ubuntu下载10.04版本,下载地址给忘了。
7.安装VMware。除了指定虚拟盘大小之外,其他的都可以默认。这里设置的虚拟盘大小为5G。
8.安装好之后,双击打开vmware workstation,选择新建虚拟机。
9.选择ubuntu安装包iso所在路径,设置登录ubuntu的用户名和密码(xmm/yiling)。创建好虚拟机之后,出现类似windows的操作界面,如下图:
在初始安装之后,上图的主界面区没有任何图标。左上端的Applications、Places、System对应的是一个个菜单,与win8的界面很相似,都很炫;左下角的图标表示desktop,与windows的桌面类似。
10.现在设置共享文件。现在PC机上设置好共享目录。这里是NetApp。
选择“Places”-》“computer”,进入类似“我的电脑”的界面。
在菜单栏上选择“File”-》“Connect to Server”,出现如下界面。Service Type选择windows共享,输入PC机的IP地址,点击“Connect”连接。
此时将显示PC机的所有盘及netapp文件夹。
点击进入netapp目录,复制simulator的安装包iso文件,放到ubuntu的目录下(如Downloads)。
11.在ubuntu上选择该iso文件,右键选择“Extract Here”,得到文件夹。
12.选择“Applications”-》“Accessories”-》“Terminal”,进入到命令行界面。
13.输入预先设置的用户名和密码(xmm/yiling),进入到linux中。
#ls -l
显示linux包含的文件夹,其中就有Downloads。
#cd Downloads
ls
7.3.6-sim-cdrom-image-v22.iso 7
(copy).3.6-sim-cdrom-image-v22
cd *copy*
(copy).3.6-sim-cdrom-image-v22$ ls
-la
total 81364
drwxr-xr-x 3 xmm
xmm
4096 2013-06-03 23:03 .
drwxr-xr-x 3 xmm
xmm
4096 2013-06-03 23:03 ..
-rw-r--r-- 1 xmm xmm 33522434 2013-06-03 23:03 disks2.tgz
-rw-r--r-- 1 xmm xmm 33853684 2013-06-03 23:03 disks.tgz
drwx------ 4 xmm
xmm
4096 2013-06-03 23:03 doc
-rw-r--r-- 1 xmm
xmm 11751
2013-06-03 23:03 license.htm
-rw-r--r-- 1 xmm
xmm
5073 2013-06-03 23:03 readme.htm
-rw-r--r-- 1 xmm
xmm
184 2013-06-03 23:03 runsim.sh
-rw-r--r-- 1 xmm
xmm 41588
2013-06-03 23:03 setup.sh
-rw-r--r-- 1 xmm xmm 12238666 2013-06-03 23:03 sim.tgz
-rw-r--r-- 1 xmm xmm 3612672 2013-06-03 23:03
Vmware, Linux and Simulator installation.doc
14.给所有文件增加执行权限。
(copy).3.6-sim-cdrom-image-v22$ chmod -R +x
*
15.执行脚本。
(copy).3.6-sim-cdrom-image-v22$ ./setup.sh
Script version 22
(18/Sep/2007)
This script can only be ran as root. Attempting to re-run using
sudo.
[sudo] password for xmm:
Script version 22
(18/Sep/2007)
Ignore defaults file set
Where to install to? [/sim]:
Would you like to install as a cluster? [no]:
Would you like full HTML/PDF FilerView documentation to be
installed [yes]:
Continue with installation? [no]: yes
Creating /sim
Unpacking sim.tgz to /sim
Configured the simulators mac address to be
[00:50:56:16:ed:96]
Please ensure the simulator is not running.
Your simulator has 3 disk(s). How many more would you like to add?
[0]:
Use DHCP on first boot? [yes]:
Ask for floppy boot? [no]:
Checking the default route...
You have a single network interface called eth0 (default route) .
You will not be able to access the simulator from this Linux host.
If this interface is marked DOWN in ifconfig then your simulator
will crash.
Which network interface should the simulator use? [default]:
Your system has 722MB of free memory. The smallest simulator memory
you should choose is 110MB. The maximum simulator memory is
682MB.
The recommended memory is 512MB.
How much memory would you like the simulator to use? [512]:
Create a new log for each session? [no]:
Overwrite the single log each time? [yes]:
Complete. Run /sim/runsim.sh to start the simulator.
16.根据提示启动simulator。
(copy).3.6-sim-cdrom-image-v22$ /sim/runsim.sh
This script can only be ran as root. Attempting to re-run using
sudo.
runsim.sh script version Script version 22 (18/Sep/2007)
This session is logged in /sim/sessionlogs/log
NetApp Release 7.3.6:
Thu Jul 7 00:41:19 PDT 2011
Copyright (c) 1992-2011 NetApp.
Starting boot on Tue Jun 4 06:20:52 GMT
2013
Tue Jun 4 06:20:52 GMT
[iomem.init.fail:CRITICAL]: Failed to initialize caching module
(model name , serial number , part number ) in slot 1.
Tue Jun 4 06:20:57 GMT
[fmmb.current.lock.disk:info]: Disk v4.16 is a local HA mailbox
disk.
Tue Jun 4 06:20:57 GMT
[fmmb.current.lock.disk:info]: Disk v4.17 is a local HA mailbox
disk.
Tue Jun 4 06:20:57 GMT
[fmmb.instStat.change:info]: normal mailbox instance on local
side.
Tue Jun 4 06:20:57 GMT
[raid.cksum.replay.summary:info]: Replayed 0 checksum blocks.
Tue Jun 4 06:20:57 GMT
[raid.stripe.replay.summary:info]: Replayed 0 stripes.
Tue Jun 4 06:20:58 GMT
[shelf.config.multipath:info]: All attached storage on the system
is multi-pathed.
sparse volume upgrade done. num vol 0.
Vdisk Snap Table for host:0 is initialized
Tue Jun 4 06:21:00 GMT
[vol.language.unspecified:info]: Language not set on volume vol0.
Using language config "C". Use vol lang to set language.
Tue Jun 4 06:21:00 GMT [rc:notice]: The system
was down for 57761544 seconds
Tue Jun 4 06:21:00 GMT
[useradmin.added.deleted:info]: The role 'compliance' has been
added.
Tue Jun 4 06:21:01 GMT
[useradmin.added.deleted:info]: The group 'Backup Operators' has
been modified.
/etc/rc is missing. Running configuration dialog.
Tue
Jun 4 06:21:09 GMT [dhcp.contacting.Server:info]:
Contacting DHCP server.
Configuring onboard ethernet ns0.
Contacting DHCP server.
Ctrl-X to skip DHCP search ...
Tue Jun 4 06:21:09 GMT [netif.linkUp:info]:
Ethernet ns0: Link up.
Configuring ns0 using IP 192.168.119.129
netmask 255.255.255.0.
ifconfig ns0 up netmask
255.255.255.0 192.168.119.129
add net default: gateway
192.168.119.2
Tue Jun 4 06:21:14 GMT
[dhcp.Config.Success:info]: DHCP configuration was
successful.
NetApp Release 7.3.6: Thu Jul 7
00:41:19 PDT 2011
System ID: 0099923240 ()
System Serial Number: 987654-32-0 ()
System Storage Configuration: Multi-Path
System ACP Connectivity: NA
Model Name: Simulator
Processors: 1
slot 0: NetApp Virtual SCSI Host Adapter v0
3
Disks:
0.3GB
1 shelf with LRC
slot 1: NetApp Virtual SCSI Host Adapter v1
slot 2: NetApp Virtual SCSI Host Adapter v2
slot 3: NetApp Virtual SCSI Host Adapter v3
slot 4: NetApp Virtual SCSI Host Adapter v4
3
Disks:
0.3GB
1 shelf with LRC
slot 5: NetApp Virtual SCSI Host Adapter v5
slot 6: NetApp Virtual SCSI Host Adapter v6
slot 7: NetApp Virtual SCSI Host Adapter v7
slot 8: NetApp Virtual SCSI Host Adapter v8
4
Tapes:
VT-100MB
VT-100MB
VT-100MB
VT-100MB
Please enter the new hostname []:
netapp
Do you want to enable IPv6? [n]:
Do you want to configure virtual network interfaces? [n]:
Please enter the IP address for Network Interface ns0
[192.168.119.129]:
Please enter the netmask for Network Interface ns0
[255.255.255.0]:
Please enter media type for ns0 {100tx-fd, auto} [auto]:
Please enter the IP address for Network Interface ns1 []:
Would you like to continue setup through the web interface?
[n]:
Please enter the name or IP address of the IPv4 default gateway
[192.168.119.2]:
The administration host is given root access to
the filer's
/etc files for system
administration. To allow /etc root access
to all NFS clients enter RETURN below.
Please enter the name or IP address of the administration
host:
Please enter timezone [GMT]:
PRC
------设置时区,PRC表示中国
Where is the filer located?
[]:
What language will be used for multi-protocol files (Type ? for
list)?:?
Supported language codes are:
C
(POSIX)
ar
(Arabic)
cs
(Czech)
da
(Danish)
de
(German)
en
(English)
en_US
(English (US))
es
(Spanish)
fi
(Finnish)
fr
(French)
he
(Hebrew)
hr
(Croatian)
hu
(Hungarian)
it
(Italian)
ja
(Japanese euc-j*)
ja_v1
(Japanese euc-j)
ja_JP.PCK
(Japanese PCK(sjis)*)
ja_JP.932
(Japanese cp932*)
ja_JP.PCK_v2
(Japanese PCK(sjis))
ko
(Korean)
no
(Norwegian)
nl
(Dutch)
pl
(Polish)
pt
(Portuguese)
ro
(Romanian)
ru
(Russian)
sk
(Slovak)
sl
(Slovenian)
sv
(Swedish)
tr
(Turkish)
zh
(Simplified Chinese)
zh.GBK
(Simplified Chinese (GBK))
zh_TW
(Traditional Chinese euc-tw)
zh_TW.BIG5
(Traditional Chinese Big 5)
To use UTF-8 as the NFS character set append '.UTF-8'
Language codes flagged with "*" are obsolete versions of those
language character sets.
What language will be used for multi-protocol files (Type ? for
list)?:en_US
---语言环境选择英文
Setting language on volume vol0
The new language mappings will be available after reboot
Tue Jun 4 06:36:39 GMT
[vol.language.changed:info]: Language on volume vol0 changed to
en_US
Language set on volume vol0
Do you want to run DNS resolver? [n]:
Do you want to run NIS client? [n]:
This system will send event messages and weekly reports to NetApp
Technical Support. To disable this feature, enter "options
autosupport.support.enable off" within 24 hours. Enabling
Autosupport can significantly speed problem determination and
resolution should a problem occur on your system. For further
information on Autosupport, please see:
Press the return key to continue.
The Shelf Alternate Control Path Management
process provides the ability
to recover from certain SAS shelf module failures
and provides a level of
availability that is higher than systems not
using the Alternate Control
Path Management process.
Do you want to configure the Shelf Alternate Control Path
Management interface for SAS shelves [n]:
Setting the administrative (root) password for netapp ...
New
password:
---yiling
Retype new
password:
Tue Jun 4 14:37:57 CST [passwd.changed:info]:
passwd for user 'root' changed.
Tue Jun 4 14:37:57 CST
[dfu.firmwareUpToDate:info]: Firmware is up-to-date on all disk
drives
Tue Jun 4 14:37:57 CST
[sfu.firmwareUpToDate:info]: Firmware is up-to-date on all disk
shelves.
Tue Jun 4 14:37:57 CST [tapemc.alias.addOK:info]:
Alias st0 automatically added for tape device
WWN[0:042:424200:000000].
Tue Jun 4 14:37:57 CST [tapemc.alias.addOK:info]:
Alias st1 automatically added for tape device
WWN[0:142:424200:000000].
Tue Jun 4 14:37:57 CST [tapemc.alias.addOK:info]:
Alias st2 automatically added for tape device
WWN[0:242:424200:000000].
Tue Jun 4 14:37:57 CST [tapemc.alias.addOK:info]:
Alias st3 automatically added for tape device
WWN[0:342:424200:000000].
add net default: gateway 192.168.119.2: entry already exists
Tue Jun 4 14:37:58 CST
[snmp.agent.msg.access.denied:warning]: Permission denied for
SNMPv3 requests from root. Reason: Password is too short (SNMPv3
requires at least 8 characters).
Tue Jun 4 14:37:58 CST [perf.archive.start:info]:
Performance archiver started. Sampling 23 objects and 208
counters.
Tue Jun 4 14:37:59 CST [rc:info]: Registry is
being upgraded to improve storing of local changes.
Tue Jun 4 14:37:59 CST [rc:info]: Registry
upgrade successful.
Tue Jun 4 14:38:00 CST [mgr.boot.disk_done:info]:
NetApp Release 7.3.6 boot complete. Last disk update written at Sat
Aug 6 01:28:35 CST 2011
Tue Jun 4 14:38:00 CST
[mgr.boot.reason_ok:notice]: System rebooted after a halt
command.
Ipspace "acp-ipspace" created
This process will enable CIFS access to the filer from a Windows(R)
system.
Use "?" for help at any prompt and Ctrl-C to exit without
committing changes.
Your filer is currently visible to all systems using WINS. The
WINS
name server currently configured is: [ 192.168.119.2 ].
(1) Keep the current WINS configuration
(2) Change the current WINS name server address(es)
(3) Disable WINS
Selection (1-3)? [1]:
A filer can be configured for multiprotocol access, or as an
NTFS-only
filer. Since multiple protocols are currently licensed on this
filer,
we recommend that you configure this filer as a multiprotocol
filer
(1) Multiprotocol filer
(2) NTFS-only filer
Selection (1-2)? [1]:
CIFS requires local /etc/passwd and /etc/group files and default
files
will be created. The default passwd file contains
entries for 'root',
'pcuser', and 'nobody'.
Enter the password for the root user []:
Retype the password:
The default name for this CIFS server is 'NETAPP'.
Would you like to change this name? [n]:
Data ONTAP CIFS services support four styles of user
authentication.
Choose the one from the list below that best suits your
situation.
(1) Active Directory domain authentication (Active Directory
domains only)
(2) Windows NT 4 domain authentication (Windows NT or Active
Directory domains)
(3) Windows Workgroup authentication using the filer's local user
accounts
(4) /etc/passwd and/or NIS/LDAP authentication
Selection (1-4)? [1]:
In order to operate correctly within an Active Directory-based
Windows
domain, CIFS must use the DNS resolver service. That service
is
currently not configured on the filer. You must either configure
DNS
resolver services or choose a different authentication style.
Do you want to configure the filer's DNS resolver service?
[y]:
What is the filer's DNS domain name? []:
***
CIFS cannot join an Active Directory-based domain when the filer's
DNS
***
resolver service is not available. You must choose a
different
***
authentication style to continue.
Do you want to configure the filer's DNS resolver service?
[y]:
What is the filer's DNS domain name? []: file1
What are the IPv4/IPv6 address(es) of your authoritative DNS name
server(s)? []: 192.168.119.2
Would you like to specify additional DNS name servers? [n]:
What is the name of the Active Directory domain? [file1]:
***
CIFS Setup cannot find a necessary DNS service (SRV) record for
the
***
specified domain. The "_ldap._tcp.FILE1" service cannot be found
using
***
DNS as currently configured.
(1) Enter a different Active Directory domain name
(2) Reconfigure DNS and try again
(3) Exit Setup
Selection (1-3)? [1]: 2
What is the filer's DNS domain name? [file1]:
What are the IPv4/IPv6 address(es) of your authoritative DNS name
server(s)? [192.168.119.2]:
Would you like to specify additional DNS name servers? [n]:
What is the name of the Active Directory domain? [FILE1]:
***
CIFS Setup cannot find a necessary DNS service (SRV) record for
the
***
specified domain. The "_ldap._tcp.FILE1" service cannot be found
using
***
DNS as currently configured.
(1) Enter a different Active Directory domain name
(2) Reconfigure DNS and try again
(3) Exit Setup
Selection (1-3)? [1]:
What is the name of the Active Directory domain? []:
You must supply a value.
What is the name of the Active Directory domain? []: /sim
***
CIFS Setup cannot find a necessary DNS service (SRV) record for
the
***
specified domain. The "_ldap._tcp./SIM" service cannot be found
using
***
DNS as currently configured.
(1) Enter a different Active Directory domain name
(2) Reconfigure DNS and try again
(3) Exit Setup
Selection (1-3)? [1]: 3
Password:
netapp> Tue Jun 4 14:51:34 CST
[console_login_mgr:info]: root logged in from console
netapp>
安装完成!