diff --git a/docs/CONFIG-VARS.md b/docs/CONFIG-VARS.md index f9b4e076..b08554b0 100644 --- a/docs/CONFIG-VARS.md +++ b/docs/CONFIG-VARS.md @@ -324,7 +324,7 @@ When `storage_type=standard`, a NFS Server VM is created, only when these variab **NOTE:** When `node_pools_proximity_placement=true` is set, the NFS VM will be co-located in the proximity group with the additional node pool VMs. -**NOTE:** The 128 default is in GB. With a RAID5 configuration, the default is 4 disks, so [the defaults would yield (N-1) x S(min)](https://superuser.com/questions/272990/how-to-calculate-the-final-raid-size-of-a-raid-5-array), or (4-1) x 128GB = ~384 GB. +**NOTE:** The 128 default is in GB. With a RAID0 configuration, the default is 4 disks. | Name | Description | Type | Default | Notes | | :--- | ---: | ---: | ---: | ---: | diff --git a/files/cloud-init/nfs/cloud-config b/files/cloud-init/nfs/cloud-config index e9a682f6..c59c44cf 100755 --- a/files/cloud-init/nfs/cloud-config +++ b/files/cloud-init/nfs/cloud-config @@ -39,11 +39,11 @@ runcmd: - systemctl enable rpc-statd - systemctl start rpc-statd # - # Create Raid5 Array + # Create Raid0 Array # - pvcreate $(find /dev/disk/azure/scsi1/ -type l | xargs) - vgcreate data-vg01 $(find /dev/disk/azure/scsi1/ -type l | xargs) - - lvcreate --type raid5 --extents 100%FREE --stripes 3 --name data-lv01 data-vg01 + - lvcreate --type raid0 --extents 100%FREE --stripes 4 --stripesize 256 --name data-lv01 data-vg01 - mkfs -t ext4 /dev/data-vg01/data-lv01 # # Update /etc/fstab diff --git a/variables.tf b/variables.tf index 779cb7ee..ba9b552e 100644 --- a/variables.tf +++ b/variables.tf @@ -453,7 +453,7 @@ variable "nfs_vm_zone" { } variable "nfs_raid_disk_size" { - description = "Size in Gb for each disk of the RAID5 cluster, when storage_type=standard" + description = "Size in Gb for each disk of the RAID0 cluster, when storage_type=standard" type = number default = 256 }