From owner-freebsd-fs@FreeBSD.ORG Mon Feb 23 10:06:21 2015 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77E63739 for ; Mon, 23 Feb 2015 10:06:21 +0000 (UTC) Received: from mail1.postbank.bg (mx.postbank.bg [195.242.126.253]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.postbank.bg", Issuer "GeoTrust DV SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9BAD8BC2 for ; Mon, 23 Feb 2015 10:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; d=postbank.bg; s=mail; c=relaxed/relaxed; q=dns/txt; i=@postbank.bg; t=1424685967; x=1427277967; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rJhzjD/KYLTNCVcPze2u/Z7qIgcUO3tK9YV+DGlQgDI=; b=A9BK3DHFI4vvFHzx7ahpF4j2eaNxwembCvP3kUqQklviqeRjquW5c6ExMnpAui3t Tk4FMNtbwUAqw2aIPWao0rYdJXrq91gt/8WU1bBcOe/hRtwwWI4H7JnBX8rYo8yW n5rIHiQ9HQH2OYtZl0AmduChRSAZpL53MD7fx/HBhaw=; X-AuditID: ac100165-f79f86d000002fb1-07-54eafb8f5785 Received: from sofdc01excv15.postbank.bg ( [10.1.129.38]) (using TLS with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by mail1.postbank.bg (Eurobank AD BG Outbound mail system) with SMTP id 9F.0A.12209.F8BFAE45; Mon, 23 Feb 2015 12:06:07 +0200 (EET) From: "Ivailo A. Tanusheff" To: Martin Simmons Subject: RE: ZVOL and snapshots length problem Thread-Topic: ZVOL and snapshots length problem Thread-Index: AdBND6RMju0eZwL0REa1ABKJVnnOtwAGG40ZAIoHAwA= Date: Mon, 23 Feb 2015 10:06:06 +0000 Message-ID: <1422065A4E115F409E22C1EC9EDAFBA422145ACC@sofdc01exc02.postbank.bg> References: <1422065A4E115F409E22C1EC9EDAFBA42214513E@sofdc01exc02.postbank.bg> <201502201612.t1KGCacu014655@higson.cam.lispworks.com> In-Reply-To: <201502201612.t1KGCacu014655@higson.cam.lispworks.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.2.31] Content-Type: text/plain; charset="us-ascii" content-transfer-encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAKsWRmVeSWpSXmKPExsXCxdioptv/+1WIwbftshbHHv9ks7g39wOL A5PHjE/zWTwmv5jLHsAU1cBok5iXl1+SWJKqkJJanGyrFB2QX1ySlJiXHavgklmcnJOYmZta pKSQmWKrZKykUJCTmJyam5pXYquUWFCQmpeiZMelgAFsgMoy8xRS85LzUzLz0m2VPIP9dS0s TC11DZXsEKZaqSkbGid8Zc+Yfkm9YKpYxfH5x1gbGHcJdTFyckgImEg8X3yBGcIWk7hwbz1b FyMXh5DAHCaJaVd+sIEk2ICKts3dwwRiiwhoSvQfWMIIYjMLmEoc3dQBZgsL6EksmXGABaJG X6Kr5yaUbSXRtXoZ2AIWAVWJuTPugc3kFfCXOHdzNSvEsg5GidkPmllBEpwCzhITp/SCDWUE uuj7qTVMEMvEJW49mc8EcamAxJI956GuFpV4+fgfK4QtK/HtwD+o43QkFuz+xAZha0ssW/ia GWKxoMTJmU9YJjCKzkIydhaSlllIWmYhaVnAyLKKUbI4Py0l2cAw2Ne9zMBQrwAajXpJ6ZsY gelhjQBj6g7GF1ecDjEKcDAq8fAaFL0KEWJNLCuuzD3EKMHBrCTCK/0TKMSbklhZlVqUH19U mpNafIgxGRg8E5mlRJPzgakrryTe0MTA0NTEyNDCwMzClDRhJXHe2EVPQ4QE0oHpLTs1tSC1 CGYLEwenVAOju51+p8xWL7dlwRtYAv2+3LX1UIiYoc7aEPXCuzq14mVlyxlJ1o3rVhhdmafc aTct71G2mtJxy76UQ38cmfvD/VNb9+pkzWrTU7DgunOzcNlMu6eKd2qXz/gSonz7+K6+DYsq D5f1hh7zWie+aeq7mATFamd5vpsfXzDvMlr7sPzyccaPy24qsRRnJBpqMRcVJwIAYLjZJlMD AAA= Cc: "freebsd-fs@freebsd.org" 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: Mon, 23 Feb 2015 10:06:21 -0000 Hi there, But how may I fix this? As far as I know ZFS both allows names with spaces inside and with more than= 63 symbols. So how may I make this work for me? Regards, Ivailo Tanusheff -----Original Message----- From: Martin Simmons [mailto:martin@lispworks.com] Sent: Friday, February 20, 2015 6:13 PM To: Ivailo A. Tanusheff Cc: freebsd-fs@freebsd.org Subject: Re: ZVOL and snapshots length problem >>>>> On Fri, 20 Feb 2015 13:19:28 +0000, Ivailo A Tanusheff said: > > Dear all, > > I have some trouble creating and manipulating ZVOL on my server. I am usin= g FreeBSD 10 and I am creating a little bit sophisticated structure, where I= create several file systems and volumes inside them for easy manipulation a= nd snapshot management. > An example structure is: > / / > / / > > Whenever my ZVOL path exceeds 63 characters, both when creating volume or= snapshot, I receive this error in my messages log: > Feb 20 13:05:04 FreeBSD kernel: g_dev_taste: make_dev_p() failed > (gp->name=3Dzvol/TANK/Bank > system/Core/DB@Daily_operations_2015-02-20-13:05, error=3D22) Feb 20 > 13:05:04 FreeBSD kernel: g_dev_taste: make_dev_p() failed > (gp->name=3Dzvol/TANK/Bank > system/Core/FS@Daily_operations_2015-02-20-13:05, error=3D22) Feb 20 > 13:05:05 FreeBSD kernel: g_dev_taste: make_dev_p() failed > (gp->name=3Dzvol/TANK/Bank > system/Core/Report@Daily_operations_2015-02-20-13:05, error=3D63) > > Feb 20 13:10:05 FreeBSD kernel: g_dev_taste: make_dev_p() failed > (gp->name=3Dzvol/TANK/Bank > system/Core/DB@Daily_operations_2015-02-20-13:10, error=3D22) Feb 20 > 13:10:05 FreeBSD kernel: g_dev_taste: make_dev_p() failed > (gp->name=3Dzvol/TANK/Bank > system/Core/FS@Daily_operations_2015-02-20-13:10, error=3D22) Feb 20 > 13:10:05 FreeBSD kernel: g_dev_taste: make_dev_p() failed > (gp->name=3Dzvol/TANK/Bank > system/Core/Report@Daily_operations_2015-02-20-13:10, error=3D63) > > As far as I digged into it this is due to impossibility of creation of /d= ev/zvol/... pointing to that volume or snapshot, while the volume/snapshot i= s still visible in the zfs list tree, although I am not quite sure I can use= it. > > Is there any way to fix this behavior or this is an implementation bug, no= t described in the manual? > If I create shorter names the problem disappears, but this is contra versi= on of what I needed, so it is a not acceptable solution. I think this is a limitation in FreeBSD device naming. error=3D22 is EINVAL, because you have a space in the name. error=3D63 is ENAMETOOLONG, because the name is longer than SPECNAMELEN (als= o 63 by coincidence). __Martin Disclaimer: This communication is confidential. If you are not the intended recipient, y= ou are hereby notified that any disclosure, copying, distribution or taking= any action in reliance on the contents of this information is strictly proh= ibited and may be unlawful. If you have received this communication by mista= ke, please notify us immediately by responding to this email and then delete= it from your system. Eurobank Bulgaria AD is not responsible for, nor endorses, any opinion, reco= mmendation, conclusion, solicitation, offer or agreement or any information= contained in this communication. Eurobank Bulgaria AD cannot accept any responsibility for the accuracy or co= mpleteness of this message as it has been transmitted over a public network.= If you suspect that the message may have been intercepted or amended, pleas= e call the sender.