SunOS 5.8 64bit kernel panic


"Hi everyone, I have a Sun V440 machine. The operating system was working fine, but after shutting it down using the shutdown command and turning it back on, I got a kernel panic error. I don't understand what happened. What does this issue indicate, and how can I fix it? I have no experience with Solaris or Unix."

Welcome @xcientist

I was passing by and saw your question was unanswered after about 16 hours, so I sent your screenshot and question to ChatGPT 4o.

ChatGPT 4o is really good, but you have to review it's suggestionx (like you would review anyone else) and make sure it is not suggesting action which could brick your system :slight_smile:

Caution is Advised: But It's a Good Starting Point

> ChatGPT 4o ..... says.....

You're encountering a kernel panic on your Sun Fire V440 running Solaris 8 (SunOS 5.8). The key part of the error message is:

Cannot mount root on /pseudo/md@0:0,0,blk fstype ufs
panic[cpu1]/thread=10408000: vfs_mountroot: cannot mount root

What This Means:

  • The system is trying to mount the root filesystem from a mirrored device (/pseudo/md@0:0,0), which is part of Solaris Volume Manager (SVM) or DiskSuite.
  • It's failing to do so, possibly because the metadata is corrupt or the metadevice drivers aren't being loaded.
  • This results in the kernel panic: it can't find or mount the root filesystem to proceed with booting.

Why It Might Have Happened:

  1. Filesystem corruption on shutdown.
  2. Metadevice config issues (e.g., /etc/system or /etc/vfstab misconfiguration).
  3. One or more disks in the mirror failed or is not accessible.
  4. Metadevice driver not loading at boot (commonly an issue in Solaris if md.conf or related entries are missing or corrupted).

How to Fix It:

Step 1: Boot from CD/DVD or network (ok prompt)

Insert a Solaris 8 CD/DVD or use a netboot image:

ok boot cdrom -s

or, if netbooting:

ok boot net -s

This boots into single-user mode so you can repair the system.

Step 2: Mount the root disk manually

Try to mount your original root partition:

mkdir /mnt
mount /dev/dsk/cXtXdXsX /mnt

(Replace cXtXdXsX with the actual device path. You may have to probe with format.)

Step 3: Check for SVM (Solaris Volume Manager) configuration

If you're using SVM (DiskSuite), you should find the files:

/mnt/etc/lvm/md.tab
/mnt/etc/lvm/mddb.cf
/mnt/etc/system

Make sure /etc/system has this line:

forceload: drv/md

Also check:

cat /mnt/etc/vfstab

Ensure that the root FS line points to the correct metadevice or physical disk.

Step 4: Fix or bypass metadevices

If the mirrored root is broken and you're in a hurry, you can:

  • Edit /mnt/etc/vfstab to point to the physical device instead of /dev/md/dsk/d0.
  • Remove or comment out the SVM-related lines in /mnt/etc/system.

Then unmount and reboot:

umount /mnt
reboot

Long-Term Solution:

If the root mirror is truly broken:

  • Boot from CD, mount physical root disk.
  • Backup data.
  • Rebuild metadevices from scratch, or switch to using physical partitions if you're unfamiliar with SVM.

If you want step-by-step help recovering this safely (with actual disk layout), let me know the output of:

format
metastat
cat /etc/system
cat /etc/vfstab

when you're in single-user mode from CD.

< End ChatGPT 4o, First Iteration

If some Solaris people come on line and are interested in this, I am sure they will have better suggestions, but in the meantime, maybe this helps?