From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 16 11:00:00 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.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 ESMTPS id BEA359F for ; Sun, 16 Feb 2014 11:00:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 98DF61346 for ; Sun, 16 Feb 2014 11:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1GB00Sc024903 for ; Sun, 16 Feb 2014 11:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1GB00Pa024902; Sun, 16 Feb 2014 11:00:00 GMT (envelope-from gnats) Resent-Date: Sun, 16 Feb 2014 11:00:00 GMT Resent-Message-Id: <201402161100.s1GB00Pa024902@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Vladislav V. Prodan" 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 ESMTPS id BB31FD61 for ; Sun, 16 Feb 2014 10:55:53 +0000 (UTC) Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A6E3F1333 for ; Sun, 16 Feb 2014 10:55:53 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s1GAtrp6067846 for ; Sun, 16 Feb 2014 10:55:53 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s1GAtr2C067845; Sun, 16 Feb 2014 10:55:53 GMT (envelope-from nobody) Message-Id: <201402161055.s1GAtr2C067845@cgiserv.freebsd.org> Date: Sun, 16 Feb 2014 10:55:53 GMT From: "Vladislav V. Prodan" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/186816: After adding a disk in the disk pool is lost geom disk X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Feb 2014 11:00:00 -0000 >Number: 186816 >Category: misc >Synopsis: After adding a disk in the disk pool is lost geom disk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 16 11:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Vladislav V. Prodan >Release: FreeBSD 10.0 >Organization: support.od.ua >Environment: FreeBSD vm-10-1.domain.com 10.0-STABLE FreeBSD 10.0-STABLE #0: Sun Feb 16 06:09:42 EET 2014 root@vm-10-1.domain.com:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I tried to increase the size of the pool by adding a larger disk. # gpart show => 34 16777149 ada0 GPT (8.0G) 34 1024 1 freebsd-boot (512K) 1058 990 - free - (495K) 2048 2097152 2 freebsd-swap (1.0G) 2099200 14677983 3 freebsd-zfs (7.0G) => 34 20971453 ada1 GPT (10G) 34 1024 1 freebsd-boot (512K) 1058 990 - free - (495K) 2048 2097152 2 freebsd-swap (1.0G) 2099200 18872287 3 freebsd-zfs (9.0G) => 34 20971453 diskid/DISK-VB7f1c16c2-98b6ad8e GPT (10G) 34 1024 1 freebsd-boot (512K) 1058 990 - free - (495K) 2048 2097152 2 freebsd-swap (1.0G) 2099200 18872287 3 freebsd-zfs (9.0G) #zpool attach zroot gpt/system-ada0 gpt/system-ada1 # zpool status pool: zroot state: ONLINE status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scan: resilver in progress since Sun Feb 16 12:42:08 2014 3,64G scanned out of 6,70G at 6,71M/s, 0h7m to go 3,64G resilvered, 54,40% done config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/system-ada0 ONLINE 0 0 0 gpt/system-ada1 ONLINE 0 0 0 (resilvering) errors: No known data errors And now I can not prescribe the boot sector at the beginning of the disc. # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1 gpart: No such geom: ada1. # gpart show => 34 16777149 ada0 GPT (8.0G) 34 1024 1 freebsd-boot (512K) 1058 990 - free - (495K) 2048 2097152 2 freebsd-swap (1.0G) 2099200 14677983 3 freebsd-zfs (7.0G) => 34 20971453 diskid/DISK-VB7f1c16c2-98b6ad8e GPT (10G) 34 1024 1 freebsd-boot (512K) 1058 990 - free - (495K) 2048 2097152 2 freebsd-swap (1.0G) 2099200 18872287 3 freebsd-zfs (9.0G) # ll /dev/gpt total 0 crw-r----- 1 root operator 0x57 16 фев 11:54 boot-0 crw-r----- 1 root operator 0x72 16 фев 12:39 boot-1 crw-r----- 1 root operator 0x59 16 фев 11:54 swap-ada0 crw-r----- 1 root operator 0x73 16 фев 12:39 swap-ada1 crw-r----- 1 root operator 0x5b 16 фев 11:54 system-ada0 crw-r----- 1 root operator 0x75 16 фев 12:39 system-ada1 # ll /dev | grep ad lrwxr-xr-x 1 root wheel 4 16 фев 11:54 ad4@ -> ada0 lrwxr-xr-x 1 root wheel 6 16 фев 11:54 ad4p1@ -> ada0p1 lrwxr-xr-x 1 root wheel 6 16 фев 11:54 ad4p2@ -> ada0p2 lrwxr-xr-x 1 root wheel 6 16 фев 11:54 ad4p3@ -> ada0p3 lrwxr-xr-x 1 root wheel 4 16 фев 11:54 ad6@ -> ada1 crw-r----- 1 root operator 0x48 16 фев 11:54 ada0 crw-r----- 1 root operator 0x4b 16 фев 11:54 ada0p1 crw-r----- 1 root operator 0x4d 16 фев 11:54 ada0p2 crw-r----- 1 root operator 0x4f 16 фев 11:54 ada0p3 crw-r----- 1 root operator 0x51 16 фев 11:54 ada1 >How-To-Repeat: gpart show zpool attach zroot gpt/system-ada0 gpt/system-ada1 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1 gpart show >Fix: >Release-Note: >Audit-Trail: >Unformatted: