ONTAP Discussions
ONTAP Discussions
Hi,
Is there a command (ONTAP 7.3.3P4) to get an overview of LUN's mapped to an igroup?
I know with lun show -v you get the LUN id / igroup for the LUN, is there a similar command for an igroup?
Cheers,
Martijn
Solved! See The Solution
lun show [ -v | -m | -c ] [ all | mapped | offline | online | unmapped | staging | -g initiator_group | -n node | lun_path ]
Displays the status (lun_path, size, online/offline state, shared state) of the given lun or class of luns. With the -v flag supplied, additional information (comment string, serial number, LUN mapping) is also displayed. With the -m flag supplied, information about lun_path to initiator_group mappings is displayed in a table format. With the -c flag supplied, information about lun cloning status is displayed.
A specific lun can be indicated by supplying its lun_path. When an initiator_group is specified, status is reported for all luns that are mapped to the initiator group. When a node is specified, status is reported for all luns that are mapped to initiator groups which contain that node. When staging is specified, information about the temporary luns preserved in the staging area is reported.
Mapped luns are ones with at least one map definition. A lun is online if it has not been explicitly made offline using the lun offline command.
Actually accessing and reading the product documentation, or at least the manpages (where the above excerpt was taken from) is a clear advantage. Give it a try.
lun show -m
Hi vmsjaak13,
Although it's still the mapping per LUN and not per igroup, I guess it's the closest it will get to my question. Thanks
lun show [ -v | -m | -c ] [ all | mapped | offline | online | unmapped | staging | -g initiator_group | -n node | lun_path ]
Displays the status (lun_path, size, online/offline state, shared state) of the given lun or class of luns. With the -v flag supplied, additional information (comment string, serial number, LUN mapping) is also displayed. With the -m flag supplied, information about lun_path to initiator_group mappings is displayed in a table format. With the -c flag supplied, information about lun cloning status is displayed.
A specific lun can be indicated by supplying its lun_path. When an initiator_group is specified, status is reported for all luns that are mapped to the initiator group. When a node is specified, status is reported for all luns that are mapped to initiator groups which contain that node. When staging is specified, information about the temporary luns preserved in the staging area is reported.
Mapped luns are ones with at least one map definition. A lun is online if it has not been explicitly made offline using the lun offline command.
Actually accessing and reading the product documentation, or at least the manpages (where the above excerpt was taken from) is a clear advantage. Give it a try.
You're right.
It's lun show -m -g GROUP, exactly what I'm looking for. Thanks
what is the command or cmdlet to map igroup to a lun?