Linux provides many different ways of creating software RAIDs, none of which, of course, come with dedicated PowerShell cmdlets. In this recipe, we will look at mdadm to create a very simple RAID.
Creating a Linux software RAID device
Getting ready
To get ready for this recipe, a lab environment is highly recommended. To create a lab environment on a Hyper-V machine, you can use the following code snippet:
New-LabDefinition -Name PoolParty -DefaultVirtualizationEngine HyperV
Add-LabVirtualNetworkDefinition -Name 'Default Switch' -HyperVProperties @{ SwitchType = 'External'; AdapterName = 'Ethernet' }
$disks = foreach ($count in 1..10)
{
Add-LabDiskDefinition -Name linuxd$count -DiskSizeInGb 5 -SkipInitialize...