From owner-freebsd-fs@FreeBSD.ORG Sun Oct 5 18:14:39 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C95F73B4 for ; Sun, 5 Oct 2014 18:14:39 +0000 (UTC) Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [IPv6:2a00:1450:400c:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 646C3853 for ; Sun, 5 Oct 2014 18:14:39 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id m15so4908534wgh.4 for ; Sun, 05 Oct 2014 11:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6MkK1KNDhJBMqRFqciNXXmPDlSv8RlrMtT5sbUyhaKM=; b=W2ar8Gm9SsYXK6hMbD33FZK2WDtwjb0s4HxZBK9oHVMv52k6zF8pMKBTcaaX5uzarB Hcjw1BHHu7KEFX9Hz0HPlwMx6UyYovFfvUqdkvAQwczHoBxX3jiP3cHJclM+wA+7BtaR T8aB9x2vaVBYPizTfwQ9MRh4XcuxHN8uQpM1q2NKYeIHOdCRccLqGKhmjYviuC1r/kkY sshpk3PY81DlJnrJUWA7+ntvEIYoz6bCPEDdfh2KIX0Qm5qrouJmA7FWtDtnQ4+ud84E /d+V/ivJnHl7cuGe/h5OZedX3LDDTnc+naH7D7zb9i1P6NORVSo7oeDi85FUPwanOJmb YCbA== MIME-Version: 1.0 X-Received: by 10.180.91.164 with SMTP id cf4mr13672382wib.3.1412532876346; Sun, 05 Oct 2014 11:14:36 -0700 (PDT) Received: by 10.27.77.135 with HTTP; Sun, 5 Oct 2014 11:14:36 -0700 (PDT) In-Reply-To: <8186C4F93E964D41891B3D4B7BA8A260@multiplay.co.uk> References: <8186C4F93E964D41891B3D4B7BA8A260@multiplay.co.uk> Date: Sun, 5 Oct 2014 20:14:36 +0200 Message-ID: Subject: Re: Unable to create ZVOL (error=6) From: Nikolay Denev To: Steven Hartland Content-Type: text/plain; charset=UTF-8 Cc: freebsd-fs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2014 18:14:40 -0000 On Sun, Oct 5, 2014 at 5:54 PM, Steven Hartland wrote: > Just tried to reproduce this on 10.1-BETA2 FreeBSD 10.1-BETA2 #68 > r272005M without luck I'm afraid. > > Steps taken to try to reproduce: > mdconfig > mdconfig -a -t malloc -s 1G > zpool create zfs md0 > zfs set volmode=dev zfs > zfs create zfs/bhyve_volumes > zfs create zfs/bhyve_volumes/freebsd_amd64_10_stable > zfs snapshot -r zfs/bhyve_volumes@`/bin/date +\%H:\%M:\%S_\%d-\%m-\%Y` > > No errors where reported but also no zvols where created with no > /dev/zvol existing, which in itself seems broken. > > I also tried exporting and re-imported the pool still no zvol devs. > > Are their some other steps your taking? > > For reference this functionality was added by: > https://svnweb.freebsd.org/base?view=revision&revision=264145 > > Regards > Steve > > ----- Original Message ----- From: "Nikolay Denev" > To: "freebsd-fs" > Sent: Sunday, October 05, 2014 11:24 AM > Subject: Unable to create ZVOL (error=6) > > >> Hi, >> >> I have a cron to generate daily snapshots like this: >> >> 0 0 * * * root /sbin/zfs snapshot -r zfs/bhyve_volumes@`/bin/date >> +\%H:\%M:\%S_\%d-\%m-\%Y` >> >> And I've noticed that I have the following errors in dmesg: >> >> ZFS WARNING: Unable to create ZVOL >> zfs/bhyve_volumes/freebsd_amd64_10_stable@00:00:00_05-10-2014 >> (error=6). >> >> Snapshot looks ok, it's just that the ZVOL cdev is not created : >> >> [12:11][ndenev@nas:~]%zfs get creation >> zfs/bhyve_volumes/freebsd_amd64_10_stable@00:00:00_05-10-2014 >> >> NAME >> PROPERTY VALUE SOURCE >> >> zfs/bhyve_volumes/freebsd_amd64_10_stable@00:00:00_05-10-2014 >> creation Sun Oct 5 0:00 2014 - >> >> Error 6 would be ENXIO. >> I think this might be due to "volmode=dev" setting, as I've ruled out >> name lenght, or invalid characters. >> >> >> >> --Nikolay >> _______________________________________________ >> 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" >> > Hi Steven, I'm not taking other steps, and I'm running "FreeBSD nas.home.lan 10.0-STABLE FreeBSD 10.0-STABLE #13 r270295M: Thu Aug 21 22:05:37 UTC 2014 root@nas.home.lan:/usr/obj/usr/src/sys/NAS amd64" Can you try to set volmode back to "geom", so that you can create a snapshot that creates a cdev in /dev/zvol, and then set it to "dev" again, and try a new snapshot? --Nikolay