Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2014 10:55:53 GMT
From:      "Vladislav V. Prodan" <admin@support.od.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/186816: After adding a disk in the disk pool is lost geom disk
Message-ID:  <201402161055.s1GAtr2C067845@cgiserv.freebsd.org>
Resent-Message-ID: <201402161100.s1GB00Pa024902@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 &#1092;&#1077;&#1074; 11:54 boot-0
crw-r-----  1 root  operator  0x72 16 &#1092;&#1077;&#1074; 12:39 boot-1
crw-r-----  1 root  operator  0x59 16 &#1092;&#1077;&#1074; 11:54 swap-ada0
crw-r-----  1 root  operator  0x73 16 &#1092;&#1077;&#1074; 12:39 swap-ada1
crw-r-----  1 root  operator  0x5b 16 &#1092;&#1077;&#1074; 11:54 system-ada0
crw-r-----  1 root  operator  0x75 16 &#1092;&#1077;&#1074; 12:39 system-ada1

# ll /dev | grep ad
lrwxr-xr-x  1 root  wheel        4 16 &#1092;&#1077;&#1074; 11:54 ad4@ -> ada0
lrwxr-xr-x  1 root  wheel        6 16 &#1092;&#1077;&#1074; 11:54 ad4p1@ -> ada0p1
lrwxr-xr-x  1 root  wheel        6 16 &#1092;&#1077;&#1074; 11:54 ad4p2@ -> ada0p2
lrwxr-xr-x  1 root  wheel        6 16 &#1092;&#1077;&#1074; 11:54 ad4p3@ -> ada0p3
lrwxr-xr-x  1 root  wheel        4 16 &#1092;&#1077;&#1074; 11:54 ad6@ -> ada1
crw-r-----  1 root  operator  0x48 16 &#1092;&#1077;&#1074; 11:54 ada0
crw-r-----  1 root  operator  0x4b 16 &#1092;&#1077;&#1074; 11:54 ada0p1
crw-r-----  1 root  operator  0x4d 16 &#1092;&#1077;&#1074; 11:54 ada0p2
crw-r-----  1 root  operator  0x4f 16 &#1092;&#1077;&#1074; 11:54 ada0p3
crw-r-----  1 root  operator  0x51 16 &#1092;&#1077;&#1074; 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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402161055.s1GAtr2C067845>