A New SIM Recipe!

No, this isn’t anything to do with “The Sims” - perhaps if it was I’d get more hits ;-)

Below is my recipe for building what might be an optimally useful Clustered ONTAP 8.2 SIM, right up to the point where it can be halted and a snapshot taken in a pre-cluster setup - so you only need to do this once ever (twice to make the second node which needs a different system id for a two node cluster.) Then the SIM’s ready for future use to clone to your heart’s content. Of course, the simulator work’s wonderfully without modification - here we’re just tinkering :)

Recipe - Overview

1) Obtain the Clustered ONTAP 8.2 Simulator
2) Unpack, copy to working folder, copy again for node 2, and import into VMware Workstation
3) VMware Workstation - edit Virtual Hardware (e.g. add additional NICs and resize HDD)
4) First boot - set bootargs (for power off on halt, and node 2’s sysid)
5) Zero Disks
6) Abort cluster setup, trash the 2 virtual shelves of 14 x 1GB disks, add a shelf of virtual SSD, and 3 shelves of virtual 9GB HDDs
7) Assign 3 virtual SSD disks for root aggregate
8) Re-zero disks
9) Abort cluster setup, halt, and take snapshots!

Note: You might wonder why I’m using virtual SSD for the root aggregate, well, this isn’t something you’d ever do in real-life, it’s just so I have a shelf with SSDs in to play around with Flash Pool in the future.

Recommend Reading and References

Since this material has already been pretty much blogged to death on this blog, I’m just going to refer to the previous posts below with additional notes in the section afterwards:

[1] NetApp Simulator 8.1.2 Cluster Mode Installation Walkthrough

[2] VMware Workstation – Cannot Assign Available PCI Slot

[3] Lab Series 01: Part 4 – NetApp Data ONTAP 8.1.2 Clustered ONTAP Simulator Build Recipe 01

[4] NetApp Simulator for Clustered ONTAP 8.2 RC Setup Notes

[5] Clustered ONTAP 8.2 SIM: Maximizing Available Usable Space

Recipe - In More Detail

1) Obtain the Clustered ONTAP 8.2 Simulator

See [1]

2) Unpack, copy once (for node 2), and import into VMware Workstation

See [1]

3) VMware Workstation - Edit VMware Hardware (add NICs)

Here I’ve added four additional Network Adapters to the simulator. The NICs all use the NAT network. Also, the ‘Hard Disk 4 (IDE)’ is expanded from 250GB to 444GB
The first time you try to power on the simulator it will error, see [2] for how to edit the VMX file to make it work.

Image: Modifying the Data ONTAP Simulator Hardware

4) First boot - set bootargs

Ctrl-C at the “Hit [Enter] to boot immediately, or any other key for command prompt”

An option I like to set is:

VLOADER> setenv bootarg.vm.no_poweroff_on_halt false

(Just means the SIM powers off when you tell it too!)

See [4] to see how to set system id for the second node.

5) Zero Disks

Ctrl-C and Option 4 from the boot menu

See [5]

6) Abort cluster setup, trash the 2 virtual shelves of 14 x 1GB disks, add a shelf of virtual SSD, and 3 shelves of virtual 9GB HDDs

Follow [5] - the only difference is that we’re adding a shelf of SSD (500MB SSD disks are type 35):

sudo vsim_makedisks -n 14 -t 35 -a 0
sudo vsim_makedisks -n 14 -t 36 -a 1
sudo vsim_makedisks -n 14 -t 36 -a 2
sudo vsim_makedisks -n 14 -t 36 -a 3

7) Assign 3 virtual SSD disks for root aggregate

Still following [5]:

storage show disk
disk assign v4.16 v4.17 v4.18
disk show
halt

8) Re-zero disks

Still following [5]

9) Abort cluster setup, halt, and take snapshots!

APPENDIX A: Thoughts on a simple and elegant naming convention

Not related to this post, something I was thinking about at the same time though - rebuilding the lab is great opportunity to start afresh with a new naming convention!

Characters 1&2 for the system’s brand of OS
Characters 3&4 for the system’s type
Characters 5&6 just numbers starting 01

For example:

MSDC01 = MicroSoft Domain Controller 01
NA7M01 = NetApp 7-Mode system 01
NAC1-01 = NetApp Cluster 1 C-Mode system 01

APPENDIX B: A Few Starter Commands to Try on Your New CDOT Lab

security login password

storage aggregate rename -aggregate aggr0 -newname a_01

storage disk option modify -autoassign off -node *

storage disk assign -owner NAC1-01 -disk NAC1-01:v5.*
storage disk assign -owner NAC1-01 -disk NAC1-01:v6.*
storage disk assign -owner NAC1-01 -disk NAC1-01:v7.*

storage disk option modify -autoassign on -node *

system node autosupport modify -node * -state disable

storage aggregate add-disks -aggregate a_01 -diskcount 3 -disktype SSD

system node run -node NAC1-01 vol size vol0 1250m
system node run -node NAC1-01 reallocate start -f -p /vol/vol0


storage aggregate create -aggregate a_03 -node NAC1-01 -diskcount 42 -disktype FCAL -maxraidsize 14 -raidtype raid4

Comments