All Pages

Monday, January 5, 2015

How to Create LUN and Map to the Windows Machine NetApp

http://netappnotesark.blogspot.in/2015/08/index_12.html

Steps:

1. Check the Aggregate free Space is Available?
2. Check the Free space in volume ?
3. Create LUN
4. Create igroup with iSCSI Initiator name
5. Mapping LUN to windows machine
::CHECKING THE AGGREGATE FREE SPACE::

CtrlInMDC> df -Ah
Aggregate                total       used      avail capacity
aggr0                    900MB      856MB       43MB      95%
aggr0/.snapshot            0TB        0TB        0TB       0%
AggrRavi                1800MB       70MB     1729MB       4%
AggrRavi/.snapshot         0TB        0TB        0TB       0%
    
Here in the above we have 1729MB of Free space in Aggregate "AggrRavi". If free space is not available we have add one or more disks to this aggregate.

CtrlInMDC> aggr add AggrRavi -d v5.21
Thu Jun  5 02:50:16 GMT [CtrlInMDC:raid.vol.disk.add.done:notice]: Addition of Disk /AggrRavi/plex0/rg0/v5.21 Shelf ? Bay ? [NETAPP   VD-1000MB-FZ-520 0042] S/N [52241605] to aggregate AggrRavi has completed successfully

Addition of 1 disk to the aggregate has completed.

Command Syntax:
  aggr add <AggregateName> -d <DiskName>
I have added the one Disk to the existing Aggregate (I has spare disks).

CtrlInMDC> df -Ah AggrRavi
Aggregate                total       used      avail capacity
AggrRavi                2700MB       70MB     2629MB       3%
AggrRavi/.snapshot         0TB        0TB        0TB       0%

Space of Aggregate is increased.

::CHECKING FREE SPACE OF VOLUME::


CtrlInMDC> df -h
Filesystem               total       used      avail capacity  Mounted on
/vol/vol0/               808MB      220MB      588MB      27%  /vol/vol0/
/vol/vol0/.snapshot       42MB       77MB        0MB     183%  /vol/vol0/.snapshot
/vol/volume1/             70MB      528KB       69MB       1%  /vol/volume1/
/vol/volume1/.snapshot        0KB      392KB        0KB       0%  /vol/volume1/.snapshot

Here we are able to see in Volume "volume1" we have 69MB of free Space. If there is no free space is available in the Volume then increase the volume space.
CtrlInMDC> vol size volume1 +50M
vol size: Flexible volume 'volume1' size set to 120m.

CtrlInMDC> Thu Jun  5 02:55:35 GMT [CtrlInMDC:wafl.spacemgmnt.policyChg:info]: The space management policy for volume volume1 has changed: autosize volume growth increment 6144KB, autosize volume maximum size 147456KB.
Command Syntax: vol size <VolumeName> +[size][K/M/G]
increased 50MB of volume space. 

::CREATE LUN::

CtrlInMDC> lun create -s 40M -t windows /vol/volume1/Lun1
lun create: created a LUN of size:   47.1m (49351680)

Command Syntax: lun create -s <size> -t <type of OS> <Lun Path>
Created Lun of 40MB from volume "volume1".

::CREATING IGROUP WITH iSCSI INITIATOR NAME::


CtrlInMDC> igroup create -i -t windows TSTGRP iqn.1991-05.com.microsoft:localhost.ark.in

CtrlInMDC> igroup show TSTGRP
    TSTGRP (iSCSI) (ostype: windows):
        iqn.1991-05.com.microsoft:localhost.ark.in (not logged in)
Command Syntax: igroup create -i -t <OS type> <iGroup Name> <InitiatorName>
Created igroup, using iscsi initiator Name.

::MAPPING LUN::

 
CtrlInMDC> lun map /vol/volume1/Lun1 TSTGRP
CtrlInMDC> Thu Jun  5 03:06:58 GMT [CtrlInMDC:lun.map:info]: LUN /vol/volume1/Lun1 was mapped to initiator group TSTGRP=0
Command Syntax: lun map <LUN Path> <iGroup Name>

Mapped the Lun to the windows Machine using iscsi protocol. 
Now check in Host Scan for New Hard Disk.

:::::::::::::::END:::::::::: 

Thanks for Reading this blog. Provide your Valuable Comments........

Creating NFS Shares in NetApp Filer

http://netappnotesark.blogspot.in/2015/08/index_12.html

NFS: Network File Sharing. Sharing the Files over the Network using TCP/IP Protocol NFS.

Enabling the NFS in Storage Box you have to add the license to it.
1. Check the NFS license, If not add the License.
2. Check the Service status, If not running start the Service
3. Verify the Host and Storage Controllers are Reachable each other.
4. Create a NFS Share with Read-Only Permission and Change to Read-write
5. Mount the File system yet the Client side.

CtrlInMDR> license show NFS
Serial Number: 4079432-75-2
Owner: CtrlInMDR
Package           Type    Description           Expiration
----------------- ------- --------------------- --------------------
NFS               license NFS License           -

I have NFS license, If not there add the license 
CtrlInMDR>license add <License Key>
check the nfs service status

CtrlInMDR> nfs status
NFS server is NOT running.

in My Case NFS Service is not running.

CtrlInMDR> nfs on
NFS server is running.

CtrlInMDR> nfs status
NFS server is running.
Now NFS service is started.
CtrlInMDR> vol create nfstest dstaggr 200M
Creation of volume 'nfstest' with size 200m on containing aggregate
'dstaggr' has completed.

Created One volume to share using NFS

CtrlInMDR> df -h nfstest
Filesystem               total       used      avail capacity  Mounted on
/vol/nfstest/            200MB      120KB      199MB       0%  /vol/nfstest/
/vol/nfstest/.snapshot        0TB        0TB        0TB       0%  /vol/nfstest/.snapshot

Above is the Volume nfstest
configuration file of NFS is /etc/exports
we have to add a entry to create or share NFS share to the client server.
CtrlInMDR> wrfile /etc/exports
/vol/nfstest    -sec=sys,rw,root=10.80.235.51,nosuid
read: error reading standard input: Interrupted system call

For sharing the NFS Share with Read-Write and root Access to the particular Server add above line in /etc/exports

::Client Side::

 ~]# showmount -e 10.80.242.203
Export list for 10.80.242.203:
/vol/vol0/home (everyone)
/vol/vol0      10.80.242.200
/vol/dst1      (everyone)
/vol/nfstest   (everyone)

Verify whether NFS share is visible or not. (Discover NFS Share)
Then Mount the  NFS share to the client system.

 ~]#  mount -t nfs 10.80.242.203:/vol/nfstest /nfsshare/
Check the Mount Point.

~]# df -h /nfsshare/
Filesystem            Size  Used Avail Use% Mounted on
10.80.242.203:/vol/nfstest 200M   64K  200M   1% /nfsshare

Now verify with Creating and Modifying some Data in NFS Share.
 ~]# cd /nfsshare/
[root@CXServer nfsshare]# ls -a
.  ..  .snapshot

[root@CXServer nfsshare]# mkdir nfs

[root@CXServer nfsshare]# ls
nfs

[root@CXServer nfsshare]# cd nfs/

[root@CXServer nfs]# touch test tes1

[root@CXServer nfs]# ls
tes1  test

Now Successfully able to create and modify the data from NFS Shares. 
:::::::::::::END:::::::::::::::::::::::

Please provide your valuable comments..........