From owner-freebsd-geom@FreeBSD.ORG Sun Jan 9 09:27:11 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E16C4106566B for ; Sun, 9 Jan 2011 09:27:11 +0000 (UTC) (envelope-from zeus@relay.ibs.dn.ua) Received: from relay.ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by mx1.freebsd.org (Postfix) with ESMTP id 657258FC1A for ; Sun, 9 Jan 2011 09:27:10 +0000 (UTC) Received: from relay.ibs.dn.ua (localhost [127.0.0.1]) by relay.ibs.dn.ua with ESMTP id p099R9dF092631; Sun, 9 Jan 2011 11:27:09 +0200 (EET) Received: (from zeus@localhost) by relay.ibs.dn.ua (8.14.4/8.14.4/Submit) id p099R9ow092630; Sun, 9 Jan 2011 11:27:09 +0200 (EET) Date: Sun, 9 Jan 2011 11:27:09 +0200 From: Zeus V Panchenko To: "Luchesar V. ILIEV" Message-ID: <20110109092709.GC66627@relay.ibs.dn.ua> References: <20110104170611.GA67159@relay.ibs.dn.ua> <4D28509D.607@yandex.ru> <20110108223747.GA66627@relay.ibs.dn.ua> <4D28FB15.9090907@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4D28FB15.9090907@gmail.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.1-RELEASE X-Editor: GNU Emacs 23.2.1 Cc: freebsd-geom@freebsd.org Subject: Re: "secondary GPT table is corrupt or invalid" issue again X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: zeus@ibs.dn.ua List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2011 09:27:12 -0000 Hi Luchesar, thank you for reply, > > Just my two cents. If I understood correctly from your first mail, > you've set up the gmirror on /dev/ada{1,2}p1; that is, you're not > mirroring the whole disk, but just the (single) partition on it. > really the history was this: i configured first drive as GPT (whole dedicated drive), newfs-ed it and filled with data after what i created mirror on it but not on entire disk /dev/ada0 (not on it's single partition /dev/ada0p1) and i believe it was the cause of corruption latter i found maillist explanation of the mistake and reconfigured the mirror to use partitions instead of entire disk ... so, this way the corruption appeared as i can judge now > have overwritten the secondary GPT. I was wondering if your problem > could be related to the ahci(4) driver? I think I've seen reports of no, i do not believe it is ahci(4) related issue since no other simpthomes were observed (smart data shows no problems too) > > # gmirror label -v -h -b load gm0 gpt/teradisk0 > # gmirror insert -v -h -p 1 gm0 gpt/teradisk1 > > Using -h is important here, as otherwise gmirror will "forget" the > labels. I'd like to draw your attention to the -p parameter as well. > AFAIK it's not good to have the components with equal priority. Priority > determines not only the preferred disk for the "prefer" algorithm, but, mmm ... what will happend when master dies? will gmirror understand that 0 priority disk now the one remaining alive? or i have to handle that manually? to reassign 0 to the survived disk and to assign next index to the new disk? -- Zeus V. Panchenko IT Dpt., IBS ltd GMT+2 (EET)