Tuesday, 20 December 2011

SAN Interview Questions


1. What is LUN?
Ans:
  •  lun is logical unit of number, which represent the physical unit of storage disk
  • It is block level access
  • Supporting operating system like Windows, Solaris, Linux, aix, and more
  • Supporting protocols is FC and ISCSI

2. What kind of configuration FC or ISCSI? 



Ans:  Fc configuration (multi path)

3. What kind of Configuration is this? 


Ans: ISCSI (single filer)

4. What distinguishes FCP from iSCSI in a SAN environment?
Ans: 


FC
ISCSI
Block level access
transfer through Fc switch
fast and  flexible
Block level access
Ethernet
slower than Fc







5. Give an example of an attribute that needs to specified when creating a LUN

Ans:  lun size, volume or qtree name, igroup name, operating system type

6. Name three ways to create a LUN
Ans: 
  • lun create in cmd
  • Lun setup in cmd
  • Filer view
  • Snap drive in host side

7. TO DISPLAY LUN:
Ans: lun show [path] [/vol/vol_name/lun_name]

8. TO CHECK ALL LUN/IGROUP/FCP SETTINGS FOR CORRECTNESS:

Ans: lun config_check [lun path]

9. TO GET THE SERIAL NUMBER, TYPE AND MAPPING OF A LUN:
Ans: lun show -v

10. SHOW THE MAPPING OF A LUN:
Ans: lun show

11. TO SHOW SPLITTING LUN CLONES:
Ans: lun show -c

12. TO CREATE A LUN:
Ans:

Syntax : lun create –s(size) –t (os type) lun path

Example: lun create –s 100g –t windows /vol/vol_name/lun_name

13. TO DESTROY A LUN:

Ans: lun destroy [-f] lun_path [lun_path ...]

14. TO ENABLE THE LUN and TO DISABLE THE LUN:
Ans:

Enable lun : lun online [lun path]
Disable lun : lun offline[ lun path]

TO MAP THE LUN TO THE IGROUP and TO UNMAP A LUN:
Ans:

lun map: lun map /vol/vol1/lun1 igroup_name

lun un map: lun unmap /vol/vol1/lun1 igroup_name

15. TO FIND MAXIMUM SIZE OF A LUN FOR A VOLUME OR QTREE:
Ans:

lun maxsize /vol/vol3/

It shows:

With out snapshot reserve: 102.0m (106928640)
With snapshot reserve: no space
With complete snapshot reserve: no space

16. TO CHANGE THE SIZE OF A LUN:
Ans: lun resize /vol/vol3/lun3 +20m

17. TO CREATE A LUN CLONE:

Ans:

To create lun clone we must create one snapshot for lun contain volume

Snap create vol_name snap_name

lun clone create [new lun path] –b [parent lun path] snaphot name

18. TO SPLIT A LUN CLONE FROM A PARENT LUN:
Ans:

Once we created lun clone, new colne is attached to the parent lun, manually we need to split.
lun clone split start -d /vol/vol3/clone_lune

19. TO STOP A LUN CLONE SPLITTING PROCESS:
Ans:

lun clone split stop <lun_path>

20. TO SEE THE STATUS OF LUN CLONNING:
Ans:

lun clone split status

21. TO SEE THE COMMENT FOR A LUN:
Ans:

lun comment <lun path>

22. TO RENAME A LUN:
Ans:

lun move <old lun_path> <new_lun_path>

23. TO GET THE SERIAL NUMBER OF LUN:
Ans:

lun serial [lun path]
lun show -v

24. TO GET SERIAL NUMBER OF LUN IN HEX FORMAT:
Ans:

lun serial -x [lun path]

25. TO SET THE SERIAL NUMBER OF LUN:
Ans: 

lun set


Please write your valuable comments, about my blogspot.

Saturday, 10 December 2011

Netapp lun to Linux Server

Controller name : Bangalore1

Controller IP : 192.168.1.5

Aggregate name: aggr1

Vol name: vol1

Lun name: /vol/vol1/newlun

Igroup name: igroup_name

Fas3070> aggr create aggr1 20
Fas3070> aggr status
Fas3070> vol create vol1 aggr1 10g
Fas3070> vol status
Fas3070> ping <windows ip address>
Fas3070> lun create -s 7g -t linux /vol/vol1/newlun
Fas3070> lun show
Fas3070> igroup create -i -t linux igroup_name iqn.1993-08.com.linux:server
Fas3070> igroup status
Fas3070> lun map /vol/vol1/newlun igroup_name
Fas3070> lun show
Fas3070> iscsi start
Fas3070> iscsi status


Will post balance soon..


Please write your valuable comments, about my blogspot.

Tuesday, 6 December 2011

NetApp FC LUN Allocation on Windows Server - Hard Zoning

Purpose

The purpose of this document is to provide guidance and training on LUN assigning to a windows environment using NetApp technologies

Hardware Setup


NetApp FAS 960 (1 Nos), Brocade 200E switch (1 Nos), Windows 2003 Server with Emulex HBA installed

Connectivity Diagram



Prerequisites

Storage Configuration Prerequisites

· FCP License should be added

· FCP Service should be started

· Management IP should be configured for accessing the filer view

· Login credential should be available for accessing the filer view

· HTTPD options should be ON for accessing the filer view.

· Host HBA WWPNs should be available before creating Igroup.

1.2 Server Configuration Prerequisites

· Windows server with HBA installed

· HBAnyware utility (for Emulex HBAs) should be installed.

· NetApp DSM should be installed in case of multipathing (Not applicable in this scenario)

· Windows credentials for logging in

Brocade switch Configuration Prerequisites

· Cable connectivity to the storage should be proper

· Cable connectivity to the host should be proper

· Zoning should be proper

· Note down the Host and Storage WWPNs before creating zone.

· Switch credentials for loging in

PROCEDURE


FINDING WWPN OF HOST HBA

1. Login to the windows server, Open the HBAnyware utility,

2. Note down the WWPNs of the host HBAs


3. Open the Brocade Switch console
4. Select port admin in switch console window, then below console will open,
5. Select every port in the left side and click Devices details,



6. In which port you find the same server wwpn number means that port is connected in the server


7. In which port you find the Netapp filer wwpn number means that port is connected in the Filer,


8. Now port 3 and port 10 is connected in the switch, next we need to do Zoning for the two ports,


 9.  Click on Zone Admin tab, the below tab will open,

        Below we going to add one netapp  WWPN  and one server WWPN
         (10:00:00:00:c9:7c:d4:66 + 50:0a:09:80:83:60:f1:2e)

10. Select the zone tab on the new window,
11. Click on new zone and name the new zone(Zone_C_WINDOWS). 


12. After Created new zone name, select the newly created zone add the WWPNs of Host and Storage


Adding the new zone to the switch configuration.

13. Click on Zone config tab and select the newly created zone then add to the zone config.


14. Select the save Config and it prompt for YES or No, Select YES


15. Select Enable Config 







FINISHED 



Please write your valuable comments, about my blogspot.






Saturday, 3 December 2011

NetApp SnapDrive Features

SNAPDRIVE

  • Snapdrive is an NetApp application and which is installed in UNIX and WINDOWS Servers.
  • SnapDrive is an enterprise-class storage and data management solution that simplifies storage management and increases availability and reliability of application data.
  • The key functionality includes error-free application storage provisioning, consistent data Snapshot copies, rapid application recovery, and the ability to easily manage data.

Features of Snapdrive 

  1. Create LUNs, file systems, logical volumes, and disk groups 
  2. Display information about storage entities 
  3. Connect LUNs and storage entities to the host 
  4. ReSize storage by increasing the size of the storage 
  5. Disconnect LUN and storage entities’ mappings from the host 
  6. Create Consistent Snapshot using SnapDrive.


Please write your valuable comments, about my blogspot.

Thursday, 1 December 2011

iSCSI Lun Creation for Windows Host

LUN: Logical Unit Number 

In Netapp there is two ways of allocating lun to server

1. Fibre Chanel = through zoning
2. iSCSI = Through software initiator

Fibre Chanel:

  • For allocating LUN from filler to server, we must do zoning with WWPN (world wide port number ).
  • WWPN is nothing that "In windows for ethernet we called MAC Address" like here we call WWPN.
  • WWPN is hardware port number of HBA(Host Bus Adapter)
  • HBA is devices which help to connects the FC Cable to server and filer.

iSCSI

For allocating LUN from filler to server, we need to install initiator 2.x software.
In that software, we find IQN (iSCSI Qualified Name)
By using Iqn, we can find the Lun on the Host.

controller name : pri

controller IP : 192.168.1.5

Aggregate name: aggr1

Vol name: vol1

Lun name: /vol/vol1/newlun

igroup name: igroup_name

pri> aggr create aggr1 20
pri> aggr status
pri> vol create vol1 aggr1 10g
pri> vol status
pri> ping <windows ip address>
pri> lun create -s 7g -t windows /vol/vol1/newlun
pri> lun show
pri> igroup create -i -t windows igroup_name iqn.1991-05.com.microsoft:admcwindows10
pri> igroup status
pri> lun map /vol/vol1/newlun igroup_name
pri> lun show
pri> iscsi start
pri> iscsi status

Switch to windows
1. Open Microsoft iSCSI Initiator software , go to discovery tab and give the controller ip address for add iscsi


2. go to "Target" tab in the iscsi initiator software and click "Logon"



3. Right click the my computer --> manage select computer management


4. Now  new disk show in computer management and Right click the disk1 initialize the disk1
    If lun size is more than 2Tb we need to convert disk to GPT (Global partition table)


5. After initialize the disk, now make partition for new disk  by following steps



6. After click finish, now the status is formatting the disk



7. After formatted the disk, now its ready to use the disk in my computer


8. Now you access the full disk