Update Device ID check for restore volume function (#282)
* Remove NAA ID check from restore volume function * Add check for EUI devices
This commit is contained in:
Родитель
046bbf67d0
Коммит
0372af2f44
|
@ -363,7 +363,7 @@ function New-VmfsDatastore {
|
|||
Write-Error $Global:Error[0]
|
||||
}
|
||||
|
||||
$Cluster | Get-VMHost | Get-VMHostStorage -RescanAllHba | Out-Null
|
||||
$Cluster | Get-VMHost | Get-VMHostStorage -RescanAllHba -RescanVmfs | Out-Null
|
||||
$Datastore = Get-Datastore -Name $DatastoreName -ErrorAction Ignore
|
||||
if (-not $Datastore -or $Datastore.type -ne "VMFS") {
|
||||
throw "Failed to create datastore $DatastoreName."
|
||||
|
@ -574,7 +574,7 @@ function Restore-VmfsVolume {
|
|||
$DatastoreName
|
||||
)
|
||||
|
||||
if ($DeviceNaaId -notlike 'naa.624a9370*') {
|
||||
if (!($DeviceNaaId -like 'naa.624a9370*' -or $DeviceNaaId -like 'eui.*')) {
|
||||
throw "Invalid Device NAA ID $DeviceNaaId provided."
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче