From owner-freebsd-fs@freebsd.org Mon Jul 2 15:47:34 2018 Return-Path: Delivered-To: freebsd-fs@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 3ABB0102D7C0 for ; Mon, 2 Jul 2018 15:47:34 +0000 (UTC) (envelope-from karli@inparadise.se) Received: from mail.inparadise.se (h-112-105.A444.priv.bahnhof.se [158.174.112.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B4E208E580 for ; Mon, 2 Jul 2018 15:47:33 +0000 (UTC) (envelope-from karli@inparadise.se) Received: from localhost (localhost [127.0.0.1]) by mail.inparadise.se (Postfix) with ESMTP id AF1D143520; Mon, 2 Jul 2018 17:47:31 +0200 (CEST) Received: from mail.inparadise.se ([127.0.0.1]) by localhost (mail.inparadise.se [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id y_4GVi25iprv; Mon, 2 Jul 2018 17:47:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.inparadise.se (Postfix) with ESMTP id AB37143423; Mon, 2 Jul 2018 17:47:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.inparadise.se AB37143423 X-Virus-Scanned: amavisd-new at inparadise.se Received: from mail.inparadise.se ([127.0.0.1]) by localhost (mail.inparadise.se [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id M2jc-vSrEssZ; Mon, 2 Jul 2018 17:47:29 +0200 (CEST) Received: from [172.16.1.221] (unknown [172.16.1.221]) by mail.inparadise.se (Postfix) with ESMTPSA id 3AE8E434BA; Mon, 2 Jul 2018 17:47:29 +0200 (CEST) Date: Mon, 02 Jul 2018 17:47:27 +0200 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Subject: Re: Reproducible panic playing with zpool remove in FreeBSD 11.2-RELEASE. To: maurizio.vairani@cloverinformatica.it, Maurizio Vairani CC: freebsd-fs@freebsd.org From: =?ISO-8859-1?Q?Karli_Sj=F6berg?= Message-ID: <392E75BD-2FCE-455A-9654-60BE84556B38@inparadise.se> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2018 15:47:34 -0000 On July 2, 2018 5:35:28 PM GMT+02:00, Maurizio Vairani wrote: >Il 02/07/2018 16:45, Karli Sj=C3=B6berg ha scritto: >> >> >> On Jul 2, 2018 15:52, Maurizio Vairani=20 >> wrote: >> >> Hi, >> >> boot the 11=2E2-RELEASE installation media in the =2E >> Insert an USB memory stick, suppose it is /dev/da5=2E >> # gpart create -s GPT da5 >> # gpart add -t freebsd-zfs -a 1m -s 1g da5 >> # gpart add -t freebsd-zfs -a 1m -s 1g da5 >> # zpool create -O mountpoint=3D/tmp/ztest ztest da5p1 da5p2 >> # cp /bin/* /tmp/ztest >> # zpool remove ztest da5p1 >> >> >> How are you even able to remove a partition in a pool without >redundancy? >> >> I would've thought ZFS would complain about that and at least force=20 >> you to have an '-f' or something in there=2E=2E=2E >This is a new feature in 11=2E2-RELEASE=2E From ZPOOL-FEATURES(7): >device_removal > > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GUID=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 com=2Edelphi= x:device_removal > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 READ-ONLY COMPAT= IBLE=C2=A0=C2=A0=C2=A0 no > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 DEPENDENCIES=C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 none > >=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 This feature enab= les the=C2=A0=C2=A0=C2=A0 "zpool remove" subcommand to >remove > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 top-level vdevs,= =C2=A0=C2=A0=C2=A0 evacuating them=C2=A0=C2=A0=C2=A0 to reduce the total=20 >size of > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 the pool=2E Ah, cool, I didn't know that! How big is 'bin' then? Because it ought to be smaller than 1 GB for you to= remove it, right? /K --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E From owner-freebsd-fs@freebsd.org Tue Jul 3 08:24:45 2018 Return-Path: Delivered-To: freebsd-fs@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 707DE10291C4 for ; Tue, 3 Jul 2018 08:24:45 +0000 (UTC) (envelope-from clover.informatica.it@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D9DE373B53 for ; Tue, 3 Jul 2018 08:24:44 +0000 (UTC) (envelope-from clover.informatica.it@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id n17-v6so1278577wmh.2 for ; Tue, 03 Jul 2018 01:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=ed6Fp1hqOlcw7KV89aK+hChKcAUfKHgBIWhKaJA3SOY=; b=p8Alx5w47D36FPADBa+yrcioNPUZtVzEEiBjj4TzfpLHPCBk7X26Ymu+hDChjwZjrh VYf53toMO7j7E+Rc7DCyRK0VKlhJjyOwrJbikjAqnJCy2iBkb8j/bRgqeyNV0cK+K1QT ZiEJp1zoLQIsBREmnZC7BB9MIeA85NynFeEmXSebxQgpI1H+Q30KuS5LdAUBMg14F4EQ +uAzpLzOQnf06U36TqHd9dFLiGUWy6jEJ+dpB2zw0KacqGpAvYLhvcxtuI/RTdg9J8H0 6jIzAQMlIn62Wxzr/LR7HyYqZlRRFFzXwGa6RgWzzURcXOt2Rd3Wsj4li5wP09KosQBI S/UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:subject:to:cc:references :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=ed6Fp1hqOlcw7KV89aK+hChKcAUfKHgBIWhKaJA3SOY=; b=RkZeA4X05IMPgm2ootKlvhVJjBoBVVYYlcbOGHbEof3CP3LCqbFHOlHJ+PpbSBxyn5 R6wcF22angh/uuLJl8VislU8NuCAo5XnJLiNT0qJJdj/uuTYadlLH3/Unm7JsbdIdB3j ykxfCBYyylHNA+RKEuQ+72WuBL3DMVKXVIEQGdm68g6uQ/3QpaWhzVRbTUz5v2m5Ge6/ p/aBw3K9cDb56wbiqsQXsHBsZWfhBAwWUrt1t8iTIAOT9ZoDl8jpVMYUTvzyq/bllxpI 7J96fzt91ydczWLhq7GjvMljDuT8bCDQmdhRXZOBdXIv9j7uAif3qzPZhoCTgBQNeO/F zD7g== X-Gm-Message-State: APt69E33dIdwvm67mNxaLoHW+ZWQEcrpC7reWaf5sjOpwfga606zf+Pz NdvtwhhMv46XyB1RZSfa2o7hd7Gr X-Google-Smtp-Source: AAOMgpfiQuVa1Hwg1H7FditPI4Y73cB6ZPAFKOd1xUQzBQzJiX646JwEvV7ndetNZe++idxECgm+9Q== X-Received: by 2002:a1c:2905:: with SMTP id p5-v6mr2832274wmp.78.1530606283591; Tue, 03 Jul 2018 01:24:43 -0700 (PDT) Received: from [192.168.0.60] (host60-31-static.11-79-b.business.telecomitalia.it. [79.11.31.60]) by smtp.gmail.com with ESMTPSA id u4-v6sm793825wro.12.2018.07.03.01.24.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jul 2018 01:24:42 -0700 (PDT) From: Maurizio Vairani X-Google-Original-From: Maurizio Vairani Reply-To: maurizio.vairani@cloverinformatica.it Subject: Re: Reproducible panic playing with zpool remove in FreeBSD 11.2-RELEASE. To: =?UTF-8?Q?Karli_Sj=c3=b6berg?= Cc: freebsd-fs@freebsd.org References: <392E75BD-2FCE-455A-9654-60BE84556B38@inparadise.se> Message-ID: Date: Tue, 3 Jul 2018 10:24:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <392E75BD-2FCE-455A-9654-60BE84556B38@inparadise.se> Content-Language: it-IT Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2018 08:24:45 -0000 Il 02/07/2018 17:47, Karli Sjöberg ha scritto: > > > On July 2, 2018 5:35:28 PM GMT+02:00, Maurizio Vairani > wrote: > > Il 02/07/2018 16:45, Karli Sjöberg ha scritto: >> >> >> On Jul 2, 2018 15:52, Maurizio Vairani >> wrote: >> >> Hi, >> >> boot the 11.2-RELEASE installation media in the . >> Insert an USB memory stick, suppose it is /dev/da5. >> # gpart create -s GPT da5 >> # gpart add -t freebsd-zfs -a 1m -s 1g da5 >> # gpart add -t freebsd-zfs -a 1m -s 1g da5 >> # zpool create -O mountpoint=/tmp/ztest ztest da5p1 da5p2 >> # cp /bin/* /tmp/ztest >> # zpool remove ztest da5p1 >> >> >> How are you even able to remove a partition in a pool without >> redundancy? >> >> I would've thought ZFS would complain about that and at least >> force you to have an '-f' or something in there... > This is a new feature in 11.2-RELEASE. From ZPOOL-FEATURES(7): > device_removal > >            GUID               com.delphix:device_removal >            READ-ONLY COMPATIBLE    no >            DEPENDENCIES           none > >            This feature enables the    "zpool remove" subcommand > to remove >            top-level vdevs,    evacuating them    to reduce the > total size of >            the pool. > > > Ah, cool, I didn't know that! > > How big is 'bin' then? Because it ought to be smaller than 1 GB for > you to remove it, right? > Yes, # du -sh /bin 1.3M     bin