Wednesday, 11 January 2012

Configure Storage System for NFS Redhat Linux (UNIX)

Configure Storage System for NFS Redhat Linux (UNIX)


1. Create the aggregate.

 2. Create the volume.



3. Record the IP address and host name for each entry in the /etc/hosts and check

    > ping xxx.xxx.xxx.xxx
    > ping Server Name

4. NFS will automatic export when volume created, to avoid

    > options nfs.export.auto-update off

5. Check whether NFS is license if not, add license using

    > license add xxxxxxx

5. Check the qtree security is in UNIX, if not

    > qtree security  ( volume path | qtree path ) UNIX




6. export the volume or qtree using exportfs command

   Syntax: exportfs -io rw,root="Host IP addrress"  volume path

   > exportfs -io rw,root=10.10.10.10   /vol/vol1    = This entry in memory not in /etc/exports


   > exportfs 




   > exportfs -p  rw,root=10.10.10.10  /vol/vol1     = This command make the entry in /etc/exports



   > rdfile /etc/exports




   > exportfs -v /vol/vol1                                         = This command will export particular volume in  
                                                                                         /etc/exports file.




7. To check the exported volume or qtree

   > exportfs -c 10.10.10.10 /vol/vol1                     = This command will check the access

   > exportfs                                                            = This command show list from nfs memory

8. Create on directory in server

   > mkdir /mount

   Syntax:  mount filler ip address: volume or qtree path /mount point

   > mount 10.10.10.11:/vol/vol1 /mount                = vol1 is mount in the /mount directory in the server  

   > cd /mount                                                          = Get in to mount directory  

   > mkdir test_folder                                             = make directory in the mounted directory

9. Permanent mounting in server side for consistency reboot

   > service nfs restart

   > chkconfig nfs on ( consistency reboot )

   > cat  /etc/fstab (depends on UNIX Server (OS))

   Syntax for FSTAB: (linux) and entry depends on UNIX Server (OS)

     <file system>                 <dir>        <type>    <options>    <dump>   <pass>

   > 10.10.10.10:/vol/vol1    /mount          -               -                -              -


   > Press Ctrl+c                                                     = To save and exit from cat command

10. Now NFS is working properly





********* +++++++++++++**************++++++++++++*********************

 Please write your valuable comments, about my blogspot.



Saturday, 7 January 2012

Snapvault

SNAPVAULT


Ø Snapvault is license product in Ontap

Ø SnapVault is a disk-based storage backup feature of Data ONTAP

Ø Snapvault enable data stored on multiple storage be backup in centrally

Ø The qtree is the basic unit of SnapVault backup and restore

Ø Data is restored from the secondary qtree to primary qtree

Ø Using Nearstore_option license we can increase the concurrent transfer

Ø In snapvault primary and secondary may be flex-volume to traditional volume.

SNAPVAULT PREREQUISITES:-


Ø License for the snapvault primary is sv_ontap_pri.

Ø License for the snapvault secondary is sv_ontap_sec.

Ø TCP port 10566 and 10000 must be open.


Snapvault snap sched

Using snapvault snap we can take snapshot primary and secondary volume

In snapvault three types of snap schedule
sv_hourly
sv_daily
sv_weekly

Example:

Pri > snapvault snap sched vol1 sv_hourly 10@10-16

This schedule takes every hour snapshot on vol1 and retain last 10 snapshot copies name called sv_hourly in the primary system.

Sec > snapvault snap sched –x vol1 sv_hourly 10@10-16

This schedule takes every hour snapshot on vol1 and retain last 10 snapshot copies name called sv_hourly in the Secondary system.

Using –x for incremental back up, that means secondary snapvault that compare the primary snapshot and if any modified data in the primary snapshot, it will copied the modified date to the secondary system.

NOTE: If you don’t use the -x option, the secondary does not contact the primary. This schedule take snapshot of vol1 without incremental


Please write your valuable comments, about my blogspot.

Snapvault Secondary configuration

Snapvault Secondary configuration  

Primary controller name : host1
Secondary controller name : host2

Primary controller IP : 192.168.1.5
Secondary controller IP : 192.168.1.6

Primary &Secondary  aggregate name: aggr1
Primary &Secondary Vol name: vol1
qtree name: qtree_name
Cifs shares : share2

PRI> aggr create aggr1 20
PRI> aggr status aggr1
PRI> vol create vol1 aggr1 200m
PRI> vol status vol1
PRI> license add <snapvault>
PRI> options snapvault.enable on
PRI> snapvault start -S host1:/vol/vol1 host2:/vol/vol1/qtree_name
                                                                (qtree name is must, it create automatic )
PRI> snapvault status -l
PRI> 
PRI> 
PRI> 


Will complete ASAP.


Please write your valuable comments, about my blogspot.

snapvault source configuration

Snapvault primary configuration  


Primary controller name : host1
Secondary controller name : host2

Primary controller IP : 192.168.1.5
Secondary controller IP : 192.168.1.6

Primary &Secondary  aggregate name: aggr1
Primary &Secondary Vol name: vol1
Cifs shares : share1


PRI> aggr create aggr1 20
PRI> aggr status aggr1
PRI> vol create vol1 aggr1 200m
PRI> vol status vol1
PRI> license add < sv_ontap_pri >
PRI> options snapvault.enable on
PRI> options snapvault.access host=host2
PRI> wrfile -a /etc/hosts 192.168.1.6 host2
PRI> ping 192.168.1.6
PRI> ping host2
PRI> cifs shares -add share1 /vol/vol1
PRI> cifs shares

Switch to windows
start--> run --> type //host1/share1
paste some files for testing purpose

PRI> snapvault destination

Thursday, 5 January 2012

NetApp NFS

NetApp Network File System


NFS is based on client-serve architecture.
NFS have three version are Version  2, 3 and 4.
NFS Stateful mean is "The information is stored (remember ) by the server between separate of a particular user on the client.
NFS Version2 and Version3 are state-Less protocol.
NFS Version4 is State-Full protocol.
Ontap NFS be a NIS Slave.
We can specify rw and ro permission for the same host within a single export and the result will be line entry error.
The target to receive exported resources in mountPoint.



Tuesday, 3 January 2012

Netapp Cheatsheet




Basic commands:

·  version : shows the netapp Ontap OS version.
·  uptime : shows the filer uptime
·  dns info : this shows the dns resolvers, the no of hits and misses and other info
·  nis info : this shows the nis domain name, yp servers etc.
·  rdfile : Like "cat" in Linux, used to read contents of text files/
·  wrfile : Creates/Overwrites a file. Similar to "cat > filename" in Linux
. date: to view the current filer time

 Network commands

• sysconfig -a : shows hardware configuration with more verbose information
·  sysconfig -d : shows information of the disk attached to the filer

Aggregate status commands 

·  aggr status : Shows the aggregate status
·  aggr status -r : Shows the raid configuration, reconstruction information of the disks in filer
·  aggr show_space : Shows the disk usage of the aggreate, WAFL reserve, overheads etc.

Volume  status commands 

·  vol status : Shows the volume information
·  vol status -s : Displays the spare disks on the filer
·  vol status -f : Displays the failed disks on the filer
·  vol status -r : Shows the raid configuration, reconstruction information of the disks

View Volume and aggregate size 

·  df -h : Displays volume disk usage
·  df -i : Shows the inode counts of all the volumes
·  df -Ah : Shows "df" information of the aggregate
·  df -Vh : Shows "df" information of the aggregate

License add and status 

·  license : Displays/add/removes license on a netapp filer
·  license add <License number>


·  vol create <volname> <aggrname> <size> : Creates volume in an aggregate
·  vol offline <volname> : Offlines a volume
·  vol online <volname> : Onlines a volume
·  vol destroy <volname> : Destroys and removes an volume
·  vol size <volname> [+|-]<size> : Resize a volume in netapp filer
·  vol options : Displays/Changes volume options in a netapp filer


·  qtree create <qtree-path> : Creates qtree
·  qtree status : Displays the status of qtrees
·  quota on : Enables quota on a netapp filer
·  quota off : Disables quota
·  quota resize : Resizes quota
·  quota report : Reports the quota and usage


·  snap list : Displays all snapshots on a volume
·  snap create <volname> <snapname> : Create snapshot
·  snap sched <volname> <schedule> : Schedule snapshot creation
·  snap reserve <volname> <percentage> : Display/set snapshot reserve space in volume


·  /etc/exports : File that manages the NFS exports
·  rdfile /etc/exports : Read the NFS exports file
·  wrfile /etc/exports : Write to NFS exports file
·  exportfs -a : Exports all the filesystems listed in /etc/exports


·  cifs setup : Setup cifs
·  cifs shares : Create/displays cifs shares
·  cifs access : Changes access of cifs shares


·  lun create : Creates iscsi or fcp luns on a netapp filer
·  lun map : Maps lun to an igroup
·  lun show : Show all the luns on a filer
·  igroup create : Creates netapp igroup
·  lun stats : Show lun I/O statistics


·  disk show : Shows all the disk on the filer
·  disk zero spares : Zeros the spare disks
·  disk_fw_update : Upgrades the disk firmware on all disks
·  options : Display/Set options on netapp filer
·  options nfs : Display/Set NFS options
·  options timed : Display/Set NTP options on netapp.
·  options autosupport : Display/Set autosupport options
·  options cifs : Display/Set cifs options
·  options tcp : Display/Set TCP options
·  options net : Display/Set network options


·  ndmpcopy <src-path> <dst-path> : Initiates ndmpcopy
·  ndmpd status : Displays status of ndmpd
·  ndmpd killall : Terminates all the ndmpd processes.


·  ifconfig : Displays/Sets IP address on a network/vif interface
·  vif create : Creates a VIF (bonding/trunking/teaming)
·  vif status : Displays status of a vif
·  netstat : Displays network statistics
·  sysstat -us 1 : begins a 1 second sample of the filer's current utilization (crtl - c to end)
·  nfsstat : Shows nfs statistics
·  nfsstat -l : Displays nfs stats per client
·  nfs_hist : Displays nfs historgram
·  statit : beings/ends a performance workload sampling [-b starts / -e ends]
·  stats : Displays stats for every counter on netapp. Read stats man page for more info
·  ifstat : Displays Network interface stats
·  qtree stats : displays I/O stats of qtree
·  environment : display environment status on shelves and chassis of the filer
·  storage show <disk|shelf|adapter> : Shows storage component details


·  snapmirror intialize : Initialize a snapmirror relation
·  snapmirror update : Manually Update snapmirror relation
·  snapmirror resync : Resyns a broken snapmirror
·  snapmirror quiesce : Quiesces a snapmirror bond
·  snapmirror break : Breakes a snapmirror relation
·  snapmirror abort : Abort a running snapmirror
·  snapmirror status : Shows snapmirror status


·  lock status -h : Displays locks held by filer
·  sm_mon : Manage the locks
·  storage download shelf : Installs the shelf firmware
·  software get : Download the Netapp OS software
·  software install : Installs OS
·  download : Updates the installed OS
·  cf status : Displays cluster status
·  cf takeover : Takes over the cluster partner
·  cf giveback : Gives back control to the cluster partner
·  reboot : Reboots a filer



NFS - NETWORK FILE SYSTEM

Network File System


  • NFS allows network systems (clients) to access shared files and directories that are stored and administered centrally from a storage system
  • Platforms that support NFS
    – Solaris™
    – Linux®
    – HP-UX®



Please write your valuable comments, about my blogspot.

Monday, 2 January 2012

Cifs


1. In a CIFS environment, the storage system authenticates users in one of four ways:
  1. Active Directory authentication
  2. Microsoft® Windows NT® 4.0 domain authentication 
  3. Windows workgroup authentication
  4. Authentication for non-Windows workgroups
2. we can manage the cifs in Three Methods:
  1. command line 
  2. filer view
  3. computer management port 
3. Preparing for CIFS

To prepare a storage system to support Windows client users, complete the following steps:

1. License CIFS.

> License add <license>
> license (To check the license status)

2. Perform the initial CIFS configuration by running the cifs setup & cifs terminate program.

> cifs setup (command to on cifs  services)
> cifs terminate (command to off cifs services)

4. Volume share

> cifs shares -add share_name vol1

5. Qtree share

> cifs shares -add share_name /vol/vol_name/qtree_name.

go windows server now:

start -> run
Type //netapp ipaddress or //filer name

Then you can able to views the share folder.





Please write your valuable comments, About This Blogspot.

Netapp Most Commonly Used Commands


sysconfig (-a, -r, -c, -t, -m)‏

Shows information about filer (hardware, disks, aggregates & RAID groups, ...)‏

options

Queries or changes values for various “registry” options

setup

Walks through initial setup questions: filer name, IP addresses, etc., but does not erase any data

cifs setup

Walks through CIFS setup questions: domain/workgroup membership etc.

sysstat -x -s 1

Prints out all-round performance statistics

license

Adds/removes/prints licenses on filer

version (-b)‏

Prints out Data ONTAP & Diagnostics/Firmware version numbers

rdfile

Reads a text file and prints contents to console (Unix “cat”)‏

wrfile

Reads from console and sends output to text file (Unix “Cat >”)‏

snap (restore)‏

Performs snapshot operations, eg. restore from snapshot

snapvault

snapmirror


Manipulates/controls SnapMirror/SnapVault/OSSV operations from the command-line

cf

Controls clustering, eg. enabling/disabling, forcing takeover & giveback

aggr

Creates/expands/destroys/manipulates aggregates, eg. change options

vol

Create/resizes/destroys/manipulates volumes, eg. change options

df

Shows free disk space (volumes, aggregates, also inodes)‏

qtree

Creates/manipulates qtrees (=special directories)‏

vif

Creates/destroys/manipulates virtual network interfaces (eg. team interfaces for failover or load-balancing)‏

ifconfig

Sets network IP configuration (put in /etc/rc to survive reboots)‏

ifstat

Shows network interface statistics

netdiag

Performs basic network diagnostic testing

ndmpd

ndmpcopy

Manipulates NDMP settings, or use ndmpcopy to copy files via NDMP

priv set/priv set advanced/priv set diag

Goes into advanced/diagnostics mode