From owner-freebsd-fs@FreeBSD.ORG Sun Sep 29 21:40:29 2013 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F0E5026B for ; Sun, 29 Sep 2013 21:40:29 +0000 (UTC) (envelope-from prvs=1984e6c06e=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8EE382A12 for ; Sun, 29 Sep 2013 21:40:29 +0000 (UTC) Received: from r2d2 ([82.69.141.170]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50006171425.msg for ; Sun, 29 Sep 2013 22:40:20 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Sun, 29 Sep 2013 22:40:20 +0100 (not processed: message from valid local sender) X-MDDKIM-Result: neutral (mail1.multiplay.co.uk) X-MDRemoteIP: 82.69.141.170 X-Return-Path: prvs=1984e6c06e=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: fs@freebsd.org Message-ID: From: "Steven Hartland" To: "Vladislav V. Prodan" , References: <52489897.1070306@ukr.net> Subject: Re: Zpool (2-mirror) with mixed ashift Date: Sun, 29 Sep 2013 22:40:11 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 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:40:30 -0000 ashift is only automatically calculated in HEAD or 10 (currently in alpha) If you're running something older then use gnop to configure 4k sectors and then creation your pool on .nop device. Regards Steve ----- Original Message ----- From: "Vladislav V. Prodan" To: Sent: Sunday, September 29, 2013 10:16 PM Subject: Zpool (2-mirror) with mixed ashift > 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 > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.