Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Nov 2020 16:50:04 +0100
From:      Andrea Venturoli <ml@netfence.it>
To:        freebsd-questions@freebsd.org
Cc:        bdrewery@FreeBSD.org
Subject:   Errors with snapshots (testing sysutils/zfstools)
Message-ID:  <5af06726-3cb6-0183-265c-7d2831798738@netfence.it>

next in thread | raw e-mail | index | archive | help
Hello.

I'm testing sysutils/zfstools, which will create hourly snapshots of all 
my ZFS pools, on a 12.2 box.

However, I see in the logs, every hour, the following messages:
> kernel: g_dev_taste: make_dev_p() failed (gp->name=zvol/zroot/vm/win10test/disk0@zfs-auto-snap_hourly-2020-11-28-16h00, error=63)
> kernel: g_dev_taste: make_dev_p() failed (gp->name=zvol/zroot/vm/win10test/disk0@zfs-auto-snap_hourly-2020-11-28-16h00p1, error=63)
> kernel: g_dev_taste: make_dev_p() failed (gp->name=zvol/zroot/vm/win10test/disk0@zfs-auto-snap_hourly-2020-11-28-16h00p2, error=63)
> kernel: g_dev_taste: make_dev_p() failed (gp->name=zvol/zroot/vm/win10test/disk0@zfs-auto-snap_hourly-2020-11-28-16h00p3, error=63)
> kernel: g_dev_taste: make_dev_p() failed (gp->name=zvol/zroot/vm/win10test/disk0@zfs-auto-snap_hourly-2020-11-28-16h00p4, error=63)

Now:

_ win10test is a zvol: I'm not really interested in it and I could 
disable snapshots on it (or even delete it), but I want to understand 
things;

_ looking for this in forums, I see someone suggesting error 63 means 
the snapshot name is too long; that's strange, as I've got even longer 
names (not zvol, though);

_ anyway, if it's true, I guess snapshot should not be created, but they 
are there; they also get deleted the next hour, since this volume is not 
in use, so there's really no change;

_ I tried this on a different machine (still at 12.1) and I get a 
different message:
> kernel: ZFS WARNING: Unable to create ZVOL zroot/vm/win10test/disk0@zfs-auto-snap_hourly-2020-11-28-16h00 (error=63).
Still the snapshots are there.

_ I guess ...p1, ...p2, ...p3, ...p4 refers to the partitions on the 
volume (in fact listed in /dev/zvol/zroot/vm/win10test/); I guess this 
should not be attempted at all (bug in zfstools?);

_ I've seen https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215067 and 
it's quite scary. Do we have to pay attention not too create too long names?


  bye & Thanks
	av.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5af06726-3cb6-0183-265c-7d2831798738>