Re: Komplexes mount [ALMOST SOLVED]
Hallo,
bin mittlerweile auf eine Loesung fuer mein Problem gestossen. In
neueren Versionen von mount gibt es eine Option --rbind, die auch
submounts am neuen Ort einbindet. In der Version aus woody (2.11n) ist
das noch nicht vorgesehen, mit dem Backport von Adrian Bunk (2.11z)
funktioniert es.
Allerdings stehe ich jetzt vor einem neuen Problem. umount funktioniert
nicht mehr ohne weiteres fuer mit --rbind eingebundene Filesysteme:
root@stralsunder-10:/home/andy# mount
/dev/hda7 on /mnt/fileserver type ext3 (rw)
/dev/hdc1 on /mnt/fileserver/pub/data type ext3 (rw)
root@stralsunder-10:/home/andy# ls -l /mnt/fileserver/
total 64
drwxrwx--- 3 andy media 4096 Mar 6 21:06 incoming
drwxr-x--- 6 andy media 4096 Mar 9 19:37 pub
root@stralsunder-10:/home/andy# ls -lR /home/andy/ftp-server/
/home/andy/ftp-server/:
total 8
drwxr-xr-x 2 andy andy 4096 Feb 7 13:38 incoming
drwxr-xr-x 2 andy andy 4096 Feb 6 23:21 pub
/home/andy/ftp-server/incoming:
total 0
/home/andy/ftp-server/pub:
total 0
root@stralsunder-10:/home/andy# mount --rbind /mnt/fileserver/incoming/ /
home/andy/ftp-server/incoming/
root@stralsunder-10:/home/andy# mount --rbind /mnt/fileserver/pub/ /
home/andy/ftp-server/pub
root@stralsunder-10:/home/andy# mount
/dev/hda7 on /mnt/fileserver type ext3 (rw)
/dev/hdc1 on /mnt/fileserver/pub/data type ext3 (rw)
/mnt/fileserver/incoming on /home/andy/ftp-server/incoming type none
(rw,bind)
/mnt/fileserver/pub on /home/andy/ftp-server/pub type none (rw,bind)
root@stralsunder-10:/home/andy# umount /home/andy/ftp-server/incoming
umount: /home/andy/ftp-server/incoming: device is busy
root@stralsunder-10:/home/andy# umount /home/andy/ftp-server/pub
umount: /home/andy/ftp-server/pub: device is busy
root@stralsunder-10:/home/andy# lsof | grep ftp-server
lsof: WARNING: can't stat() ext3 file system /home/andy/ftp-server/
incoming/pub/data
Output information may be incomplete.
root@stralsunder-10:/home/andy#
Lazy umount (umount -l) funktioniert natuerlich, aber es irritiert mich
trotzdem schon, wieso er dauernd versucht, auf dieses nicht
existierende Verzeichnis zuzugreifen. Hat jemand eine Idee?
Schoenen Gruss,
Andreas
Reply to: