Start the iSCSI service on the hosts:
If you are using dm-multipath, be sure you have configured multipathing before starting iSCSI.
Use the following the command to start iSCSI on all hosts:
sudo /etc/init.d/iscsi start
Add the iSCIS service to the boot sequence by entering the following commands:
sudo chkconfig --add iscsi
sudo chkconfig --list iscsi
sudo chkconfig iscsi on
To view the LUN information from the host:
[root@oradbdev02 ~]# iscsi-ls -l
***************************************************************************
SFNet iSCSI Driver Version ...4:0.1.11-6(03-Aug-2007)
***************************************************************************TARGET NAME : iqn.1992-08.com.netapp:sn.101198981
TARGET ALIAS :
HOST ID : 0
BUS ID : 0
TARGET ID : 0
TARGET ADDRESS : 10.66.81.75:3260,1000
SESSION STATUS : ESTABLISHED AT Tue Apr 8 13:45:30 IST 2008
SESSION ID : ISID 00023d000001 TSIH 37
DEVICE DETAILS:
---------------
LUN ID : 0
Vendor: NETAPP Model: LUN Rev: 0.2
Type: Direct-Access ANSI SCSI revision: 04
page83 type3: 60a9800043346d77674a484d2f6e7758
page80: 43346d77674a484d2f6e77580a
Device: /dev/sda
***************************************************************************
The output show that device /dev/sda is a LUN (LUN ID: 0) on the Netapps storage with IP Address 10.66.81.75.
If iSCSI Initiator Support Kit has been installed on the host, you can run the command "sanlun" to get a better view on LUNs.
[root@oradbdev02 ~]# sanlun lun show
filer: lun-pathname device filename adapter protocol lun size lun state
silo: /vol/vol1/ractest.lun /dev/sda host0 iSCSI 2g (2147483648) GOOD
Discovering new LUNs
If you create a new LUN and map it to the Linux host, you can discover the LUN by reloading the iscsi service on the host. To reload the iscsi service, enter the following command on the hosts:
/etc/init.d/iscsi reload
View multipath devices:
[root@oradbdev02 ~]# multipath -d -l
mpath6 (360a9800043346d77674a484d2f6e7758)
[size=2 GB][features="1 queue_if_no_path"][hwhandler="0"]
\_ round-robin 0 [active]
\_ 0:0:0:0 sda 8:0 [active]
0 Comments:
Post a Comment