[opensuse] Duplicate mount points

openSUSE 13.1 server cat /etc/mtab displays duplicate mounts: /dev/sdc1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 /dev/sdh1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdi1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdj1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 /dev/sdk1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdl1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 Only the last is in /etc/fstab: /dev/disk/by-id/usb-External_AL25744_12345678_0714100001-0:0-part1 /mnt/ExTernal ext4 nofail 1 2 blkid shows only /dev/sdl1 drive is an external powered usb box containing two drives: fdisk -l /dev/sdl1 Disk /dev/sdl1: 2000.4 GB, 2000408723456 bytes, 3907048288 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes How do I remove the duplicate entries w/o rebooting my server? -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

On 01/03/2016 10:48 PM, Patrick Shanahan wrote:
openSUSE 13.1 server
cat /etc/mtab displays duplicate mounts:
/dev/sdc1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 /dev/sdh1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdi1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdj1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 /dev/sdk1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdl1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0
Only the last is in /etc/fstab:
/dev/disk/by-id/usb-External_AL25744_12345678_0714100001-0:0-part1 /mnt/ExTernal ext4 nofail 1 2
blkid shows only /dev/sdl1
drive is an external powered usb box containing two drives:
fdisk -l /dev/sdl1 Disk /dev/sdl1: 2000.4 GB, 2000408723456 bytes, 3907048288 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
How do I remove the duplicate entries w/o rebooting my server?
It seems they are "over-mounted" several times, so you could just do: $ while umount /mnt/ExTernal ; do : ; done Of course, no process should use files beneath the mount point to make umount work. BTW: mtab is a symlink nowadays, and there are nice tools out there to get a good overview over such a situation: $ findmnt --target /mnt/ExTernal (or without --target ...). Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

* Bernhard Voelker <mail@bernhard-voelker.de> [01-03-16 17:37]:
On 01/03/2016 10:48 PM, Patrick Shanahan wrote:
openSUSE 13.1 server
cat /etc/mtab displays duplicate mounts:
/dev/sdc1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 /dev/sdh1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdi1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdj1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 /dev/sdk1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdl1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0
Only the last is in /etc/fstab:
/dev/disk/by-id/usb-External_AL25744_12345678_0714100001-0:0-part1 /mnt/ExTernal ext4 nofail 1 2
blkid shows only /dev/sdl1
drive is an external powered usb box containing two drives:
fdisk -l /dev/sdl1 Disk /dev/sdl1: 2000.4 GB, 2000408723456 bytes, 3907048288 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
How do I remove the duplicate entries w/o rebooting my server?
It seems they are "over-mounted" several times, so you could just do:
$ while umount /mnt/ExTernal ; do : ; done
Of course, no process should use files beneath the mount point to make umount work.
BTW: mtab is a symlink nowadays, and there are nice tools out there to get a good overview over such a situation:
$ findmnt --target /mnt/ExTernal
(or without --target ...).
Stopped smb nfsserver and umounted /dev/sdl1 Tks, attempts umount even with "-f" indicate target is busy but lsof and fuser show nothing. while umount /mnt/ExTernal ;do : ; done umount: /mnt/ExTernal: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) findmnt --target /mnt/ExTernal TARGET SOURCE FSTYPE OPTIONS /mnt/ExTernal /dev/sdc1 ext4 rw,relatime,data=ordered /mnt/ExTernal /dev/sdh1 ext4 ro,relatime,data=ordered /mnt/ExTernal /dev/sdi1 ext4 ro,relatime,data=ordered /mnt/ExTernal /dev/sdj1 ext4 rw,relatime,data=ordered -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

04.01.2016 01:49, Patrick Shanahan пишет:
* Bernhard Voelker <mail@bernhard-voelker.de> [01-03-16 17:37]:
On 01/03/2016 10:48 PM, Patrick Shanahan wrote:
openSUSE 13.1 server
cat /etc/mtab displays duplicate mounts:
/dev/sdc1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 /dev/sdh1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdi1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdj1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 /dev/sdk1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdl1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0
Only the last is in /etc/fstab:
/dev/disk/by-id/usb-External_AL25744_12345678_0714100001-0:0-part1 /mnt/ExTernal ext4 nofail 1 2
blkid shows only /dev/sdl1
drive is an external powered usb box containing two drives:
fdisk -l /dev/sdl1 Disk /dev/sdl1: 2000.4 GB, 2000408723456 bytes, 3907048288 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
How do I remove the duplicate entries w/o rebooting my server?
It seems they are "over-mounted" several times, so you could just do:
$ while umount /mnt/ExTernal ; do : ; done
Of course, no process should use files beneath the mount point to make umount work.
BTW: mtab is a symlink nowadays, and there are nice tools out there to get a good overview over such a situation:
$ findmnt --target /mnt/ExTernal
(or without --target ...).
Stopped smb nfsserver and umounted /dev/sdl1
Tks, attempts umount even with "-f" indicate target is busy but lsof and fuser show nothing.
Are these directories exported by NFS? In this case they cannot be unmounted. I am not sure if stopping nfsserver actually "unexports" them or just make them inaccessible.
while umount /mnt/ExTernal ;do : ; done umount: /mnt/ExTernal: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
findmnt --target /mnt/ExTernal TARGET SOURCE FSTYPE OPTIONS /mnt/ExTernal /dev/sdc1 ext4 rw,relatime,data=ordered /mnt/ExTernal /dev/sdh1 ext4 ro,relatime,data=ordered /mnt/ExTernal /dev/sdi1 ext4 ro,relatime,data=ordered /mnt/ExTernal /dev/sdj1 ext4 rw,relatime,data=ordered
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

* Andrei Borzenkov <arvidjaar@gmail.com> [01-04-16 01:00]:
04.01.2016 01:49, Patrick Shanahan пишет: [...]
Stopped smb nfsserver and umounted /dev/sdl1
Tks, attempts umount even with "-f" indicate target is busy but lsof and fuser show nothing.
Are these directories exported by NFS? In this case they cannot be unmounted.
Yes, /mnt/ExTernal is exported via nfs, but not via device name. /mnt/ExTernal *is* mounted "now" as device /dev/sdl1 And I failed to mention I also stopped smb as there are windoz machines accessing the drive.
I am not sure if stopping nfsserver actually "unexports" them or just make them inaccessible.
while umount /mnt/ExTernal ;do : ; done umount: /mnt/ExTernal: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
findmnt --target /mnt/ExTernal TARGET SOURCE FSTYPE OPTIONS /mnt/ExTernal /dev/sdc1 ext4 rw,relatime,data=ordered /mnt/ExTernal /dev/sdh1 ext4 ro,relatime,data=ordered /mnt/ExTernal /dev/sdi1 ext4 ro,relatime,data=ordered /mnt/ExTernal /dev/sdj1 ext4 rw,relatime,data=ordered
tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Bernhard Voelker
-
Patrick Shanahan