From da4b8a130fe0b9b42a2b2c78e211fffcacf1e8b7 Mon Sep 17 00:00:00 2001 From: Hubert Stec Date: Tue, 23 Sep 2025 17:10:38 +0200 Subject: [PATCH 1/3] change from Raid-5 to Raid-0 on NFS --- files/cloud-init/nfs/cloud-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/cloud-init/nfs/cloud-config b/files/cloud-init/nfs/cloud-config index e9a682f6..31f78b5e 100755 --- a/files/cloud-init/nfs/cloud-config +++ b/files/cloud-init/nfs/cloud-config @@ -43,7 +43,7 @@ runcmd: # - 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 From 98d2ffeccdbee16b21b46f81af2a59f7d48bc0bf Mon Sep 17 00:00:00 2001 From: Hubert Stec Date: Wed, 24 Sep 2025 14:11:47 +0200 Subject: [PATCH 2/3] Change descriptions and DCO DCO Remediation Commit for Hubert Stec I, Hubert Stec , hereby add my Signed-off-by to this commit: da4b8a130fe0b9b42a2b2c78e211fffcacf1e8b7 Signed-off-by: Hubert Stec --- docs/CONFIG-VARS.md | 2 +- files/cloud-init/nfs/cloud-config | 2 +- variables.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 31f78b5e..c59c44cf 100755 --- a/files/cloud-init/nfs/cloud-config +++ b/files/cloud-init/nfs/cloud-config @@ -39,7 +39,7 @@ 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) 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 } From acfda00748d46effc120bbabb6db3a44a5cb2f21 Mon Sep 17 00:00:00 2001 From: Hubert Stec Date: Wed, 24 Sep 2025 14:27:19 +0200 Subject: [PATCH 3/3] DCO Remediation Commit for Hubert Stec I, Hubert Stec , hereby add my Signed-off-by to this commit: da4b8a130fe0b9b42a2b2c78e211fffcacf1e8b7 Signed-off-by: Hubert Stec