2
[ID 879645 kern.notice] NOTICE: /: unexpected free inode 211471, run fsck(1M) -o f

How can i run fsck cleanly (/ unmounted) ? The only solutions i can see are: - detach the SDS mirror, fsck on the other metadevice, reboot on it, and sync back the mirror; - boot on a CDROM and run fsck (hope the CD will handle the RAID).

Is there a ways to force Solaris 10 to run fsck on next reboot ? How do you fsck your / on Solaris 10 ?

Benoît
  • 1,331
  • 3
  • 11
  • 23

2 Answers2

5

From the ok prompt:

boot -m milestone=none

should do it

James
  • 7,553
  • 2
  • 24
  • 33
  • Yes, this is the way to go. – Morven Sep 22 '09 at 04:47
  • OK, i've done that, but fsck'ing / while still mount rw does not fill alright. – Benoît Sep 22 '09 at 11:14
  • OBP is present only in SPARC machines. I would use boot -s to boot in single user mode and then fsck the filesystem. Is there a difference? – setatakahashi Sep 22 '09 at 13:04
  • At that point, nothing is running in the system that will be writing to disk, so it's safe. Reboot afterward. On an x86 system, you can do a 'reboot -- -m milestone=none' or 'reboot -- -s' to do the same thing, I'd have thought. – Morven Sep 23 '09 at 22:19
1

Unfortunately, boot -m milestone=none didn't work for us; we simply got the same recurring error message on boot.

Instead, we had to take the "boot on a CDROM and run fsck" route. Oracle has a detailed doc on it called How to Check the root (/), /usr, or /var File Systems From an Alternate Boot Device

Randall
  • 307
  • 2
  • 17