Introduction
If you are a NetApp Customer or if you are an Advantage Partner (or if you have good friends among them) you can get access to the NetApp Data ONTAP Simulator. The reason why I wanted to try this out is to have an SMI-S compliant storage device which I could use in my System Center Virtual Machine Manager 2012 lab. As you may know Microsoft decided to use the SMI-S provider (SNIA Standard) to enable deep integration of storage arrays for Virtual Machine Manager 2012. I wrote a detailed blog about it here.
Getting the simulator was one thing, installing a Linux VM with Hyper-V Integration Components was another. Fortunately it was easy to find some good step-by step guidance by Yusuf Ozturk (1 and 2) and Michel Lücher (3)
-
Installing Hyper-V v2.1 IC’s Setting up a CentOS 5.6 Desktop installation on Hyper-V and mouse support – Part 2
Because I don’t expect everyone to be able to read German, I will translate the instructions here and blog about my findings.
By the way, I have a third challenge … I don’t know anything about NetApp either, so this blog really describes my first steps into the Linux and NetApp world. At least the Hyper-V and System Center world is familiar territory.
I will not go through steps 1 and 2 because if you exactly follow Yusuf’s steps, you will end up with a Hyper-V aware CentOS guest. I downloaded the DVD ISO for CentOS 5.6 here.
The Netapp Data ONTAP simulator can be downloaded here.
Background
NetApp offers a very nice Data ONTAP simulator for their customers and partners to gain experience with NetApp Filers. The simulator has the "look and feel" of a real Data ONTAP system and reacts accordingly. It is based on the identical code base, only expanded with additional wrappers. This simulator accepts the same commands as with the real storage system. Of course this makes it easy to add a storage array to your test lab without having to buy one. In my virtualized private cloud this feature would give me all sorts of new testing possibilities. The only thing we cannot test is the use of the FC protocol. But CIFS, NFS, and iSCSI is fully self-supported in the simulator. Most importantly there is an SMI-S provider that is fully supported with SCVMM 2012.
By default NetApp only provides and supports an appliance for the VMware platform. Michel Lücher who blogs at http://server-talk.eu worked with Marc Hofstter and Udo Lorenz from NetApp for support. Not long ago I received a call from Udo offering to help me if necessary.
System Requirements
|
Hardware |
Minimum |
Recommended |
|
Processor |
1 vCPU |
1 vCPU |
|
Memory |
512MB |
1GB |
|
Disk (OS + Simulator) |
30GB |
50GB or larger |
|
Network Adapter |
1 |
1 |
|
MAC Address |
Fixed |
Fixed |
|
Enable spoofing of MAC Addresses |
Yes |
Yes |
[image not preserved in the archive]
The Data ONTAP Simulator is based on a Linux operating system and NetApp recommends Red Hat and SuSE. However in this scenario we decided to use the freely available Linux Distribution CentOS 5.6 which is based on Red Hat. If you have finished the step-by-step guides 1 and 2, you will see that Hyper-V supports this distribution very well.
From here I assume you have a working guest running CentOS 5.6 running under Hyper-V R2 and you have access to the ONTAP Simulator Image (7.3.5-sim-cdrom-image-v22.iso)
Installation Netapp Data ONTAP Simulator
1. Login with root privileges
2. Mount ISO
3. Start installation from de ISO
|
sudo bash /media/CDROM/setup.sh –z [image not preserved in the archive] |
4. Next the MAC address of the Simulator software must be replaced by the MAC address of the Hyper-V VM. You can use gedit to do this in a GUI.
|
sudo gedit /sim/,mac-address
|
5. Next is the installation of the Data ONTAP Simulator
|
sudo /sim/runsim.sh [image not preserved in the archive] It should end with Complete. Run /sim/runsim.sh to start the simulator [image not preserved in the archive] |
6. When asked supply the following configuration data:
-
Hostname: hansv-ontapsim01
-
IPv6 enable: no
-
Virtual network Inteface: no
-
Network Interface (ns1): 192.168.0.97
-
Network Mask: 24 / 255.255.255.0
-
Media Type: auto
-
Network Interface (ns2): no (I had 2 NICs configured)
-
Continue setup through web interface: no
-
IPv4 default gateway: 192.168.0.1
-
IP address of the administration host
-
Timezone: Europe/Amsterdam
-
Where is the Filer located (SNMP GET queries):
-
Language for multi-protocol files: en_US
-
DNS resolver: y
-
DNS Domain Name: private.cloud
-
DNS Server 1: 192.168.0.101
-
DNS Server 2: 192.168.0.102
-
NIC client: n
-
Shelf Alternate Control Path Management interface: n
-
(root) password: [password]
7. Finish wizard with CTRL-C
8. Connect to the ONTAP management website
|
[image not preserved in the archive] |
Configuration Netapp Data ONTAP Simulator
1. To stop the ONTAP Simulator, login to a terminal with root privileges
|
sudo halt |
2. To create volumes
|
sudo bash ./makedisks.sh |
3. Follow the configuration wizard:
-
How many more would you like to add: 20
-
Disk size used: f (1024)
-
Disk adapter: 0
-
Regenerate MAC address: no
-
DHCP on first boot: no
-
Network Interface used by simulator: seth0
-
Memory used by simulator: 512
-
Create new log file for each session: no
-
Overwrite single log each time: yes
4. You should see: Adding 20 additional disk(s)
5. Start the simulator
|
sudo /sim/runsim.sh
[image not preserved in the archive] |
6. After login an aggregate and a resultant volume can be created. To create an aggregate aggr0 consisting of 9 disks from the Spare-Pool give the following command
|
aggr create aggr0 9 aggr status |
7. To create a volume on aggr0
|
vol create vol01 aggr0 vol status |
8. This completes the installation and configuration of the ONTAP Simulator.
|
[image not preserved in the archive] |
Licenses
All Data ONTAP licenses are available for test/demo purposes. The licenses can be found in the ONTAP Documentation in the Web GUI:
1. To open Data ONTAP Web GUI
2. Go to Documentation and copy the required license keys.
|
[image not preserved in the archive] |
Installing the SMI-S Storage Provider
For this part I was happy to find Jon Buckley’s blog Hyper-V Zen – The Microsoft Hyper-V Cookbook and his very useful blog explaining how to configure SMI-S for the Netapp Data ONTAP Simulator (which is currently in beta).
1. Find a virtual machine other than the SCVMM 2012 machine. SMI-S storage providers are best to install outside of SCVMM server and if you have a variety of storage arrays you need a VM for each SMI-S provider.
2. Install the SMI-S provider on Windows Server 2008 R2
|
[image not preserved in the archive]
[image not preserved in the archive] |
3. Start Data ONTAP SMI-S Agent from the Start button
|
[image not preserved in the archive] |
4. Configure the SMI-S provider as follows
|
smis administrator [Windows password] add [IP address Simulator] root [Simulator Password] –t http
[image not preserved in the archive] |
5. You are now ready to connect SCVMM 2012 to your SMI-S provider.
6. To request the status from the SMI-S provider
|
[image not preserved in the archive] |
Connecting SCVMM 2012 to the Data ONTAP Simulator
1. Start SCVMM 2012 and click on the Fabric wunderbar
2. Click on Add Storage Devices
|
[image not preserved in the archive] |
1. Enter the IP address of the server with the SMI-S provider and the SMI-S http port 5988
2. Select a Run As account with suitable privileges on the Simulator
|
[image not preserved in the archive] |
3. The NetApp Data ONTAP Simulator is now available to SCVMM 2012
|
[image not preserved in the archive] |
4. Continue to place the storage pools under management by assigning an existing storage classification or create a new storage classification. This is used to abstract the storage from the Cloud Self-Service User.
|
[image not preserved in the archive] [image not preserved in the archive] [image not preserved in the archive] [image not preserved in the archive] |
5. Finally we’ll show you an overview of the integrated storage in SCVMM 2012
|
[image not preserved in the archive] [image not preserved in the archive] |
This completes the configuration of a Hyper-V guest with CentOS, the installation of the NetApp Data ONTAP Simulator, the installation of the Data ONTAP SMI-S agent and finally the connection of the simulator in System Center Virtual Machine Manager.
Hope you enjoyed this configuration guide and will be useful in your lab as well. Let me know what you think!