Date: Sun, 6 Sep 2015 19:58:36 +0200 From: Willem Jan Withagen <wjw@digiware.nl> To: Zeus Panchenko <zeus@ibs.dn.ua> Cc: freebsd-fs@freebsd.org Subject: Re: can zfs snapshot be used to back LUN in ctl.conf ? Message-ID: <55EC7ECC.5050201@digiware.nl> In-Reply-To: <20150906201059.70248@smtp.new-ukraine.org> References: <20150827150027.10825@smtp.new-ukraine.org> <55EC4F3B.7090804@digiware.nl> <20150906201059.70248@smtp.new-ukraine.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6-9-2015 19:10, Zeus Panchenko wrote: > Willem Jan Withagen <wjw@digiware.nl> wrote: >>> istgt do allows that, while ctld fails to start and complains >>> >>> but if I copy the file from zfs snapshot to some place, then ctld starts >>> as expected ... >> >> As far as I know those snapshots are read-only. > > yes, and it is just what I want > >> So other that mount and use for reading backup stuff it does not really >> serve a purpose? > > file is NTFS volume, I need to provide it to win host ... ctld refuses > to do that even in ro mode :( > > >> And than still you'd next a "consistent" fs on the >> volume to do any useful work. So that would only work for filesystems >> that need a recover that does not involve writing to the volume. > > yes, no writing ... just reading ... and I wonder why istgt was doing > that fine but ctld refuses :( Okeeee, I'm in a sort of similar setup, but haven't tried snapshotting. Difference here is that I use a zvol as background storage. Now is there one thing which has bitten me before which making rsync backups... It is impossible to do getcwd when that is place within a snapshot, unless the snapdir flag is set to visible on the volume. Not doing so results in an error. So perhaps something like this is the difference between the two providers Example: sent 151 bytes received 368 bytes 1,038.00 bytes/sec total size is 0 speedup is 0.00 Now it works: # zfs get snapdir zfsraid/backups NAME PROPERTY VALUE SOURCE zfsraid/backups snapdir visible received # rsync -rav . sending incremental file list drwxr-xr-x 7 2015/06/17 11:35:11 . drwxr-xr-x 2 2010/01/29 13:13:49 Digiware Now it doesn't: # zfs set snapdir=hidden zfsraid/backups # rsync -rav . rsync: getcwd(): No such file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at util.c(1101) [Receiver=3.1.1] So you might need to set the property of the volume your backing file is on. --WjW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55EC7ECC.5050201>