The problem with backing up ZFS snapshots

Vladislav V. Prodan universite at ukr.net
Mon May 16 14:18:30 UTC 2011


I use a script that snapshots to backup with a working pool of the 
reserve pool of ZFS. https://gist.github.com/971271

  zroot/$fs -->> tank/backup/zroot/$fs
# zfs list | grep mysql
tank/backup/zroot/mysql           2,21G   843G   612M  /backup/zroot/mysql
zroot/mysql                       2,12G   438G  2,07G  /var/db/mysql
zroot/mysql/ibdata                10,3M   438G  10,0M  /var/db/mysql/ibdata
zroot/mysql/iblogs                11,2M   438G  10,0M  /var/db/mysql/iblogs

When I copy the partition /mysql, without embedded zroot/mysql/ibdata 
and zroot/mysql/iblogs, they fall off.
[23:09]mary-teresa:root->db/mysql# ll | more
total 2134129
drwx------  2 mysql  mysql        12  3 май 00:12 auth
drwx------  2 mysql  mysql       147  3 май 00:12 cacti
drwxr-xr-x  2 root   wheel         2 20 апр 00:19 ibdata
drwxr-xr-x  2 root   wheel         2 20 апр 00:19 iblogs

Only helps the manual removal of empty directories ibdata and iblogs and 
unmounting these filesystems and reassembly::
zfs umount zroot/mysql/ibdata
zfs umount zroot/mysql/iblogs
zfs mount -a


# FreeBSD 8.2-STABLE #0: Wed Apr 20 03:20:47 EEST 2011  amd64


-- 
Vladislav V. Prodan
VVP24-UANIC
+380[67]4584408
+380[99]4060508
vlad11 at jabber.ru


More information about the freebsd-fs mailing list