From owner-freebsd-geom@FreeBSD.ORG Mon Jan 8 23:09:08 2007 Return-Path: X-Original-To: geom@freebsd.org Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AAB7916A407 for ; Mon, 8 Jan 2007 23:09:08 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id 7091413C43E for ; Mon, 8 Jan 2007 23:09:08 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so4137945pyh for ; Mon, 08 Jan 2007 15:09:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=jgwoXbEPf4+6Q5UrhVTopBCc78Xmw8mhylm7oKZ1ALUSKjJvlFr+1VqjbI1roI6NLoUnDUTSnKAOjnQrDjHoY863vHlC753jG9DGdf1ZbL/vvDo61mRpzrlds85ALxgjhzs+ciyWYuRdOXtFje9OEIX8ZxCylFMr4xoINBIsIJU= Received: by 10.35.80.20 with SMTP id h20mr49772927pyl.1168296306111; Mon, 08 Jan 2007 14:45:06 -0800 (PST) Received: by 10.35.16.1 with HTTP; Mon, 8 Jan 2007 14:45:06 -0800 (PST) Message-ID: <520894aa0701081445i43d76098m418ce695d2133e53@mail.gmail.com> Date: Mon, 8 Jan 2007 19:45:06 -0300 From: "Fernan Aguero" To: geom@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: clear metadata using dd? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2007 23:09:08 -0000 Hi I'm trying to set up two disks to contain both gmirrored and gstriped slices. This is what I'm trying to achieve: adxs1, swap adxs2, gmirror adxs3, gstripe I already got the first and second slices set up (swap and gmirror containing the active, root partition), but I cannot seem to be able to set up s3 into a gstripped device. gama# gstripe label -v gs0 /dev/ad4s3 /dev/ad6s3 Can't store metadata on /dev/ad4s3: Operation not permitted. This might be because ad4s3 had been part of a gmirror device before I reorganized my disks and moved the mirror to the s2 slice. Gayn Winters suggested that: "The geom metadata is stored in the last block of the slice. Zero it as well and you can have a clean start." http://lists.freebsd.org/pipermail/freebsd-questions/2006-May/120950.html But now I wonder what is the magic incantation to run dd for targeting the last (sector?) of ad4s3? I imagine I have to use something like dd if=/dev/zero of=/dev/ad4s3? bs=512 count=1 but adding either skip=? or seek=? to taste. gama# fdisk -s /dev/ad4 /dev/ad4: 310101 cyl 16 hd 63 sec Part Start Size Type Flags 1: 63 16771041 0xa5 0x00 2: 16771923 146795229 0xa5 0x80 3: 146795292 188742708 0xa5 0x00 maybe I should skip (146795292 + 188742708 - 1) sectors? Fernan -- Fernan Aguero