Partition mounted and unmounted simultaneously

by Adam   Last Updated April 16, 2018 19:00 PM

To jump to the question, mount says the partition is already mounted and umount says that the partition is already unmounted, and fsck agrees with mount. Cannot fsck, mount or umount the partition without a reboot.

Now for details. An ext4 filesystem for a backup partition on an LVM setup went dirty, so I'm attempting to fsck it.

I was able to unmount it without complaints, and confirmed with mount output; it's no longer mounted.

However, when I run the fsck I get complaints that the filesystem is in use:

[email protected]# fsck -M -C0 -fy /dev/mapper/vg_dr-lv_backup2
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/dev/mapper/vg_dr-lv_backup2 is in use.
e2fsck: Cannot continue, aborting.

Meanwhile, nothing seems to be using the partition or the mount point:

[email protected]# lsof /dev/mapper/vg_dr-lv_backup2
[email protected]# fuser /dev/mapper/vg_dr-lv_backup2
[email protected]# lsof /backups/servername/backup2
[email protected]# fuser /backups/servername/backup2
[email protected]#

To be thorough:

[email protected]# lsof | grep backup2
[email protected]#

Yet fsck still complains that it is in use. Now the fun part; mount also thinks it's already mounted:

[email protected]# mount -v /dev/mapper/vg_dr-lv_backup2 /backups/servername/backup2/
mount: you didn't specify a filesystem type for /dev/mapper/vg_dr-lv_backup2
       I will try type ext4
mount: /dev/mapper/vg_dr-lv_backup2 already mounted or /backups/servername/backup2 busy

While the lsof / fuser output remains blank, and umount thinks it is not already mounted:

[email protected]# umount -v /dev/mapper/vg_dr-lv_backup2
Could not find /dev/mapper/vg_dr-lv_backup2 in mtab
umount: /dev/mapper/vg_dr-lv_backup2: not mounted

Without a way to force it to check a 'mounted' filesystem I am forced to reboot, however I cannot help but think there is simply something I'm missing.

One more thing I tried was using findmnt:

[email protected]# findmnt | grep backup2
[email protected]#

I am very open to suggestions.

Tags : lvm mount ext4 fsck

Related Questions

Can I truncate a corrupt directory?

Updated March 03, 2019 16:00 PM

Could reserved block count of zero hinder `fsck`?

Updated March 28, 2017 08:00 AM