Skip to main content

Posts

Showing posts from March, 2017

How to extend multiple Windows VM's HDD in VMware vCenter with PowerShell PowerCLI

If you want to extend multiple VM's HDD drive in one go, below script is useful. I've extended 10 Windows VM's HDD in 4 minutes.  Create below script in notepad and save as "extendhdd.ps1". At the same time create another text file and put all servers line by line. eg. in host.txt server1 server2 server3 So if you want to run the script, open your PowerCLI from one of the servers and put two files " ___extendhdd.ps1____ $GuestUser="domain\account" $GuestPassword="xxxx" $hosts = get-content hosts.txt foreach ($server in $hosts) { Get-HardDisk -vm $server | where {$_.Name -eq "Hard Disk 2"} | Set-HardDisk -CapacityKB 15728640 -Confirm:$false Invoke-VMScript -VM $server -ScriptText "ECHO RESCAN > F:\DiskPart.txt && ECHO SELECT Volume F >> F:\DiskPart.txt && ECHO EXTEND >> F:\DiskPart.txt && ECHO EXIT >> F:\DiskPart.txt && DiskP...

Building cheap SAN storage for home lab VMware ESXi - Part 2

After the setup has completed, I need to choose which storage software to be used such as FreeNAS, Openfiler , MS iSCSI Software Initiator, StarWind Virtual SAN software etc. I prefer to use FreeNAS but the HP dc7900 do not have ECC RAM. I decided to test StarWind Virtual San with Windows Server 2012. So I installed Windows Server 2012 on the 2.5" 160GB HDD and installed StarWind VirtualSan on that. After that download HP Smart Array software to configure the RAID. I've configure 4 x 146GB SAS HDD to RAID 0 and the space become 584GB of logical drive. I've downloaded CrystalDiskMark software and tested the speed for the SAS HDD RAID 0 with HP Smart Array P410 with 512MB cache. The result is .