0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

データコアサーバー復旧後にすみやかにパスが戻るようにする

Last updated at Posted at 2019-11-27

ここの続き https://qiita.com/tsurun/items/14c9f43f10b731e44462 でもありますが、単独でも活用できます。

サーバー再起動後に片方のパスがなかなかもどらないことがあります。
ことがありますっていうかぶっちゃけリスキャンしないとなかなか戻りません。

なのでミラーvDiskが復旧したら自動でESXiがリスキャンするようにしておくと安心です。

まずはリスキャン用のパワーシェルスクリプトを作りましょう。
下記をメモ帳に貼り付けて、.ps1の拡張子で保存してください。

# サーバーとユーザーとパスワードは自分の環境で書き換えて
Connect-VIServer -Server x.x.x.x -User administrator@vsphere.local -Password xxxxxxxx
Get-VMHost | Get-VMHostStorage -RescanAllHBA
Disconnect-VIServer -Confirm:$False
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?