From owner-freebsd-questions@freebsd.org Fri Mar 23 02:32:12 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11691F61B93 for ; Fri, 23 Mar 2018 02:32:12 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 570D87A87F for ; Fri, 23 Mar 2018 02:32:10 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 39961932; Fri, 23 Mar 2018 08:27:15 +0600 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.15.2/8.15.2) with ESMTP id w2N2W65H056343; Fri, 23 Mar 2018 09:32:08 +0700 (+07) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.15.2/8.15.2/Submit) id w2N2W2b8056337; Fri, 23 Mar 2018 09:32:02 +0700 (+07) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 23 Mar 2018 09:32:02 +0700 From: Victor Sudakov To: Warren Block Cc: freebsd-questions@freebsd.org Subject: Re: Solved. Re: Dualboot and ZFS Message-ID: <20180323023202.GA55860@admin.sibptus.transneft.ru> References: <20180115151526.GA66342@admin.sibptus.transneft.ru> <20180116034929.GB89443@admin.sibptus.transneft.ru> <20180131082738.GA46395@admin.sibptus.transneft.ru> <547e65d16ef16667f61d88463ca73079@roundcube.fjl.org.uk> <20180319025914.GA57490@admin.sibptus.transneft.ru> <20180322012621.GA15678@admin.sibptus.transneft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.9.3 (2018-01-21) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2018 02:32:12 -0000 Warren Block wrote: > >> On Mon, 19 Mar 2018, Victor Sudakov wrote: > >>> > >>> sysctl kern.geom.debugflags=0x10 > >> > >> Please reconsider doing this without it being required. It means "allow > >> destroying mounted partitions" and is usually not necessary. > > > > It is recommended, or even required ("must") by the zfsboot(8) man page: > > The vagueness here is from the "If the drive is currently in use". It > could easily be replaced with "If the user wants to destroy data from a > drive that is currently being used". In my script, the ${DISK} is supposed to be a new disk onto which a system is installed (cloned actually), so any data thereon would be destroyed anyway. > I would argue that we should > remove or rewrite that, as it is misleading. Overwriting a drive that > is "in use" is generally exactly the opposite of what people want. I'm afraid your concern is a bit misdirected. If you can suggest a way to install zfsboot without dd, and document it in zfsboot(8) then of course kern.geom.debugflags=0x10 is better avoided. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN AS43859