Skip to contentSkip to conversation

Strange umount problem in latest 2.4.0 kernels

DISCUSSION Udo A. Steinberg 6 participants 10 messages Jan 11, 2001

lore
Share & tools
lore
#0 lore raw

As previously reported by someone, there are occasional problems when shutting down with unmounting partitions, that are reported as busy for strange reasons.

Keith Owens said it was supposedly a Redhat shutdown script issue and I since I'm not using Redhat, it's most likely not that.

Upon fscking after reboot, I always have errors on a single inode and it's always the same one:

/dev/hdb1: Inode 522901, i_blocks is 64, should be 8. FIXED

Can someone tell me an easy and reliable way of figuring out which file (program) uses said inode? I think that's probably the key to figuring out why the partition is busy on umount.

-Udo.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 9 lines · Udo A. Steinberg

Upon fscking after reboot, I always have errors on a single inode and it's always the same one:

/dev/hdb1: Inode 522901, i_blocks is 64, should be 8. FIXED

Can someone tell me an easy and reliable way of figuring out which file (program) uses said inode? I think that's probably the key to figuring out why the partition is busy on umount.

ls -iR | grep 12345

--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
Quoted 4 lines · Daniel Phillips
Quoted 3 lines · Udo A. Steinberg

Upon fscking after reboot, I always have errors on a single inode and it's always the same one:

Quoted 8 lines
Quoted 6 lines

/dev/hdb1: Inode 522901, i_blocks is 64, should be 8. FIXED

Can someone tell me an easy and reliable way of figuring out which file (program) uses said inode? I think that's probably the key to figuring out why the partition is busy on umount.

ls -iR | grep 12345

find mount | grep hdb1 | cut -f3 -d' ' -inum 522901 -xdev

- no need to walk through all filesystems.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
Quoted 1 line

/dev/hdb1: Inode 522901, i_blocks is 64, should be 8. FIXED

Ok, culprit identified: /var/spool/lpd/lpd.lock

On another partition I had the same problem with httpd's error_log.

Since both of those seem to be log- and lock-files, maybe there's something wrong with file locking?

Anyway, disabled both lpd and httpd from the startup scripts and now the bug is triggered *every* time. I cannot reboot a single time without partitions being busy. When neither lpd nor httpd run, fsck finds nothing wrong.

The very strange stuff is umount at reboot:

umount: none busy - remounted read-only
umount: /: device is busy
Remounting root-filesystem read-only
mount: / is busy
Rebooting.

*fsck*

The "none" bit puzzles me the most. /etc/fstab and /etc/mtab look perfectly ok.

Has anyone got an idea? Everything worked well with 2.4.0 and Alan's tree up to -ac4, didn't try ac5, and ac6 is what messes up now.

-Udo.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw
Quoted 10 lines · Udo A. Steinberg
Quoted 1 line

/dev/hdb1: Inode 522901, i_blocks is 64, should be 8. FIXED

umount: none busy - remounted read-only

The "none" bit puzzles me the most. /etc/fstab and /etc/mtab look perfectly ok.

Has anyone got an idea? Everything worked well with 2.4.0 and Alan's tree up to -ac4, didn't try ac5, and ac6 is what messes up now.

Try to revert to -ac4 fs/super.c and see if it helps

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#5 lore raw
Quoted 10 lines · Alexander Viro
Quoted 8 lines

umount: none busy - remounted read-only

The "none" bit puzzles me the most. /etc/fstab and /etc/mtab look perfectly ok.

Has anyone got an idea? Everything worked well with 2.4.0 and Alan's tree up to -ac4, didn't try ac5, and ac6 is what messes up now.

Try to revert to -ac4 fs/super.c and see if it helps

That makes no difference. Still acting weird. Must be something else.

-Udo.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#6 lore raw
In reply to Udo A. Steinberg

Udo, you write:

Quoted 8 lines

Anyway, disabled both lpd and httpd from the startup scripts and now the bug is triggered *every* time. I cannot reboot a single time without partitions being busy. When neither lpd nor httpd run, fsck finds nothing wrong.

The very strange stuff is umount at reboot:

umount: none busy - remounted read-only

          ^^^^

Check the output of "mount" and/or your /etc/fstab for a device called "none". On my system, there is devpts which has device "none", so it is possible this is busy, and can't be unmounted, and hence root is also busy and can't be ro remounted. Maybe also check /proc/mounts for "none".

Quoted 4 lines

umount: /: device is busy
Remounting root-filesystem read-only
mount: / is busy
Rebooting.

Cheers, Andreas

Signature · 7 lines
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#7 lore raw
In reply to Alexander Viro
Quoted 8 lines · Udo A. Steinberg

The very strange stuff is umount at reboot:

umount: none busy - remounted read-only
umount: /: device is busy
Remounting root-filesystem read-only
mount: / is busy
Rebooting.

I just noticed another strange effect:

ps uxa misses a couple dozen processes. Effectively I'm seeing only the kernel processes, all gettys, rpc.portmap, bash and ps. All other processes, all daemons etc. are invisible. If I kill portmap another process becomes visible.

I've checked a couple of other machines, different setups etc. all with -ac6 and all show this behavior - also the umount stuff.

-Udo.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#8 lore raw
Quoted 2 lines

I've checked a couple of other machines, different setups etc. all with -ac6 and all show this behavior - also the umount stuff.

Wait for -ac7 and see if that fixes it. I think I know whats up there

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#9 lore raw
In reply to Alexander Viro
Quoted 9 lines · Udo A. Steinberg
Quoted 8 lines · Udo A. Steinberg

The very strange stuff is umount at reboot:

umount: none busy - remounted read-only
umount: /: device is busy
Remounting root-filesystem read-only
mount: / is busy
Rebooting.

Are you using devfs and do kernel threads have /dev/initctl open?

# lsof /dev
COMMAND     PID USER   FD   TYPE DEVICE SIZE NODE NAME
init          1 root   10u  FIFO    0,5       574 /dev/initctl
keventd       2 root   10u  FIFO    0,5       574 /dev/initctl
kapm-idle     3 root   10u  FIFO    0,5       574 /dev/initctl
kswapd        4 root   10u  FIFO    0,5       574 /dev/initctl
kreclaimd     5 root   10u  FIFO    0,5       574 /dev/initctl
bdflush       6 root   10u  FIFO    0,5       574 /dev/initctl
kupdate       7 root   10u  FIFO    0,5       574 /dev/initctl
i2oevtd       8 root   10u  FIFO    0,5       574 /dev/initctl
i2oblock      9 root   10u  FIFO    0,5       574 /dev/initctl
khubd        12 root   10u  FIFO    0,5       574 /dev/initctl
khttpd       16 root   10u  FIFO    0,5       574 /dev/initctl

-d

begin:vcard
n:Ford;David
x-mozilla-html:TRUE
url:www.blue-labs.org
adr:;;;;;;
version:2.1
email;internet:[email protected]
title:Blue Labs Developer
note;quoted-printable:GPG key: http://www.blue-labs.org/[email protected]=0D=0A
x-mozilla-cpt:;9952
fn:David Ford
end:vcard