Possible to omit child FS on when doing recursive snapshot

Moderators: jhartley, MSR734, nola

Possible to omit child FS on when doing recursive snapshot

Post by shuman » Thu Apr 11, 2013 2:01 pm

Is it possible to flag a child filesystem so that no snapshot will be made when recursive shapshots are performed?

Example:
Code: Select all
NAME                       USED   AVAIL   REFER  MOUNTPOINT
zdata                    1.92Ti   784Gi  1.47Mi  /Volumes/zdata   <---------- create -r snapshot
zdata/Backups            96.4Gi   784Gi   476Ki  /Volumes/zdata/Backups
zdata/Backups/Lion       96.4Gi   784Gi  22.6Gi  /Volumes/zdata/Backups/Lion
zdata/Storage            40.0Gi   784Gi  18.4Gi  /Volumes/zdata/Storage
zdata/Users               914Gi   784Gi   332Ki  /Volumes/zdata/Users
zdata/Users/anika        7.90Gi   784Gi  1.33Gi  /Users/anika
zdata/Users/chris         901Gi   784Gi   250Gi  /Users/chris
zdata/Users/chris/Music   169Gi   784Gi   152Gi  /Users/chris/Music
zdata/Users/chris/vm     169Gi   784Gi   152Gi  /Users/chris/vm   <---------- Don't snapshot on -r - Manually only
zdata/Users/jaren        2.43Gi   784Gi   940Mi  /Users/jaren
zdata/Users/severin      2.55Gi   784Gi   623Mi  /Users/severin
zdata/Videos              915Gi   784Gi   908Gi  /Volumes/zdata/Videos

In the above, suppression of snapshot at 'data/Users/chris/vm when performing zfs snapshot -r zdata@now
- Mac Mini (Late 2012), 10.8.5, 16GB memory, pool - 2 Mirrored 3TB USB 3.0 External Drives
shuman Offline

User avatar
 
Posts: 96
Joined: Mon Sep 17, 2012 8:15 am

Re: Possible to omit child FS on when doing recursive snapsh

Post by grahamperrin » Fri Apr 12, 2013 12:20 am

I imagine that it's not possible.

Instead:

  1. script – or manually set – a hold on any snapshot that should be not destroyed
  2. perform a snapshot with recursion (without omission) of your collection of file systems
  3. destroy the one unwanted snapshot.

Step (a) is optional but recommended, with an assumption that you should hold at least one snapshot for incremental send purposes.

Step (c) may be scripted and if so: proceed with caution, to not inadvertently destroy what's required for an incremental send.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Possible to omit child FS on when doing recursive snapsh

Post by shuman » Fri Apr 12, 2013 6:07 pm

OK, that sounds way more complex than what I was looking for. I've been spending way too much time with zfs on linux and it's being noticed around the house. ;) I was hoping for a flag or something. Graham, thanks for the reply.
- Mac Mini (Late 2012), 10.8.5, 16GB memory, pool - 2 Mirrored 3TB USB 3.0 External Drives
shuman Offline

User avatar
 
Posts: 96
Joined: Mon Sep 17, 2012 8:15 am

Re: Possible to omit child FS on when doing recursive snapsh

Post by evystark » Wed Apr 17, 2013 4:22 am

Yes you can delete the child filesystem, but you need certain permissions to perform this task.
You can visit ASYANA here to know more about tanning products.
evystark Offline


 
Posts: 1
Joined: Wed Apr 17, 2013 4:18 am


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 0 guests

cron