diff --git a/cookbooks/aws-parallelcluster-environment/resources/raid/partial/_raid_common.rb b/cookbooks/aws-parallelcluster-environment/resources/raid/partial/_raid_common.rb index 80ed01343..e9d28ab1b 100644 --- a/cookbooks/aws-parallelcluster-environment/resources/raid/partial/_raid_common.rb +++ b/cookbooks/aws-parallelcluster-environment/resources/raid/partial/_raid_common.rb @@ -112,11 +112,13 @@ # Stop mdadm RAID device execute "Deactivate array, releasing all resources" do command "mdadm --stop #{raid_dev}" + default_env true end # Remove the Superblocks execute "Erase the MD superblock from a device" do command "mdadm --zero-superblock #{devices_list}" + default_env true end # Remove RAID from /etc/mdadm.conf