I recently upgraded a system from 134 to 134b and noticed that the amanda 
backups failed after the upgrade. This system has both flat directories which 
are tarred up and sent to the backup host as well as zfs snapshots which are 
tarred and sent to the backup host, but only the snapshot backups were failing. 
I'll note here that the gtar version on 134 is 1.22 and on 134b is 1.32. 

The command which failed is run prior to the backups to get the size estimate.


r...@host:# /usr/bin/gtar --create --verbose --file /dev/null --directory /etc 
--one-file-system --listed-incremental 
/opt/oso/amanda/var/amanda/gnutar-lists/etc.new --sparse --ignore-failed-read 
--totals .
Total bytes written: 70850560 (68MiB, 1.7GiB/s)

r...@host:# zfs snapshot pool/zones/host/o...@test

r...@host:# /usr/bin/gtar --create --verbose --file /dev/null --directory 
/opt/oso/.zfs/snapshot/test --one-file-system --listed-incremental 
/opt/oso/amanda/var/amanda/gnutar-lists/oso.new --sparse --ignore-failed-read 
--totals .
Segmentation Fault

And, after comparing them...the only thing I could see that was different at 
all was the .zfs directory being hidden so, I took a stab at unhiding it and 
reran the command...

r...@host:# zfs set snapdir=visible pool/zones/host/oso

r...@host:# /usr/bin/gtar --create --verbose --file /dev/null --directory 
/opt/oso/.zfs/snapshot/test --one-file-system --listed-incremental 
/opt/oso/amanda/var/amanda/gnutar-lists/oso.new --sparse --ignore-failed-read 
--totals .
[...]
Total bytes written: 40960 (40KiB, 2.3MiB/s)

So...it's the hidden zfs directory property that is causing gtar to segfault 
(at least in this specific case). I suppose now the question is why and what 
changed with gtar between 1.22 and 1.23 that it now cares that the .zfs 
directory is hidden where it didn't previously. I looked through the changelog 
and nothing jumped out at me, but given that the snapdir default value is 
hidden, anyone using amanda backups with zfs snapshots where the contents of 
the snapshot are tarred, it will segfault on the size estimate unless the 
snapdir value is set to 'visible'.

e.
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to