Date: Tue, 27 Dec 2016 06:36:21 +0200 From: Vladislav Prodan <universite@ukr.net> To: freebsd-questions@freebsd.org Subject: Re[2]: Re[2]: ZFS mount fails after upgrade to 11.0 Message-ID: <1482812892.100169697.kol6idos@frv34.fwdcdn.com> In-Reply-To: <CA%2B4G5KYDyzpYP=rhhZZJFML9Pzn_0=hPzKx1bs3ZqCrtJeVvtw@mail.gmail.com> References: <CA%2B4G5Kantxu%2BCH86VV3by4RRYRGBaV%2BGTR45z7X01%2BAED0CsOQ@mail.gmail.com> <1482008447.788498772.101qcjaz@frv34.fwdcdn.com> <CA%2B4G5KaeuoEyNz8SSKLyGSyROXDRWLJ2Vr4oomR0TK4DkCqgpg@mail.gmail.com> <1482519286.774978322.bvtkg7zq@frv34.fwdcdn.com> <CA%2B4G5KYDyzpYP=rhhZZJFML9Pzn_0=hPzKx1bs3ZqCrtJeVvtw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--- Original message --- From: "Erwan Legrand" <freebsd@erwanlegrand.com> Date: 27 December 2016, 00:17:14 > On Fri, Dec 23, 2016 at 8:00 PM, Vladislav Prodan <universite@ukr.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1482812892.100169697.kol6idos>