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.

Unable to remove corrupted home assistant VM from unraid

Featured Replies

A continuation of my issue from this thread: https://forums.unraid.net/topic/191010-rebooted-unraid-server-after-vm-issues-cache-server-not-mounting-due-to-filesystem-issue-btrfs-on-nvme-drive/#comment-1560780

I had a RAM stick fail which caused file corruption on my cache drive which then wouldn't mount.

After fixing the RAM, deleting the bad files which belonged to my VM (or so I thought), and rebuilding the docker image, everything started working again.

I realize now though that my VM came back automatically because it seems I never deleted those files. Running a scrub again now shows the same bad files in the syslog.

I stopped the VM and tried to run the scrub again, but it immediately aborts:

image.png

So now I am trying to remove the VM from my server through the UI, but it just hangs and does nothing. If I refresh, it seems nothing happened at all.

If I try this:

image.png

It will just stay stuck like this:

image.png

And if I refresh it just goes back to saying stopped.

How can I make sure this corrupted VM and it's files are completely removed?

Attached are diagnostics.

Also running another memory test just to verify the RAM is good again.

thearchive-diagnostics-20250612-1415.zip

Solved by JorgeB

  • Author

Update
I let memtest86 complete 2 runs and there were no errors.

Started the server back up, and manually deleted the offending files by navigating to the folder for the VM and deleting them from my Windows machine. They seemed to delete fine without giving an error.

I then decided to stop the array to see if that or putting it in maintenance mode would help.

Now the server is stuck trying to stop the array. It seems that it can't unmount the cache because it's busy:

image.png
I'm not sure where to go from here.

New diagnostics attached.

thearchive-diagnostics-20250612-1621.zip

Edited by VulpesDormiens
typo

  • Author

Update again

Found that running the command umount -l /dev/loop2 allowed the cache drive to be unmounted.

Started the array in maintenance mode, but don't think I can do much there I realize.

Started the array normally, and those files I thought I deleted for the VM are right back there. Perhaps during my previous issue the docker image was never deleted either.

Attempting to scrub the drive still aborts immediately , and I still need to run that command to be able to stop the array.

Also, the docker tab shows: Docker Service failed to start., and the VM tab shows: Libvirt Service failed to start. Not sure if this is expected or can point towards the issue.

thearchive-diagnostics-20250612-1811.zip

  • Solution

If the scrub is aborting, there's an issue with the filesystem, recommend backing up and reformatting.

  • Author
5 hours ago, JorgeB said:

If the scrub is aborting, there's an issue with the filesystem, recommend backing up and reformatting.

Yes, late last night I decided I was going to have to just reformat the drive. Fortunately with your help the other day I was able to get backups of everything, and I'm running again without too much hassle.

Switched to xfs for the cache, although honestly not too sure if it makes a significant difference for me.

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.