Issue with VSS & Snapshot on TrueNAS Core 12

Raowlz

Cadet
Joined
Nov 13, 2020
Messages
6
Hello,

I've a strange issue, but it's my first time on TrueNAS Core, so maybe I've missed something.

I need help to solve this issue.

I'll try to exlpain my issue then what I have configure and how.

My issue is on Snapshot. I've configured a task with periodic snapshot (All 1Hours on a specific Dataset) but I only see the first snapshot from Windows as you can see below :

r/freenas - Issue with TrueNAS Core and Snapshot VSS (Shadow Copy)
From TrueNAS Core, I see all snapshot :

r/freenas - Issue with TrueNAS Core and Snapshot VSS (Shadow Copy)
My share is setup on SMB with following settings :

r/freenas - Issue with TrueNAS Core and Snapshot VSS (Shadow Copy)
Do you have any idea ?

Many thanks !!
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Well, there's an issue with how I was detecting snapshots with unique data in 12.0-RELEASE. Should be fixed in U1. But apart from that, we will only show snapshots where WRITTEN > 0 bytes. This is optimization for clients / server and also a necessity because there is a limit to how many snapshots Windows can present to users.
 

Raowlz

Cadet
Joined
Nov 13, 2020
Messages
6
Ok perfect. This is not a NAS in production, there is a way to test the U1 with this patch or not yet ?
Many thanks for your work.
 

GEOptic

Dabbler
Joined
Apr 18, 2018
Messages
42
Hi guys!

I also an issue with VSS. I see all snapshot on Truenas web and command line, but Windows does not list any!
Since upgrade to 12u1!

Have you found a solution?
 

GEOptic

Dabbler
Joined
Apr 18, 2018
Messages
42
Good Day, Gentlemen!

I made some tests yesterday night:

Disabled Shadow Copy on all SMB shares.
Stop/Start SMB service.
Enabled Shadow Copy on all SMB shares.
Stop/Start SMB service.

No success.

I remember on 11.2, we had to have at least 1 snapshot visible BEFORE we can enable Shadow Copy, otherwise it won't work.
But the periodic snapshots are there and working good.
Code:
Vol1/SMB-Root@auto-20210114.0800-2d                       256K      -     4.35G  -
Vol1/SMB-Root@auto-20210114.0900-2d                       767K      -     4.35G  -
Vol1/SMB-Root@auto-20210114.1000-2d                       527K      -     4.35G  -
Vol1/SMB-Root@auto-20210114.1100-2d                       935K      -     4.36G  -
Vol1/SMB-Root@auto-20210114.1200-2d                       504K      -     4.35G  -
Vol1/SMB-Root@auto-20210114.1300-2d                       591K      -     4.35G  -
Vol1/SMB-Root@auto-20210114.1400-2d                      1.62M      -     4.35G  -
Vol1/SMB-Root@auto-20210114.1500-2d                       551K      -     4.36G  -


I read somewhere that it might be an ACL issue, but no Shadow Copy even on new SMB share.

The SAMBA logs has no events on VSS.
Any speficic log file or should I changeSMB log level!?
 

GEOptic

Dabbler
Joined
Apr 18, 2018
Messages
42

GEOptic

Dabbler
Joined
Apr 18, 2018
Messages
42
Tks Anados ... The system is in a production state. So, I will wait for the fix U2.
Upgrading from 11.3u5 to 12u1 gave us stable replications, but broke Shadow Copy which is a very useful feature for end users, but we also have backups. So the nice feature can wait! :)
 

GEOptic

Dabbler
Joined
Apr 18, 2018
Messages
42
Update ...
I removed
Code:
vfs objects = zfs_space zfsacl streams_xattr

From the "auxiliary parameters" of our shares.

VSS start showing previous version within minutes ! :)
 

Dariusz1989

Contributor
Joined
Aug 22, 2017
Messages
185
Update ...
I removed
Code:
vfs objects = zfs_space zfsacl streams_xattr

From the "auxiliary parameters" of our shares.

VSS start showing previous version within minutes ! :)
This worked for me too. I had no shadow copies for months & was going bananas. Thank you so much!
 
Top