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.

"Retry unmounting disk share(s)" after shrinking array

Featured Replies

Hi guys-

 

Trying to shrink my array using spaceinvaderone's option 2 seen here:  

 

 

I was able to succesfully run the clear disk user script but when i try to stop the array, i get the "array stopping - retry unmounting disk share(s)..." error in the bottom left corner.

 

I have stopped VM's and docker.  I don't have any terminal windows open.  When i check the log, I see this on a loop (disk 2 is the one i performed the clear disk script on):

 

Dec 22 04:17:03 Nasgard emhttpd: Unmounting disks...
Dec 22 04:17:03 Nasgard emhttpd: shcmd (1139124): umount /mnt/disk2
Dec 22 04:17:03 Nasgard root: umount: /mnt/disk2: not mounted.
Dec 22 04:17:03 Nasgard emhttpd: shcmd (1139124): exit status: 32
Dec 22 04:17:03 Nasgard emhttpd: Retry unmounting disk share(s)...

 

in terminal ive tried this and this is what i see:

 

root@Nasgard:~# losetup
NAME       SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE        DIO LOG-SEC
/dev/loop1         0      0         1  1 /boot/bzfirmware   0     512
/dev/loop0         0      0         1  1 /boot/bzmodules    0     512
root@Nasgard:~# umount /var/lib/docker
umount: /var/lib/docker: not mounted.
root@Nasgard:~# umount /dev/loop2
umount: /dev/loop2: not mounted.

 

I've attached my diagnostics.  

 

Any way to unmount my disks so i can remove disk 2?  I don't want to risk rebooting the array because it looks like it'll lead to an unclean shutdown and prompt a parity check which is what i was trying to avoid.  

 

 

nasgard-diagnostics-20231222-0414.zip

Edited by omartian
more info

Solved by JorgeB

  • Community Expert

That currently seems to be an unavoidable issue when trying to use that script.  

  • Author
2 hours ago, JorgeB said:

That script should not be used with current releases, you can try this workaround.

 

https://forums.unraid.net/topic/145821-cant-unraid-stop-when-array-already-unmounted/?do=findComment&comment=1323316

 

This looks like it worked.  Thank you.  Anybody else seeing this i used these command lines in terminal where DiskX = disk that is caught in unmounting loop under the log (in my case disk2)

 

dd if=/dev/zero of=diskX bs=1M count=310

 

mkfs -t xfs diskX

 

mount diskX /mnt/diskX

 

Like magic, the array stopped and i was able to continue on w/the steps in the video.


 

Edited by omartian
typo

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.