hostmap delete

Deletes the mappings between the specified LUN and the specified hosts.

SYNOPSIS

hostmap ‑delete 
   { ‑host host‑id‑or‑fqn [, host‑id‑or‑fqn]...
     [‑lun lun‑or‑clone‑id‑or‑fqn] [, lun‑or‑clone‑id‑or‑fqn]... ]
   | ‑hostmap hostmap‑id‑or‑fqn [, hostmap‑id‑or‑fqn]...
   | ‑hostGroup host‑group‑id‑or‑fqn [, host‑group‑id‑or‑fqn]...
     [‑lun lun‑or‑clone‑id‑or‑fqn [,lun‑or‑clone‑id‑or‑fqn]... ]
   | ‑hostGroupMap host‑group‑map‑id‑or‑fqn [, host‑group‑map‑id‑or‑fqn]...
   }

   [{‑sessionKey | ‑u admin‑user ‑oracleFS oracle‑fs‑system}]
   [{‑outputformat | ‑o} { text | xml }]
   [{‑timeout timeout‑in‑seconds | ‑verify | ‑usage | ‑example | ‑help}] 

DESCRIPTION

You sever the association between LUNs and hosts by removing host maps. When you remove a host map, you have the option of removing all host maps associated with that host in a single operation or in multiple operations.

Two methods are available to delete any host maps that are associated with a LUN or a set of LUNs.
  • Delete the LUN and all of its associated mappings in one operation by using the lun ‑delete command. Answer “yes” to all verification questions appearing on the command line.

  • Use the hostmap ‑delete command to remove the host mappings that are associated with a given LUN or a given set of LUNs.

The following options are mutually exclusive (only one must be selected):
  • ‑host

  • ‑hostmap

  • ‑hostGroup

  • ‑hostGroupMap

Note: Only administrators with primary administrator, admin1, or admin2 roles are authorized to run the hostmap ‑delete command.

OPTIONS

host

Specifies a host entry which represents a computer on the customer SAN. You identify a host by providing a unique ID (ID) or a fully qualified name (FQN) for the host entry.

To delete the entries for multiple hosts, provide a comma-separated list of hosts.

hostGroup

Specifies a group of computers on the customer SAN. You identify the host group by providing a unique ID (ID) or a fully qualified name (FQN) for the group.

To delete the mappings for multiple host groups, provide a comma-separated list of host groups.

hostGroupMap

Specifies a mapping between a LUN and a host group. You identify the host group mapping by providing a fully qualified name (FQN) or a unique ID (ID).

To delete the LUN mappings for multiple host groups, provide a comma-separated list of host group maps.

hostmap

Identifies a mapping between a LUN and a SAN host. You identify the hostmap by providing a unique ID (ID) or a fully qualified name (FQN).

To delete multiple hostmaps, provide a comma-separated list of hostmaps.

lun

Specifies the ID or the fully qualified name (FQN) of a LUN that resides on the Oracle FS System. An FQN begins with a forward slash character ( / ) and is followed by a path expression to locate the LUN.

The ‑lun option specifies one or more LUN or Clone LUN entries that are contained in the host maps for the specified host or host group to delete. If the ‑lun option is omitted, all of the host maps for the given host or host group are deleted.

EXAMPLE

Task

Delete all LUN mappings for a host.

Parameters
  • Fully qualified name of the host: /⁠sanhost_1

$ fscli hostmap ‑delete ‑host /⁠⁠sanhost_1