Re: netapp-alike snapshots?

2017-09-10 Thread Marc MERLIN
On Sat, Sep 09, 2017 at 10:43:16PM +0300, Andrei Borzenkov wrote: > 09.09.2017 16:44, Ulli Horlacher пишет: > > > > Your tool does not create .snapshot subdirectories in EVERY directory like > > Neither does NetApp. Those "directories" are magic handles that do not > really exist. Correct,

Re: netapp-alike snapshots?

2017-09-10 Thread A L
Perhaps netapp is using a VFS overlay. There is really only one snapshot but it is shown in the overlay on every folder. Kind of the same with samba Shadow Copies. From: Ulli Horlacher -- Sent: 2017-09-09 - 21:52 > On Sat 2017-09-09 (22:43), Andrei

Re: netapp-alike snapshots?

2017-09-09 Thread Ulli Horlacher
On Sat 2017-09-09 (22:43), Andrei Borzenkov wrote: > > Your tool does not create .snapshot subdirectories in EVERY directory like > > Neither does NetApp. Those "directories" are magic handles that do not > really exist. I know. But symbolic links are the next close thing (I am not a kernel

Re: netapp-alike snapshots?

2017-09-09 Thread Andrei Borzenkov
09.09.2017 16:44, Ulli Horlacher пишет: > > Your tool does not create .snapshot subdirectories in EVERY directory like Neither does NetApp. Those "directories" are magic handles that do not really exist. > Netapp does. > Example: > > framstag@fex:~: cd ~/Mail/.snapshot/ >

Re: netapp-alike snapshots?

2017-09-09 Thread Ulli Horlacher
On Sat 2017-09-09 (06:36), Marc MERLIN wrote: > > On Tue 2017-08-22 (15:22), Ulli Horlacher wrote: > > > With Netapp/waffle you have automatic hourly/daily/weekly snapshots. > > > You can find these snapshots in every local directory (readonly). > > > > I have found none, so I have implemented

Re: netapp-alike snapshots?

2017-09-09 Thread Marc MERLIN
On Sat, Sep 09, 2017 at 03:26:14PM +0200, Ulli Horlacher wrote: > On Tue 2017-08-22 (15:22), Ulli Horlacher wrote: > > With Netapp/waffle you have automatic hourly/daily/weekly snapshots. > > You can find these snapshots in every local directory (readonly). > > > I would like to have something

Re: netapp-alike snapshots?

2017-09-09 Thread Ulli Horlacher
On Tue 2017-08-22 (15:22), Ulli Horlacher wrote: > With Netapp/waffle you have automatic hourly/daily/weekly snapshots. > You can find these snapshots in every local directory (readonly). > I would like to have something similar with btrfs. > Is there (where?) such a tool? I have found none, so

Re: netapp-alike snapshots?

2017-08-22 Thread Ulli Horlacher
On Tue 2017-08-22 (19:36), Peter Grandi wrote: > Indeed and there is a fair description of some options for > subvolume nesting policies here which may be interesting to the > original poster: > > https://btrfs.wiki.kernel.org/index.php/SysadminGuide#Layout > > It is unsurprising to me that

Re: netapp-alike snapshots?

2017-08-22 Thread Peter Grandi
[ ... ] It is beneficial to not have snapshots in-place. With a local directory of snapshots, [ ... ] Indeed and there is a fair description of some options for subvolume nesting policies here which may be interesting to the original poster:

Re: netapp-alike snapshots?

2017-08-22 Thread Ulli Horlacher
On Tue 2017-08-22 (22:36), Roman Mamedov wrote: > > My users want the snapshots locally in a .snapshot subdirectory. > > Because Netapp do it this way - for at least 20 years and we have a > > multi-PB Netapp storage environment. > > Just a side note, you do know that only subvolumes can be

Re: netapp-alike snapshots?

2017-08-22 Thread Ulli Horlacher
On Tue 2017-08-22 (19:19), A L wrote: > Perhaps using a bind mount? It would look and work the same as a ordinary fs. > Just need to make sure du uses one filesystem. > > From: Ulli Horlacher -- Sent: 2017-08-22 > - 18:57 > > > On Tue 2017-08-22

Re: netapp-alike snapshots?

2017-08-22 Thread Roman Mamedov
On Tue, 22 Aug 2017 18:57:25 +0200 Ulli Horlacher wrote: > On Tue 2017-08-22 (21:45), Roman Mamedov wrote: > > > It is beneficial to not have snapshots in-place. With a local directory of > > snapshots, issuing things like "find", "grep -r" or even "du" will take

Re: netapp-alike snapshots?

2017-08-22 Thread A L
Perhaps using a bind mount? It would look and work the same as a ordinary fs. Just need to make sure du uses one filesystem. From: Ulli Horlacher -- Sent: 2017-08-22 - 18:57 > On Tue 2017-08-22 (21:45), Roman Mamedov wrote: > >> It is beneficial to

Re: netapp-alike snapshots?

2017-08-22 Thread Ulli Horlacher
On Tue 2017-08-22 (21:45), Roman Mamedov wrote: > It is beneficial to not have snapshots in-place. With a local directory of > snapshots, issuing things like "find", "grep -r" or even "du" will take an > inordinate amount of time and will produce a result you do not expect. Netapp snapshots are

Re: netapp-alike snapshots?

2017-08-22 Thread Ulli Horlacher
On Tue 2017-08-22 (18:08), Peter Becker wrote: > This is possible. Use the -b or -B option. > > -b basedir places the snapshot in basedir with a directory structure > that mimics the mountpoint > -B basedir places the snapshots in basedir with NO additional > subdirectory structure > >

Re: netapp-alike snapshots?

2017-08-22 Thread Roman Mamedov
On Tue, 22 Aug 2017 16:24:51 +0200 Ulli Horlacher wrote: > On Tue 2017-08-22 (15:44), Peter Becker wrote: > > Is use: https://github.com/jf647/btrfs-snap > > > > 2017-08-22 15:22 GMT+02:00 Ulli Horlacher : > > > With Netapp/waffle

Re: netapp-alike snapshots?

2017-08-22 Thread Peter Becker
This is possible. Use the -b or -B option. -b basedir places the snapshot in basedir with a directory structure that mimics the mountpoint -B basedir places the snapshots in basedir with NO additional subdirectory structure 2017-08-22 16:24 GMT+02:00 Ulli Horlacher

Re: netapp-alike snapshots?

2017-08-22 Thread Ulli Horlacher
On Tue 2017-08-22 (15:44), Peter Becker wrote: > Is use: https://github.com/jf647/btrfs-snap > > 2017-08-22 15:22 GMT+02:00 Ulli Horlacher : > > With Netapp/waffle you have automatic hourly/daily/weekly snapshots. > > You can find these snapshots in every local

Re: netapp-alike snapshots?

2017-08-22 Thread Peter Becker
Is use: https://github.com/jf647/btrfs-snap 2017-08-22 15:22 GMT+02:00 Ulli Horlacher : > With Netapp/waffle you have automatic hourly/daily/weekly snapshots. > You can find these snapshots in every local directory (readonly). > Example: > > framstag@fex:/sw/share:

netapp-alike snapshots?

2017-08-22 Thread Ulli Horlacher
With Netapp/waffle you have automatic hourly/daily/weekly snapshots. You can find these snapshots in every local directory (readonly). Example: framstag@fex:/sw/share: ll .snapshot/ drwxr-xr-x framstag root - 2017-08-14 10:21:47 .snapshot/daily.2017-08-15_0010 drwxr-xr-x framstag root -