C-5itmedia.smartseminar.jp/static/upload/itmedia... · 2018. 11. 12. · •PowerShell...

Preview:

Citation preview

C-5

• サービスの継続性は管理業務の継続性でもある

• 効率的な管理はストレージ、ネットワーク、ジョブの安定性に支えられる

可用性を高める テクノロジー

いまさらですが...

物理マシン 仮想マシン

Compute と Storage の分離 Compute と Storage は一体

仮想 OS のみ 仮想ストレージのみ 仮想マシン全体

• サービスを止めずに移動

メモリ内データ

構成情報

移動

• ストレージ マイグレーションのスピードアップ • あとから Server Core に移行可能

NIC チーミング(最大 32 NIC/Team)を OS 標準でサポート

SMB 3.0 マルチチャネル with RSS

NIC

NIC

RSS: Receive-side scaling

NIC

NIC

NIC Teaming

Remote Direct Memory Access)

NIC NIC

SM

B M

ulti.

RSS

RSS

RSS

RSS

RSS

RSS

SM

B M

ulti.

SMB コネクション

SW

ITCH

NIC Teaming

3.5 TB

Windows Management Framework

IT Pro IT Developer Solution

Developer

Storage Network Devices CPU

Windows PowerShell

CIMOM、SMI-S

標準化されたアクセス

標準化されたプロトコル

標準化された オブジェクトモデル

WS-Man (Web Service for Management)

他の プラットフォーム

Service Provider

開発

WS-Man

CIMOM、

SMI-S

• PowerShell 3.0(コマンドレット数 2300!) • ワークフローによるジョブの永続化

• 堅牢なセッション管理

• PSScheduledJob モジュールによるジョブスケジューリングへの対応

• GUI を使用したコマンド入力

• WEB/Json系コマンドレット

• 新しい PowerShell ISE

• Windows PowerShell Web Service

• Server Manager CIM プロバイダー

• WinRM、WMI のアップデート

http://blogs.technet.com/b/junichia/archive/2012/03/21/3487696.aspx

2012

マルチ

リモート リモート

ローカル リモート

-ComputerName パラメタ

• コマンドレットに実装

• 複数のコンピュータを指定可能

対話モード

• Enter-PSSession コマンドレット

• SSH のような使い方

Invoke モード

• Invoke-Command コマンドレット

• ComputerNameに対応していないコマンドで使用

• 複数のコンピュータに対して一括実行

PowerShell 2.0 の場合

セッション情報はローカルに保存されるため、別のクライアントから再接続できない

セッション情報はリモートに保存されるため、

別のクライアントから再接続できる。

PowerShell 3.0 の場合

モジュールとコマンドのインポート • リモートコンピューター上のコマンドレットを一時的に取り込むことができる • “Invoke-Command -Session” を使用する必要が無くなる • コマンドの実行中はセッションを生かしておく必要がある

PS C:> $s = New-PSSession -ComputerName Server1

PS C:> Import-PSSession -Session $s -Module HYPER-V

PS C:¥> Get-VM |ft name

Name

----

VM01

VM02

VM03

VM04

VM05 Hyper-V Server

PS Session

Hyper-V Module

Get-Job バックグラウンドジョブを取得

Receive-Job バックグラウンドジョブの出力結果を取得

Remove-Job バックグラウンドジョブを削除

Start-Job バックグラウンドジョブを開始

Stop-Job バックグラウンドジョブを停止

Wait-Job バックグラウンドジョブが終了するまで待つ

PowerShell - バックグラウンドジョブ • Windows PowerShell 2.0 よりサポート

• 長時間を要するコマンドレットを非同期に実行し、次の処理に移る

• 処理の経過は随時受け取れる

Add-JobTrigger

Disable-JobTrigger

Disable-ScheduledJob

Enable-JobTrigger

Enable-ScheduledJob

Get-JobTrigger

Get-ScheduledJob

Get-ScheduledJobOption

• PSScheduledJob モジュールで提供

New-JobTrigger

New-ScheduledJobOption

Register-ScheduledJob

Remove-JobTrigger

Set-JobTrigger

Set-ScheduledJob

Set-ScheduledJobOption

Unregister-ScheduledJob

workflow <ワークフロー名>

{ <処理>

}

パラレル

WF

結果の永続化

WF

処理1

処理2

checkpoint

結果ストア

結果1

checkpoint

処理3

サスペンド

WF

処理1

処理2

サスペンド

管理を支えるのもサーバーの可用性です!

まずは 仮想化 から!

Thank You

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered

trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this

presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part

of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT

MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Recommended