netapp 7-mode linux iscsi

Steps:
1. on filer create a volume (lunvol1)
2. on filer create a lun in the volume (lunlin)
3. on linux install the iscsi-initiator-utils
4. on linux determine initiatorname
5. on filer create igroup with linux iqn (lingroup)
6. on linux enable iscsi for after reboots
7. on linux discover and login to target
8. on filer map lun to igroup
9. on linux restart iscsi
10. on linux get lun devicename
11. on linux partition lun (primary partition 1)
12. on linux create filestystem on lun
13. on linux create mountpoint (/mnt/sdh1)
14. on linux mount filesystem

Commands:
1. filer1> vol create lunvol1 aggr1 150m
2. filer1> lun create -s 130m -t linux /vol/lunvol1/lunlin

3. linux# yum install iscsi-initiator-utils
4. linux# cat /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.1994-05.com.redhat:3add18fcc55c

5. filer1> igroup create -i -t linux lingroup iqn.1994-05.com.redhat:3add18fcc55c

6. linux# chkconfig iscsi on
7. linux# iscsiadm -m discovery -t sendtargets -p 192.168.4.128

8. filer1> lun map /vol/lunvol1/lunlin lingroup iqn.1994-05.com.redhat:3add18fcc55c

9. linux1> /etc/init.d/iscsi restart
10. linux1> grep -i "attached scsi disk" /var/log/messages
Jun 25 20:42:52 fritz kernel: sd 9:0:0:0: [sdh] Attached SCSI disk

11. linux# fdisk /dev/sdh
12. linux# mkfs /dev/sdh1
13. linux# mkdir /mnt/sdh1
14. linux# mount /dev/sdh1 /mnt/sdh1

done.

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.