Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2002 23:00:59 +0100 (CET)
From:      Michael Reifenberger <root@nihil.plaut.de>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        FreeBSD-Current <current@FreeBSD.ORG>
Subject:   Re: panic during fdisk'ing a md(4) device
Message-ID:  <20020117225217.O521-101000@nihil>
In-Reply-To: <20020117175846.H491-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Thu, 17 Jan 2002, Bruce Evans wrote:
...
> Oops.  There should be no alias for md10c.  Try this version.  It fixes
> the "may want an alias case" in dkmodminor() and moves all the dk inlines
> to subr_diskslice.c.
This patch works better.
This brings us back to the original problem :-)
Now it doesn't panic during fsck immediately, it panics after unconfiguring
the md(4) device (which leaves the /dev/md11* devices in place instead removing
them) reconfiguring and then doing a new `disklabel ...` which tries to do
a (still existing) new 'make_dev("md11s1")'....
See the attached backroot.sh.

Bye!
----
Michael Reifenberger
^.*Plaut.*$, IT, R/3 Basis, GPS

[-- Attachment #2 --]
#!bin/sh

block_size=512
blocks=$((120 * 1024 * 1024 / $block_size))
heads=16
sectors=63
cyl_size=$(($heads * $sectors));
cylinders=$(($blocks / $cyl_size + 2))
echo "$cyl_size $blocks $cylinders"

dd if=/dev/zero of=root.image \
	bs=$block_size count=$(($cyl_size * $cylinders))
mdconfig -d -u 11 
mdconfig -a -t vnode -f root.image -u 11
fdisk -f - -iBv /dev/md11 <<EOF1
g c$cylinders h$heads s$sectors
p 1 165 $sectors $(($cyl_size * $cylinders))
a 1
EOF1
disklabel -r -w md11s1 auto

mdconfig -d -u 11 
mdconfig -a -t vnode -f root.image -u 11
disklabel -r -w md11s1 auto

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020117225217.O521-101000>