Date: Sun, 5 Oct 2014 20:14:36 +0200 From: Nikolay Denev <ndenev@gmail.com> To: Steven Hartland <killing@multiplay.co.uk> Cc: freebsd-fs <freebsd-fs@freebsd.org> Subject: Re: Unable to create ZVOL (error=6) Message-ID: <CA%2BP_MZGbGL-OcxmQy40jPpdt-GN=Q-5ZwWeVwyKqQLg9s-ZrtA@mail.gmail.com> In-Reply-To: <8186C4F93E964D41891B3D4B7BA8A260@multiplay.co.uk> References: <CA%2BP_MZG6WF5U4Rb0QyveYG7M0An_r9QzHT0hcwNZwYY0wWoraw@mail.gmail.com> <8186C4F93E964D41891B3D4B7BA8A260@multiplay.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 5, 2014 at 5:54 PM, Steven Hartland <killing@multiplay.co.uk> 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" <ndenev@gmail.com> > To: "freebsd-fs" <freebsd-fs@freebsd.org> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BP_MZGbGL-OcxmQy40jPpdt-GN=Q-5ZwWeVwyKqQLg9s-ZrtA>