From owner-freebsd-fs@FreeBSD.ORG Mon Dec 2 11:53:59 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59A99EBF for ; Mon, 2 Dec 2013 11:53:59 +0000 (UTC) Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 292E51D62 for ; Mon, 2 Dec 2013 11:53:58 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id qd12so21084585ieb.29 for ; Mon, 02 Dec 2013 03:53:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=URfIu0b5obJzmjUbCjmGNqMbopcfObPQSk4tg4DMatw=; b=phPiS1kHILc6aosRqCCYhCPKRDVlnPVSIk2FD6GYcejEqJtVugTBAAxPYtXP/83TIH sJmFP2wkgF/UyPtp8d7ehT9Sz81TxChxkSO2PZ/OjzoGerjf3bdf1yfu8P3JFRjdWXk8 LLkzWxT60g4EDVgWNia6N38qa+EX7XCtkRXXA2DGYMNBNm6j4iALaMs02hOm/HKAmlAs dw8Q1x53IfSroiqonYPsn0yFYgP/MgGuvuBB2mV+c0xVn7ZPhxgjrq8j5wAwbWYLFna0 GVhvG0h+J8GsgkggV1k/iH1/3udbCR7cE9QOHIeCSVjKkcKYXhsTI1t2dDlmLdI36VfY GqnA== MIME-Version: 1.0 X-Received: by 10.43.52.129 with SMTP id vm1mr24842966icb.10.1385985238379; Mon, 02 Dec 2013 03:53:58 -0800 (PST) Received: by 10.64.140.38 with HTTP; Mon, 2 Dec 2013 03:53:58 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Dec 2013 11:53:58 +0000 Message-ID: Subject: Re: ZVOL/istgt wrong placed on disk From: Tom Evans To: Johan Kooijman Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD FS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Dec 2013 11:53:59 -0000 On Mon, Dec 2, 2013 at 11:01 AM, Johan Kooijman wrote: > Hi all, > > The issue I'm having is the same as discussed over here: > http://freebsd.1045724.n5.nabble.com/zvol-and-zfs-send-no-file-on-the-receiving-side-td5024476.html > . > > I've added the zfs path to my istgt.conf config and are now stuck with this > setup: > > [root@san-head1 ~]# zfs list > NAME USED AVAIL REFER MOUNTPOINT > tank 25.6T 4.74T 3.93T /tank > tank/fish 21.7T 26.4T 16K - > > [root@san-head1 ~]# grep LUN0 /usr/local/etc/istgt/istgt.conf > LUN0 Storage /tank/fish 21T This is not a zvol, this is a file that istgt has created (as requested). As per the link you originally gave, zvols are created in /dev/zvol//. > > [root@san-head1 ~]# ls -lh /tank/fish > -rw-r--r-- 1 root wheel 21T Dec 2 11:57 /tank/fish > > Now.. it works, it exports to my virtualized setup, but I can't snapshot or > anything. Is there a way to get this situation restored to the way it > should be? > stop istgt dd if=/tank/fish of=/dev/zvol/tank/fish change the configuration file to point at the zvol not the file rm /tank/fish start istgt Cheers Tom