Monday, February 02, 2026

Re: Debbuging a hung filesystem

On Mon, Feb 02, 2026 at 05:24:43PM +0000, H. Hartzer wrote:
> On Fri Jan 30, 2026 at 2:52 AM UTC, H. Hartzer wrote:
> > Hi misc@,
> >
> > Fully patched 7.8 on amd64.
> >
> > I'm having some troubles with a filesystem that I have mounted. It's on
> > the same disk as everything else. The disk just passed a SMART test.
> > There's no dmesg errors. Other partitions seem to be fine.
> >
> > I just remounted the partition with userquota -- maybe that's related?
> >
> > Anything like ls /files/more/ will sit and hang in D state.
> >
> > For example:
> >
> > root 61851 0.0 0.0 884 424 p3 D+p 2:40AM 0:00.00 ls /files/more/
> > root 70837 0.0 0.0 884 428 p4 D+p 2:42AM 0:00.00 ls /files/more/parsnip
> >
> > # fstat | grep /files/more
> > root ksh 25124 3 /files/more 2 drwxr-xr-x rep 512
> >
> > fstat /files/more hangs as well.
> >
> > I can't kill or even kill -9 anything in D state, it seems.
> >
> > This is the partition mount information:
> >
> > /dev/sd0o on /files/more type ffs (local, noatime, nodev, noexec, nosuid, with quotas, synchronous)
> >
> > # ps aux | grep D+
> > root 25124 0.0 0.0 1688 1088 p0 D+p 2:16AM 0:00.30 -ksh (ksh)
> > root 55327 0.0 0.0 1432 1064 p2 D+p 2:40AM 0:00.04 -ksh (ksh)
> > root 61851 0.0 0.0 884 424 p3 D+p 2:40AM 0:00.00 ls /files/more/
> > root 70837 0.0 0.0 884 428 p4 D+p 2:42AM 0:00.00 ls /files/more/parsnip
> > root 2293 0.0 0.0 516 1108 p7 D+ 2:47AM 0:00.01 fstat /files/more
> > root 56370 0.0 0.0 120 320 p8 R+/0 2:50AM 0:00.00 grep D+
> >
> > Not sure where to go from here.
> >
> > Thanks!
> >
> > -Henrich
>
> Hi again,
>
> This is still stuck, with nothing new in dmesg. I have tried quotaoff
> and umount -f -- all are now hung in D state.
>
> Fortunately, the system is stable, but it would be nice to use this
> partition.

Use ps alx to get the wait channel things are waiting on.
This may help to understand where it hangs.

--
:wq Claudio

No comments:

Post a Comment