November 5, 20241 yr I'm trying to shrink my array while preserving parity on v6.12.13. Per the wiki, I need to rm -rf /mnt/disk1/ mkdir /mnt/disk1/clear-me but I experience root@Tower:~# du -h /mnt/disk1/ 1.0K /mnt/disk1/root 1.0K /mnt/disk1/.Trash-99 2.5K /mnt/disk1/ root@Tower:~# du -h /mnt/disk2/ 1.0K /mnt/disk2/root 1.5K /mnt/disk2/ root@Tower:/# rm -rf /mnt/disk1/ rm: cannot remove '/mnt/disk1/root': Device or resource busy rm: cannot remove '/mnt/disk1/.Trash-99': Device or resource busy root@Tower:/# rm -rf /mnt/disk2/ rm: cannot remove '/mnt/disk2/root': Device or resource busy despite no processes root@Tower:~# lsof | grep /mnt/disk1 root@Tower:~# lsof | grep /mnt/disk2 root@Tower:~# pwd /root root is my share, which only inlcudes a different disk I copied to. I don't exlcude these disks, per the guide. Nonetheless, this is because the array is not stopped. root@Tower:/# fuser -mv /mnt/disk1 USER PID ACCESS COMMAND /mnt/disk1: root kernel mount /mnt/disk1 root@Tower:/# fuser -mv /mnt/disk2 USER PID ACCESS COMMAND /mnt/disk2: root kernel mount /mnt/disk2 So, I need to unmount the disks to fully clear them. Would this invalidate parity? I'm also trying to avoid the tedium of formatting disks. Edited November 5, 20241 yr by inkindar
November 5, 20241 yr Community Expert The clear script doesn't work correctly with current releases, if you still want to use that method, do it the manual way: https://forums.lime-technology.com/topic/61614-shrink-array-question/?tab=comments#comment-606335
November 5, 20241 yr Author 14 minutes ago, JorgeB said: The clear script doesn't work correctly with current releases, if you still want to use that method, do it the manual way: https://forums.lime-technology.com/topic/61614-shrink-array-question/?tab=comments#comment-606335 So it would seem the quickest way is to format these disks to be removed & then reconfig the array with valid parity?
November 5, 20241 yr Community Expert The quickest way would be to do a new config and re-sync parity, though that won't format the removed disks, but you can do that later with UD.
November 5, 20241 yr Author I should've clarified: quickest way with parity preserved? As I understand, the above wouldn't.
November 5, 20241 yr Community Expert Solution To preserve parity you would need to clear one disk at a time, and when all are cleared, do a new config without those disks.
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.