From owner-freebsd-fs@FreeBSD.ORG Sun Sep 29 21:16:20 2013 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 61E488F4 for ; Sun, 29 Sep 2013 21:16:20 +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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D6F5428F9 for ; Sun, 29 Sep 2013 21:16:19 +0000 (UTC) Received: from [10.0.0.10] ([10.0.0.10]) (authenticated bits=0) by otrada.od.ua (8.14.4/8.14.5) with ESMTP id r8TLGCUT063397 for ; Mon, 30 Sep 2013 00:16:12 +0300 (EEST) (envelope-from universite@ukr.net) Message-ID: <52489897.1070306@ukr.net> Date: Mon, 30 Sep 2013 00:16:07 +0300 From: "Vladislav V. Prodan" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: fs@freebsd.org Subject: Zpool (2-mirror) with mixed ashift Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (otrada.od.ua [89.209.81.54]); Mon, 30 Sep 2013 00:16:12 +0300 (EEST) X-Spam-Status: No, score=-101.0 required=5.0 tests=ALL_TRUSTED, FREEMAIL_FROM, T_FILL_THIS_FORM_SHORT, T_TO_NO_BRKTS_FREEMAIL, USER_IN_WHITELIST autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mary-teresa.otrada.od.ua X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Sep 2013 21:16:20 -0000 Hi all! I have the misfortune. :( I had a system with two HDD with a cluster size of 512b. Due to lack of space in the system, it was decided to put the 4 3TB HDD in 2-mirror zfs pool I used the instructions from the forum: http://forums.freebsd.org/showthread.php?t=37819 But with the addition of the second mirror and the second mirror turned out to ashift = 9. Notice now zfs pool filled with more than 50% How can I safely do a second mirror in the pool ashift=12 without losing data? How to continue to create 2-mirror zfs pool for 4k HDD? Thank you. A little more than further information: FreeBSD 9.1-STABLE #0 r251351M: Sat Jun 15 01:22:15 EEST 2013 amd64 # zpool list tank NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT tank 5,44T 3,23T 2,21T 59% 1.16x ONLINE - # zfs list tank NAME USED AVAIL REFER MOUNTPOINT tank 3,41T 2,12T 186K /tank # zpool status pool: tank state: ONLINE scan: resilvered 2,38T in 8h46m with 0 errors on Mon Jun 17 02:32:29 2013 config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/disk3 ONLINE 0 0 0 gpt/disk4 ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 gpt/disk0 ONLINE 0 0 0 gpt/disk1 ONLINE 0 0 0 errors: No known data errors # zdb tank: version: 5000 name: 'tank' state: 0 txg: 47135 pool_guid: 13092523331396101530 hostid: 143250101 hostname: 'mary-teresa.XXXXX.ua' vdev_children: 2 vdev_tree: type: 'root' id: 0 guid: 13092523331396101530 children[0]: type: 'mirror' id: 0 guid: 3335739818 whole_disk: 0 metaslab_array: 34 metaslab_shift: 34 ashift: 12 asize: 3000586993664 is_log: 0 create_txg: 4 children[0]: type: 'disk' id: 0 guid: 11030443378289800725 path: '/dev/gpt/disk3' phys_path: '/dev/gpt/disk3' whole_disk: 1 DTL: 39 create_txg: 4 children[1]: type: 'disk' id: 1 guid: 11332687226484843334 path: '/dev/gpt/disk4' phys_path: '/dev/gpt/disk4' whole_disk: 1 DTL: 24 create_txg: 4 resilvering: 1 children[1]: type: 'mirror' id: 1 guid: 17121080319583017092 metaslab_array: 38 metaslab_shift: 34 ashift: 9 asize: 3000586993664 is_log: 0 create_txg: 47133 children[0]: type: 'disk' id: 0 guid: 4425616934581567964 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 1 create_txg: 47133 children[1]: type: 'disk' id: 1 guid: 5113772130885677504 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 1 create_txg: 47133 features_for_read: -- Vladislav V. Prodan System & Network Administrator http://support.od.ua +380 67 4584408, +380 99 4060508 VVP88-RIPE