Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2014 10:37:52 GMT
From:      "Vladislav V. Prodan" <admin@support.od.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/186814: Gpart when cloning does not transfer label name
Message-ID:  <201402161037.s1GAbqIY079576@cgiserv.freebsd.org>
Resent-Message-ID: <201402161040.s1GAe1fQ018517@freefall.freebsd.org>

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

>Number:         186814
>Category:       misc
>Synopsis:       Gpart when cloning does not transfer label name
>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 10:40:01 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:
Gpart when cloning does not transfer label name


I increased the size of the pool by adding a larger disk ada1:
#gpart backup ada0 > ada0.backup
#ee ada0.backup  # fix name
# cat ada0.backup
GPT 128
1   freebsd-boot       34     1024 boot-1
2   freebsd-swap     2048  2097152 swap-ada1
3    freebsd-zfs  2099200 14677983 system-ada1

#gpart restore ada1 < ada0.backup
#gpart resize -i 3 ada1

# gpart list | egrep 'name|^   type|label'
Geom name: ada0
   label: boot-0
   type: freebsd-boot
   label: swap-ada0
   type: freebsd-swap
   label: system-ada0
   type: freebsd-zfs
Geom name: ada1
   label: (null)
   type: freebsd-boot
   label: (null)
   type: freebsd-swap
   label: (null)
   type: freebsd-zfs
Geom name: diskid/DISK-VB7f1c16c2-98b6ad8e
   label: (null)
   type: freebsd-boot
   label: (null)
   type: freebsd-swap
   label: (null)
   type: freebsd-zfs
# 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 status
  pool: zroot
 state: ONLINE
  scan: none requested
config:

        NAME               STATE     READ WRITE CKSUM
        zroot              ONLINE       0     0     0
          gpt/system-ada0  ONLINE       0     0     0

errors: No known data errors


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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