From owner-freebsd-questions@FreeBSD.ORG Thu Apr 9 13:39:14 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DBB1106566C for ; Thu, 9 Apr 2009 13:39:14 +0000 (UTC) (envelope-from mlfreebsd@streamingedge.com) Received: from mail.streamingedge.com (mail.streamingedge.com [66.151.192.165]) by mx1.freebsd.org (Postfix) with ESMTP id 5335B8FC18 for ; Thu, 9 Apr 2009 13:39:14 +0000 (UTC) (envelope-from mlfreebsd@streamingedge.com) Received: from mail.streamingedge.com (localhost.streamingedge.com [127.0.0.1]) by mail.streamingedge.com (Postfix) with ESMTP id A4B4F119EF4 for ; Thu, 9 Apr 2009 09:39:12 -0400 (EDT) Received: from [172.17.0.115] (unknown [172.17.0.115]) by mail.streamingedge.com (Postfix) with ESMTPA id 895DE119EEF for ; Thu, 9 Apr 2009 09:39:12 -0400 (EDT) Message-ID: <49DDFA72.6090901@streamingedge.com> Date: Thu, 09 Apr 2009 09:38:58 -0400 From: Jacques Manukyan Organization: StreamingEdge User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20090409114731.GA4871@zptr-nb01> In-Reply-To: <20090409114731.GA4871@zptr-nb01> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: cannot kill process with kill -9 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jacques.manukyan@streamingedge.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2009 13:39:14 -0000 Eray Aslan wrote: > On Thu, Apr 09, 2009 at 09:41:31AM +0200, Pieter Donche wrote: > >> I have a mount_nfs process that refuses to get killed : >> # ps -jaxw | grep mount >> root 60342 1 60289 60289 0 D ?? 0:00.00 mount_nfs >> > [...] > >> How to I get this process killed? >> > > reboot. You can't kill a process with a D flag. Google for > uninterruptible sleep There is a rare exception that doesn't always work. But you can find processes that have locked onto that mount point and kill those. Then try unmounting or killing that NFS mount. Get lsof in /usr/ports/sysutils/lsof and see what's keeping that mount point open. Then kill those processes. But again, this may not work. The only way to release processes marked with a D flag is to reboot. -- Jacques Manukyan