Re: 8.2-RELEASE - gmirror and gpart issue. Metadata overlap?

看板FB_stable作者時間15年前 (2011/03/01 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/10 (看更多)
On Mon, Feb 28, 2011 at 8:23 AM, Marin Atanasov Nikolov <dnaeon@gmail.com> wrote: > 2011/2/28 Andrey V. Elsukov <bu7cher@yandex.ru>: >> On 28.02.2011 11:54, Johan Hendriks wrote: >>> I opened a discussion on this before the release. >>> http://lists.freebsd.org/pipermail/freebsd-stable/2011-January/061184.h= t >>> ml >>> On my 8.1 system, i get this message about the corrupt headers, but it >>> booted on the 8.2 system it panics... >>> >>> I think a lot of people are going to get bit by this. >>> >>> As far as i know there is no warning anywhere that you can not use gpar= t >>> and gmirror the whole disk. >> > > I can confirm as well that I get kernel panic =C2=A0if I gpart and then > gmirror a disk on 8.2-RELEASE. > > To reproduce it, I just did the following: > > 1) Boot a system with a Fixit image > 2) Remove all gpart partitions > 3) gpart the first disk (ad0) > 4) Restored my data to the partitions from backups > 5) Reboot > 6) gmirror the ad0 disk The above process is operator error, as both your gpart and gmirror commands are working on the same GEOM (ad0). You need to stack / layer your GEOMs (ie, do one operation on the disk, the other operations on the sub-parts). Either: 1) gmirror the disk (ad0), and then gpart the mirror device (/dev/mirror/whatever), or 2) gpart the disk (ad0), and the mirror the partititons (/dev/gpt/whatev= er) The process you list above is the same as partitioning a disk (ad0), and then newfs-ing the disk (ad0), and wondering where your partitions went. :) (I believe option 1 above is what's causing issues in this thread.) --=20 Freddie Cash fjwcash@gmail.com _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1DQ-BeM1 (FB_stable)
討論串 (同標題文章)
完整討論串 (本文為第 10 之 10 篇):
文章代碼(AID): #1DQ-BeM1 (FB_stable)