disklabel and gm0 (gmirror)
Ferruccio Zamuner
nonsolosoft at diff.org
Tue Apr 8 21:55:58 UTC 2008
# disklabel /dev/mirror/gm0
# /dev/mirror/gm0:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 2089984 79 4.2BSD 0 0 0
b: 2910000 2090063 unused 0 0
c: 463459122 63 unused 0 0 # "raw" part,
don't edit
d: 10000000 5000063 4.2BSD 0 0 0
e: 10000000 15000063 4.2BSD 0 0 0
f: 15000000 25000063 4.2BSD 0 0 0
g: 423459058 40000063 4.2BSD 0 0 0
partition c: partition extends past end of unit
disklabel: partition c doesn't start at 0!
disklabel: partition c doesn't cover the whole unit!
disklabel: An incorrect partition c may cause problems for standard
system utilities
# gmirror list
Geom name: gm0
State: COMPLETE
Components: 3
Balance: split
Slice: 8192
Flags: NONE
GenID: 0
SyncID: 2
ID: 3991481480
Providers:
1. Name: mirror/gm0
Mediasize: 237291069952 (221G)
Sectorsize: 512
Mode: r5w5e6
Consumers:
1. Name: ad6s1
Mediasize: 237291070464 (221G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 2
ID: 3276824044
2. Name: ad10s1
Mediasize: 237291070464 (221G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 2
ID: 1289844737
3. Name: ad12s1
Mediasize: 237291070464 (221G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 2
ID: 1706660870
237291069952 / 512 (mirror/gm0 Mediasize / sector size)
463459121 (the size that gm0c should be)
423459058 + 40000063 (gm0g size + gm0g offset)
463459121 (gm0 size)
How can I fix it?
disklabel -e /dev/mirror/gm0
setting gm0c offset = 0
setting gm0c size = 463459121
gives following warning and not change these values:
partition c: partition extends past end of unit
disklabel: partition c doesn't start at 0!
disklabel: partition c doesn't cover the whole unit!
disklabel: An incorrect partition c may cause problems for standard
system utilities
Thank you in advance, \fer
More information about the freebsd-geom
mailing list