From owner-freebsd-questions@FreeBSD.ORG Wed May 25 17:58:48 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1C461065678; Wed, 25 May 2011 17:58:48 +0000 (UTC) (envelope-from syshackmin@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id F37B88FC13; Wed, 25 May 2011 17:58:47 +0000 (UTC) Received: by bwz12 with SMTP id 12so9593916bwz.13 for ; Wed, 25 May 2011 10:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=5TugeaK8DK0ksjCgnHRtCDF547QTke05Hq7sTsB6oxA=; b=bDssHc5StsyfsnGjkf+7Of2UeF8jye8vQeiUZ3xnUd9vuXt1WD2QgM8S9wwzwcfjIK N1bn9d5P7/gfJWpLinh8u6VcUdJ3YrYIhijYKD3ZyWV8a4uZ10dxcZ6pM16zBWM1POvT Pi5zO9yUJTJuGAUJrPlewKiJz8upjRICAoIwI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=raMcVcR550OP5T6n9Xe80T1nnI1nQblBVJwA8rQ7htHHEnzRADf1ZaCwjRA5vu9J1J pnajqg2ly3YVBbBMaoHP/J1Rq34ADyfr+lLxz7MvAOWDtyLHAv34FLeq2vXlzk/awGMj wzUoNbgDxrwmb63uWG++fE5kzI4ebXbsM3+lA= MIME-Version: 1.0 Received: by 10.204.46.162 with SMTP id j34mr4267107bkf.210.1306346326019; Wed, 25 May 2011 10:58:46 -0700 (PDT) Received: by 10.205.37.129 with HTTP; Wed, 25 May 2011 10:58:45 -0700 (PDT) In-Reply-To: <20110525142128.GH1877@garage.freebsd.pl> References: <20110525142128.GH1877@garage.freebsd.pl> Date: Wed, 25 May 2011 13:58:45 -0400 Message-ID: From: Dave Cundiff To: Pawel Jakub Dawidek Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: ZFS promote failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 17:58:48 -0000 On Wed, May 25, 2011 at 10:21 AM, Pawel Jakub Dawidek wrote: > On Wed, May 11, 2011 at 11:50:51AM -0400, Dave Cundiff wrote: >> Hello, >> >> I'm seeing a strange problem trying to use zfs promote. >> >> [root@san2]# zfs snapshot san/sr@snap >> [root@san2]# zfs clone san/sr@snap san/sr5 >> [root@san2]# zfs promote san/sr5 >> cannot promote 'san/sr5': dataset is busy >> >> Being a freshly created dataset I'm not sure how it would be busy. Are >> there any caveats to using zfs promote on zvols? The snapshots are of >> ext3 formatted zvols. I don't really need to promote them but wanted >> to in case I needed to destroy the source for some reason. > > Which FreeBSD version is this? I just tried it on 9-CURRENT with ZFSv28 > and it works just fine, even if I've file systems mounted on top of > those ZVOLs. > Hi, I was using 8.1-RELEASE and upgraded to 8.2-RELEASE to make see if it improved. [root@san2 ~]# zpool upgrade This system is currently running ZFS pool version 15. All pools are formatted using this version. [root@san2 ~]# zfs upgrade This system is currently running ZFS filesystem version 4. All filesystems are formatted with the current version. [root@san2 ~]# uname -a FreeBSD san2.a2hosting.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 Little more detail. The zvol that is the source of the clone is an image I use for all my filesystems. I was able to create one clone and promote it. However, when I tried to do it a second time I received that error. Can you only have 1 promoted clone per source? I don't really need to promote them. I just wanted to be able to delete the source image once the box was full. If it has a ton of associated clones it'll be stuck there forever. Thanks, -- Dave Cundiff System Administrator A2Hosting, Inc http://www.a2hosting.com