Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mdadmxfs [2023/11/06 10:14] – norman | mdadmxfs [2025/10/31 13:56] (current) – [Creating the initial 3 drive array] norman | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Creating the initial 3 drive array ===== | ===== Creating the initial 3 drive array ===== | ||
| - | First, create empty partitions to all drives: | + | Created |
| - | + | ||
| - | < | + | |
| - | n # Create a new partition | + | |
| - | p # Primary | + | |
| - | 1 # First partition | + | |
| - | [enter] # Starting point to first sector (default) | + | |
| - | [enter] # Ending point to last sector (default) | + | |
| - | t # Change partition type | + | |
| - | fd # Type: Linux raid autodetect | + | |
| - | w # Write changes to disc</ | + | |
| - | + | ||
| - | When empty RAID partitions have been created to all three discs, I created | + | |
| < | < | ||
| Line 56: | Line 44: | ||
| Now the RAID array is ready to use, and mounted automatically to /raid directory after every boot. | Now the RAID array is ready to use, and mounted automatically to /raid directory after every boot. | ||
| + | ====== Debian need: ====== | ||
| + | |||
| + | < | ||
| + | update-initramfs -u | ||
| + | </ | ||
| ===== Adding a new drive to the array ===== | ===== Adding a new drive to the array ===== | ||
| Line 61: | Line 54: | ||
| Let's imagine that now you have a new drive, /dev/sde, which you want to add to the previously created array without losing any data. | Let's imagine that now you have a new drive, /dev/sde, which you want to add to the previously created array without losing any data. | ||
| - | First the new drive needs to be partitioned as all the other drives: | + | Add to the RAID array: |
| - | + | ||
| - | < | + | |
| - | n # Create a new partition | + | |
| - | p # Primary | + | |
| - | 1 # First partition | + | |
| - | [enter] # Starting point to first sector (default) | + | |
| - | [enter] # Ending point to last sector (default) | + | |
| - | t # Change partition type | + | |
| - | fd # Type: Linux raid autodetect | + | |
| - | w # Write changes to disc</ | + | |
| - | + | ||
| - | Then it needs to be added to the RAID array: | + | |
| < | < | ||
| Line 91: | Line 72: | ||
| Let's imagine that the new size is now 764 (can be seen from "Total PE"). Now expand the logical volume to cover this: | Let's imagine that the new size is now 764 (can be seen from "Total PE"). Now expand the logical volume to cover this: | ||
| - | < | + | < |
| Then expand the XFS file system. This needs to be done during the file system is online and mounted: | Then expand the XFS file system. This needs to be done during the file system is online and mounted: | ||