From owner-freebsd-questions@FreeBSD.ORG Tue Jan 31 15:34:37 2006 Return-Path: X-Original-To: questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 092F016A422 for ; Tue, 31 Jan 2006 15:34:37 +0000 (GMT) (envelope-from frankstaals@gmx.net) Received: from smtp2.versatel.nl (smtp2.versatel.nl [62.58.50.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CE7143D45 for ; Tue, 31 Jan 2006 15:34:35 +0000 (GMT) (envelope-from frankstaals@gmx.net) Received: (qmail 13128 invoked by uid 0); 31 Jan 2006 15:34:34 -0000 Received: from ip176-173-59-62.adsl.versatel.nl (HELO [192.168.2.5]) ([62.59.173.176]) (envelope-sender ) by smtp2.versatel.nl (qmail-ldap-1.03) with SMTP for < >; 31 Jan 2006 15:34:34 -0000 Message-ID: <43DF8392.7000204@gmx.net> Date: Tue, 31 Jan 2006 16:34:42 +0100 From: Frank Staals User-Agent: Mozilla Thunderbird 1.0.7 (X11/20060105) X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Weird behaviour 'umount' on NFS disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 15:34:37 -0000 Hey, Usually I work at my laptop, if I'm at home I can mount some directories from my server so I can also access those files and I don't have to ftp them. For the mounting I use this script : frank@Riza$ cat /usr/local/bin/nfsmount #!/bin/sh srv="192.168.2.1" if [ "$1" = "-wlan" ]; then srv="192.168.5.1" fi echo "Mounting home/net/var->/mnt/var , home->/mnt/server and home/net/server->/mnt/series from $srv" mount $srv:/home/net/var/ /mnt/var/ mount $srv:/home/ /mnt/server/ mount $srv:/home/net/series/ /mnt/series/ frank@Riza$ The IP adres of my server is 192.168.2.1 when using LAN and it is accessable at 192.168.5.1 using WLAN. It is set up allowing mounts from my laptop using LAN as well as WLAN. This works perfectly. For unmounting the three NFS-mounts I use an other script which is just three times an 'umount' : #!/bin/sh umount /mnt/server umount /mnt/series umount /mnt/var df -m echo "/mnt/server , /mnt/series and /mnt/var unmounted" frank@Riza$ Up until a week ago this worked fine. I could mount and unmount the directories without any problems. But then a weird error occured. When I tried unmounting them. The umount command hangs when trying to unmount a disk but when I cancel the umount ( with Ctrl + c ) df shows that the disk is unmounted. It just won't give me a prompt again. The same thing happens when I try to unmount them manually. I can unmount a disk, but it just stops. To clear things up: root@Riza# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 4058062 3450302 283116 92% / devfs 1 1 0 100% /dev /dev/ad0s1d 33524236 23047782 7794516 75% /home 192.168.2.1:/home/net/var 75685352 57816262 11814262 83% /mnt/var 192.168.2.1:/home 52195402 29726280 18293490 62% /mnt/server 192.168.2.1:/home/net/series 151368706 128022780 11236430 92% /mnt/series root@Riza# umount /mnt/server/ ^C root@Riza# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 4058062 3450302 283116 92% / devfs 1 1 0 100% /dev /dev/ad0s1d 33524236 23047782 7794516 75% /home 192.168.2.1:/home/net/var 75685352 57816262 11814262 83% /mnt/var 192.168.2.1:/home/net/series 151368706 128022780 11236430 92% /mnt/series root@Riza# This is quite annoying since I can't use my script to unmount the disks anymore. I didnt' change anything to my mounts ( /etc/fstab ) and unmounting a DVD doesn't give any problems. The only thing I can see has changed is that at boot the system hangs at: Mounting NFS file systems: NFS access cache time=2 and I have to ctrl + c it to continue booting, this only happend before when I hadn't any network connection. But mounting the nfs-disks using my script did work. Anyone an Idea what I can do to fix this ? Running FreeBSD 7.0-Current by the way. Thanks in advance -- -Frank Staals