Date: Mon, 02 Jul 2018 17:47:27 +0200 From: =?ISO-8859-1?Q?Karli_Sj=F6berg?= <karli@inparadise.se> To: maurizio.vairani@cloverinformatica.it, Maurizio Vairani <clover.informatica.it@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: Reproducible panic playing with zpool remove in FreeBSD 11.2-RELEASE. Message-ID: <392E75BD-2FCE-455A-9654-60BE84556B38@inparadise.se> In-Reply-To: <f2b66f27-d9f0-e79b-142b-d40e6c470be6@cloverinformatica.it> References: <dc187d15-c1c8-4dc2-b760-bfce877e3769@email.android.com> <f2b66f27-d9f0-e79b-142b-d40e6c470be6@cloverinformatica.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On July 2, 2018 5:35:28 PM GMT+02:00, Maurizio Vairani <clover=2Einformati= ca=2Eit@gmail=2Ecom> wrote: >Il 02/07/2018 16:45, Karli Sj=C3=B6berg ha scritto: >> >> >> On Jul 2, 2018 15:52, Maurizio Vairani=20 >> <clover=2Einformatica=2Eit@gmail=2Ecom> 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: <owner-freebsd-fs@freebsd.org> 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 <freebsd-fs@mailman.ysv.freebsd.org>; 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 <freebsd-fs@freebsd.org>; 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 <freebsd-fs@freebsd.org>; 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 <clover.informatica.it@gmail.com> X-Google-Original-From: Maurizio Vairani <maurizio.vairani@cloverinformatica.it> 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?= <karli@inparadise.se> Cc: freebsd-fs@freebsd.org References: <dc187d15-c1c8-4dc2-b760-bfce877e3769@email.android.com> <f2b66f27-d9f0-e79b-142b-d40e6c470be6@cloverinformatica.it> <392E75BD-2FCE-455A-9654-60BE84556B38@inparadise.se> Message-ID: <f1a7b7c3-7604-21a3-ed9a-7f5bf147eb68@cloverinformatica.it> 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 <freebsd-fs.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-fs>, <mailto:freebsd-fs-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-fs/> List-Post: <mailto:freebsd-fs@freebsd.org> List-Help: <mailto:freebsd-fs-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-fs>, <mailto:freebsd-fs-request@freebsd.org?subject=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 > <clover.informatica.it@gmail.com> wrote: > > Il 02/07/2018 16:45, Karli Sjöberg ha scritto: >> >> >> On Jul 2, 2018 15:52, Maurizio Vairani >> <clover.informatica.it@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?392E75BD-2FCE-455A-9654-60BE84556B38>