add comments for raid scripts

This commit is contained in:
m0duspwnens
2025-01-09 16:14:01 -05:00
parent 0197cdb33d
commit 6888682f92
2 changed files with 9 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
# quick script to create raid
# this is an example of the base functions
parted -s /dev/nvme0n1 rm 1
parted -s /dev/nvme0n1 mklabel gpt
parted -s /dev/nvme0n1 mkpart primary xfs 0% 100%

View File

@@ -1,5 +1,13 @@
#!/bin/bash
#raid3.sh is a refinement of raid2.sh. raid2.sh was used to create the raid in testing
#More detailed logging
#More thorough RAID array cleanup
#Better organized cleanup procedures
#Simplified device wiping using more modern tools (sgdisk instead of dd)
#More robust handling of existing MD arrays
#The core RAID creation and mounting functionality remains the same between both scripts, but the second version has improved error handling and cleanup procedures.
# Exit on any error
set -e