Date: Tue, 10 Jun 2008 08:32:15 -0700 From: "Tobias Hoellrich" <thoellri@adobe.com> To: "dhaneshk k" <dhaneshkk@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: RE: Adding a second disk to increase the space for /var on first dislk : but umount /var failed Message-ID: <E891374F64B9194FB5BFFF28935811CA02A3F111@namail2.corp.adobe.com> In-Reply-To: <BAY127-W3356B28DE13A8800D34469B2B30@phx.gbl> References: <20080609205426.N23640@awww.jeah.net><9145C6E6-4C2F-4DA3-B953-4A91DC4C476B@goldmark.org><BAY127-W43E749DD9C1EF75842072AB2B30@phx.gbl><484E32C9.5060709@otenet.gr> <BAY127-W3356B28DE13A8800D34469B2B30@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-questions@freebsd.org=20 > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of dhaneshk k > Sent: Tuesday, June 10, 2008 7:15 AM > To: questions@freebsd.org > Cc: Manolis Kiagias > Subject: Adding a second disk to increase the space for /var=20 > on first dislk : but umount /var failed >=20 > I am able to umount /mnt but not /var=20 >=20 > [root@storm ~]# umount /var/ > umount: unmount of /var failed: Device busy > [root@storm ~]# umount /mnt/ > [root@storm ~]# umount /var/ > umount: unmount of /var failed: Device busy > [root@storm ~]# df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/ad7s1a 496M 329M 127M 72% / > devfs 1.0K 1.0K 0B 100% /dev > /dev/ad7s1e 496M 5.4M 451M 1% /tmp > /dev/ad7s1f 44G 38G 2.9G 93% /usr > /dev/ad7s1d 1.4G 221M 1.1G 16% /var > devfs 1.0K 1.0K 0B 100% /var/named/dev > [root@storm ~]# umount /dev/ad7s1 > ad7s1 ad7s1a ad7s1b ad7s1c ad7s1d ad7s1e ad7s1f =20 > [root@storm ~]# umount /dev/ad7s1d=20 > umount: unmount of /var failed: Device busy > [root@storm ~]# umouny /var/=20 > bash: umouny: command not found > [root@storm ~]# umouny /var=20 > bash: umouny: command not found > [root@storm ~]# umount /var > umount: unmount of /var failed: Device busy > [root@storm ~]# pwd > /root > [root@storm ~]# umount /var > umount: unmount of /var failed: Device busy > [root@storm ~]#=20 >=20 >=20 >=20 > getting an error Error=20 > org.freedesktop.Hal.Device.PermissionDeniedByPolicy. >=20 > Details hal-storage-fixed -mount refused uid 0 How=20 > to fix this and umount /var > =20 >=20 > Any hints most welcome :=20 Did you switch to single user-mode (shutdown now) before trying to umount /var? If you did, there may be some other process still using files/dirs in "/var". If you have lsof installed (/usr/ports/sysutils/lsof), you can identify (as root) which process still using stuff in /var: santafe# lsof +D /var/ COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dhclient 321 _dhcp cwd VDIR 0,100 512 14578696 /var/empty dhclient 321 _dhcp rtd VDIR 0,100 512 14578696 /var/empty dhclient 321 _dhcp jld VDIR 0,100 512 14578696 /var/empty dhclient 321 _dhcp 6w VREG 0,100 1007 14582324 /var/db/dhclient.leases.msk0 devd 537 root 4u unix 0xc6a78188 0t0 /var/run/devd.pipe devd 537 root 5w VREG 0,100 3 14580313 /var/run/devd.pid syslogd 603 root 3w VREG 0,100 3 14580315 /var/run/syslog.pid syslogd 603 root 4u unix 0xc6a84310 0t0 /var/run/log syslogd 603 root 5u unix 0xc6a84188 0t0 /var/run/logpriv ... Stop the processes (dhclient, devd, syslogd, etc.) that still use /var and then try to umount it again. Hope this helps - Tobias
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E891374F64B9194FB5BFFF28935811CA02A3F111>