From owner-freebsd-questions@FreeBSD.ORG Sun Feb 24 14:42:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B41C16A406 for ; Sun, 24 Feb 2008 14:42:40 +0000 (UTC) (envelope-from bc@default.co.yu) Received: from smtp1.default.co.yu (anarki.default.co.yu [87.237.201.134]) by mx1.freebsd.org (Postfix) with SMTP id D50EA13C457 for ; Sun, 24 Feb 2008 14:42:39 +0000 (UTC) (envelope-from bc@default.co.yu) Received: (qmail 19367 invoked by uid 89); 24 Feb 2008 14:42:37 -0000 Received: from unknown (HELO ?10.5.7.109?) (bc@default.co.yu@213.198.226.187) by smtp1.default.co.yu with SMTP; 24 Feb 2008 14:42:37 -0000 Message-ID: <47C1825D.7080903@default.co.yu> Date: Sun, 24 Feb 2008 15:42:37 +0100 From: =?UTF-8?B?Qm9nZGFuIMSGdWxpYnJr?= Organization: Default Inc. User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Daniel Gerzo References: <13610129926.20080223151720@rulez.sk> In-Reply-To: <13610129926.20080223151720@rulez.sk> X-Enigmail-Version: 0.95.6 X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: gmirror on slice X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2008 14:42:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Gerzo wrote: | Hello people, | | I'm trying to set up a gmirror on two slices, but I am stuck | somewhere. I am unable to find out what is wrong. Here's what I have | done so far: | | I have 2 disks in the box. I have created 2 slices on both of them | (ad{4,6}s1 and ad{4,6}s2) through sysinstall. (btw, | http://www.freebsd.org/cgi/query-pr.cgi?pr=72895&cat= is really | annoying, lucky I had a remote console :-)) | | Now I want to initialize gmirror on slice 1: | | ha-db1# gmirror label -v -b round-robin gm0 /dev/ad4s1 | gmirror: Can't store metadata on /dev/ad4s1: Operation not permitted. | ha-db1# sysctl kern.geom.debugflags=16 | kern.geom.debugflags: 0 -> 16 | ha-db1# gmirror label -v -b round-robin gm0 /dev/ad4s1 | gmirror: Can't store metadata on /dev/ad4s1: Operation not permitted. | | for additional information, I am including the following: | | ha-db1# fdisk -vp ad4 | # /dev/ad4 | g c1453521 h16 s63 | p 1 0xa5 63 72340632 | a 1 | p 2 0xa5 72340695 1392803370 | | ha-db1# disklabel /dev/ad4s1 | # /dev/ad4s1: | 8 partitions: | # size offset fstype [fsize bsize bps/cpg] | a: 1048576 0 4.2BSD 2048 16384 8 | b: 25165824 1048576 swap | c: 72340632 0 unused 0 0 # "raw" part, don't edit | d: 25165824 26214400 4.2BSD 2048 16384 28528 | e: 20960408 51380224 4.2BSD 2048 16384 28528 | | | Any ideas will be much appreciated. | Hi there, sysinstall is piece of crap when it comes to gmirror'ing slices. I recall that I had numerous problems with it and that I couldn't find any solution nor workaround but doing slicing by hand. Have serial console handy if you don't have physical access to the system. I hope this 2857574857th whine about bugs in sysinstall will reach to someone capable of fixing it. - -- Best regards, Bogdan Culibrk bc@default.co.yu http://default.co.yu/~bc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfBgl0ACgkQo6C4vAhYtCATQQCfbHB8pp29ExUSPLlrEjz/5HSE H2cAn2YgErKzd4reBOcFGQZaDdZUsOEB =Ui3B -----END PGP SIGNATURE-----