You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.Logger.LogTraceMessage("SAN policy is already set to OnlineAll. No change required.",context);
199
+
}
200
+
else
201
+
{
202
+
// Set SAN policy to OnlineAll so that newly discovered disks are
203
+
// brought online and writable instead of remaining offline/read-only.
204
+
command="san policy=onlineall";
205
+
awaitprocess.WriteInput(command)
206
+
.WaitForResponseAsync(@"DiskPart successfully changed the SAN policy for the current operating system\.",cancellationToken,timeout:TimeSpan.FromSeconds(30))
207
+
.ConfigureAwait(false);
208
+
209
+
this.Logger.LogTraceMessage("SAN policy set to OnlineAll.",context);
210
+
}
211
+
}
212
+
catch(TimeoutExceptionexc)
213
+
{
214
+
thrownewProcessException(
215
+
$"Failed to set SAN policy. DiskPart command timed out (command={command}, retries={retries}). {Environment.NewLine}{process.StandardOutput}",
0 commit comments