ZVOL/istgt wrong placed on disk
Tom Evans
tevans.uk at googlemail.com
Mon Dec 2 11:53:59 UTC 2013
On Mon, Dec 2, 2013 at 11:01 AM, Johan Kooijman <mail at 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 at 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 at 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 at 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
More information about the freebsd-fs
mailing list