NetApp ONTAP Simulator and ESX Server

In preparation for some NetApp training that I’ll be attending next month, I downloaded the NetApp ONTAP Simulator.  The ONTAP Simulator runs on top of Linux (a few different distributions are supported) and allows you to simulate a NetApp Filer.  This is pretty cool for a couple of reasons, not the least of which is that it allows you to perform testing of NAS and iSCSI operations without having an actual Filer.  Unfortunately, I had some problems getting the ONTAP Simulator working in a virtual machine on VMware ESX Server.

To setup the ONTAP Simulator, I created a Linux virtual machine on ESX Server 2.5.3 and installed Red Hat Linux 9.0.  Red Hat 9.0 is a supported distribution for the ONTAP Simulator as well as a fully supported guest OS on ESX Server, and so I didn’t expect any issues.  However, after installing and configuring the simulator, I couldn’t get any network connectivity whatsoever.  I had full connectivity to the guest OS, but not to the simulator.

Finally, after digging around in the documentation for the simulator, I came across a statement indicating that the network interface that was being used by the simulator had to be in promiscuous mode.  That rang a bell:  ESX Server, by default, doesn’t allow NICs in guest operating systems to be in promiscuous mode.

The fix is this:

echo PromiscuousAllowed yes > /proc/vmware/net/vmnic0/config

Replace “vmnic0” in this command with whatever virtual switch or NIC team the virtual machine in question is using.  Once I did this (from the Service Console on the ESX Server) and rebooted the virtual machine running the ONTAP Simulator, it worked like a champ.

(Note:  You must be a current NetApp customer or partner in order to use the ONTAP Simulator.)

Tags: , , , , , , , , ,

Hi! I’m trying to get the Netapp Simulator working in a Vmware Workstation running RHEL 3 on a Windows XP host. I get a whole load of messages when executing runsim.sh :

“Disk v4.40 Shelf ? Bay ? [NETAPP VD-1000MB-FZ-520 0042] S/N [18084922] has no valid labels. It will be taken out of service to prevent possible data loss.”

Later when I try to aggregate the disks I get a message indicating that there are no disks available, so I guess this is a result of the runsim.sh failures.

Have you seen this before? I’m lost for ideas!

Thanks - Paul.

Have you zeroed the disks yet? I’ll check in with a NetApp guru within the company and see if I can find anything else out.

Paul,

Others who have seen the same error with the Simulator have told me that they just end up rebuilding the Simulator when they see those errors. You may be able to get away with just creating more disks (use the makedisks.sh script; view the source of the script first so that you can create disks that are large enough for you) and then place those disks into a new aggregate.

I get the same problem. I ended up rebuiling the Simulator but I again faced the same issue. Is something different needs to be done when we are installing in a VM as compared to installing on a physical workstation ?

Thanks in advance.

-N

Honey_Bee,

I have yet to find a definitive answer as to why this occurs, or why it seems to occur more frequently in a VM. In all the instances in which I’ve found someone that ran into this issue (with the disk has no valid labels), the user ends up rebuilding the Simulator. If I find more information, I’ll post it here.

Scott

I’ve gotten the following to work, I’ve then zero’d the disks.

>priv set diag
*>disk unfail -s v1.19

Sdodson,

Excellent! Thanks for the tip.

Scott

Is there an easy way to make the promiscuous mode setting permanent other than tweaking with init scripts on the vmware host?

In ESX 3, you can set promiscuous mode on the vSwitch to which the simulator will be attached, and you should be OK. In ESX 2.x, tweaking init scripts is the only method of which I know. Of course, that is not to say that there isn’t an easier way.

Scott

Have you tried installing the Netapp Simulator onto your macbook pro
1) native osx +simulator
2) vmware +linux +simulator
3) Parallels +linuix +simulator

I’d love to know as the vmware simulator for mac is still in beta and runs slow because its also debugging so was wondering if you’d tried it with parallels at all?

cheers
fling

Flingster,

Actually, I did run it on my MacBook Pro under Beta 1 of VMware Fusion, and it worked fine. I haven’t tried it since then, but I don’t expect that it would be any different (just faster).

BTW, Beta 3 of Fusion allows for debugging to be turned off, so you can really get a feel for how fast Fusion is under OS X.

I have not tried it with Parallels. In fact, I haven’t even tried Parallels itself–I’ve stuck exclusively with VMware Fusion. I’ve heard too many horror stories about system instability with Parallels.

TIP!
After you create extra disks for your simulator.
execuute these steps to get rid of disk fail messages:
>priv set diag
*>disk unfail -s v4.19 (where v4.19 is your disk)
Repeat for each disk to recover it. When they are all unfailed, follow with:
*>disk zero spares

FYI - in ESX server 3.0 you can just enable promiscous mode in the Virtual Infrastructure Client, under the vswitch properties,security. This is handy, because I’m sure folks use the ONTAP sim and the Celerra simulators the way I do, with vswitches with no NICs (internal only).

Good point, Chad! Thanks for pointing that out…I guess I should upate this article for ESX Server 3.x!

I have been building this on a host-only network under Workstation 6.02 for Linux, so it’ll be completely portable. So far, I have an AD 2003 DC (vm) serving up all the centralized services on the host-only network, a Centos 5.1 VM running the NetApp OnTap Simulator v7.23 providing multiprotocol CIFS/NFS for unified home directories while using AD/Kerberos for authentication and LDAP for user/group storage, and a couple of client VM’s (WinXP and Centos 5.1). Can’t get write permissions on the home export using autofs, so the users get “/” as home. Anyone have any ideas how I might implement this? I’d be thankful…

Hi,

I am Newbie for ESX serevr. I have a 7.2.3 netapp simulator. I created a iSCSI lun on the netapp. I then detect it from the ESX server and created the VM on the LUN. I then try to suspend the VM on the LUN . It fails with an error saying “General system error occured Can not suspend the VM” I then copy the VM to local disk on the ESX server and suspend happens succesfully. Am I doing some wrong setting on the LUN ? LUN protocol is set to “VMWARE”
I wouldbe thankful if you can help me on the same.

Regards,

Athreya

am running Unbutu Linux. Here is the output from ifconfig -a

eth0:avahi Link encap:Ethernet HWaddr 00:0c:29:1d:47:16
inet addr:172.12.70.158 Bcast:172.12.70.255 Mask:255.255.255.0
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
Interrupt:16 Base address:0×1400

Every time I try to run runsim.sh the error is

PANIC: pf: write error
version: NetApp Release 7.2.4: Thu Nov 15 23:05:40 PST 2007
cc flags: L
dumpcore: pf: write error
This failure was probably caused by having your network interface down or an invalid interface. Re-run setup.sh and choose a different interface or fix the one you have chosen.
root@simulator-host1:/# /sim/runsim.sh

Please help here.

Just a follow up question.
Do you need to have 2 physical nic cards in order to run the simulator. I have on my ESX server 1 nic and 1 vswitch with multiple Virtual Machine groups. I assume that should be fine. Let me know what am i missing

Hi,

Is there a way to increase the size of the disks on the ontap simulator?

Thanks

Joe,

AFAIK, there is no way to increase the size of the disks beyond the maximum size allowed in the script supplied with the simulator.

can anyone of expert here share the simulator with me please…. i’m not d netapp customer or partner. Thanks in advanced.

KC,

Technically, only NetApp customers or partners are authorized to use the simulator. I’d suggest contacting your local NetApp sales representative and see if he or she can work something out for you.