Jump to content

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


omartian
Go to solution Solved by JorgeB,

Recommended Posts

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
Link to comment
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
Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...