Bug 849463 - umount fails
Summary: umount fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-19 16:41 UTC by Harald Reindl
Modified: 2012-12-04 18:26 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 18:26:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
output of mentioned commands recdirected (stdout + errout) (4.82 KB, text/plain)
2012-08-20 10:32 UTC, Harald Reindl
no flags Details

Description Harald Reindl 2012-08-19 16:41:46 UTC
it is IMPOSSIBLE that /mnt/data is in use, there are ALL services stopped, all bind-mounts unmounted and only sshd is running beside systemd - how can it be that there is anything open while there is no process and "lsof" has no output to any open file?

[root@rh:~]$ ps aux | grep -v "\["
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  48084  4876 ?        Ss   16:44   0:03 /usr/lib/systemd/systemd
root      8307  0.0  0.0  33260  1508 ?        Ss   18:37   0:00 /usr/lib/systemd/systemd-journald
root      8309  0.0  0.0  81868  3300 ?        Ss   18:37   0:00 /usr/sbin/sshd -D
root      8386  0.0  0.0 126300  4716 ?        Ss   18:37   0:00 sshd: root@pts/0    
root      8388  0.1  0.0 116048  3980 pts/0    Ss   18:37   0:00 -bash
root      8676  0.0  0.0 115720  1212 pts/0    R+   18:39   0:00 ps aux

[root@rh:~]$ df
Dateisystem    Typ      Größe Benutzt Verf. Verw% Eingehängt auf
/dev/md1       ext4       29G    6,8G   23G   24% /
/dev/md2       ext4      3,6T    2,2T  1,4T   62% /mnt/data

[root@rh:~]$ umount /mnt/data 
umount: /mnt/data: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

Comment 1 Karel Zak 2012-08-20 08:15:51 UTC
Please, try

 LIBMOUNT_DEBUG=0xffff umount /mnt/data

you can also see

 strace -e umount,umount2 umount /mnt/data

output to verify the umount syscall failed.

Comment 2 Harald Reindl 2012-08-20 10:32:35 UTC
Created attachment 605656 [details]
output of mentioned commands recdirected (stdout + errout)

Comment 3 Ondrej Vasik 2012-08-20 10:55:21 UTC
Reassigning to util-linux, I don't see any connection with coreutils.

Comment 4 Karel Zak 2012-08-21 19:43:39 UTC
26595: libmount:      CXT: [0x7f6415c7c040]: umount(2) [target='/mnt/data', flags=0x00000000]
26595: libmount:      CXT: [0x7f6415c7c040]: umount(2) failed [errno=16]


It does not seem like umount(8) problem, according to kernel the mountpoint is really busy... what about dmesg output? Maybe you have any loop device, running process, whatever.

 # dmesg
 # lsblk
 # losetup -a

Comment 5 Harald Reindl 2012-08-21 19:55:23 UTC
go up to my initial report

there are only 5 processes including systemd, sshd and my shell
there are unmounted ANY bind-mounts for the raid10-array

so how the hell can there be any open files?

and no, sitting in front of the machine and killing even sshd
does not change anything expect the final count of THREE
prcoesses: systemd, systemd-journald and my bash in /root

Comment 6 Karel Zak 2012-08-27 08:38:22 UTC
Well, it does not have to be a problem with open files or running processes. The device may be referenced internally by kernel (see for example bug #808795).

Comment 7 Karel Zak 2012-11-22 11:02:47 UTC
Are you able to reproduce the problem with the latest kernel and util-linux?

Comment 8 Harald Reindl 2012-11-22 11:04:12 UTC
i will try this ASAP and give feedback, currently raid-check is running on my 4 TB RAID10 i liked to unmount for "fsck -Df"

Comment 9 Harald Reindl 2012-11-23 12:56:18 UTC
fine - with latest kernel and util-linux (always updates-testing on it works)

[root@rh:~]$ fsck.ext4 -Df /dev/md2
e2fsck 1.42.3 (14-May-2012)
Durchgang 1: Prüfe Inodes, Blocks, und Größen
data: |==                                                      |  4.2%


Note You need to log in before you can comment on or make changes to this bug.