From owner-freebsd-fs@FreeBSD.ORG Mon May 16 14:18:30 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC6B3106566C for ; Mon, 16 May 2011 14:18:30 +0000 (UTC) (envelope-from universite@ukr.net) Received: from otrada.od.ua (universite-1-pt.tunnel.tserv24.sto1.ipv6.he.net [IPv6:2001:470:27:140::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2A8558FC17 for ; Mon, 16 May 2011 14:18:29 +0000 (UTC) Received: from [IPv6:2001:470:28:140:c6b:1b7d:99a2:c4a2] ([IPv6:2001:470:28:140:c6b:1b7d:99a2:c4a2]) (authenticated bits=0) by otrada.od.ua (8.14.4/8.14.4) with ESMTP id p4GEINSg043100 for ; Mon, 16 May 2011 17:18:24 +0300 (EEST) (envelope-from universite@ukr.net) Message-ID: <4DD13225.6090802@ukr.net> Date: Mon, 16 May 2011 17:18:13 +0300 From: "Vladislav V. Prodan" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-92.0 required=5.0 tests=FREEMAIL_FROM,FSL_RU_URL, RDNS_NONE,SPF_SOFTFAIL,TO_NO_BRKTS_DIRECT,T_TO_NO_BRKTS_FREEMAIL, USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mary-teresa.otrada.od.ua X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (otrada.od.ua [IPv6:2001:470:28:140::5]); Mon, 16 May 2011 17:18:28 +0300 (EEST) Subject: The problem with backing up ZFS snapshots X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2011 14:18:30 -0000 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