Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2388415
  • 博文数量: 384
  • 博客积分: 10193
  • 博客等级: 上将
  • 技术积分: 3785
  • 用 户 组: 普通用户
  • 注册时间: 2005-06-09 18:02
文章分类

全部博文(384)

文章存档

2011年(10)

2010年(29)

2009年(39)

2008年(36)

2007年(43)

2006年(198)

2005年(29)

分类: 服务器与存储

2006-07-08 21:54:21

Netapp filer ontap simulater可以用来模拟Netapp的nas设备, 供学习和测试之用. Netapp simulater需要从 Netapp now网站下载, 并且必须是Netapp的客户, eMule上也可以下载到Netapp simulater, 下载到的文件名是NetAPP_filer_ontap_simulate_7.1RC2-v18.iso

本文续述了Netapp simulater的安装, 操作系统使用Debian GNU/Linux sid, 内核版本为2.6.16-2-k7

将下载到的iso文件挂载后, 运行setup.sh开始安装

blueice:~# mount -o loop /home/ftp/upload/NetAPP_filer_ontap_simulate_7.1RC2-v18.iso /mnt/cdrom/
blueice:~# cd /mnt/cdrom/
blueice:/mnt/cdrom# ls
disks.tgz  disks2.tgz  doc  license.htm  readme.htm  runsim.sh  setup.sh  sim.tgz
blueice:/mnt/cdrom# ./setup.sh

Script version 18 (8/Jul/2005)
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:9:84:43]
Please ensure the simulator is not running.
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 1800MB of free memory. The smallest simulator memory you should choose is 58MB. The maximum simulator memory is 1760MB.
The recommended memory is 128MB.
How much memory would you like the simulator to use? [128]:
Create a new log for each session? [no]:
Overwrite the single log each time? [yes]:
Your simulator has 3 disk(s). How many more would you like to add? [0]: 3

The following disk types are available in MB:
        Real (Usable)
  a -   43   ( 14)
  b -   62   ( 30)
  c -   78   ( 45)
  d -  129   ( 90)
  e -  535   (450)
  f - 1024   (900)

If you are unsure choose the default option a
What disk size would you like to use? [a]: d
Disk adapter to put disks on? [0]:
Adding 3 additional disk(s).
./makedisks: Doing for id in 16 17 18 ...\n
Creating ,disks/v0.19:NETAPP__:VD-100MB-FZ-520_:69055903:259200
Creating ,disks/v0.20:NETAPP__:VD-100MB-FZ-520_:69055904:259200
Creating ,disks/v0.21:NETAPP__:VD-100MB-FZ-520_:69055905:259200
Shelf file Shelf:DiskShelf14 updated
Complete. Run /sim/runsim.sh to start the simulator.

默认情况下 Netapp simulater 拥有3块100m磁盘, 可根据需要增加磁盘, 这次安装增加了3块535的磁盘.

如果需要增加新的磁盘或者修改Netapp的配置, 如增加磁盘, 修改netapp使用的内存等, 则可以运行/sim/setup.sh

blueice:/mnt/cdrom# cd /sim
blueice:/sim# ls
,disks  ,mac-address  ,nvram  ,serialno  ,tapes  bfs.L  bgrun.sh  etc  makedisks  maytag.L  runsim.sh  sessionlogs  setup.sh
blueice:/sim# ./setup.sh

Script version 18 (8/Jul/2005)
Loading defaults. Run with -i option to ignore defaults
Please ensure the simulator is not running.
Regenerate MAC address? [no]:
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 1808MB of free memory. The smallest simulator memory you should choose is 58MB. The maximum simulator memory is 1768MB.
The recommended memory is 128MB.
How much memory would you like the simulator to use? [128]:
Create a new log for each session? [no]:
Overwrite the single log each time? [yes]:
Your simulator has 6 disk(s). How many more would you like to add? [0]: 2

The following disk types are available in MB:
        Real (Usable)
  a -   43   ( 14)
  b -   62   ( 30)
  c -   78   ( 45)
  d -  129   ( 90)
  e -  535   (450)
  f - 1024   (900)

If you are unsure choose the default option a
What disk size would you like to use? [d]: f
Disk adapter to put disks on? [0]:
Adding 2 additional disk(s).
./makedisks: Doing for id in 16 17 18 ...\n
Creating ,disks/v0.22:NETAPP__:VD-1000MB-FZ-520:70801906:2102400
Creating ,disks/v0.23:NETAPP__:VD-1000MB-FZ-520:70801907:2102400
Shelf file Shelf:DiskShelf14 updated
Complete. Run /sim/runsim.sh to start the simulator.

运行/sim/runsim.sh可以启动netapp simulator, 第一次启动后, 将提示您进行一些基本设置, 比如设置主机名等

blueice:/sim# ./runsim.sh
runsim.sh script version Script version 18 (8/Jul/2005)
This session is logged in /sim/sessionlogs/log

NetApp Release 7.1RC2: Tue Jul 12 00:50:05 PDT 2005
Copyright (c) 1992-2005 Network Appliance, Inc.
Starting boot on Sat Jul  8 12:39:32 GMT 2006
Sat Jul  8 12:39:38 GMT [fmmbx_instanceWorke:info]: Disk v4.16 is a primary mailbox disk
Sat Jul  8 12:39:38 GMT [fmmbx_instanceWorke:info]: normal mailbox instance on primary side
Sat Jul  8 12:39:38 GMT [raid.assim.disk.nolabels:error]: Disk v4.23 Shelf ? Bay ? [NETAPP   VD-1000MB-FZ-520 0042] S/N [70801907] has uninitialized labels and is being treated as a hot spare.
Sat Jul  8 12:39:38 GMT [raid.assim.disk.nolabels:error]: Disk v4.22 Shelf ? Bay ? [NETAPP   VD-1000MB-FZ-520 0042] S/N [70801906] has uninitialized labels and is being treated as a hot spare.
Sat Jul  8 12:39:39 GMT [raid.assim.disk.nolabels:error]: Disk v4.21 Shelf ? Bay ? [NETAPP   VD-100MB-FZ-520  0042] S/N [69055905] has uninitialized labels and is being treated as a hot spare.
Sat Jul  8 12:39:39 GMT [raid.assim.disk.nolabels:error]: Disk v4.20 Shelf ? Bay ? [NETAPP   VD-100MB-FZ-520  0042] S/N [69055904] has uninitialized labels and is being treated as a hot spare.
Sat Jul  8 12:39:39 GMT [raid.assim.disk.nolabels:error]: Disk v4.19 Shelf ? Bay ? [NETAPP   VD-100MB-FZ-520  0042] S/N [69055903] has uninitialized labels and is being treated as a hot spare.
Sat Jul  8 12:39:40 GMT [raid.cksum.replay.summary:info]: Replayed 0 checksum blocks.
Sat Jul  8 12:39:40 GMT [raid.stripe.replay.summary:info]: Replayed 0 stripes.
Sat Jul  8 12:39:40 GMT [wafl.maxdirsize.boot.notice:warning]: aggr0: This volume's maxdirsize (2621KB) is higher than the default (1310KB). There may be a performance penalty when doing operations on large directories.
Sat Jul  8 12:39:41 GMT [wafl.vol.guarantee.fail:error]: Space for volume vol0 is NOT guaranteed
Sat Jul  8 12:39:41 GMT [wafl.maxdirsize.boot.notice:warning]: vol0: This volume's maxdirsize (2621KB) is higher than the default (1310KB). There may be a performance penalty when doing operations on large directories.
Sat Jul  8 12:39:41 GMT [rc:ALERT]: Language not set on volume vol0. Using language config "C". Use vol lang to set language.
Sat Jul  8 12:39:41 GMT [rc:notice]: The system was down for 30469367 seconds
/etc/rc is missing. Running configuration dialog.

Sat Jul  8 12:39:49 GMT [rc:info]: Contacting DHCP server
Configuring onboard ethernet ns0.
Contacting DHCP server.
Ctrl-X to skip DHCP search ...
Configuring ns0 using IP 192.168.1.4 netmask 255.255.255.0.
ifconfig ns0 up netmask 255.255.255.0 192.168.1.4
add net default: gateway 192.168.1.1
Sat Jul  8 12:39:50 GMT [rc:info]: DHCP config successful
        NetApp Release 7.1RC2: Tue Jul 12 00:50:05 PDT 2005
        System ID: 0099909497 ()
        System Serial Number: 987654-32-0 ()
        Model Name: Simulator
        Processors: 1
        slot 0: NetApp Virtual SCSI Host Adapter v0
                8 Disks:               2.7GB
                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
                8 Disks:               2.7GB
                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 configure virtual network interfaces? [n]: y
Number of virtual interfaces to configure? [0]
Please enter the IP address for Network Interface ns0 [192.168.1.4]: 192.168.1.20
Please enter the netmask for Network Interface ns0 [255.255.255.0]:
Please enter the IP address for Network Interface ns1 []: 10.1.0.20
Please enter the netmask for Network Interface ns1 [255.0.0.0]: 255.255.255.0
Would you like to continue setup through the web interface? [n]:
Please enter the name or IP address of the default gateway [192.168.1.1]:
        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: 10.1.0.111
Please enter timezone [GMT]:
Where is the filer located? []: BeiJing
What language will be used for multi-protocol files (Type ? for list)?:UTF-8
That is not a legal language code
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)?:.UTF-8


Setting language on volume vol0

The new language mappings will be available after reboot
Language set on volume vol0
Do you want to run DNS resolver? [n]: Sat Jul  8 12:43:19 GMT [rc:ALERT]: Language on volume vol0 changed to .UTF-8
n
Do you want to run NIS client? [n]:
Setting the administrative (root) password for netapp ...
        The initial aggregate currently contains 2 disks;  you may add more
        disks to it later using the "aggr add" command.
New password:
Retype new password:
Sat Jul  8 12:43:45 GMT [passwd.changed:info]: passwd for user 'root' changed.
Sat Jul  8 12:43:45 GMT [dfu.firmwareUpToDate:info]: Firmware is up-to-date on all disk drives
Sat Jul  8 12:43:45 GMT [sfu.firmwareUpToDate:info]: Firmware is up-to-date on all disk shelves.
Sat Jul  8 12:43:45 GMT [tape_mc_alias_admin:notice]: alias st0 automatically added for tape/mc device WWN[0:042:424200:000000]
Sat Jul  8 12:43:45 GMT [tape_mc_alias_admin:notice]: alias st1 automatically added for tape/mc device WWN[0:142:424200:000000]
Sat Jul  8 12:43:45 GMT [tape_mc_alias_admin:notice]: alias st2 automatically added for tape/mc device WWN[0:242:424200:000000]
Sat Jul  8 12:43:45 GMT [tape_mc_alias_admin:notice]: alias st3 automatically added for tape/mc device WWN[0:342:424200:000000]
add net default: gateway 192.168.1.1: entry already exists
There are 5 spare disks; you may want to use the vol or aggr command
to create new volumes or aggregates or add disks to the existing aggregate.
Sat Jul  8 12:43:46 GMT [rc:info]: Registry is being upgraded to improve storing of local changes.
Sat Jul  8 12:43:46 GMT [rc:info]: Registry upgrade successful.
Sat Jul  8 12:43:47 GMT [mgr.boot.disk_done:info]: NetApp Release 7.1RC2 boot complete. Last disk update written at Wed Jul 20 20:56:59 GMT 2005
Sat Jul  8 12:43:47 GMT [mgr.boot.reason_ok:notice]: System rebooted after a halt command.
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 does not have WINS configured and is visible only to
        clients on the same subnet.
Do you want to make the system visible via WINS? [n]:
        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]: 4
What is the name of the Workgroup? [WORKGROUP]:
CIFS - Starting SMB protocol...
Welcome to the WORKGROUP Windows(R) workgroup

CIFS local server is running.


Password:
netapp> Sat Jul  8 12:44:21 GMT [console_login_mgr:info]: root logged in from console

netapp> Sat Jul  8 12:45:09 GMT [nbt.nbns.registrationComplete:info]: NBT: All CIFS name registrations have completed for the local server.
 storage show disk
DISK                  SHELF BAY SERIAL           VENDOR   MODEL      REV
--------------------- --------- ---------------- -------- ---------- ----
v4.16                   1    0  60854100         NETAPP   VD-100MB-F 0042
v4.17                   1    1  60854101         NETAPP   VD-100MB-F 0042
v4.18                   1    2  60854202         NETAPP   VD-100MB-F 0042
v4.19                   1    3  69055903         NETAPP   VD-100MB-F 0042
v4.20                   1    4  69055904         NETAPP   VD-100MB-F 0042
v4.21                   1    5  69055905         NETAPP   VD-100MB-F 0042
v4.22                   1    6  70801906         NETAPP   VD-1000MB- 0042
v4.23                   1    7  70801907         NETAPP   VD-1000MB- 0042
netapp> halt

CIFS local server is shutting down...

CIFS local server has shut down...
Sat Jul  8 12:45:47 GMT [kern.shutdown:notice]: System shut down because : "halt".

在netapp>提示符下输入halt则可以关闭 Netapp simulator

要注意的地方:
    1.由于Netapp simulator通过将网卡置于混杂模式的方式接获到达simulator的数据, 如果机器只有1快网卡, 则无法从本机访问Netapp simulator.
    2.Netapp simulator生成的虚拟磁盘将占用相应大小的物理磁盘空间. 尽管这些虚拟磁盘文件刚刚生成时是空洞文件,占用很少的磁盘空间, 但随着simulator的使用, linux将分配相应大小的磁盘空间给这些文件. 如果文件系统上没有足够的空间, 将导致simulator不能正常运行.
    3.Netapp simulator的一些license可以在cdrom/doc/license_keys.htm文件中找到.

参考资料:
    1 NOW(Netapp On the Web)上的文档资源
    2 Learning Oracle RAC with the NetApp Simulator
阅读(5203) | 评论(0) | 转发(0) |
0

上一篇:dreams

下一篇:使用NetAPP simulator:存储结构

给主人留下些什么吧!~~