Monday, February 28, 2011

Those who are newly learning Netapp can use Netapp Data OnTap Simulator to get comfortable with Netapp commands. This tool gives you the experience of administering and using a NetApp storage system with all the features of Data ONTAP. The Simulator can be downloaded from http://now.netapp.com/NOW/cgi-bin/simulator ( you need NOW access ). The simulator has fully functional license keys for all Netapp functionalities.

The simulator can be loaded onto a Red Hat or SuSE Linux box and looks and feels exactly like Data ONTAP. Almost anything you can do with Data ONTAP can be done with the simulator. Without purchasing new hardware or impacting your production environment, you can test functionality, export NFS and CIFS shares etc.

System Requirement:

Data ONTAP 7G (7.x.x) simulators

Server /PC with Single network card, 128 MB main memory minimum (512 MB recommended), 250MB free hard disk space (minimum) disk space of 5GB would be better for simple testing purpose. More disks you need then you need have ~30GBLinux installed, running, and networked (Works on Red Hat Linux 7.1 through 9.0, SUSE 8.1 and 8.2) any Linux Operating System (32 bit)Installer must be logged on as root

Limitations:

This is not a production version of Data ONTAP and should not be used in your production environment. There are inefficiencies (for example, a 1GB disk file will be much larger than 1GB) and performance running on another OS without a disk system behind it will obviously be considerably less than with Data ONTAP. Simulator can’t hold disks more than 28 and approximately around 28GB in total size. Finally, the simulator can't emulate environments where specific hardware is required (for example, Fibre Channel).It is recommended that the Data ONTAP Simulator be installed on a non-production Linux system. Simulator installation scripts may replace the Red Hat libc library with an older more stable one. It's unlikely but possible that other applications may be affected.

Steps to install Simulator:

Step I:====o Download the Data ONTAP simulator and keep it under home directory

linux-sesl-184-54:/home # ls7.3.1-tarfile-v22.tar

Step II:=====o Now untar the simulator installer.

linux-sesl-184-54:/home # tar -xvf 7.3.1-tarfile-v22.tar

Step III :=====o Once you have untarred the installer you will find the new folder simulator where the installer get extracted.

Step V:=====o Now run the installer script (setup.sh) to create the Single Node Simulator. If you wish to install Cluster Pair skip this step and perform Step VII.

linux-sesl-184-54:/home/simulator # ./setup.shScript version 22 (18/Sep/2007)Where to install to? [/sim]: =====================> Choose your simulator install path.Would you like to install as a cluster? [no]:Would you like full HTML/PDF FilerView documentation to be installed [yes]:

Creating /simUnpacking sim.tgz to /simConfigured the simulators mac address to be [00:50:56:1:cd:eb]Please ensure the simulator is not running.Your simulator has 3 disk(s). How many more would you like to add? [0]: 2Too high. Must be between 0 and 25.Your simulator has 3 disk(s). How many more would you like to add? [0]: 2 =====================> Maximum available disk numbers for simulator (Choose the number of disks and size based on your Linux disk space)

What disk size would you like to use? [a]: f ===========================================> Choose the bigger disk size based on your need and the disk space availabilityDisk adapter to put disks on? [0]:Use DHCP on first boot? [yes]: no ===================================================> Say "no" if you wanted to configure Static IP addressAsk for floppy boot? [no]:Your default simulator network interface is already configured to eth0.Which network interface should the simulator use? [eth0]: ==============================> Choose the "interface" which you wanted to use for Data Traffic

Another simulator is running. Cannot give good advise about memory.How much memory would you like the simulator to use? [512]: =============================> Choose the Default RAM sizeCreate a new log for each session? [no]:Overwrite the single log each time? [yes]:Adding 25 additional disk(s).Complete. Run /sim/runsim.sh to start the simulator.linux-sesl-184-54:/home/simulator #

Step VI:======o That's it, start the simulator by running startup script /sim/runsim.sh. And configure the Setup as per your need.

Step VII:=====

Network Appliance Clustered Failover delivers a robust and highly available data service for business-critical environments. Installed on a pair of NetApp filers, NetApp Clustered Failover ensures data availability by transferring the data service of an unavailable filer to the other filer in the cluster. Data ONTAP simulator also supports the Clustered Failover.

o To configure the Data ONTAP Simulator for the (cluster) Active Active Pair do the following:

CFO Step I:

Run the Setup and when it ask for the following say yes and continue the setup Would you like to install as a cluster? [no]: yes ====================================> Say yes to install the Active Active Pair (Cluster) Node

CFO Step II: Now you will find node1 & node2 simulators installed in the given path.

CFO Step III: Run the setup script for each node and configure the interface which needs to take over a partner IP address during failover. Please enter the new hostname []: cfo1 Do you want to configure virtual network interfaces? [n]: Please enter the IP address for Network Interface ns0 []: 1.1.1.1 ==================> Primary IP address of node1 Please enter the netmask for Network Interface ns0 [255.0.0.0]: Should interface ns0 take over a partner IP address during failover? [n]: y ============> Say "Y" to enable Cluster Failover The clustered failover software is not yet licensed. To enable network failover, you should run the 'license' command for clustered failover. Please enter the IP address or interface name to be taken over by ns0 []: 1.1.1.2=======> Partner IP address of node2

#/sim/runsim.shrunsim.sh script version Script version 22 (18/Sep/2007)This session is logged in /netapp/7.3/sessionlogs/logNetApp Release 7.3: Thu Jul 24 12:55:28 PDT 2008Copyright (c) 1992-2008 Network Appliance, Inc.Starting boot on Tue Dec 9 11:45:37 GMT 2008Tue Dec 9 11:45:42 GMT [fmmb.current.lock.disk:info]: Disk v4.16 is a local HA mailbox disk.Tue Dec 9 11:45:42 GMT [fmmb.instStat.change:info]: normal mailbox instance on local side.Tue Dec 9 11:45:43 GMT [raid.cksum.replay.summary:info]: Replayed 0 checksum blocks.Tue Dec 9 11:45:43 GMT [raid.stripe.replay.summary:info]: Replayed 0 stripes.…. Boot message Please enter the new hostname []: - Specify Filer hostname Do you want to configure virtual network interfaces? [n]:nPlease enter the IP address for Network Interface ns0 []: -- Provide Filer ipPlease enter the netmask for Network Interface ns0 [255.255.0.0]: -- Provide Netmask Please enter media type for ns0 {100tx-fd, auto} [auto]: Please enter the IP address for Network Interface ns1 []:Would you like to continue setup through the web interface? [n]:nPlease enter the name or IP address of the default gateway: -- Provide default gateway The administration host is given root access to the filer's/etc files for system administration. To allow /etc root accessto all NFS clients enter RETURN below.Please enter the name or IP address of the administration host: -- Provide admin hostname Please enter the IP address for adminserver : -- Provide admin ip Please enter timezone [GMT]:Asia/CalcuttaWhere is the filer located? []:MumbaiWhat language will be used for multi-protocol files (Type ? for list):en_USSetting language on volume vol0The new language mappings will be available after rebootTue Dec 9 11:47:03 GMT [vol.language.changed:info]: Language on volume vol0 changed to en_USLanguage set on volume vol0Do you want to run DNS resolver? [n]: -- Say yes if you want configure dnsDo you want to run NIS client? [n]: y Please enter NIS domain name []: - Provide nis domain name Please enter list of preferred NIS servers [*]: - Prodive nis server ip'sSetting the administrative (root) password for [hostname]New password: - Set root password here Retype new password:This process will enable CIFS access to the filer from a Windows(R) system.Use "?" for help at any prompt and Ctrl-C to exit without committing changes.Your filer does not have WINS configured and is visible only toclients on the same subnet.Do you want to make the system visible via WINS? [n]: n -- Say yes if you want to configure WINS A filer can be configured for multiprotocol access, or as an NTFS-onlyfiler. Since multiple protocols are currently licensed on this filer,we recommend that you configure this filer as a multiprotocol filer(1) Multiprotocol filer(2) NTFS-only filerSelection (1-2)? [1]: 1CIFS requires local /etc/passwd and /etc/group files. NIS services,which normally take the place of the local /etc files, are enabled onthis filer. However, if NIS is ever unavailable, it may be useful tohave a rudimentary /etc/passwd and /etc/group file for CIFSauthentication. This default passwd file would contain 'root','pcuser', and 'nobody'.Should CIFS create default /etc/passwd and /etc/group files? [n]:NIS is currently enabled but NIS group caching is disabled. This mayhave a severe impact on CIFS authentication if the NIS servers areslow to respond or unavailable. It is highly recommended that youenable NIS group caching.Would you like to enable NIS group caching? [y]:By default, the NIS group cache is updated once a day at midnight. Ifyou would like to update the cache more often or at a different time,specify a list of hours (1-24, representing the hours in a day) thatdescribe when the update should be performed.Enter the hour(s) when NIS should update the group cache [24 ]:Would you like to specify additional hours? [n]:The default name for this CIFS server is 'FILERNAME'.Would you like to change this name? [n]:Data ONTAP CIFS services support four styles of user authentication.Choose the one from the list below that best suits your situation.(1) Active Directory domain authentication (Active Directory domains only)(2) Windows NT 4 domain authentication (Windows NT or Active Directory domains)(3) Windows Workgroup authentication using the filer's local user accounts(4) /etc/passwd and/or NIS/LDAP authenticationSelection (1-4)? [1]: 4What is the name of the Workgroup? [WORKGROUP]:Tue Dec 9 11:48:34 GMT [rc:info]: NIS: Group Caching has been enabledCIFS - Starting SMB protocol...Tue Dec 9 11:48:34 GMT [nis.lclGrp.updateSuccess:info]: The local NIS group update was successful.Welcome to the WORKGROUP Windows(R) workgroupCIFS local server is running.Password:filername> -- Filer is up

******************************************************************

Perform Filer related activities from admin host via rsh or from the command prompt in the end of previous step

After installing and configuring the simulator if you can't get any network connectivity whatsoever. Try the following steps :

The network interface that was being used by the simulator has to be in promiscuous mode. ESXi Server, by default, doesn’t allow NICs in guest operating systems to be in promiscuous mode.

The fix is this:

Enable “Promiscuous Mode” for the vSwitch Port Group where the GREEN NIC of the Endian resides on.

In the ESXi configuration,- Select your ESXi server in the tree view on the left- Select the “Configuration” tab- Find the “Virtual Switch” where the vnic of your VM connects to- Click on the “Properties” link for that Virtual Switch- Select the “Virtual Machine Port Group”- Click “Edit”- Go to the “Security” tab- Put a checkmark after the “Promiscuous Mode”, then set the value in the combobox to “Accept”- Press the “OK” button in the “Virtual Machine Port Group” dialog- Press the “Close” button in the “Virtual Switch” dialog

Why enable Promiscuous Mode?A router or bridge does more with traffic than a normal NIC. So the router needs to see more packets, Promiscuous mode enables that.

*This will install vpnc in your system. Once installed, you have to create a .conf file in /etc/vpnc/ where is the name you give (without the <>). Enter the following command to create a file called myoffice.conf

sudo vpnc myoffice.conf

Enter username for :Enter password for :VPNC started in background (pid: 6092)xn--

Here the files have been unzipped into /opt and the following commands will take you through starting the Oracle installer form that mount point.

[root@centos55 ~]# cd /opt/database

[root@centos55 ~]# ./runInstaller

From this point, Oracle will do a few minor checks on the operating system and then put up the Oracle Installation screen. Our particular configuration did not throw any errors at this point but it should be noted, as it can be helpful, that sometimes the Oracle installer will complain at this very early stage about various Linux system configurations. If this is the case you might be able to bypass them by adding an additional argument to the runInstaller command. Please only use this as a last resort to the normal installation path.

[root@centos55 ~]# ./runInstaller -ignoreSysPrereqs

The installation settings are pretty explanatory. Just go with the defaults, and if there is an error at some point the details panel will explain whats wrong.

At one point you will be asked for the SYSMAN password. Remember it because it will be used to login into the web console.

When you near the very end of the installation, you will be asked to run one or two scripts as root.

Just open up a terminal, su – into root and run the scripts which have their full paths displayed for your convenience.

Execute Configuration scripts

[root@centos55 ~]# /opt/app/oraInventory/orainstRoot.sh

[root@centos55 ~]# /opt/app/oracle/product/11.1.0/db_1/root.sh

1. accept default of /usr/local/bin

2. Click

3. Click

4. Click

Starting And Stoping Oracle

You might need to start oracle back up or stop it at some point so sue these commands which are located in:

/opt/oracle/product/11.2.0/db_1/bin/

emctl start dbconsole

lsnrctl start

dbstart

emctl stop dbconsole

lsnrctl stop

dbstop

Direct NFS Client

For improved NFS performance, Oracle recommend using the Direct NFS Client shipped with Oracle 11g. The direct NFS client looks for NFS details in the following locations:

$ORACLE_HOME/dbs/oranfstab

/etc/oranfstab

/etc/mtab

[root@centos55 ~]# vi $ORACLE_HOME/dbs/oranfstab

server: nas1

path: 192.168.xxx.yyy

export: /vol/u02export mount /u02

Since we already have our NFS mount point details in the "/etc/fstab", and therefore the "/etc/mtab" file also, there is no need to configure any extra connection details.

For the client to work we need to switch the libodm11.so library for the libnfsodm11.so library, as shown below.

SQL>shutdown immediate

[root@centos55 ~]# cd $ORACLE_HOME/lib

[root@centos55 ~]# mv libodm11.so libodm11.so_stub

[root@centos55 ~]# ln -s libnfsodm11.so libodm11.so

SQL>startup

With the configuration complete, you can see the direct NFS client usage via the following views: