From nobody Sat Sep 17 17:31:31 2022 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MVHzz2B5sz3tkv5 for ; Sat, 17 Sep 2022 17:31:43 +0000 (UTC) (envelope-from milkyindia@gmail.com) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MVHzy1Gwlz3btC for ; Sat, 17 Sep 2022 17:31:42 +0000 (UTC) (envelope-from milkyindia@gmail.com) Received: by mail-ot1-x336.google.com with SMTP id h9-20020a9d5549000000b0063727299bb4so17025289oti.9 for ; Sat, 17 Sep 2022 10:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=cgetaj9PFF64ATzjd596R56/s7gkHmtOuVUycC/IGhY=; b=Yie1oX4We7dJHCfJarGzvYBThv5H6QkVYvnfBVgXFIyNyqlTpJdVyGPLfHit7NUis4 6+YME8VdWzqfKVFI6ARfx2b7wNJPPFPWi2Jo1CSpKs1CuOZE3BQ5FUGKs3UI+oXsgHXT dT6fI7QrmI9uzYlWZwg07W3SaeU0g2s4qqV114UWNc54nnTMdH9bdKaLS8AMR2Qm0Olr eDpDOUDJYDg0obMufy/H1TySgf8jESWLvQyGw0x1LlOVhOED8vKKl8PKfyh3ChXTyJJi +jv/KtWAV4TfhQUdIHit7HeqB8IiLZUpxPBStgmort0N8JSxY3KyT87xu+CdbNK/iDHh bFSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=cgetaj9PFF64ATzjd596R56/s7gkHmtOuVUycC/IGhY=; b=K8RDELO7uEaJfjYB9bvzQnmYW7GUI2TjZz3Lo4+MVrgbQmHsRPtCaAVBLGQ7fJyTzt ing7QT/wpYYA4vsvJFUN+Z3jBNNNljh2fod0gr9+Gy0sPvjnyDUO8MbT15FVeQZJzVHx +R+ek65cu9KXberpyYBEdjTFGFg9CzkbI07/q6fG01CuKVdFUjh+Y9PUP2BhyNfxajEn 2WzrWnn+zzlJmtHEvWpjP9Rq5pm8PMLTOC/+4ehXzpI6IZiuul9YMcX5ktgo0UMdtYiw ZC8gye+LF73OIlvxpFqdizWtnWYKHMdiXBFb6aMJ20I3vpAX0hgjhbh55Y1pF3llAkHT EgSw== X-Gm-Message-State: ACrzQf39sQf8ZFUzM9fuW1vdKJ0v6R/LMEkDUjjnWqdKHORe78BNk+OB 5S2Ctx5pCREdx6rZH1+qXwzqCk3obpgsBvDrCwsR4gRRpQ3fvA== X-Google-Smtp-Source: AMsMyM7gppd0cVvyW3VNVhDhEwSFL+WAa04Q/AOBePrtx+Dn1xNZy0AcOUlSnUjCwVDtcbHNbYUnQ6XW8n9XflqowB8= X-Received: by 2002:a9d:1781:0:b0:639:39ee:9c4c with SMTP id j1-20020a9d1781000000b0063939ee9c4cmr4908536otj.234.1663435900971; Sat, 17 Sep 2022 10:31:40 -0700 (PDT) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 From: milky india Date: Sat, 17 Sep 2022 21:31:31 +0400 Message-ID: Subject: Need help with live system expansion (zfs+geli) To: freebsd-fs@freebsd.org Content-Type: multipart/alternative; boundary="000000000000fbefe605e8e2d9b4" X-Rspamd-Queue-Id: 4MVHzy1Gwlz3btC X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=Yie1oX4W; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of milkyindia@gmail.com designates 2607:f8b0:4864:20::336 as permitted sender) smtp.mailfrom=milkyindia@gmail.com X-Spamd-Result: default: False [-3.85 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-0.95)[-0.952]; NEURAL_HAM_LONG(-0.90)[-0.899]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::336:from]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --000000000000fbefe605e8e2d9b4 Content-Type: text/plain; charset="UTF-8" I am writing to you from a live system (zfs+geli) that I am in the middle of resizing to fit the entire disk. Background : The freebsd os (geli encryption) was installed using 290G only on a 500G SSD. The disk was almost getting full - hence the need for more space - can't use backup, hence on a live system. This is the disk : ------------------------------------------------------------- gpart show => 40 976773088 ada0 GPT (466G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 16777216 2 freebsd-swap (8.0G) 16779264 608362496 3 freebsd-zfs (290G) 625141760 351631368 - free - (168G) ----------------------------------------------------------------- this is the output after resizing : --------------------------------------------------------------- sudo gpart resize -i 3 ada0 Password: ada0p3 resized terminal$ gpart show => 40 976773088 ada0 GPT (466G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 16777216 2 freebsd-swap (8.0G) 16779264 959993864 3 freebsd-zfs (458G) ------------------------------------------------------------------- I went ahead and did ------------------------------------------------ zpool online -e zroot /dev/ada0p3.eli -------------------------------------------------- However it didn't produce any output, strangely and the output of zpool list also doesn't seem to show that the disk is fully occupied 458G vs 290G - it's the same output as before: ------------------------------------------------------------------------- zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT zroot 290G 270G 19.9G - - 69% 93% 1.00x ONLINE - ----------------------------------------------------------------------------- What do I do next? I'm really stressed and hoping this live system doesn't fail. I did try the freebsd forums and was suggested to ask here. Note 1 : As the handbook suggested for a live system - I have set ------ sysctl kern.geom.debugflags=16 ---------- source : https://docs.freebsd.org/en/books/handbook/disks/ Sorry for bothering you - but really could use some help. --000000000000fbefe605e8e2d9b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am writing to you from a live system (zfs+geli) that I a= m in the middle of resizing to fit the entire disk.

Background : The= freebsd os (geli encryption) was installed using 290G only on a 500G SSD. = The disk was almost getting full - hence the need for more space - can'= t use backup, hence on a live system.

This is the disk :
--------= -----------------------------------------------------
gpart show
=3D&= gt; =C2=A0 =C2=A0 =C2=A0 40 =C2=A0976773088 =C2=A0ada0 =C2=A0GPT =C2=A0(466= G)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A040 =C2=A0 =C2=A0 =C2=A0 1024 =C2=A0= =C2=A0 1 =C2=A0freebsd-boot =C2=A0(512K)
=C2=A0 =C2=A0 =C2=A0 =C2=A0106= 4 =C2=A0 =C2=A0 =C2=A0 =C2=A0984 =C2=A0 =C2=A0 =C2=A0 =C2=A0- free - =C2=A0= (492K)
=C2=A0 =C2=A0 =C2=A0 =C2=A02048 =C2=A0 16777216 =C2=A0 =C2=A0 2 = =C2=A0freebsd-swap =C2=A0(8.0G)
=C2=A0 =C2=A016779264 =C2=A0608362496 = =C2=A0 =C2=A0 3 =C2=A0freebsd-zfs =C2=A0(290G)
=C2=A0 625141760 =C2=A035= 1631368 =C2=A0 =C2=A0 =C2=A0 =C2=A0- free - =C2=A0(168G)
---------------= --------------------------------------------------
this is the output af= ter resizing :
---------------------------------------------------------= ------
sudo gpart resize -i 3 ada0
Password:
ada0p3 resized
ter= minal$ gpart show
=3D> =C2=A0 =C2=A0 =C2=A0 40 =C2=A0976773088 =C2=A0= ada0 =C2=A0GPT =C2=A0(466G)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A040 =C2=A0 = =C2=A0 =C2=A0 1024 =C2=A0 =C2=A0 1 =C2=A0freebsd-boot =C2=A0(512K)
=C2= =A0 =C2=A0 =C2=A0 =C2=A01064 =C2=A0 =C2=A0 =C2=A0 =C2=A0984 =C2=A0 =C2=A0 = =C2=A0 =C2=A0- free - =C2=A0(492K)
=C2=A0 =C2=A0 =C2=A0 =C2=A02048 =C2= =A0 16777216 =C2=A0 =C2=A0 2 =C2=A0freebsd-swap =C2=A0(8.0G)
=C2=A0 =C2= =A016779264 =C2=A0959993864 =C2=A0 =C2=A0 3 =C2=A0freebsd-zfs =C2=A0(458G)<= br>-------------------------------------------------------------------
= I went ahead and did=C2=A0
--------------------------------------= ----------
zpool online -e zroot /dev/ada0p3.eli=
------------------------------------= --------------
However it didn't prod= uce any output, strangely and the output of zpool list also doesn't see= m to show that the disk is fully occupied 458G vs 290G - it's the same = output as before:
-----------------------= --------------------------------------------------
zpool l= ist
NAME =C2=A0 =C2=A0SIZE =C2=A0ALLOC =C2=A0 FREE =C2=A0CKPOINT =C2=A0E= XPANDSZ =C2=A0 FRAG =C2=A0 =C2=A0CAP =C2=A0DEDUP =C2=A0 =C2=A0HEALTH =C2=A0= ALTROOT
zroot =C2=A0 290G =C2=A0 270G =C2=A019.9G =C2=A0 =C2=A0 =C2=A0 = =C2=A0- =C2=A0 =C2=A0 =C2=A0 =C2=A0 - =C2=A0 =C2=A069% =C2=A0 =C2=A093% =C2= =A01.00x =C2=A0 =C2=A0ONLINE =C2=A0-
------------------------= -----------------------------------------------------

What do= I do next? I'm really stressed and hoping this live system doesn't= fail.
I did try the freebsd forums and was suggested to ask here.
<= br>Note 1 : As the handbook suggested for a live system - I have set
---= --- sysctl kern.geom.debugflags=3D16 ----------
source :=C2=A0https= ://docs.freebsd.org/en/books/handbook/disks/

Sorry for bothering you - but really could use some help.
--000000000000fbefe605e8e2d9b4--