Installing your simulatorOnce you have downloaded the simulator you are ready to install. First you need a Linux host. Earlier versions of the sim – before 7.0 – required Red Hat 7.1. They would not run on anything else. Since Data ONTAP 7.0 and later the simulator has run on every version of Linux that I have tried. This has included Red Hat, various Red Hat Clones, Suse Linux as well as Debian.
In addition, the system running Linux should have two Ethernet interfaces. They can be real physical interfaces or, if you are running in a vm, they can be virtual interfaces configured as part of the virtual machine.
The reason for this is that Data ONTAP will take control of an interface that will be used for the simulated storage system. At install time it will ask you which interface to use. The default is Eth0. Therefore you will need another interface to communicate to the Linux system. (Usually Eth1, if you accept the default.)
Once you have downloaded the simulator tgz file from Netapp and copied it to your Linux box, you are ready to begin. The simulator must run with root privileges, so I usually do the entire install with the root account.
Go to the directory were you loaded the simulator file and run the following commands:
tar xvf 7.2-tarfile-v22.tar
The file you downloaded may have a different name. If so, substitute the file names that correspond to the file you downloaded
Usually there is a script called is setup.sh which will create your simulator. Enter the following command:
This will walk you through the setup.
As you notice from the script output above, you have the option of installing the simulator as a cluster. Later we will make use of this feature, but for now I did not install as a cluster.
Notice we were given an option of which host interface to use. I took the default: Eth0. Generally the default memory size of 128 is adequate but you can assign more if you’d like.
Finally we are given the option of installing more disks. The simulator has 3 disks already, but they are only 100 MB virtual disks. To do anything useful, we will need more space. Although the disks are virtual, the space the take within you Linux host is real, so you may need to adjust this to fit the storage situation on your Linux host.
I added 11 drives, filling out my virtual shelf. I also chose option e for drive size. This is a fairly useful size though you could certainly go large if you wished. As you see, the virtual drives are then created and the script ends.
There is a catch here. The drives created have bad headers. Next time we’ll cover how to repair the drives and your simulator will be ready to do some work.