From owner-freebsd-questions@freebsd.org Tue Dec 27 04:36:31 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 41221C924EB for ; Tue, 27 Dec 2016 04:36:31 +0000 (UTC) (envelope-from universite@ukr.net) Received: from frv197.fwdcdn.com (frv197.fwdcdn.com [212.42.77.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0336E1D54 for ; Tue, 27 Dec 2016 04:36:30 +0000 (UTC) (envelope-from universite@ukr.net) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-Id:To:Subject:From:Date:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QlhL7a4j6336qwXdXG3OWDS+93x9vcQc+rtKiRJlqfM=; b=gFApGD2Zzw4RufwRG+bd/9g7Q3 +Qaa/mw6KBFdIFMF3LwD+/+9ucYU895bQfHG1Atf8+MSHTuN19gtJ/hRjafbNUp/88EQ0fX8fexaO gmsgw5K6+1Jnonib45U984zjIy327Bm5m30waKMcXH1+NL6joqLsICz4MMxHcNki9xy8=; Received: from [10.10.10.34] (helo=frv34.fwdcdn.com) by frv197.fwdcdn.com with smtp ID 1cLjUr-000F21-E2 for freebsd-questions@freebsd.org; Tue, 27 Dec 2016 06:36:21 +0200 Date: Tue, 27 Dec 2016 06:36:21 +0200 From: Vladislav Prodan Subject: Re[2]: Re[2]: ZFS mount fails after upgrade to 11.0 To: freebsd-questions@freebsd.org X-Mailer: mail.ukr.net 5.0 Message-Id: <1482812892.100169697.kol6idos@frv34.fwdcdn.com> In-Reply-To: References: <1482008447.788498772.101qcjaz@frv34.fwdcdn.com> <1482519286.774978322.bvtkg7zq@frv34.fwdcdn.com> X-Reply-Action: reply Received: from universite@ukr.net by frv34.fwdcdn.com; Tue, 27 Dec 2016 06:36:21 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: binary Content-Disposition: inline X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2016 04:36:31 -0000 --- Original message --- From: "Erwan Legrand" Date: 27 December 2016, 00:17:14 > On Fri, Dec 23, 2016 at 8:00 PM, Vladislav Prodan wrote: > > Sorry for the unhurried response. > > No worries! > > > Please show output: > > > > zfs list > > gpart show > > camcontrol devlist > > diskinfo -v /dev/diskid/DISK-Z1E7725Jp2 > > diskinfo -v /dev/diskid/DISK-Z1E75J4Kp2 > > I have installed FreeBSD 11 on a spare disk. I can mount my old pool > with "-o altroot=/mnt" without any trouble. But for some reason, > /dev/diskid is gone. I wonder why it is so and I want it back. For inclusion option diskid (/dev/diskid) meets the variable kern.geom.label.disk_ident.enable=1 (in /boot/loader.conf) While I prefer to use gpart label. > > In the following output the spare disk I have installed FreeBSD 11 on > is "ada0" and "zroot" is a new pool. "tank" is my old pool, which is > mirrored on "ada1" and "ada2". I plan to move my data to the new pool > and then remove the disks one by one from the old pool to add them to > the new. The freebsd-boot partitions on these disk are too small > nowadays anyway. Thus, repartitioning them sounds like a good idea. Good idea. You then make the correct pool of HDD with 4KB sectorsize. > # gpart show > => 40 1953525088 ada0 GPT (932G) > 40 1024 1 freebsd-boot (512K) > 1064 984 - free - (492K) > 2048 4194304 2 freebsd-swap (2.0G) > 4196352 1949327360 3 freebsd-zfs (930G) > 1953523712 1416 - free - (708K) > > => 34 3907029101 ada1 GPT (1.8T) > 34 6 - free - (3.0K) > 40 128 1 freebsd-boot (64K) > 168 3907028960 2 freebsd-zfs (1.8T) > 3907029128 7 - free - (3.5K) > > => 34 3907029101 ada2 GPT (1.8T) > 34 6 - free - (3.0K) > 40 128 1 freebsd-boot (64K) > 168 3907028960 2 freebsd-zfs (1.8T) > 3907029128 7 - free - (3.5K) > # diskinfo -v /dev/ada1 > /dev/ada1 > 512 # sectorsize > 2000398934016 # mediasize in bytes (1.8T) > 3907029168 # mediasize in sectors > 4096 # stripesize > 0 # stripeoffset > 3876021 # Cylinders according to firmware. > 16 # Heads according to firmware. > 63 # Sectors according to firmware. > Z1E75J4K # Disk ident. > Not_Zoned # Zone Mode > > # diskinfo -v /dev/ada2 > /dev/ada2 > 512 # sectorsize > 2000398934016 # mediasize in bytes (1.8T) > 3907029168 # mediasize in sectors > 4096 # stripesize > 0 # stripeoffset > 3876021 # Cylinders according to firmware. > 16 # Heads according to firmware. > 63 # Sectors according to firmware. > Z1E7725J # Disk ident. > Not_Zoned # Zone Mode > > # zpool status > pool: tank > state: ONLINE > status: One or more devices are configured to use a non-native block size. > Expect reduced performance. > action: Replace affected devices with devices that support the > configured block size, or migrate data to a properly configured > pool. > scan: resilvered 13.5K in 0h0m with 0 errors on Mon Dec 26 02:07:35 2016 > config: > > NAME STATE READ WRITE CKSUM > tank ONLINE 0 0 0 > mirror-0 ONLINE 0 0 0 > ada1p2 ONLINE 0 0 0 block size: 512B > configured, 4096B native > ada2p2 ONLINE 0 0 0 block size: 512B > configured, 4096B native > > errors: No known data errors > -- Vladislav V. Prodan System & Network Administrator support.od.ua