Re: Removal of GEOM_BSD, GEOM_MBR, GEOM_PC98 and GEOM_SUNLABEL

From: Tai-hwa Liang <avatar_at_mmlab.cse.yzu.edu.tw>
Date: Sat, 4 Apr 2009 09:08:00 +0800 (CST)
On Fri, 3 Apr 2009, Marcel Moolenaar wrote:
[...]
> Hmmmm... I don't think there's anything wrong with the label
> nor the code. If the label is rejected, the dmesg should show
> that. Is there anything in the dmesg like?
> 	GEOM: ad0s3+00103bf1: invalid disklabel.

# dmesg | grep GEOM
GEOM: new disk cd0
GEOM_LABEL: Label ufsid/46387cd616292ca8 removed.
GEOM_LABEL: Label for provider ad0s2a is ufsid/46387cd616292ca8.
GEOM_LABEL: Label ufsid/46387cd73d66d2ca removed.
GEOM_LABEL: Label for provider ad0s2d is ufsid/46387cd73d66d2ca.
GEOM_LABEL: Label ufsid/46387cd6c10fa381 removed.
GEOM_LABEL: Label for provider ad0s2e is ufsid/46387cd6c10fa381.
GEOM_LABEL: Label ufsid/46389322544a8c64 removed.
GEOM_LABEL: Label for provider ad0s3+00103bf1a is ufsid/46389322544a8c64.
GEOM_LABEL: Label ufsid/46387cd616292ca8 removed.
GEOM_LABEL: Label ufsid/46387cd73d66d2ca removed.
GEOM_LABEL: Label ufsid/46387cd6c10fa381 removed.
GEOM_LABEL: Label ufsid/46389322544a8c64 removed.
GEOM_LABEL: Label for provider md0 is ufsid/49d71e25191c321d.
GEOM_LABEL: Label ufsid/49d71e25191c321d removed.

> Also, could you trigger a re-taste by writing all zeroes to
> the first sector:
> 	dd if=/dev/zero of=/dev/ad0s7 count=1 bs=512

# dd if=/dev/zero of=/dev/ad0s7 bs=512 count=1
dd: /dev/ad0s7: Operation not permitted
# sysctl kern.geom.debugflags=16
kern.geom.debugflags: 0 -> 16
# dd if=/dev/zero of=/dev/ad0s7 bs=512 count=1
dd: /dev/ad0s7: Operation not permitted
#

   I can see ad0s3 falls in 'scheme: EBR' but not 'BSD scheme' now:

Geom name: ad0
fwheads: 16
fwsectors: 63
last: 228338837
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ad0s1
    Mediasize: 9568387584 (8.9G)
    Sectorsize: 512
    Mode: r0w0e0
    rawtype: 12
    length: 9568387584
    offset: 32256
    type: !12
    index: 1
    end: 18688319
    start: 63
2. Name: ad0s2
    Mediasize: 8592998400 (8.0G)
    Sectorsize: 512
    Mode: r4w4e7
    attrib: active
    rawtype: 165
    length: 8592998400
    offset: 9568419840
    type: freebsd
    index: 2
    end: 35471519
    start: 18688320
3. Name: ad0s3
    Mediasize: 98742067200 (92G)
    Sectorsize: 512
    Mode: r1w1e2
    rawtype: 15
    length: 98742067200
    offset: 18161418240
    type: !15
    index: 3
    end: 228327119
    start: 35471520
Consumers:
1. Name: ad0
    Mediasize: 116909491200 (109G)
    Sectorsize: 512
    Mode: r5w5e14

Geom name: ad0s2
fwheads: 16
fwsectors: 63
last: 16783199
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ad0s2a
    Mediasize: 402653184 (384M)
    Sectorsize: 512
    Mode: r1w1e1
    rawtype: 7
    length: 402653184
    offset: 0
    type: freebsd-ufs
    index: 1
    end: 786431
    start: 0
2. Name: ad0s2b
    Mediasize: 2147483648 (2.0G)
    Sectorsize: 512
    Mode: r1w1e0
    rawtype: 1
    length: 2147483648
    offset: 402653184
    type: freebsd-swap
    index: 2
    end: 4980735
    start: 786432
3. Name: ad0s2d
    Mediasize: 201326592 (192M)
    Sectorsize: 512
    Mode: r1w1e1
    rawtype: 7
    length: 201326592
    offset: 2550136832
    type: freebsd-ufs
    index: 4
    end: 5373951
    start: 4980736
4. Name: ad0s2e
    Mediasize: 5841534976 (5.4G)
    Sectorsize: 512
    Mode: r1w1e1
    rawtype: 7
    length: 5841534976
    offset: 2751463424
    type: freebsd-ufs
    index: 5
    end: 16783199
    start: 5373952
Consumers:
1. Name: ad0s2
    Mediasize: 8592998400 (8.0G)
    Sectorsize: 512
    Mode: r4w4e7

Geom name: ad0s3
fwheads: 16
fwsectors: 63
last: 192855599
first: 0
entries: 3061200
scheme: EBR
Providers:
1. Name: ad0s3+00000001
    Mediasize: 8592966144 (8.0G)
    Sectorsize: 512
    Mode: r0w0e0
    rawtype: 131
    length: 8592966144
    offset: 32256
    type: !131
    index: 1
    end: 16783199
    start: 0
2. Name: ad0s3+000410a1
    Mediasize: 25724772864 (24G)
    Sectorsize: 512
    Mode: r0w0e0
    rawtype: 11
    length: 25724772864
    offset: 8593030656
    type: !11
    index: 266401
    end: 67026959
    start: 16783200
3. Name: ad0s3+00103bf1
    Mediasize: 16000492032 (15G)
    Sectorsize: 512
    Mode: r1w1e1
    rawtype: 165
    length: 16000492032
    offset: 34317835776
    type: freebsd
    index: 1063921
    end: 98277983
    start: 67026960
4. Name: ad0s3+0017cda1
    Mediasize: 48423707136 (45G)
    Sectorsize: 512
    Mode: r0w0e0
    rawtype: 165
    length: 48423707136
    offset: 50318360064
    type: freebsd
    index: 1559969
    end: 192855599
    start: 98277984
Consumers:
1. Name: ad0s3
    Mediasize: 98742067200 (92G)
    Sectorsize: 512
    Mode: r1w1e2

-- 
Cheers,

Tai-hwa Liang
Received on Fri Apr 03 2009 - 23:08:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:45 UTC