On Fri, Mar 08, 2013 at 10:19:36AM +0100, Maroš Žilka wrote: > Hi, > > we have problem and its bit complicated to explain but i will try. > There are two servers on same LAN (let's say server A and server B) on > both is mounted same storage(S1) on /apps/ . We created dir on that > storage /test so on server A and server B it shoes as /apps/test but > on server A we mounted on /apps/test other storage (S2) and on server > B there was mounted again other storage (S3). We wanted to delete > /apps from both servers so we first unmounted S3 on server B and > deleted test dir (which was shared on A and B) which made server A > messed up coz there was still mounted S2 on path which doesnt rly > exist now...
OK. Let me see if I have this right? Server A: /apps -> S1:/ /apps/test -> S2:/something Server B: /apps -> S1:/ /apps/test -> S3:/something On Server B: # umount /apps/test # rmdir /apps/test On Server A: # umount /apps/test No such file or directory Is that it? If so, you've hit the feature of *nix whereby deleted inodes (files, directories) are not removed from the system until all references to them are gone. No new processes can access the directory, but the existing ones (the mount) can. So, instead of umounting by directory name, try unmounting by target instead: # umount S2:/something > > when we list mounts with mount it shows is it but when we want to > umount it says path (dir) not found or doesnt exist. > > we tried to recreate test and then mount/umount it but that just > created new entry and after umounting original mount was still listed > by mount. > > If I am right mount reads info from /etc/mtab which is linked to /proc/mtab > > is there any way to flush/clear/update /proc/mtab ? Its important to > keep server running... > > Sorry for long post and thanks for any ideas :) > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: > http://lists.debian.org/CAGQ+rPHpUcPt2uZ+r=eR=dbw+6qukqk6ukipwyoi7n7t-tk...@mail.gmail.com >
signature.asc
Description: Digital signature