Howto: NetApp SAN ONTAP 8.1 Lab Simulator Setup

Tracey Flanders Published Sep 23, 2012 at 9:44 AM MST by Tracey Flanders Tags NetApp, Storage, Simulator  (1) comment

If you're looking to setup a few NetApp SANs in your're lab here are the steps. Some things to note. These are only simulators and shouldn't be used in production. Also the max storage capacity with a few additional steps can only be around 250 GB, which isn't too bad. The end goal for us is to use this as part of our ESXi lab cluster and to test Disaster Recovery with NetApp SnapMirror. We plan on setting up two sims to replicate. This tutorial assumes you already know how to use NetApp ONTAP 8.x and are looking to use these sims in your lab to test configurations and explore. If you do not fit that profile we suggest that you read some of the documents on NetApp's site and/or take one of the entry level course offered by FastLane, NetApp's official training vendor.

 

Download the Simulator and Extract

You will need a NetApp NOW support account to download the NetApp ONTAP 8.x Simulator.

Next you will need to extract the zip file and register it on VMware Workstation, ESXi, or whatever supported option available. NetApp provides documents to do this so I won't cover it here.

 

Assigning a New System ID to a Simulate ONTAP Node

The NetApp System ID is embedded in the simulator. Since we plan on using multiple sims we need to make it unique between both SANs. Below are the steps to do that.

 

(Excerpt from NetApp documents.)

You must enter the two following commands before the Simulate ONTAP node boots up for the first time.

1. After you start the Simulate ONTAP node, the system will begin the boot up process in 10 seconds unless you interrupt it. You will see the following information on the console: 

Hit [Enter] to boot immediately, or any other key for command prompt.

Booting in 10 seconds...

 

2. Press any key other than the Enter key to interrupt the boot process. You will see the following information:

Type '?' for a list of commands, 'help' for more detailed help.
VLOADER>


3. Enter the following commands from the VLOADER prompt to set the Serial Number and System
ID for this node:
> setenv SYS_SERIAL_NUM 4034389-06-2

> setenv bootarg.nvram.sysid 4034389062


4. Enter the following commands to verify that the information was saved correctly:
> printenv SYS_SERIAL_NUM
4034389-06-2
> printenv bootarg.nvram.sysid
4034389062


5. Enter the "boot" command to restart the boot process for the node:
> boot

 

Because this is the first time you will be using the sim you need to clean and assign the disks.

6. When the system boots press Ctrl-C. Select option 4:

   (4) Clean configuration and initialize all disks.

 

7. You will be asked the following:

   Zero disks and reset config, and install new file system?: yes 

   This will erase all the data on the disks, are you sure?: yes


8. The system will reboot and wipe the system. This will take a bit. Once its complete you should now be ready to setup the initial configuration.

 

Initial SAN Configuration

We plan on having 2 VIFs. One for CIFS shares and another for NFS storage which we will configure later. We will call the first SAN NAFiler01 and the second NAFIler02.

 

1. On both hosts enter the hostnames.: NAFiler01 and NAFiler02

 

2. Follow the steps to assign IP Addresses to each NetApp Sim. Next we connect to the systems with the GUI console System Manager.

 

Install OnCommand System Manager

You will need to login into your NetApp NOW Support account to download OnCommand System Manager. You hava a choice of installing on Windows or Linux (RPM).

 

Once its installed launch OnCommand System Manager. You will need Java Runtime in order for it to work.

The default username is root and the password is netapp80. 

You will need to register the Sims in your console one at a time.

 

Adding additional Disk Storage

We will add the maximum storage to each of our SANs. Below is a link to the original document. I will summarize the steps below.

(Source: https://communities.netapp.com/docs/DOC-17354)

These are the steps for adding disks to a 7-Mode simulator from the command line. SSH to your SAN.

 

1. Unlock the diag user and assign it a password:

       > priv set advanced

       *> useradmin diaguser unlock
       *> useradmin diaguser password

       Please enter a new password: <password>

       Please enter it again: <password>


2. Log in to the system shell using the diag user account:

       *> systemshell

       login: diag
       password: <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/

 

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 36 -a 2
       
sudo vsim_makedisks -n 14 -t 36 -a 3
       
ls ,disks/

 Note you can use -t 23 for 1GB 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

 

Licensing Features

license add BSLRLTG #iscsi
license add BQOEAZL #nfs
license add ANLEAZL #flex_clone
license add DFVXFJJ #snapmirror
license add DNDCBQH #snaprestore
license add JQAACHD #snapvalidator
license add BCJEAZL #snapmanagerexchange
license add RKBAFSN #smdomino
license add ZOJPPVM #snaplock
license add PTZZESN #snaplock_enterprise
license add PDXMQMI #sv_ontap_sec
license add RIQTKCL #syncmirror_local
license add DZDACHD #CIFS
 
Enable vFiler
At a filer prompt enter
> options licensed_feature.multistore.enable on

 

We found a great NetApp ONTAP 8.x Cookbook for your to practice and test commands and configurations. It is very simuliar to what you would find taking the NetApp Setup and Configuration class. Other sources http://www.wooditwork.com/2012/01/04/installing-maximising-the-netapp-ontap-8-1-simulator/ 





Comments: (1)

Over a year ago on Jan 3, 2013 at 9:46 AM MST "In ESXi 5.1 the NetApp 8.1.1 Sim doesn't work because for the DataOntap-sim.vmdk has a weird disk format with multiple files. Short story is to just clone the NetApp to another vm. Supporting vm article http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2036572 " Tracey Flanders

Leave comment

We welcome your participation on our website. Please keep your comments civil and on point. Your email address may be used to notify you of comment replies.
By submitting a comment, you agree to these Terms of Use.


Login to comment on this article.