Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2011 17:18:13 +0300
From:      "Vladislav V. Prodan" <universite@ukr.net>
To:        freebsd-fs@freebsd.org
Subject:   The problem with backing up ZFS snapshots
Message-ID:  <4DD13225.6090802@ukr.net>

next in thread | raw e-mail | index | archive | help
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@jabber.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DD13225.6090802>