From owner-freebsd-questions@FreeBSD.ORG Fri Jun 27 06:08:06 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 99F55436 for ; Fri, 27 Jun 2014 06:08:06 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3DA5A2513 for ; Fri, 27 Jun 2014 06:08:05 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.9/8.14.9) with ESMTP id s5R680t7099847 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Jun 2014 08:08:00 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.9/8.14.9/Submit) with ESMTP id s5R680ja099844; Fri, 27 Jun 2014 08:08:00 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Fri, 27 Jun 2014 08:08:00 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: FF Subject: Re: FreeBSD 9.2-p9/FreeBSD 9.3-PRERELEASE zpool import/export problem In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (BSF 23 2013-08-11) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.fig.ol.no Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2014 06:08:06 -0000 On Thu, 26 Jun 2014 21:28-0400, FF wrote: > So I'm having a weird problem that just came up when I went from > freebsd-updated binaries to svn'ing the releng and/or stable source trees. > > When I compile and build a kernel (only), I can create a zpool > > something like: > > zpool create tank ada1 > > I can use it, list it, create files on it, etc. > > I can zpool export it. > > It will still show as online an importable. > > But when I try to reimport it (no reboot or anything): > > root@1:/root # zpool create -f storage2 ada40 > root@1:/root # df -kh > Filesystem Size Used Avail Capacity Mounted on > /dev/ada45s1a 7.9G 6.3G 990M 87% / > devfs 1.0k 1.0k 0B 100% /dev > storage2 913G 31k 913G 0% /storage2 > root@1:/root # zpool export storage2 > root@1:/root # zpool import > pool: storage2 > id: 10010508457819787577 > state: ONLINE > action: The pool can be imported using its name or numeric identifier. > config: > > storage2 ONLINE > ada40 ONLINE > > > root@1:/root # zpool import storage2 > cannot import 'storage2': pool is formatted using a newer ZFS version > > This happens repeatably whether its multi drive or single drive. > > root@1:/root # zfs upgrade > This system is currently running ZFS filesystem version 5. > > All filesystems are formatted with the current version. > > > root@1:/root # ls -al /sbin/z* > -r-xr-xr-x 1 root wheel 96968 Feb 12 2013 /sbin/zfs > -r-xr-xr-x 1 root wheel 92472 Feb 12 2013 /sbin/zpool > root@1:/root # md5 /sbin/zfs > MD5 (/sbin/zfs) = 76ddf1a93f9a045466ead1ef465859d0 > root@1:/root # md5 /sbin/zpool > MD5 (/sbin/zpool) = 29ec8f28ad5c6023ece4bb4eccb49f1e > > There's obviously no data on the system, so reformatting it with > 9.2-RELEASE should fix it, but I'm trying to run a custom kernel and I'm > trying to figure out what I've screwed up along the way. Also, zpool import > -f does not solve it, same error. > > Any suggestions/advice on where this may have gone sideways? It's likely that your zpool created by stable/9 has enabled (and activated some of) the following features: feature@multi_vdev_crash_dump feature@spacemap_histogram feature@enabled_txg feature@hole_birth feature@extensible_dataset feature@bookmarks feature@filesystem_limits They are unsupported by releng/9.2. Sadly, once a feature has been enabled there's no going back. Either continue using stable/9, or when creating a zpool you intend to use on older ZFS systems, try to avoid enabling any features during pool creation, i.e. zpool create -d ... Afterwards you may enable the features you know is supported across the board. Maybe someone else knows a better way. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@FreeBSD.ORG Fri Jun 27 07:19:54 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 25EF7869 for ; Fri, 27 Jun 2014 07:19:54 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 8825D2B2B for ; Fri, 27 Jun 2014 07:19:52 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru (account sudakov@sibptus.tomsk.ru [212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPSA id 35838390 for freebsd-questions@freebsd.org; Fri, 27 Jun 2014 14:19:50 +0700 Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.7/8.14.7) with ESMTP id s5R7JnOK033580 for ; Fri, 27 Jun 2014 14:19:49 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.14.7/8.14.7/Submit) id s5R7Jncm033579 for freebsd-questions@freebsd.org; Fri, 27 Jun 2014 14:19:49 +0700 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 27 Jun 2014 14:19:49 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: hating bsd : stranger than fiction ... Message-ID: <20140627071949.GA33420@admin.sibptus.tomsk.ru> References: <20140626121054.GA2724@DL-H61M-VG3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140626121054.GA2724@DL-H61M-VG3> 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.5.21 (2010-09-15) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2014 07:19:54 -0000 Mayuresh Kathe wrote: > > been looking through various sites for information about enhancing > freebsd security, and dang, i land on; > http://aboutthebsds.wordpress.com/ If what he wrote about BHyVe is true (that it can only run FreeBSD guests), I don't understand what this thing is for. We already have jails, and I have successfully run even ancient versions of FreeBSD in jails (by adding a.out support to the kernel). Please tell me he lied. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru