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
This is a cryptographically signed message in MIME format. --------------ms050908070807030105020804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------ms050908070807030105020804 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; fil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ZSBLZWVsZSBDZW50cmUgQ2VydGlmaWNhdGUg QXV0aG9yaXR5AgEGMIGaBgsqhkiG9w0BCRACCzGBiqCBhzCBgTELMAkGA1UEBhMCVUsxFjAU BgNVBAgTDVN0YWZmb3Jkc2hpcmUxDjAMBgNVBAcTBUtlZWxlMRkwFwYDVQQKExBUaGUgS2Vl bGUgQ2VudHJlMS8wLQYDVQQDEyZUaGUgS2VlbGUgQ2VudHJlIENlcnRpZmljYXRlIEF1dGhv cml0eQIBBjANBgkqhkiG9w0BAQEFAASBgHQq2F2+tZDXPpUwc70SUlJ6oQp306NjEyBGS1wE X9UV1IePzdh7nkoBtDKsTtiy/KLbUtlVGlByL1FJEsMBb33smoKdbG3pdfn0BrRRUFb2VaAZ my1R6+nlDUGar3Zx5atS8A5nphd8aqBQYHz4ZSUSS8p/HFt/OgTKfSHWmRbBAAAAAAAA --------------ms050908070807030105020804--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A42404B.5030206>