Snapshot Completion

Status
Not open for further replies.

skyline65

Explorer
Joined
Jul 18, 2014
Messages
95
I am having to rollback a snapshot. How can I tell if it is completed? Are there any scripts which will email me once it has?

Tahnks
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194

skyline65

Explorer
Joined
Jul 18, 2014
Messages
95
Your system didn't crash and is responding to pool IO.

No, it's an atomic operation.


No I accidently trashed a load of files from a dataset... and as I only write a few large files per week to it I just rolled back to the previous version which was earlier today
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
The system didnt crash.
Ah, ok. In that case, the rollback is done.

I think it should be nearly instantaneous, but I'm not sure.
 

skyline65

Explorer
Joined
Jul 18, 2014
Messages
95
I didnt think 2.5Tb of data would restore that quickly. :)

I only deleted a few 100Mb of files, but had moved the rest of the files to new Alphabetically named folders.
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
I didnt think 2.5Tb of data would restore that quickly. :)
ZFS is a copy on write file system. So, changes to already written blocks are written to free space and the metadata and pointers are updated to the newly written blocks. The existing data isn't changed/overwritten in place. So, reverting a snapshot simply rolls back the metadata and pointers (captured by the snapshot) to the ones that existed at the time of the snapshot. As Ericloewe stated, it's an atomic operation and since the data already exists in-place it takes a fraction of a second.
 

skyline65

Explorer
Joined
Jul 18, 2014
Messages
95
I did read about that after I had posted. :)
I think what threw me was the finder in MacOSX displayed the folders incorrectly, some had data in them others nothing. Disconnecting from my Freenas server and reattaching the share seems to have sorted it out.
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
I did read about that after I had posted. :)
I think what threw me was the finder in MacOSX displayed the folders incorrectly, some had data in them others nothing. Disconnecting from my Freenas server and reattaching the share seems to have sorted it out.
You can always force finder to refresh it's cache. Open terminal and type
Code:
sudo killall Finder
 

skyline65

Explorer
Joined
Jul 18, 2014
Messages
95
I could have just relaunched totalfinder aswell... my new problem is finder folder tags...
 

skyline65

Explorer
Joined
Jul 18, 2014
Messages
95
Some reason my Finder folder tags arent sticking. This is what caused my folders to gets messed up in the first place. I use Hazel and I have it set to ignore folders that have specific finder tags and process the ones that havent into alphabetical folders.
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
I could have just relaunched totalfinder aswell... my new problem is finder folder tags...
I have been more and more disappointed with OS X with every release since SnowLeopard, especially with the forced smb client signing that was introduce in 10.11.5
 

skyline65

Explorer
Joined
Jul 18, 2014
Messages
95
It has added some great new things however I do think they arent testing everything thoroughly. I used my old G4 running OS9 the other day and I swear the finder was far faster than my MacPro Hackintosh!
Having looked on Google it seems that the share wont keep the tags. Iwill have to think of another way for Hazel to ignore the Alphabetized folders.
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
Are you using SMB? Have you enabled vfs_fruit?

Ps: you could've cloned the snapshot too, and then restored files, rather than rolling back.
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
I would agree with that particularly starting with Mavericks forward. Seems like they are more interested in an annual release schedule than vetted software.

Agree with that. Issues keep piling up.
 

skyline65

Explorer
Joined
Jul 18, 2014
Messages
95
Are you using SMB? Have you enabled vfs_fruit?

Ps: you could've cloned the snapshot too, and then restored files, rather than rolling back.
No I haven't added the fruit option. Something I saw in a thread a few days back and hadn't got round to doing it.

It was easier to rollback. Basically I use software that monitors the share and when a file is copied over will create a folder with the files name then move it into a set of Alphabetical folders. It knows only to move the folders that don't have OS X tags. However at some point these tags disappeared and then it started a loop of creating/sorting folders. A complete mess. Luckily the rollback took it back to a state before the mess. I have managed to solve the problem with adding a comment to the folders. Although if they disappear, then it will mess up again. Maybe adding a special character to the folder name would be a better option?

In the old days of OSX server we were able to add an invisible space to the beginning of a folder which would force the folder to be displayed at the top of a list without the ugliness of staggered text. The problem however was that certain applications were unable to see the folders. It would be interesting to know how others manage to sort their folders.
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
Without fruit, Mac OS attributes (like labels) might not be stored.
 
Status
Not open for further replies.
Top