Date: Wed, 22 Oct 2008 16:09:27 +0300 From: Andriy Gapon <avg@icyb.net.ua> To: freebsd-geom@freebsd.org, Marcel Moolenaar <marcel@FreeBSD.org> Subject: gpart oddity Message-ID: <48FF2607.10807@icyb.net.ua>
next in thread | raw e-mail | index | archive | help
I have the following geom options in my kernel config: GEOM_LABEL GEOM_PART_BSD GEOM_PART_GPT GEOM_PART_MBR The last three are recent addition that I want to report about. Also, geom_mirror and geom_journal are loaded as modules and I use both gmirror and gjournal, independently. This is a i386 7.1-PRERELEASE system, kernel is built from svn rev. 184137. Here's a diff between new kernel verbose dmesg and old kernel verbose dmesg (only geom specific lines, old kernel was built from sources from around Sep 24): -GEOM: new disk ad4 +GEOM: ad4s1: invalid disklabel. +WARNING: Expected rawoffset 0, found 63 +GEOM: ad4s1: invalid disklabel. +WARNING: Expected rawoffset 0, found 587191815 +GEOM: ad4s1b: invalid disklabel. +GEOM: ad4s1c: invalid disklabel. GEOM_JOURNAL: Journal 1799301102: ad4s1d contains data. GEOM_JOURNAL: Journal 1508823937: ad4s1e contains data. GEOM_LABEL: Label for provider ad4s1e is ufs/export. GEOM_MIRROR: Device mirror/rootfs launched (2/2). GEOM_JOURNAL: Journal 1799301102: ad4s2d contains journal. GEOM_JOURNAL: Journal ad4s1d clean. GEOM_JOURNAL: Journal 1508823937: ad4s2e contains journal. GEOM_JOURNAL: Journal ad4s1e clean. GEOM_LABEL: Label for provider ad4s2f is ufs/xtra. +GEOM_MIRROR: Cannot add disk ad4s2ca to rootfs (error=17). GEOM_LABEL: Label for provider ad4s1d.journal is ufs/system. GEOM_LABEL: Label ufs/system removed. The strange messages are ones about invalid disklabel and also about trying to add ad4s2ca to 'rootfs' mirror. On disk ad4 I have two slices and a number of partitions within each. Now I got some new devices for the second slice. Old devices: /dev/ad4s2 /dev/ad4s2a /dev/ad4s2c /dev/ad4s2d /dev/ad4s2e /dev/ad4s2f Plus new devices: /dev/ad4s2ca /dev/ad4s2cd /dev/ad4s2ce /dev/ad4s2cf Here's more data/info: $ fdisk ad4 ******* Working on device /dev/ad4 ******* parameters extracted from in-core disklabel are: cylinders=620181 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=620181 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 587191752 (286714 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 8/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 587191815, size 37945530 (18528 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 14/ sector 63 The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> $ disklabel ad4s1 # /dev/ad4s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 2097152 4.2BSD 0 0 0 b: 2097152 0 swap c: 587191752 0 unused 0 0 # "raw" part, don't edit d: 52428800 4194304 4.2BSD 0 0 0 e: 530568648 56623104 4.2BSD 0 0 0 $ disklabel ad4s2 # /dev/ad4s2: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 16 swap c: 37945530 0 unused 0 0 # "raw" part, don't edit d: 4194304 2097168 swap e: 4194304 6291472 swap f: 27459738 10485776 4.2BSD 2048 16384 28552 $ gpart show => 0 37945530 ad4s2c BSD (19.4GB) 0 16 - free - (8.2KB) 16 2097152 1 freebsd-swap (1073.7MB) 2097168 4194304 4 freebsd-swap (2.1GB) 6291472 4194304 5 freebsd-swap (2.1GB) 10485776 27459738 6 freebsd-ufs (14.1GB) 37945514 16 - free - (8.2KB) $ gpart list Geom name: ad4s2c fwheads: 16 fwsectors: 63 last: 37945529 first: 0 entries: 8 scheme: BSD Providers: 1. Name: ad4s2ca Mediasize: 1073741824 (1.0G) Sectorsize: 512 Mode: r0w0e0 rawtype: 1 length: 1073741824 offset: 8192 type: freebsd-swap index: 1 2. Name: ad4s2cd Mediasize: 2147483648 (2.0G) Sectorsize: 512 Mode: r0w0e0 rawtype: 1 length: 2147483648 offset: 1073750016 type: freebsd-swap index: 4 3. Name: ad4s2ce Mediasize: 2147483648 (2.0G) Sectorsize: 512 Mode: r0w0e0 rawtype: 1 length: 2147483648 offset: 3221233664 type: freebsd-swap index: 5 4. Name: ad4s2cf Mediasize: 14059385856 (13G) Sectorsize: 512 Mode: r0w0e0 rawtype: 7 length: 14059385856 offset: 5368717312 type: freebsd-ufs index: 6 Consumers: 1. Name: ad4s2c Mediasize: 19428111360 (18G) Sectorsize: 512 Mode: r0w0e0 $ gmirror list Geom name: rootfs State: COMPLETE Components: 2 Balance: split Slice: 4096 Flags: NONE GenID: 4 SyncID: 1 ID: 396289746 Providers: 1. Name: mirror/rootfs Mediasize: 1073741312 (1.0G) Sectorsize: 512 Mode: r1w1e1 Consumers: 1. Name: ad4s1a Mediasize: 1073741824 (1.0G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 4 SyncID: 1 ID: 3492106720 2. Name: ad4s2a Mediasize: 1073741824 (1.0G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 4 SyncID: 1 ID: 1410759657 $ gjournal list Geom name: gjournal 1799301102 ID: 1799301102 Providers: 1. Name: ad4s1d.journal Mediasize: 26843545088 (25G) Sectorsize: 512 Mode: r1w1e1 Consumers: 1. Name: ad4s1d Mediasize: 26843545600 (25G) Sectorsize: 512 Mode: r1w1e1 Role: Data 2. Name: ad4s2d Mediasize: 2147483648 (2.0G) Sectorsize: 512 Mode: r1w1e1 Jend: 2147483136 Jstart: 0 Role: Journal Geom name: gjournal 1508823937 ID: 1508823937 Providers: 1. Name: ad4s1e.journal Mediasize: 271651147264 (253G) Sectorsize: 512 Mode: r1w1e1 Consumers: 1. Name: ad4s1e Mediasize: 271651147776 (253G) Sectorsize: 512 Mode: r1w1e1 Role: Data 2. Name: ad4s2e Mediasize: 2147483648 (2.0G) Sectorsize: 512 Mode: r1w1e1 Jend: 2147483136 Jstart: 0 Role: Journal $ glabel list Geom name: ad4s1e Providers: 1. Name: ufs/export Mediasize: 271651147776 (253G) Sectorsize: 512 Mode: r0w0e0 secoffset: 0 offset: 0 seclength: 530568648 length: 271651147776 index: 0 Consumers: 1. Name: ad4s1e Mediasize: 271651147776 (253G) Sectorsize: 512 Mode: r0w0e0 Geom name: ad4s2f Providers: 1. Name: ufs/xtra Mediasize: 14059385856 (13G) Sectorsize: 512 Mode: r1w0e1 secoffset: 0 offset: 0 seclength: 27459738 length: 14059385856 index: 0 Consumers: 1. Name: ad4s2f Mediasize: 14059385856 (13G) Sectorsize: 512 Mode: r1w0e2 -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48FF2607.10807>