From owner-freebsd-fs@FreeBSD.ORG Sat Oct 6 03:04:03 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E9BE5106566C for ; Sat, 6 Oct 2012 03:04:03 +0000 (UTC) (envelope-from ramquick@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 738008FC0C for ; Sat, 6 Oct 2012 03:04:02 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id hr7so1173342wib.13 for ; Fri, 05 Oct 2012 20:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=DgoXftZd0xWdmWgt1sWY8QF18T1kQ4LMPteOZ/qIP3w=; b=UiqXNP4NE8wvAuwYcNiFTMAkJP5tma8VCjrj3Ep15idVw03NQJUng+HxphMAtSD6ta J0AZR3P9Xy3V8i4hPRvmNCYYWpxtJb+EkIE5fcB573Wyc9vtSZdjiIs6HwUvYg4qHIZV 26ALBCNBCue6dolFdn4aGx54o3uB4x/RHf3DOw1g4Q7VhhmnB8JwBp6HpOobx79KRbdv o/j+CkZj/h1afLgSmaAklsUaYtYDrImuuDtbczanqyBqS4zbtYgZyM0BI0AMInR+RnPF Qnv2Bs0Zm6oTx3WOPAUwfowCE0yqLrjsBSk8wtBkpnwJlfIXiYiNNoIJhuEWHg1f2pz1 Coow== MIME-Version: 1.0 Received: by 10.180.86.202 with SMTP id r10mr7169441wiz.12.1349492641846; Fri, 05 Oct 2012 20:04:01 -0700 (PDT) Received: by 10.217.2.74 with HTTP; Fri, 5 Oct 2012 20:04:01 -0700 (PDT) In-Reply-To: <506D55B5.70403@brockmann-consult.de> References: <506C3EFC.2060602@FreeBSD.org> <506D55B5.70403@brockmann-consult.de> Date: Sat, 6 Oct 2012 08:34:01 +0530 Message-ID: From: Ram Chander To: Peter Maloney , freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Zfs import issue X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ram_chander250@yahoo.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2012 03:04:04 -0000 Yes importing means "zfs recv" , "df" hangs, "cd " to the filesystem hangs. Basically entire filesystem is inaccessbile. Once "zfs recv" completes, all is normal. On Thu, Oct 4, 2012 at 2:54 PM, Peter Maloney < peter.maloney@brockmann-consult.de> wrote: > I find this sort of thing to be common, but not exactly as you describe. > I don't know if I tried df, but "zfs list" hangs (as well as any other > zfs related command, maybe even zdb). And I don't know what you mean > "importing zfs snapshot", so I'm guessing you mean zfs recv. > > eg. > > zfs send somedataset@somesnapshot | ....... > (leave it running in background) > > zfs list > (works fine; I guess it works because send is read-only) > > zfs destroy somedataset@someothersnapshot > (hang; I guess because this is a write operation, so it needs to wait > for the read lock on zfs send to finish the transaction) > > zfs list > (hang) > > I'm not sure if df hangs too. > > At this point, using kill -9 doesn't solve anything, and if you kill the > zfs send, it's possible that every zfs command and df will hang. > > And I don't know what, but I'm mostly sure there is something I can run > that will make even "ls" hang after this point. > > > On 10/03/2012 03:34 PM, Andriy Gapon wrote: > > on 03/10/2012 14:43 Ram Chander said the following: > >> Hi, > >> > >> I am importing zfs snapshot to freebsd-9 from anther host running > >> freebsd-9. When the import happens, it locks the filesystem, "df" hangs > >> and unable to use the filesystem. Once the import completes, the > filesystem > >> is back to normal and read/write works fine. The same doesnt happen in > >> Solaris/OpenIndiana. > >> > >> # uname -an > >> FreeBSD hostname 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 > >> UTC 2012 root@farrell.cse.buffalo.edu:/ > >> usr/obj/usr/src/sys/GENERIC amd64 > >> > >> Zfs ver: 28 > >> > >> > >> Any inputs would be helpful. Is there any way to overcome this freeze ? > > What if you add -n option to df? > > > > > -- > > -------------------------------------------- > Peter Maloney > Brockmann Consult > Max-Planck-Str. 2 > 21502 Geesthacht > Germany > Tel: +49 4152 889 300 > Fax: +49 4152 889 333 > E-mail: peter.maloney@brockmann-consult.de > Internet: http://www.brockmann-consult.de > -------------------------------------------- > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >