mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 11:12:51 +01:00
add comments for raid scripts
This commit is contained in:
@@ -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%
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user