Server:
=======
1. mkdir c:\1
2. New-SmbShare -Name 1 -Path c:\1 -FullAccess everyone
Client:
=======
New-SmbMapping -LocalPath w: -RemotePath \\102.11.11.11\1 -Persistent $true
Creating testfile:
==================
fsutil.exe file createnew F:\testfile1.dat 1000000000
Running IO:
===========
.\sqlio2.exe -T100 -s50 -t8 -o8 -b512 -fsequential -LS -BN -dA testfile1.dat
Enabling shuntfilter:
=====================
copy the shuntfilter
.\starter.bat C:\
commands:
=========
Get-SmbConnection
list the connections
Get-SmbMapping
to see drives
Start-Process powershell "sqlio2.exe -T100 -s23 -t2 -o4 -b16 -fsequential -LS -BN -dA testfile2.dat" -NoNewWindow
To start io on multiple windows
Enable network debug:
=====================
bcdedit /set testsigning yes
bcdedit /dbgsettings
bcdedit /debug on
bcdedit /dbgsettings net hostip:10.193.204.31 port:60005 key:b.a.l.a
bcdedit /set "{dbgsettings}" busparams 3.0.0
netsh advfirewall set allprofiles state off
1) Enable debug on windows using bcdedit.
Windbg
2) press break button while boot os
3) type following commands in kd> promt
1) .reload /f nt
2) x nt!kd_default_mask
4) take the address and past it on memory
5) change first 0000 to 0800
Get-SmbShareAccess -Name cn1_1 | Grant-SmbShareAccess -AccountName Everyone -AccessRight full
Creating VMs:
=============
for($i=1; $i -le 30; $i++)
{
New-VM -Name VM$i -Path \\core96cn2\core96cn1 -Memory 3GB -VHDPath \\core96cn2\core96cn1\vm$i.VHDX -Verbose
SET-VMProcessor –VMName vm$i –count 2
Write-Host "vm$i is successfully created";
sleep 1;
}
icacls.exe I:\CORE96CN1\ /grant fornd\administrator':(OI)(CI)(F)' /t /c
PS C:\Users\administrator.FORND> Get-ClusterNode | Select-String core
PS C:\Users\administrator.FORND> $OtherNode
Name ID State
---- -- -----
CORE96CN1 21 Up
PS C:\Users\administrator.FORND> $OtherNode.name
CORE96CN1
Get-VMProcessor * | Set-VMProcessor -CompatibilityForMigrationEnabled 1
Set-VM myVM0 -NumCpu 4 -MemoryGB 8 -Confirm:$false
netsh winsock reset catalog
smbconnectstress:
=================
PS C:\Users\administrator.FORND\Desktop\SmbConnect> .\SmbConnect.exe
PS C:\Users\administrator.FORND\Desktop\SmbConnect> .\SmbConnect.exe /S core96cn2 /H smbcon /B 4096 /T 1000
PS C:\Users\administrator.FORND\Desktop> Install-WindowsFeature RSAT-AD-PowerShell
Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True No Success {Remote Server Administration Tools, Activ...
WARNING: Windows automatic updating is not enabled. To ensure that your newly-installed role or feature is
automatically updated, turn on Windows Update.
PS C:\Users\administrator.FORND\Desktop> Enable-SmbDelegation -SmbServer core96cn2 -SmbClient core96cn3
CheckDelegationPrerequisites : SMB Delegation cmdlets require the Active Directory forest to be in Windows Server 2012
forest functional level.
At C:\windows\system32\windowspowershell\v1.0\Modules\SmbShare\SmbScriptModule.psm1:107 char:14
+ $check = CheckDelegationPrerequisites
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,CheckDelegationPrerequisites
PS C:\Users\administrator.FORND\Desktop>
PS C:\Users\administrator.FORND> verifier /rules disable 0x9200D
Rule 0x9200D disabled.
New verifier settings:
Enabled Flags Value: 0x01AAEFBB
Standard Flags:
[X] (0x00000001) Special pool
[X] (0x00000002) Force IRQL checking
[X] (0x00000008) Pool tracking
[X] (0x00000010) I/O verification
[X] (0x00000020) Deadlock detection
[X] (0x00000080) DMA checking
[X] (0x00000100) Security checks
[X] (0x00000800) Miscellaneous checks
[X] (0x00020000) DDI compliance checking
Additional Flags:
[ ] (0x00000004) Randomized low resources simulation
[X] (0x00000200) Force pending I/O requests
[X] (0x00000400) IRP logging
[X] (0x00002000) Invariant MDL checking for stack
[X] (0x00004000) Invariant MDL checking for driver
[X] (0x00008000) Power framework delay fuzzing
[ ] (0x00040000) Systematic low resources simulation
[X] (0x00080000) DDI compliance checking (additional)
[X] (0x00200000) NDIS/WIFI verification
[X] (0x00800000) Kernel synchronization delay fuzzing
[X] (0x01000000) VM switch verification
[X] Indicates flag is enabled
Bootmode:
Persistent
Rules:
Disabled: 0x9200D (NdisTimedDataSend)
All other rules using default settings.
Verified drivers:
wdf01000.sys
chvbdx64.sys
chnetx64.sys
ndis.sys
Fault injection:
================
verifier /faultssystematic enableruntime
verifier /faultssystematic querystatistics
9: kd> !verifier 0x800
No injections to report
9: kd> !verifier 0x4
windbg:
.dump /f G:\temp\lnclose\memory.dmp
!stacks 2 chnetx64
netsh advfirewall set allprofiles state off
Storage migration:
==================
Move-ClusterGroup -Name ssdfshare1 -Node core96cn22 -Verbose
09:56 07/08/2014
$iteration=1
while (1)
{
Move-ClusterGroup -Name fserver -Verbose
sleep 10
$iteration=$iteration + 1
echo "$iteration" >> c:\iteration.txt
}
18:12 07/04/2014
Remove cluster node:
Remove-ClusterNode core96cn5 -force
QFE:
gwmi -class "win32_quickfixengineering"
wmic qfe list
wusa /uninstall /kb:455999
CAU:
PS C:\Users\administrator.FORND> Add-CauClusterRole -ClusterName ndkstorcluster -CauPluginName Microsoft.WindowsUpdatePl
ugin, Microsoft.HotfixPlugin -CauPluginArguments @{ 'IncludeRecommendedUpdates' = 'True' }, @{ 'HotfixRootFolderPath' =
'\\ssdfshare1\HotfixRootFolderPath' } -StopOnPluginFailure -EnableFirewallRules -Force
12:53 24/04/2014
volatile:
verifier /volatile /removedriver ndis.sys
VBD:
====
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4vbd.vcxproj /p:Configuration="WinPreRel Release" /P:Platform=x64 /P:RunCodeAnalysisOnce=True
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4vbd.VcxProj /target:sdv /p:Configuration="WinPreRel Release" /P:Platform=x64 /p:inputs="/check:default.sdv"
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4vbd.VcxProj /target:dvl /p:Configuration="WinPreRel Release" /P:Platform=x64
NDIS:
=====
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4ndis.vcxproj /p:Configuration="WinPreRel Release" /P:Platform=x64 /P:RunCodeAnalysisOnce=True
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4ndis.vcxproj /target:sdv /p:Configuration="WinPreRel Release" /P:Platform=x64 /p:inputs="/check:default.sdv"
C:\sw\dev\T4\windows\Src\kernel\nic\ndis6x>msbuild.exe cht4ndis.VcxProj /target:dvl /p:Configuration="WinPreRel Release" /P:Platform=x64
Scale out file server:
=====================
new-smbshare -ContinuouslyAvailable $true -name ssdfshare1 -path C:\ClusterStorage\Volume2\pcs1
Assignign permissios to the share:
==================================
$AllowedAccounts = @("FORND\CORE96CN1$","FORND\CORE96CN4$","FORND\CORE96CN5$","FORND\CORE96CN6$","FORND\CORE96CN7$","FORND\CORE96CN8$","FORND\CORE96CN9$","FORND\CORE96CN10$","FORND\Administrator")
foreach($AllowedAccount in $AllowedAccounts)
{
$permission = "$AllowedAccount"+":(OI)(CI)(F)"
icacls.exe C:\ClusterStorage\Volume2\pcs1 /grant $permission
Grant-SmbShareAccess -AccountName $AllowedAccount -AccessRight Full -Name ssdfshare1 -Confirm:$false
}
Grant-SmbShareAccess -Name ShareVolume -AccountName "domain computers" -AccessRight Full
Grant-SmbShareAccess -Name ShareVolume -AccountName "domain users" -AccessRight Full
deleting files:
--------------
for /D %f in (7*) do rmdir %f /s /Q
CTSserver:
=========
ctsTraffic.exe -listen:102.1.1.204 -protocol:tcp -p attern:duplex -verify:data -buffer:1048576 -transfer:1073741824 -port:5658
ctsTraffic.exe -listen:102.2.2.204 -protocol:tcp -p attern:duplex -verify:data -buffer:1048576 -transfer:1073741824 -port:5659
CTSClient:
==========
ctsTraffic.exe -target:102.1.1.204 -iterations:10 -pattern:duplex -connections:3 -protocol:tcp -verify:data -buffer:1048576 -transfer:1073741824 -port:5658
ctsTraffic.exe -target:102.2.2.204 -iterations:10 -pattern:duplex -connections:3 -protocol:tcp -verify:data -buffer:1048576 -transfer:1073741824 -port:5659
logman:
=======
logman start vmmdebug -p Microsoft-VirtualMachineManager-Debug -f bin -o C:\log.etl -ets
logman stop vmmdebug –ets
Set NDIS adv property:
=====================
Set-NetAdapterAdvancedProperty -Name “Ethernet 3” -DisplayName "Flow Control" -DisplayValue "Disabled"
====
PCS
====
Run creation:
=============
PS C:\pcs> .\Microsoft.HyperV.Test.Stress.PrivateCloud.CreatePCSRun.exe /SQLConnectionString:"Data Source=localhost;Init
ial Catalog=PrivateCloudStressMaster;Integrated Security=True" /TemplateSQLFile:Create_PCS_Template.sql /SetWTTValue:- /
RunDescription:"22July"
PrivateCloudStress.XML execution:
==============
.\start_pcs.ps1 -CSUcluster ndkcluspcs.fornd.com -CSUconfig .\PrivateCloudStress.xml
PrivateCloudStress_storage.XML execution:
===========
.\start_pcs.ps1 -CSUcluster ndkstorcluster.fornd.com -CSUconfig .\PrivateCloudStress_Storage.xml
logs:
-----
wevtutil epl System ( (hostname)+"-system.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-VMMS-Analytic ( (hostname)+"-Hyper-V-VMMS-analytic.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-VMMS-Admin ( (hostname)+"-Hyper-V-VMMS-Admin.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-VMMS-Networking ( (hostname)+"-Hyper-V-VMMS-Networking.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-VMMS-Operational ( (hostname)+"-Hyper-V-VMMS-Operational.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-VMMS-Storage ( (hostname)+"-Hyper-V-VMMS-Storage.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-Worker-Admin ( (hostname)+"-Hyper-V-VMWP-Admin.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-Worker-Analytic ( (hostname)+"-Hyper-V-VMWP-Analytic.evtx")
wevtutil epl Microsoft-Windows-Hyper-V-Worker-VDev-Analytic ( (hostname)+"-Hyper-V-VMWP-VDev-Analytic.evtx")
create run:
-----------
.\Microsoft.HyperV.Test.PrivateCloudSimulator.CreatePCSRun.exe /SQLServer:BRUCE /SetWTTValue:- /RunDescription:"sept16"
No comments:
Post a Comment