ONTAP 9.12.1 commands

50←PDF
  • ONTAP 9.12.1 commands(CA08871-263en.pdf)
  • lun persistent-reservation show

    Display the current reservation information for a given LUN

    Availability: This command is available to cluster and Vserver administrators at the advanced privilege level.

    Description

    Displays reservation information for a specified LUN in a Vserver. Unlike other show commands, the user must specify the LUN.

    Parameters

    { [-fields <fieldname>,…​]

    If you specify the -fields <fieldname>, …​ parameter, the command output also includes the specified field or fields. You can use '-fields ?' to display the fields to specify.

    | [-instance ] }

    If you specify the -instance parameter, the command displays detailed information about all fields.

    -vserver <Vserver Name> - Vserver Name

    Specifies the Vserver.

    { -path <path> - LUN Path

    Specifies the path of the LUN. Examples of correct LUN paths are /vol/vol1/lun1 and /vol/vol1/qtree1/lun1 .

    | -volume <volume name> - Volume Name

    Specifies the volume.

    -lun <text> - LUN Name

    Specifies the name of the LUN.

    [-qtree <qtree name>] - Qtree Name }

    Specifies the qtree.

    [-scsi-revision {scsi2|scsi3}] - SCSI Revision

    Selects the reservations that match this parameter value.

    [-entry-type {reservation|registration}] - Reservation or Registration

    Selects the reservations that match this parameter value.

    [-protocol {fcp|iscsi}] - Protocol

    Selects the reservations that match this parameter value.

    [-reservation-key <text>] - Reservation Key

    Selects the reservations that match this parameter value.

    [-reservation-type-code <text>] - Reservation Type

    Selects the reservations that match this parameter value. The possible values for SCSI-3 reservations are:

    • write exclusive

    • exclusive access

    • write exclusive registrants only

    • exclusive access registrants only

    • write exclusive all registrants

    • exclusive access all registrants

    and for SCSI-2 are:

    • regular

    • third party

    [-initiator-name <text>] - Initiator Name

    Selects the reservations that match this parameter value.

    [-aptpl {true|false}] - Persist Through Power Loss

    Selects the reservations that match this parameter value. If true , the reservation will be preserved over a power loss. If false , it will not. This value is for SCSI-3 reservations only.

    [-target-wwpn <text>] - FCP Target WWPN

    Selects the reservations that match the specified World Wide Port Name (WWPN).

    [-isid <text>] - Initiator Session ID

    Selects the reservations that match this parameter value.

    [-tpgroup-tag <integer>] - TPGroup Tag

    Selects the reservations that match the specified target portal group tag. The tag identifies the tpgroup the reservation was made over.

    [-third-party-initiator-name <text>] - Third Party Initiator Name

    Selects the reservations that match this parameter value (the initiator name that the reservation was made for). This is specific to third party reservation types, which is indicated by reservation-type-code.

    Examples

    cluster1::*> lun persistent-reservation show -vserver vs_1 /vol/vol_1/lun_1
         Key                     Protocol Type              Initiator Name
         ----------------------- -------- ----------------- ----------------------------
         APTPL: true
         a0:00:00:00:00:00:00:01 iscsi    write exclusive   iqn.1993-08.org.debian:01:fa752b8a5a3a
         a0:00:00:00:00:00:00:01 iscsi    -                 iqn.1993-08.org.debian:01:fa752b8a5a3a
         2 entries were displayed.

    The example above displays the current reservations for lun_1 on Vsever vs_1.

    Top of Page