HP 3PAR StoreServ 7400 2-node HP 3PAR Command Line Interface Administrator& - Page 70

Removing Host Paths, Active and Inactive Hosts Removing Host Paths Step 1

Page 70 highlights

1. Use the HP 3PAR CLI command servicehost copy to create an inactive host on the system port to which you wish to move the host. The inactive host created with this command is identical to the active host that is to be relocated to this port. The servicehost copy command automatically exports all volumes that are currently exported to the active host to the new, inactive host once it is created. For more information about active and inactive hosts, see "Active and Inactive Hosts" (page 66). The VLUNs from the specified source port (src_node:slot:port) are copied from the host WWNs or iSCSI Names matching the specified pattern (WWN_or_iSCSI_name_pattern) to the specified destination port (dest_node:slot:port). If necessary, the port is reset to target mode. To create an inactive host on the system port to which you wish to move the host, issue the servicehost copy command, where: • is the current port location. • specifies that the indicated WWN or iSCSI Name is treated as a glob-style pattern. • is the destination port location. 2. Remove the host definitions from the old port or ports. Removing the host definitions does not remove the old host paths. To remove the host paths, see "Removing Host Paths" (page 70). To remove host definitions and all VLUNs associated with the old host port, issue the servicehost remove [[ ... ]] command, where: • is the old port location. • is the WWN path or paths to the host to be removed. • is the iSCSI path or paths to the host to be removed. 3. Disconnect the host from the system and then connect it to the new port. The system discovers the host on the new port automatically by matching the WWNs or iSCSI Names of the inactive host you created in Step 1 to the WWNs or iSCSI Names of the host. The HP 3PAR OS automatically changes the state of the host from inactive to active. The host has immediate access to all volumes exported to the host. Removing Host Paths Host paths can be removed from the system before or after VLUNs are exported to the hosts. The removehost command removes a system host path to an FC or iSCSI host. If one or more paths are specified, the command removes only the specified paths; otherwise the entire host definition is removed. If VLUNs have been exported to the host, issue the removehost -rvl command. For information about exporting VLUNs, see "Unexporting Virtual Volumes" (page 91). The removehost CLI command is described in detail in the HP 3PAR Command Line Interface Reference and the HP 3PAR CLI Help. To completely remove a host definition from your system, issue the removehost [... | ...] command, where: • is the host definition to be removed. • ... is the WWN path or paths to the host to be removed. • ... is the iSCSI path or paths to the host to be removed. NOTE: Physically disconnecting a host server from the system port does not delete the host from the system. 70 Managing Ports and Hosts

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

1.
Use the HP 3PAR CLI command
servicehost copy
to create an inactive host on the system
port to which you wish to move the host. The inactive host created with this command is
identical to the active host that is to be relocated to this port.
The
servicehost copy
command automatically exports all volumes that are currently
exported to the active host to the new, inactive host once it is created. For more information
about active and inactive hosts, see
“Active and Inactive Hosts” (page 66)
.
The VLUNs from the specified source port (
src_node:slot:port
) are copied from the host
WWNs or iSCSI Names matching the specified pattern (
WWN_or_iSCSI_name_pattern
)
to the specified destination port (
dest_node:slot:port
). If necessary, the port is reset to
target mode.
To create an inactive host on the system port to which you wish to move the host, issue the
servicehost copy <src_node:slot:port> <WWN_or_iSCSI_name_pattern>
<dest_node:slot:port>
command, where:
<src_node:slot:port>
is the current port location.
<WWN_or_iSCSI_name_pattern>
specifies that the indicated WWN or iSCSI Name
is treated as a glob-style pattern.
<dest_node:slot:port>
is the destination port location.
2.
Remove the host definitions from the old port or ports.
Removing the host definitions does not remove the old host paths. To remove the host paths,
see
“Removing Host Paths” (page 70)
. To remove host definitions and all VLUNs associated
with the old host port, issue the
servicehost remove
[<node:slot:port>[<WWN_or_iSCSI_name> ... ]]
command, where:
<node:slot:port>
is the old port location.
<WWN>
is the WWN path or paths to the host to be removed.
<iscsi_name>
is the iSCSI path or paths to the host to be removed.
3.
Disconnect the host from the system and then connect it to the new port.
The system discovers the host on the new port automatically by matching the WWNs or iSCSI
Names of the inactive host you created in
Step 1
to the WWNs or iSCSI Names of the host.
The HP 3PAR OS automatically changes the state of the host from inactive to active. The host
has immediate access to all volumes exported to the host.
Removing Host Paths
Host paths can be removed from the system before or after VLUNs are exported to the hosts. The
removehost
command removes a system host path to an FC or iSCSI host. If one or more paths
are specified, the command removes only the specified paths; otherwise the entire host definition
is removed. If VLUNs have been exported to the host, issue the
removehost -rvl <host_name>
command. For information about exporting VLUNs, see
“Unexporting Virtual Volumes” (page 91)
.
The
removehost
CLI command is described in detail in the
HP 3PAR Command Line Interface
Reference
and the HP 3PAR CLI Help.
To completely remove a host definition from your system, issue the
removehost <host_name>
[<WWN>... | <iscsi_name> ...]
command, where:
<host_name>
is the host definition to be removed.
<WWN>...
is the WWN path or paths to the host to be removed.
<iscsi_name>...
is the iSCSI path or paths to the host to be removed.
NOTE:
Physically disconnecting a host server from the system port does not delete the host from
the system.
70
Managing Ports and Hosts