netapp 7-mode linux iscsi

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

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

5. filer1> igroup create -i -t linux lingroup

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

8. filer1> lun map /vol/lunvol1/lunlin lingroup

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


This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.