Sunday, June 17, 2018

Igroups


What are igroups?
-----------------

--> contains initiators that can access your storage
--> tables of WWPNs (for FCP) or iqn host node names (for iSCSI) that are
    allowed to access a LUN
--> igroups can have multiple initiators
--> multiple igroups can have same initiator
--> a LUN cannot be mapped to multiple igroups having same initiator
--> an initiator can be a member of igroups of different ostypes

Commands
--------

Displaying
# prints igroups
igroup show
igroup show -v

Creating
# creates an ISCSI igroup
igroup create -i -t
igroup create -i -t windows_2008 win_host5_group2 iqn.1991-05.com.microsoft:host5.domain.com
** os types: solaris, Solaris_efi, windows, windows_gpt,
             windows_2008, hpux, aix, linux, netware, vmware, xen, hyper_v

# creates an FCP igroup
igroup create -f -t
igroup create -f -t aix aix-igroup3 10:00:00:00:0c:2b:cc:92
** NOTE: you must use WWPN (portname) and not WWN

Managing
# adding an initiator
igroup add
igroup add INTDB01 10:00:00:00:c9:5e:ca:5e

# removing an initiator
iggroup remove
igroup remove INTDB01 10:00:00:00:c9:5e:ca:5e

Deleting
# LUNS must be unmapped first
igroup destroy

# this will remove all LUN maps and destroy the igroup
igroup destroy -f

Modifying
# renaming
igroup rename
z
** this will not impact access to LUNS that are inside the igroup

changing the WWNN (World Wide Node Name) of a system
----------------------------------------------------

- both HA pairs must have same WWNN
- in order to change WWN, use this command: fcp nodename 50:0a:09:80:82:02:8d:ff
- for that to take effect, both HA pairs must be rebooted

Troubleshooting
---------------

different WWNN on HA pairs
message:

from autosupport:
HA Group Notification from filer01 (FILER SCSI TARGET MISCONFIGURED) ERROR

from /etc/messages:
Tue Feb 17 17:12:39 EST [filer01:scsitarget.cluster.misconfigured:notice]: Filer SCSI Target Misconfigured. Run 'lun config_check'.

resolution / fix:
1. match WWNs of both nodes (they must be the same)
2. reboot both nodes

No comments:

Post a Comment