Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2011 05:47:33 +0200
From:      "Vladislav V. Prodan" <universite@ukr.net>
To:        freebsd-geom@freebsd.org
Subject:   Re: [ZFS] How to change the geom label for a disk without losing data in the ZFS pool?
Message-ID:  <4D44DF55.6010804@ukr.net>
In-Reply-To: <4D3DF4B8.4050901@ukr.net>
References:  <4D3DF4B8.4050901@ukr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Why does not appear glabel label  when connecting to a ZFS pool???

# glabel list ad18
glabel: No such geom: ad18.
# glabel list ad18p1
glabel: No such geom: ad18p1.
# gpart list ad18
Geom name: ad18
fwheads: 16
fwsectors: 63
last: 1465149134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ad18p1
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e1
   rawuuid: ebf9f19e-2bd4-11e0-be1c-00e04d7b690c
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: disk5
   length: 750156339712
   offset: 17408
   type: freebsd-zfs
   index: 1
   end: 1465149134
   start: 34
Consumers:
1. Name: ad18
   Mediasize: 750156374016 (699G)
   Sectorsize: 512
   Mode: r1w1e2

# glabel list
Geom name: ad12p1
Providers:
1. Name: gpt/disk2
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e1
   secoffset: 0
   offset: 0
   seclength: 1465149101
   length: 750156339712
   index: 0
Consumers:
1. Name: ad12p1
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e2

Geom name: ad14p1
Providers:
1. Name: gpt/disk3
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e1
   secoffset: 0
   offset: 0
   seclength: 1465149101
   length: 750156339712
   index: 0
Consumers:
1. Name: ad14p1
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e2

Geom name: ad16p1
Providers:
1. Name: gpt/disk4
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e1
   secoffset: 0
   offset: 0
   seclength: 1465149101
   length: 750156339712
   index: 0
Consumers:
1. Name: ad16p1
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e2

Geom name: ad10p1
Providers:
1. Name: gpt/disk1
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e1
   secoffset: 0
   offset: 0
   seclength: 1465149101
   length: 750156339712
   index: 0
Consumers:
1. Name: ad10p1
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e2

Geom name: ad8p1
Providers:
1. Name: gpt/disk0
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e1
   secoffset: 0
   offset: 0
   seclength: 1465149101
   length: 750156339712
   index: 0
Consumers:
1. Name: ad8p1
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r1w1e2

# zpool status
  pool: tank
 state: ONLINE
 scrub: scrub in progress for 9h7m, 51,27% done, 8h40m to go
config:

        NAME           STATE     READ WRITE CKSUM
        tank           ONLINE       0     0     0
          raidz2       ONLINE       0     0     0
            gpt/disk0  ONLINE       0     0     0
            gpt/disk1  ONLINE       0     0     0
            gpt/disk2  ONLINE       0     0     0
            gpt/disk3  ONLINE       0     0     0
            gpt/disk4  ONLINE       0     0     0
            ad18p1     ONLINE       0     0     0

errors: No known data errors

# zpool offline tank ad18p1
# glabel list ad18p1
Geom name: ad18p1
Providers:
1. Name: gpt/disk5
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 1465149101
   length: 750156339712
   index: 0
Consumers:
1. Name: ad18p1
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r0w0e0
# zpool online tank ad18p1
# glabel list ad18p1
glabel: No such geom: ad18p1.




-- 
Vladislav V. Prodan
VVP24-UANIC
+38[067]4584408
+38[099]4060508
vlad11@jabber.ru



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