Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2009 16:03:39 +0100
From:      Richard Tector <richard@tector.org.uk>
To:        freebsd-stable@freebsd.org
Subject:   sade(8) on a gmirror device
Message-ID:  <4A42404B.5030206@tector.org.uk>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
A little background - the system in question , running 7.2-RELEASE has 2 
1TB disks in a gmirror, ez0. ad4 and ad6 are the two providers for the 
gmirror device. It was created after a 30GB slice had been created on 
ad4 for the various system partitions required.
This system is running fine, with the partitions mounted from 
/dev/mirror/ez0s1a for example.

What I would now like to do is create a second slice from the remaining 
900-odd GB left on the mirror. However, sade (and sysinstall) do not 
display the ez0 device to operate on, only the providers: ad4 and ad6.

fdisk(8) will happily read the partition table from the mirror:

******* Working on device /dev/mirror/ez0 *******
parameters extracted from in-core disklabel are:
cylinders=121601 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=121601 heads=255 sectors/track=63 (16065 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 62914257 (30719 Meg), flag 80 (active)
         beg: cyl 0/ head 1/ sector 1;
         end: cyl 1023/ head 15/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>


However, dumping the partition table and passing back to fdisk also fails:

ezekiel# fdisk -f fd.e
******* Working on device /dev/mirror/ez0 *******

fdisk: Geom not found: "ez0"
fdisk: Failed to write sector zero

This also occurs if I set kern.geom.debugflags to 16, by the way.

Does anyone have any suggestions for how to proceed? The only method I 
can think of is to break the mirror, add the slice to ad4, then recreate 
the mirror. Not being able to use sade on a gmirror is a real PITA.

Regards,

Richard

[-- Attachment #2 --]
0	*H
010	+0	*H
0000
	*H
010	UUK10U
Staffordshire10UKeele10U
The Keele Centre1/0-U&The Keele Centre Certificate Authority0
060929141715Z
100929141715Z010	UUK10U
Staffordshire10U	Newcastle1
0U
 10URichard Tector1$0"	*H
	richard@tector.org.uk00
	*H
0qSK4Q;l}2-^ț6>-jMxXnJԎ<q؜4$u
k(Ņ<ԫ0؆b5g1Gv|ؖ#q+s(>B]?-fDž}CNS00	U00,	`HB
OpenSSL Generated Certificate0Us_S 6
B_V)'>0U#0	4@-MxoW010	UUK10U
Staffordshire10UKeele10U
The Keele Centre1/0-U&The Keele Centre Certificate Authority	Xl~u0
	*H
s:ґG@ĺp.re?j1pWqlW6f5Ky͡ t%#kF\JIyni`<c_zgTl#:l?`C?;g000
	*H
010	UUK10U
Staffordshire10UKeele10U
The Keele Centre1/0-U&The Keele Centre Certificate Authority0
060929141715Z
100929141715Z010	UUK10U
Staffordshire10U	Newcastle1
0U
 10URichard Tector1$0"	*H
	richard@tector.org.uk00
	*H
0qSK4Q;l}2-^ț6>-jMxXnJԎ<q؜4$u
k(Ņ<ԫ0؆b5g1Gv|ؖ#q+s(>B]?-fDž}CNS00	U00,	`HB
OpenSSL Generated Certificate0Us_S 6
B_V)'>0U#0	4@-MxoW010	UUK10U
Staffordshire10UKeele10U
The Keele Centre1/0-U&The Keele Centre Certificate Authority	Xl~u0
	*H
s:ґG@ĺp.re?j1pWqlW6f5Ky͡ t%#kF\JIyni`<c_zgTl#:l?`C?;g100010	UUK10U
Staffordshire10UKeele10U
The Keele Centre1/0-U&The Keele Centre Certificate Authority0	+0	*H
	1	*H
0	*H
	1
090624150339Z0#	*H
	1IĦMf?MlxSC0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+710010	UUK10U
Staffordshire10UKeele10U
The Keele Centre1/0-U&The Keele Centre Certificate Authority0*H
	1010	UUK10U
Staffordshire10UKeele10U
The Keele Centre1/0-U&The Keele Centre Certificate Authority0
	*H
t*]>0sRRz
wӣc FK\_ԇ{J2NزRUPr/QIo}욂lmuQPVU-Q
AvqRg|jP`|e%K[:}!֙

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