ESXCLI - Verwaltung von Storage Pfaden: Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
Zeile 7: Zeile 7:
 
!Beschreibung
 
!Beschreibung
 
|-
 
|-
|'''VMW_PSP_FIXED''' (fixiert den Pfad)
+
|
 +
'''VMW_PSP_FIXED''' <br>
 +
(fixiert den Pfad)
 
|
 
|
 
The host uses the designated preferred path, if it has been configured. Otherwise, the host selects the first working path discovered at system boot time. If you want the host to use a particular preferred path, specify it through the vSphere Client or by the command.
 
The host uses the designated preferred path, if it has been configured. Otherwise, the host selects the first working path discovered at system boot time. If you want the host to use a particular preferred path, specify it through the vSphere Client or by the command.
Zeile 13: Zeile 15:
 
'''Important:''' VMware does not recommend you use VMW_PSP_FIXED for devices that have the VMW_SATP_ALUA storage array type policy assigned to them.  
 
'''Important:''' VMware does not recommend you use VMW_PSP_FIXED for devices that have the VMW_SATP_ALUA storage array type policy assigned to them.  
 
|-
 
|-
|'''VMW_PSP_MRU''' (meist verwendete Pfad)
+
|
 +
'''VMW_PSP_MRU''' <br>
 +
(meist verwendete Pfad)
 
|
 
|
 
The host selects the path that it used most recently. When the path becomes unavailable, the host selects an alternative path. The host does not revert back to the original path when that path becomes available again. There is no preferred path setting with the MRU policy. MRU is the default policy for active-passive storage devices.
 
The host selects the path that it used most recently. When the path becomes unavailable, the host selects an alternative path. The host does not revert back to the original path when that path becomes available again. There is no preferred path setting with the MRU policy. MRU is the default policy for active-passive storage devices.
 
|-
 
|-
|'''VMW_PSP_RR''' (Round-Robin)
+
|
 +
'''VMW_PSP_RR''' <br>
 +
(Round-Robin)
 
|
 
|
 
The host uses an automatic path selection algorithm that rotates through all active paths when connecting to active-passive arrays, or through all available paths when connecting to active-active arrays. Automatic path selection implements load balancing across the physical paths available to your host. Load balancing is the process of spreading I/O requests across the paths. The goal is to optimize throughput performance such as I/O per second, megabytes per second, or response times. <br>
 
The host uses an automatic path selection algorithm that rotates through all active paths when connecting to active-passive arrays, or through all available paths when connecting to active-active arrays. Automatic path selection implements load balancing across the physical paths available to your host. Load balancing is the process of spreading I/O requests across the paths. The goal is to optimize throughput performance such as I/O per second, megabytes per second, or response times. <br>

Version vom 12. Februar 2016, 16:52 Uhr

Folgende Befehle können direkt auf der Shell des ESXi-Hosts ausgeführt werden. Natürlich ist dies auch per SSH Verbindung auf den ESXi-Host möglich.

Storage

Storage Path Policies Beschreibung

VMW_PSP_FIXED
(fixiert den Pfad)

The host uses the designated preferred path, if it has been configured. Otherwise, the host selects the first working path discovered at system boot time. If you want the host to use a particular preferred path, specify it through the vSphere Client or by the command. The default policy for active-active storage devices is VMW_PSP_FIXED.
Important: VMware does not recommend you use VMW_PSP_FIXED for devices that have the VMW_SATP_ALUA storage array type policy assigned to them.

VMW_PSP_MRU
(meist verwendete Pfad)

The host selects the path that it used most recently. When the path becomes unavailable, the host selects an alternative path. The host does not revert back to the original path when that path becomes available again. There is no preferred path setting with the MRU policy. MRU is the default policy for active-passive storage devices.

VMW_PSP_RR
(Round-Robin)

The host uses an automatic path selection algorithm that rotates through all active paths when connecting to active-passive arrays, or through all available paths when connecting to active-active arrays. Automatic path selection implements load balancing across the physical paths available to your host. Load balancing is the process of spreading I/O requests across the paths. The goal is to optimize throughput performance such as I/O per second, megabytes per second, or response times.
VMW_PSP_RR is the default for a number of arrays and can be used with both active-active and active-passive arrays to implement load balancing across paths for different LUNs.


Storage Befehle

Anzeigen aller verbundenen LUNs:

esxcli storage nmp device list

Anzeigen aller verbundenen LUNs die die Storage-Path-Policy (VMW_PSP_RR) zugewiesen haben

esxcli storage nmp device list | grep -B4 <Storage-Path-Policy> | grep ^naa.

Alle LUNs fixieren

Alle LUNs die eine gewisse Storage-Path-Policy zugewiesen haben, auf eine andere Storage-Path-Policy abändern (Beispiel: Round-Robin zu Fixed)

for i in `esxcli storage nmp device list | grep -B4 VMW_PSP_RR | grep ^naa.`
do
esxcli storage nmp device set --device $i --psp VMW_PSP_FIXED
done





Weitere Informationen: https://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vcli.examples.doc_50%2Fcli_manage_storage.6.5.html