Skip to content

Commit 4710315

Browse files
1JorgeBljm42
authored andcommitted
Update array-configuration.mdx
Safer and easier procedure to zero the disk
1 parent d307d65 commit 4710315

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

docs/unraid-os/using-unraid-to/manage-storage/array-configuration.mdx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -755,21 +755,20 @@ You can choose from two methods to remove a data disk:
755755

756756
Before you begin, ensure that you meet the following conditions:
757757

758-
- The disk you want to remove must be healthy and mounted.
759758
- This method allows you to remove only one disk at a time.
760759
- Note that there is no official support from LimeTech for this process; please proceed with caution.
761760

762761
:::
763762

764763
:::warning
765764

766-
This method will erase all data on the selected disk. Please verify that all files, including hidden files, are removed before proceeding.
765+
This method will erase all data on the selected disk. Please verify that all important data has been moved before proceeding.
767766

768767
:::
769768
To remove a disk using the parity-preserve method:
770769

771-
1. **Remove disk from shares:** Ensure the disk is excluded from all shares, including global share settings.
772-
2. **Start the array:** Start the array with the disk assigned and mounted.
770+
1. **Start the array in maintnance mode:** Click on the disk you want to remove and then click the **Erase** button. This will erase the file system from the device while still maintaining parity, then stop the array.
771+
2. **Start the array:** Start the array in normal mode, the disk to be erased won't mount but the remaining disks will be online during the process.
773772
3. **Record array assignments:** Note your array assignments, especially the %%parity drive|parity-drives%%, as a safety measure.
774773
4. **(Optional) Enable Turbo Write:** For faster zeroing, enable Reconstruct Write ("Turbo Write") in **Settings → Disk Settings**, but only if all drives are healthy.
775774
5. **Zero out the disk:** Use the alternative command-line method below to manually zero out the disk.
@@ -793,16 +792,7 @@ You can choose from two methods to remove a data disk:
793792
```bash
794793
umount /mnt/diskX
795794
```
796-
797-
2. With newer releases we need to mount a dummy fs image in place of the disk that we unmounted, or the array won't stop in the end:
798-
799-
```bash
800-
truncate -s 400M /tmp/xmini.img
801-
mkfs.xfs -f /tmp/xmini.img > /dev/null
802-
mount /tmp/xmini.img /mnt/diskX
803-
```
804-
805-
3. Zero out the disk with the following command:
795+
2. Zero out the disk with the following command:
806796
```bash
807797
dd bs=1M if=/dev/zero of=/dev/mdXp1 status=progress
808798
```

0 commit comments

Comments
 (0)