zpool raidz2 missing space?

Edho P Arief edho at myconan.net
Wed Jun 29 07:11:18 UTC 2011


My zpool seems to be missing ~500G of space. One of the disk
originally sized at around 1.65T which probably caused it but I've
replaced the partition and it should show full 4*1.8T (~7.2T) but it
still shows old capacity (4*1.65T ~ 6.6T).

What should be done? I've tried export/import cycle but the result is same.

Here's the output for various commands:

[root at einhart ~]# zpool status
  pool: dpool
 state: ONLINE
 scan: scrub repaired 320K in 4h59m with 0 errors on Tue Jun 28 13:47:32 2011
config:

        NAME                                            STATE     READ
WRITE CKSUM
        dpool                                           ONLINE       0
    0     0
          raidz2-0                                      ONLINE       0
    0     0
            gptid/fe13fc94-9bfe-11e0-bd6e-0030678cf5c1  ONLINE       0
    0     0
            gptid/0dc1601d-9f95-11e0-9a98-0030678cf5c1  ONLINE       0
    0     0
            gptid/1e76f2ad-9d5d-11e0-997b-0030678cf5c1  ONLINE       0
    0     0
            gptid/8d23200a-9d5c-11e0-997b-0030678cf5c1  ONLINE       0
    0     0

errors: No known data errors
[root at einhart ~]# zpool list
NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
dpool  6.62T  4.61T  2.02T    69%  1.00x  ONLINE  -
[root at einhart ~]# glabel status
                                      Name  Status  Components
gptid/0dc1601d-9f95-11e0-9a98-0030678cf5c1     N/A  ad4p5
gptid/1b214d9b-9f95-11e0-9a98-0030678cf5c1     N/A  ad4p9
gptid/1e76f2ad-9d5d-11e0-997b-0030678cf5c1     N/A  ad6p5
gptid/2570c3bb-9d5d-11e0-997b-0030678cf5c1     N/A  ad6p9
                               label/swap1     N/A  mirror/gm0b1
gptid/8d23200a-9d5c-11e0-997b-0030678cf5c1     N/A  ad8p5
gptid/99ee1556-9d5c-11e0-997b-0030678cf5c1     N/A  ad8p9
gptid/fe13fc94-9bfe-11e0-bd6e-0030678cf5c1     N/A  ad10p5
gptid/128af023-9bff-11e0-bd6e-0030678cf5c1     N/A  ad10p9
                                 ufs/root0     N/A  mirror/gm0a
                               label/swap0     N/A  mirror/gm0b0
                                 ufs/home0     N/A  mirror/gm0d
gptid/94d650c8-a05d-11e0-b636-0030678cf5c1     N/A  ad4p1
gptid/025527eb-9d5d-11e0-997b-0030678cf5c1     N/A  ad6p1
gptid/6b426779-9d5c-11e0-997b-0030678cf5c1     N/A  ad8p1
gptid/31d15ce9-9bfe-11e0-bd6e-0030678cf5c1     N/A  ad10p1
[root at einhart ~]# gpart show
=>        34  3907029101  ad4  GPT  (1.8T)
          34         990    1  freebsd-boot  (495k)
        1024        1024       - free -  (512k)
        2048    20971520    2  freebsd-ufs  (10G)
    20973568    16777216    3  freebsd-swap  (8.0G)
    37750784    50331648    4  freebsd-ufs  (24G)
    88082432  3818930304    5  freebsd-zfs  (1.8T)
  3907012736       16399    9  freebsd-swap  (8.0M)

=>        34  3907029101  ad6  GPT  (1.8T)
          34         990    1  freebsd-boot  (495k)
        1024        1024       - free -  (512k)
        2048    20971520    2  freebsd-ufs  (10G)
    20973568    16777216    3  freebsd-swap  (8.0G)
    37750784    50331648    4  freebsd-ufs  (24G)
    88082432  3818930304    5  freebsd-zfs  (1.8T)
  3907012736       16399    9  freebsd-swap  (8.0M)

=>        34  3907029101  ad8  GPT  (1.8T)
          34         990    1  freebsd-boot  (495k)
        1024        1024       - free -  (512k)
        2048    20971520    2  freebsd-ufs  (10G)
    20973568    16777216    3  freebsd-swap  (8.0G)
    37750784    50331648    4  freebsd-ufs  (24G)
    88082432  3818930304    5  freebsd-zfs  (1.8T)
  3907012736       16399    9  freebsd-swap  (8.0M)

=>        34  3907029101  ad10  GPT  (1.8T)
          34         990     1  freebsd-boot  (495k)
        1024        1024        - free -  (512k)
        2048    20971520     2  freebsd-ufs  (10G)
    20973568    16777216     3  freebsd-swap  (8.0G)
    37750784    50331648     4  freebsd-ufs  (24G)
    88082432  3818930304     5  freebsd-zfs  (1.8T)
  3907012736       16399     9  freebsd-swap  (8.0M)

[root at einhart ~]# df -h /data
Filesystem    Size    Used   Avail Capacity  Mounted on
dpool/data    3.2T    2.2T    948G    71%    /data
[root at einhart ~]# zfs list
NAME                    USED  AVAIL  REFER  MOUNTPOINT
dpool                  2.23T   949G   174K  legacy
dpool/data             2.23T   949G  2.23T  legacy
dpool/data/documents    888M   949G   888M  legacy
dpool/jails             267M   949G   186K  legacy
dpool/jails/debian      267M   949G   267M  legacy
dpool/ports-distfiles  2.61G   949G  2.61G  /usr/ports/distfiles
dpool/ports-tmp        90.5M   949G  90.5M  /.ports-tmp
dpool/src.cvs           562M   949G   562M  /usr/src.cvs
dpool/srv              31.0M   949G  31.0M  legacy
dpool/usr.obj           221K   949G   209K  /usr/obj
dpool/usr.src          2.22G   949G  2.22G  /usr/src

[root at einhart ~]# zdb
dpool:
    version: 28
    name: 'dpool'
    state: 0
    txg: 407886
    pool_guid: 5265065684459342039
    hostid: 4266313884
    hostname: 'einhart'
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 5265065684459342039
        children[0]:
            type: 'raidz'
            id: 0
            guid: 10113259324866791715
            nparity: 2
            metaslab_array: 23
            metaslab_shift: 36
            ashift: 12
            asize: 7314369150976
            is_log: 0
            children[0]:
                type: 'disk'
                id: 0
                guid: 850395506991012944
                path: '/dev/gptid/fe13fc94-9bfe-11e0-bd6e-0030678cf5c1'
                phys_path: '/dev/gptid/fe13fc94-9bfe-11e0-bd6e-0030678cf5c1'
                whole_disk: 0
                DTL: 164
            children[1]:
                type: 'disk'
                id: 1
                guid: 11140108939464482570
                path: '/dev/gptid/0dc1601d-9f95-11e0-9a98-0030678cf5c1'
                phys_path: '/dev/gptid/0dc1601d-9f95-11e0-9a98-0030678cf5c1'
                whole_disk: 1
                DTL: 173
            children[2]:
                type: 'disk'
                id: 2
                guid: 2470764073478818097
                path: '/dev/gptid/1e76f2ad-9d5d-11e0-997b-0030678cf5c1'
                phys_path: '/dev/gptid/1e76f2ad-9d5d-11e0-997b-0030678cf5c1'
                whole_disk: 0
                DTL: 168
            children[3]:
                type: 'disk'
                id: 3
                guid: 3492436401681256292
                path: '/dev/gptid/8d23200a-9d5c-11e0-997b-0030678cf5c1'
                phys_path: '/dev/gptid/8d23200a-9d5c-11e0-997b-0030678cf5c1'
                whole_disk: 0
                DTL: 165


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org


More information about the freebsd-fs mailing list