Date: Mon, 2 Dec 2013 11:53:58 +0000 From: Tom Evans <tevans.uk@googlemail.com> To: Johan Kooijman <mail@johankooijman.com> Cc: FreeBSD FS <freebsd-fs@freebsd.org> Subject: Re: ZVOL/istgt wrong placed on disk Message-ID: <CAFHbX1LW7ZSa9ng=kQh6SSXGxA_40jNyBPcjLFMMVE5xaLsWEQ@mail.gmail.com> In-Reply-To: <CAHvs-HVUC_GYrUMzTD_jV0Kyri8iyj_JV=PJdj1ucDeGzwM1=A@mail.gmail.com> References: <CAHvs-HVUC_GYrUMzTD_jV0Kyri8iyj_JV=PJdj1ucDeGzwM1=A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 2, 2013 at 11:01 AM, Johan Kooijman <mail@johankooijman.com> 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/<tank>/<fs>. > > [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFHbX1LW7ZSa9ng=kQh6SSXGxA_40jNyBPcjLFMMVE5xaLsWEQ>