From owner-freebsd-current Thu Jul 19 5: 5:59 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 5F69437B640 for ; Thu, 19 Jul 2001 05:05:52 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id WAA13066; Thu, 19 Jul 2001 22:05:36 +1000 Date: Thu, 19 Jul 2001 22:03:23 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: sthaug@nethelp.no Cc: mjacob@feral.com, current@FreeBSD.ORG Subject: Re: fatal flaw in diskcheckd... In-Reply-To: <64361.995534895@verdi.nethelp.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 19 Jul 2001 sthaug@nethelp.no wrote: > > > So, I took a SCSi disk away. Diskcheckd started complaining. However, > > > a camcontrol rescan couldn't make the disk go away until I killed off > > > diskcheckd, which then closed the disk, allowing the rescan to remove it. > > > Bad. Bad. Bad. > > > > This may also have caused your disklabel problems. The old label doesn't > > go away until all minors on the device are closed, at least when you clobber > > the label using the dd hack. > > In some situations it would be very useful to be able to tell the kernel > "forget all you ever knew about disklabel X". Any good mechanisms to do > this today (other than reboot)? Nothing good, by the DIOCSYNCSLICEINFO ioctl tells the kernel to reread all the slice and label info from the disk like it would after a reboot. It is used by libdisk (and thus mainly by sysinstall). It has a force flag that makes it attempt to work when minors other than the one needed to do the ioctl (the one for the whole disk) are open. I don't really trust it when it is forced, but libdisk always forces it. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message