2018年7月16日月曜日

Windows Server Insider Preview 17709でのS2D構築は、DDNS以外支障なし

別稿で記載していますが、Windows Server Insider Preview 17709はDDNSができていないようです。
ということで、Windows Server Insider Preview 17709は、DNSエントリーを手動登録し、いつものようにS2D PoCを構築しました。

クラスターのコンピュータアカウントがADドメインに作成されるとともに、DDNSでDNSサーバーに登録される動きはまったく問題なかった旨、記載しておきます。



手順は、概ねDeploy Storage Spaces Directの通りです。

いつもは構築スクリプトを貼ったりしていますが、今回は実行結果を貼ってみます。
まずHyper-Vホスト側から実行したものです。
Nested Hyper-Vに必要なCPUおよびネットワークを前半で設定。
後半は、各VMごとに、TrustedHostsの設定、クラスター実行アカウントをローカル管理者グループへ追加、役割と機能のインストール、再起動を行いました。
まあ、VMによるPoCなので、"Data-Center-Bridging"の機能はインストールしなくてもよいのですけどね。
S C:\Users\sashizaki> $vmname1="g2wsip17709s2d1"
Set-VMProcessor -VMName $vmname1 -ExposeVirtualizationExtensions $true
Get-VMNetworkAdapter -VMName $vmname1 | Set-VMNetworkAdapter -MacAddressSpoofing On
Get-VMProcessor -VMName $vmname1 |fl vmname,ExposeVirtualizationExtensions
Get-VMNetworkAdapter -VMName $vmname1 |fl VMName,MacAddressSpoofing



VMName : g2wsip17709s2d1
ExposeVirtualizationExtensions : True





VMName : g2wsip17709s2d1
MacAddressSpoofing : On

VMName : g2wsip17709s2d1
MacAddressSpoofing : On




PS C:\Users\sashizaki> $vmname2="g2wsip17709s2d2"
Set-VMProcessor -VMName $vmname2 -ExposeVirtualizationExtensions $true
Get-VMNetworkAdapter -VMName $vmname2 | Set-VMNetworkAdapter -MacAddressSpoofing On
Get-VMProcessor -VMName $vmname2 |fl vmname,ExposeVirtualizationExtensions
Get-VMNetworkAdapter -VMName $vmname2 |fl VMName,MacAddressSpoofing


VMName : g2wsip17709s2d2
ExposeVirtualizationExtensions : True





VMName : g2wsip17709s2d2
MacAddressSpoofing : On

VMName : g2wsip17709s2d2
MacAddressSpoofing : On




PS C:\Users\sashizaki> $vmname3="g2wsip17709s2d3"
Set-VMProcessor -VMName $vmname3 -ExposeVirtualizationExtensions $true
Get-VMNetworkAdapter -VMName $vmname3 | Set-VMNetworkAdapter -MacAddressSpoofing On
Get-VMProcessor -VMName $vmname3 |fl vmname,ExposeVirtualizationExtensions
Get-VMNetworkAdapter -VMName $vmname3 |fl VMName,MacAddressSpoofing



VMName : g2wsip17709s2d3
ExposeVirtualizationExtensions : True





VMName : g2wsip17709s2d3
MacAddressSpoofing : On

VMName : g2wsip17709s2d3
MacAddressSpoofing : On




PS C:\Users\sashizaki> $myServer1 = "$vmname1.sshzk2016.local"
$localadmin = ".\administrator"
$domainadmin = "sshzk2016\sashizaki"
$myServer2 = "$vmname2.sshzk2016.local"
$myServer3 = "$vmname3.sshzk2016.local"


PS C:\Users\sashizaki> Enter-PSSession -ComputerName $myServer1 -Credential $domainadmin


[g2wsip17709s2d1.sshzk2016.local]: PS C:\Users\sashizaki\Documents> Set-Item WSMan:\localhost\Client\TrustedHosts "*"
Net localgroup Administrators sshzk2016\sa_s2dcluster /add
Install-WindowsFeature -Name "Data-Center-Bridging","Failover-Clustering","Hyper-V","RSAT-Clustering-PowerShell","Hyper-V-PowerShell" -IncludeManagementTools
shutdown -r -t 0
exit
The command completed successfully.


Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True Yes SuccessRest... {Data Center Bridging, Failover Clustering...
警告: You must restart this server to finish the installation process.

PS C:\Users\sashizaki> Enter-PSSession -ComputerName $myServer2 -Credential $domainadmin


[g2wsip17709s2d2.sshzk2016.local]: PS C:\Users\sashizaki\Documents> Set-Item WSMan:\localhost\Client\TrustedHosts "*"
Net localgroup Administrators sshzk2016\sa_s2dcluster /add
Install-WindowsFeature -Name "Data-Center-Bridging","Failover-Clustering","Hyper-V","RSAT-Clustering-PowerShell","Hyper-V-PowerShell" -IncludeManagementTools
shutdown -r -t 0
exit
The command completed successfully.


Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True Yes SuccessRest... {Data Center Bridging, Failover Clustering...
警告: You must restart this server to finish the installation process.

PS C:\Users\sashizaki> Enter-PSSession -ComputerName $myServer3 -Credential $domainadmin


[g2wsip17709s2d3.sshzk2016.local]: PS C:\Users\sashizaki\Documents> Set-Item WSMan:\localhost\Client\TrustedHosts "*"
Net localgroup Administrators sshzk2016\sa_s2dcluster /add
Install-WindowsFeature -Name "Data-Center-Bridging","Failover-Clustering","Hyper-V","RSAT-Clustering-PowerShell","Hyper-V-PowerShell" -IncludeManagementTools
shutdown -r -t 0
exit
コマンドは正常に終了しました。


Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True Yes SuccessRest... {Data Center Bridging, フェールオーバー クラスタリング, H...
警告: インストール処理を完了するには、このサーバーを再起動する必要があります。

以降は、VMから実行しています。
  • クラスターの検証
  • クラスターの作成
  • ファイル共有監視の設定
  • ディスクのクリーンアップ
  • verboseオプションを用いたS2Dの有効化
  • CSVの作成
  • コマンドにより、構築状況の確認
PS C:\Users\sashizaki> $vmname1="g2wsip17709s2d1"
$vmname2="g2wsip17709s2d2"
$vmname3="g2wsip17709s2d3"
$myServer1 = "$vmname1.sshzk2016.local"
$myServer2 = "$vmname2.sshzk2016.local"
$myServer3 = "$vmname3.sshzk2016.local"

PS C:\Users\sashizaki> Test-Cluster -node $myServer1,$myServer2,$myServer3 -include "Storage Spaces Direct",Inventory,Network,"System Configuration"

WARNING: System Configuration - Validate Operating System Installation Option: The test reported so
me warnings..
WARNING: System Configuration - Validate Software Update Levels: The test reported some warnings..
WARNING: Network - Validate Cluster Network Configuration: The test reported some warnings..
WARNING:
Test Result:
HadUnselectedTests, ClusterConditionallyApproved
Testing has completed for the tests you selected. You should review the warnings in the Report. A
cluster solution is supported by Microsoft only if you run all cluster validation tests, and all te
sts succeed (with or without warnings).
Test report file path: C:\Users\sashizaki\AppData\Local\Temp\Validation Report 2018.07.16 At 11.04.
42.htm

Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2018/07/16 11:06 925510 Validation Report 2018.07.16 At 11.04.42.htm



PS C:\Users\sashizaki> New-Cluster -name s2dwsip17709 -node $myServer1,$myServer2,$myServer3 -noStorage -static 192.168.3.16


Name
----
s2dwsip17709



PS C:\Users\sashizaki> Set-ClusterQuorum -FileShareWitness \\g2ws2016fsis01\fwwsip17709


Cluster QuorumResource
------- --------------
s2dwsip17709 File Share Witness



PS C:\Users\sashizaki> icm (Get-Cluster -Name s2dwsip17709 | Get-ClusterNode) {
Update-StorageProviderCache
Get-StoragePool | ? IsPrimordial -eq $false | Set-StoragePool -IsReadOnly:$false -ErrorAction SilentlyContinue
Get-StoragePool | ? IsPrimordial -eq $false | Get-VirtualDisk | Remove-VirtualDisk -Confirm:$false -ErrorAction SilentlyContinue
Get-StoragePool | ? IsPrimordial -eq $false | Remove-StoragePool -Confirm:$false -ErrorAction SilentlyContinue
Get-PhysicalDisk | Reset-PhysicalDisk -ErrorAction SilentlyContinue
Get-Disk | ? Number -ne $null | ? IsBoot -ne $true | ? IsSystem -ne $true | ? PartitionStyle -ne RAW | % {
$_ | Set-Disk -isoffline:$false
$_ | Set-Disk -isreadonly:$false
$_ | Clear-Disk -RemoveData -RemoveOEM -Confirm:$false
$_ | Set-Disk -isreadonly:$true
$_ | Set-Disk -isoffline:$true
}
Get-Disk |? Number -ne $null |? IsBoot -ne $true |? IsSystem -ne $true |? PartitionStyle -eq RAW | Group -NoElement -Property FriendlyName
} | Sort -Property PsComputerName,Count

Count Name PSComputerName
----- ---- --------------
4 Msft Virtual Disk g2wsip17709s2d1
4 Msft Virtual Disk g2wsip17709s2d2
4 Msft Virtual Disk g2wsip17709s2d3



PS C:\Users\sashizaki> Enable-ClusterStorageSpacesDirect -verbose

VERBOSE: 2018/07/16-11:15:01.195 Ensuring that all nodes support S2D
VERBOSE: 2018/07/16-11:15:01.227 Querying storage information
VERBOSE: 2018/07/16-11:15:01.664 Sorted disk types present (fast to slow): HDD. Number of types pre
sent: 1
VERBOSE: 2018/07/16-11:15:01.664 Checking that nodes support the desired cache state
VERBOSE: 2018/07/16-11:15:01.680 Checking that all disks support the desired cache state
VERBOSE: 2018/07/16-11:15:04.289 Creating health resource
VERBOSE: 2018/07/16-11:15:09.727 Setting cluster property
VERBOSE: 2018/07/16-11:15:09.727 Setting default fault domain awareness on clustered storage subsys
tem
VERBOSE: 2018/07/16-11:15:09.883 Waiting until physical disks are claimed
VERBOSE: 2018/07/16-11:15:12.899 Number of claimed disks on node 'g2wsip17709s2d1': 4/4
VERBOSE: 2018/07/16-11:15:12.915 Number of claimed disks on node 'g2wsip17709s2d2': 4/4
VERBOSE: 2018/07/16-11:15:12.930 Number of claimed disks on node 'g2wsip17709s2d3': 4/4
VERBOSE: 2018/07/16-11:15:12.946 Node 'g2wsip17709s2d1': Waiting until cache reaches desired state
(HDD:'ReadWrite' SSD:'WriteOnly')
VERBOSE: 2018/07/16-11:15:12.962 SBL disks initialized in cache on node 'g2wsip17709s2d1': 4 (4 on
all nodes)
VERBOSE: 2018/07/16-11:15:12.962 Cache reached desired state on g2wsip17709s2d1
VERBOSE: 2018/07/16-11:15:13.977 Node 'g2wsip17709s2d2': Waiting until cache reaches desired state
(HDD:'ReadWrite' SSD:'WriteOnly')
VERBOSE: 2018/07/16-11:15:13.977 SBL disks initialized in cache on node 'g2wsip17709s2d2': 4 (8 on
all nodes)
VERBOSE: 2018/07/16-11:15:13.977 Cache reached desired state on g2wsip17709s2d2
VERBOSE: 2018/07/16-11:15:15.321 Node 'g2wsip17709s2d3': Waiting until cache reaches desired state
(HDD:'ReadWrite' SSD:'WriteOnly')
VERBOSE: 2018/07/16-11:15:15.337 SBL disks initialized in cache on node 'g2wsip17709s2d3': 4 (12 on
all nodes)
VERBOSE: 2018/07/16-11:15:15.337 Cache reached desired state on g2wsip17709s2d3
VERBOSE: 2018/07/16-11:15:16.352 Waiting until SBL disks are surfaced
VERBOSE: 2018/07/16-11:15:19.384 Disks surfaced on node 'g2wsip17709s2d1': 12/12
VERBOSE: 2018/07/16-11:15:19.399 Disks surfaced on node 'g2wsip17709s2d2': 12/12
VERBOSE: 2018/07/16-11:15:19.430 Disks surfaced on node 'g2wsip17709s2d3': 12/12
VERBOSE: 2018/07/16-11:15:22.774 Waiting until all physical disks are reported by clustered storage
subsystem
VERBOSE: 2018/07/16-11:15:26.290 Physical disks in clustered storage subsystem: 12
VERBOSE: 2018/07/16-11:15:26.290 Querying pool information
VERBOSE: 2018/07/16-11:15:26.915 Starting health providers
VERBOSE: 2018/07/16-11:15:46.891 Checking that all disks support the desired cache state
WARNING: 2018/07/16-11:15:46.969 Node g2wsip17709s2d1: No disks found to be used for cache
WARNING: 2018/07/16-11:15:46.969 Node g2wsip17709s2d2: No disks found to be used for cache
WARNING: 2018/07/16-11:15:46.985 Node g2wsip17709s2d3: No disks found to be used for cache
VERBOSE: 2018/07/16-11:15:46.985 Required steps for this action completed successfully

Node EnableReportName
---- ----------------
g2wsip17709s2d2 C:\Windows\Cluster\Reports\EnableClusterS2D on 2018.07.16-11.15.47.htm




PS C:\Users\sashizaki> New-Volume -FriendlyName "Volume1" -FileSystem CSVFS_ReFS -StoragePoolFriendlyName S2D* -Size 332GB -ResiliencySettingName Mirror -PhysicalDiskRedundancy 2

DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining Siz
e
----------- ------------ -------------- --------- ------------ ----------------- ------------- ---
Volume1 CSVFS_ReFS Fixed Healthy OK 328.42 GB GB



PS C:\Users\sashizaki> Get-VirtualDisk


FriendlyName ResiliencySettingName FaultDomainRedundancy OperationalStatus HealthStat
us
------------ --------------------- --------------------- ----------------- ----------
Volume1 Mirror 2 OK Healthy
ClusterPerformanceHistory Mirror 2 OK Healthy



PS C:\Users\sashizaki> New-Volume -FriendlyName "Volume2" -FileSystem CSVFS_ReFS -StoragePoolFriendlyName S2D* -Size 332GB -ResiliencySettingName Mirror -PhysicalDiskRedundancy 2
New-Volume -FriendlyName "Volume3" -FileSystem CSVFS_ReFS -StoragePoolFriendlyName S2D* -Size 332GB -ResiliencySettingName Mirror -PhysicalDiskRedundancy 2


DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining Siz
e
----------- ------------ -------------- --------- ------------ ----------------- ------------- ---
Volume2 CSVFS_ReFS Fixed Healthy OK 328.42 GB GB
Volume3 CSVFS_ReFS Fixed Healthy OK 328.42 GB GB



PS C:\Users\sashizaki> Get-ClusterS2D

WARNING: 2018/07/16-11:32:24.279 Node g2wsip17709s2d1: No disks found to be used for cache
WARNING: 2018/07/16-11:32:24.289 Node g2wsip17709s2d2: No disks found to be used for cache
WARNING: 2018/07/16-11:32:24.305 Node g2wsip17709s2d3: No disks found to be used for cache


CacheMetadataReserveBytes : 34359738368
CacheModeHDD : ReadWrite
CacheModeSSD : WriteOnly
CachePageSizeKBytes : 16
CacheState : Enabled
Name : s2dwsip17709
ScmUse : Cache
State : Enabled




PS C:\Users\sashizaki> Get-VirtualDisk


FriendlyName ResiliencySettingName FaultDomainRedundancy OperationalStatus HealthStat
us
------------ --------------------- --------------------- ----------------- ----------
Volume3 Mirror 2 OK Healthy
Volume1 Mirror 2 OK Healthy
ClusterPerformanceHistory Mirror 2 OK Healthy
Volume2 Mirror 2 OK Healthy



PS C:\Users\sashizaki> Get-StoragePool


FriendlyName OperationalStatus HealthStatus IsPrimordial IsReadOnly Size AllocatedSize
------------ ----------------- ------------ ------------ ---------- ---- -------------
Primordial OK Healthy True False 3.12 TB 2.99 TB
Primordial OK Healthy True False 3.12 TB 2.99 TB
S2D on s2dwsip17709 OK Healthy False False 2.99 TB 2.97 TB



PS C:\Users\sashizaki> Get-PhysicalDisk

DeviceId FriendlyName SerialNumber MediaType CanPool OperationalStatus HealthStatus Usage
-------- ------------ ------------ --------- ------- ----------------- ------------ -----
0 Msft Virtual Disk Unspecified False OK Healthy Auto...
3001 Msft Virtual Disk HDD False OK Healthy Auto...
1001 Msft Virtual Disk HDD False OK Healthy Auto...
2003 Msft Virtual Disk HDD False OK Healthy Auto...
3004 Msft Virtual Disk HDD False OK Healthy Auto...
3003 Msft Virtual Disk HDD False OK Healthy Auto...
2004 Msft Virtual Disk HDD False OK Healthy Auto...
2001 Msft Virtual Disk HDD False OK Healthy Auto...
2002 Msft Virtual Disk HDD False OK Healthy Auto...
1003 Msft Virtual Disk HDD False OK Healthy Auto...
1002 Msft Virtual Disk HDD False OK Healthy Auto...
1004 Msft Virtual Disk HDD False OK Healthy Auto...
3002 Msft Virtual Disk HDD False OK Healthy Auto...


0 件のコメント:

コメントを投稿