Opawesome Posted October 7, 2019 Share Posted October 7, 2019 Hi, I decided to follow this method to remove a bunch of drives from my array : Clear_Drive_Then_Remove_Drive It seems however that I am getting the lowest speeds ever during the clearing of the drive : 6MB/s (see below). It even seems to keep getting lower and lower Any idea why and how to speed things up ? NB : I did change the Disk settings to the "reconstruct drive" mb_write_method. Many thanks G Script location: /tmp/user.scripts/tmpScripts/Clear an unRAID array data drive/script Note that closing this window will abort the execution of this script *** Clear an unRAID array data drive *** v1.4 Checking all array data drives (may need to spin them up) ... Found a marked and empty drive to clear: Disk 13 ( /mnt/disk13 ) * Disk 13 will be unmounted first. * Then zeroes will be written to the entire drive. * Parity will be preserved throughout. * Clearing while updating Parity takes a VERY long time! * The progress of the clearing will not be visible until it's done! * When complete, Disk 13 will be ready for removal from array. * Commands to be executed: ***** umount /mnt/disk13 ***** dd bs=1M if=/dev/zero of=/dev/md13 status=progress You have 60 seconds to cancel this script (click the red X, top right) Unmounting Disk 13 ... Clearing Disk 13 ... 5819596800 bytes (5.8 GB, 5.4 GiB) copied, 978 s, 5.9 MB/s Quote Link to comment
Opawesome Posted October 7, 2019 Author Share Posted October 7, 2019 (edited) 51 minutes ago, Opawesome said: Note that closing this window will abort the execution of this script I tried to close the window to abort the execution of the script but I don't think it worked. I still see many reads and writes from/on all the disks. It took more than an hour to do 7GB. I am very worried (the drive is 2TB)... Edited October 7, 2019 by Opawesome typo Quote Link to comment
JonathanM Posted October 7, 2019 Share Posted October 7, 2019 It would probably be better to simply remove the unneeded drives and rebuild parity than to struggle with this method. Are you afraid one or more of your active drives that you plan to keep is failing, and need to keep parity valid in case it dies? 1 Quote Link to comment
Opawesome Posted October 8, 2019 Author Share Posted October 8, 2019 Hi, No I am not worried of a failure. The drives on which the data is are brand new and have been tested with Preclear. Any idea as to how I can terminate the "Clear an unRAID array data drive" script in a clean maner ? G Quote Link to comment
JonathanM Posted October 8, 2019 Share Posted October 8, 2019 11 minutes ago, Opawesome said: Any idea as to how I can terminate the "Clear an unRAID array data drive" script in a clean maner ? Probably doesn't matter, except it may interfere with stopping the array. Personally I'd try stopping the array and see what happens. If it won't stop, look at the process list in the console and kill any dd processes. 1 Quote Link to comment
Opawesome Posted October 8, 2019 Author Share Posted October 8, 2019 Just now, jonathanm said: Probably doesn't matter, except it may interfere with stopping the array. Personally I'd try stopping the array and see what happens. If it won't stop, look at the process list in the console and kill any dd processes. Stopping the array worked fine. Thank you very much for the advice. As per your suggestion, I removed all the drives according to this method instead : Remove_Drives_Then_Rebuild_Parity Now Parity is rebuilding as expected. All numbers and speeds look much more normal to me now. The other method, although suposedly safer, definitely didn't look (at least to me) to be working in a way that seemed intended by the developers of Unraid. Quote Link to comment
JorgeB Posted October 8, 2019 Share Posted October 8, 2019 There appears to be a problem with the script and newer releases, it can still be done manually. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.