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.

Kernel panic when disk is used

Featured Replies

Hi all,

 

Coming back from vacation, I had a situation where commands like "ls /mnt/user/Media" were hanging. I tried rebooting the server to unwedge things, but unraid couldn't unmount the disks because bash was holding a file handle in it. "ps aux" reported that my hung bash was in state "D", and kill -9 couldn't kill it.

 

So I held my breath and hard rebooted the server. Now unraid has a kernel panic within seconds of the login prompt. If I remove disk 4, it boots okay. (Although oddly, it says it can't start the array due to too many wrong or missing disks, but there's just one missing disk. What's up with that? In my futzing, somehow I got into a state where disk 1 was also unassigned, but I replaced super.dat with super.old and now it just says that disk 4 is missing.)

 

Before the kernel panic, there's an error:

 

Internal error xfs_mountfs_int(2) at line 840 of file fs/xfs/xfs_mount.c. Caller xfs_fs_fill_super+0x33c/0x3bb

 

After getting the prompt, there's a ton of stuff dumped to the console as part of the kernel panic. LMK if you need the last page -- I took a picture. Here are the last few lines:

 

[hex stuff] tick_nobz_idel_enter+hex stuff
[hex stuff] cpu_startup_entry+hex stuff
[hex stuff] start_secondary+hex stuff
---[ end trace 8513738cffbb74b7 ]--

 

There's stuff in there about page faults and semaphores.

 

Any ideas? I'm thinking I'll just replace the drive and hope unraid will rebuild the data. But I'm a little worried that won't work, since it's saying that I have too many wrong or missing disks...

 

I'm using the latest version of unraid and the controller BIOS.

 

P.S. It would be super nice if there was an option to have rsyslog write to the cache drive as well as /var/log/syslog. That way I would have a way of getting the syslog for the kernel panic to you guys.

The issue appears to be severe corruption in the XFS file system on the drive, so replacing the drive would not change anything.  Rebuilding onto another drive would just create a copy of the corruption an a different drive.

 

Try starting the array in Maintenance Mode (with the drive assigned) and then run xfs_repair on the drive, see Check Disk File systems.

  • Author

Try starting the array in Maintenance Mode (with the drive assigned)

 

Thanks for the reply. File system corruption would make sense, given that I had to do a hard powerdown. I did notice a message about the dirty bit being set.

 

But how can I start it in maintenance mode? The kernel panic prevents me from booting. Is there a way to tell unraid to boot straight into maintenance mode?

File system corruption should not be visible until the drive is mounted, which normally happens on array start.  So the solution probably is to edit config/disk.cfg and change startArray from "yes" to "no".  This should disable Auto Start of the array, allowing you to click the Maintenance Mode check box before manually starting the array.

 

This would have to be done with the server shut down and the flash drive in another machine.  The disk.cfg file is just a text file, and any text editor should work, and line endings don't matter with this file.

  • Author

Thanks Rob. Since I was already booted without disk4, I set startArray to "no", rebooted, then checked the xfs file system on all my disks. None had any errors, as far as I could tell. But I went ahead and did a "writable" repair of disk4. I then started the array in normal mode.

 

One thing though, and perhaps this is a separate issue... When I started the array in normal mode, it warned me that the array would be unprotected. After the start, it says "Unmountable disk present: Disk 2 • ()" Literally there is nothing between the parens. I don't have a disk2 installed. In the "Array Devices" section, disk 2 says both "Not installed" and "Unmountable".

 

Perhaps, this is some sort of cruft from when I removed disk2 beore... After verifying that the disk contents look okay, should I re-initialize the array and recompute parity?

I don't have a disk2 installed. In the "Array Devices" section, disk 2 says both "Not installed" and "Unmountable".

 

Perhaps, this is some sort of cruft from when I removed disk2 before...

I suspect you are right.  Good idea restoring an older super.dat, but vars for array drives are in both super.dat and disk.cfg, so might have been better to have restored both.  Check the Diagnostics - Disk 2 section of disk.cfg, and third disk position in super.dat.

 

After verifying that the disk contents look okay, should I re-initialize the array and recompute parity?

That sounds right.

  • Author

I'm back to goodness again. Thanks for the help. I'm a little concerned about the hang that precipitated all this, but I guess I'll treat that as a separate issue.

Archived

This topic is now archived and is closed to further replies.

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.