Project

General

Profile

Actions

Bug #742

open

umount problems with multiple mounts

Added by corecode over 16 years ago. Updated over 1 year ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
Userland
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

hey,

yes, my fault, but:

%mount 
/dev/ad6s1a on / (ufs, local, soft-updates)
/dev/ad6s1b on /pbulk (ufs, local, soft-updates)
/ on /pbulk/clients/labospc67_1/root (null, local, read-only)
/pbulk/clients/labospc67_1/var on /pbulk/clients/labospc67_1/root/var (null, local)
/pbulk/clients/labospc67_1/tmp on /pbulk/clients/labospc67_1/root/tmp (null, local)
/pbulk/clients/labospc67_1/dev on /pbulk/clients/labospc67_1/root/dev (null, local)
/ on /pbulk/clients/labospc67_1/root (null, local, read-only)

%umount labospc67_1/root
umount: unmount of /pbulk/clients/labospc67_1/root failed: Device busy

%umount /pbulk/clients/labospc67_1/root/var
umount: unmount of /pbulk/clients/labospc67_1/root/var failed: Invalid argument

something is wrong here. i guess I can't umount the "upper" root mount, because it takes the "lower" root mount first. dito for the subdirs.

cheers
simon

Actions #1

Updated by tuxillo over 17 years ago

  • Description updated (diff)
  • Category set to Userland
  • Status changed from New to Feedback
  • Assignee deleted (0)
  • Priority changed from High to Normal
  • Target version set to 3.8

Hi,

I've tried to reproduced it with a similar mount setup but all went fine:

  1. df -h
    Filesystem Size Used Avail Capacity Mounted on
    /dev/vkd0s1a 2.0G 1.1G 757M 59% /
    devfs 1.0K 1.0K 0B 100% /dev
    procfs 4.0K 4.0K 0B 100% /proc
    / 2.0G 1.1G 757M 59% /mnt
    /var 2.0G 1.1G 757M 59% /mnt/var
    /usr 2.0G 1.1G 757M 59% /mnt/usr
  2. mount
    /dev/vkd0s1a on / (ufs, local)
    devfs on /dev (devfs, local)
    procfs on /proc (procfs, local)
    / on /mnt (null, local)
    /var on /mnt/var (null)
    /usr on /mnt/usr (null)
  3. umount /mnt
    unmount(/mnt): Cannot unmount: 3 mount refs still present
    umount: unmount of /mnt failed: Device busy
  4. umount /mnt/var
  5. umount /mnt/usr
  6. umount /mnt
  7. df -h
    Filesystem Size Used Avail Capacity Mounted on
    /dev/vkd0s1a 2.0G 1.1G 757M 59% /
    devfs 1.0K 1.0K 0B 100% /dev
    procfs 4.0K 4.0K 0B 100% /proc

Cheers,
Antonio Huete

Actions #2

Updated by tuxillo over 17 years ago

  • Status changed from Feedback to In Progress
  • Assignee set to tuxillo

Hi,

corecode pointed out I was missing an additional mount_null / /mnt in my test. After doing that I can reproduce the issue:

  1. df -h
    Filesystem Size Used Avail Capacity Mounted on
    /dev/vkd0s1a 2.0G 1.3G 558M 70% /
    devfs 1.0K 1.0K 0B 100% /dev
    procfs 4.0K 4.0K 0B 100% /proc
    / 2.0G 1.3G 558M 70% /mnt
    /var 2.0G 1.3G 558M 70% /mnt/var
    /usr 2.0G 1.3G 558M 70% /mnt/usr
    / 2.0G 1.3G 558M 70% /mnt
  2. umount /mnt
    unmount(0x8033214280): Cannot unmount: 2 mount refs still present
    umount: unmount of /mnt failed: Device busy
  3. umount /mnt/var/
    umount: unmount of /mnt/var failed: Invalid argument

Assigining this to myself.

Cheers,
Antonio Huete

Actions #3

Updated by tuxillo almost 3 years ago

  • Target version changed from 3.8 to 6.0
Actions #4

Updated by tuxillo over 1 year ago

  • Description updated (diff)
Actions

Also available in: Atom PDF