Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

can't fully clear disks for array shrink

Featured Replies

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 by inkindar

Solved by JorgeB

  • 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.

  • Author

I should've clarified: quickest way with parity preserved? As I understand, the above wouldn't.

  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.