From nobody Sat Sep 17 17:53:03 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 4MVJSs09znz3tpSP for ; Sat, 17 Sep 2022 17:53:17 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (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 4MVJSq6CMcz3dH6 for ; Sat, 17 Sep 2022 17:53:15 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-qt1-f169.google.com with SMTP id s18so15157387qtx.6 for ; Sat, 17 Sep 2022 10:53:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=kinmLzjSzpSb39VmoGCBnkKNu2dUD2mVpXPmsL+j02Q=; b=QswdQbQWPvt27frjBKVnn77H/KJ+1xld29ptYwj+FzTsYe/hKlANVKOdaeJIbsEmVP 7luVKH7PBRPDVPXP6l8VdsVpjzAy59ZT2yJrn2YXo1oI3ax7Sq1BnTsJmYpiTe/jLV1d AQm4sHtjUva+YwX9Hp+LKq0Z4fiySG//1uirqlrfr/vPirSC+sNPetV4a8qGHwT3qAjG ELieAK5+AsY7fcFG1w8qVdTfmno5Q4M8tU/B/HchcDlkFHuyhCv0efo+S3MKeV+sgYeb rQSmWxUk0vuOXgilI+Azx2yCgCOUsWEpczKWZpWFTxxXSWM1FzDuc1wfRLHml47pjotS h3fQ== X-Gm-Message-State: ACrzQf0FSksGGx5uYrsH2965jpwzjsgMJAzGW6hSGDIbvjcOJhtxjyOx cYbutTxyub/0SRL/Qt2Ma/iCMQivwF8VjF77FTCZV1BI X-Google-Smtp-Source: AMsMyM6JkIFCmhyPJYVcVaQLO31nFv/AP7A23/gD3EOHo8RNkffJY7Eel4/LhqTl/P84WHfHVYKgazizE9PpdNnYw50= X-Received: by 2002:a05:622a:1114:b0:35b:bb43:a88d with SMTP id e20-20020a05622a111400b0035bbb43a88dmr8917576qty.139.1663437194154; Sat, 17 Sep 2022 10:53:14 -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 References: In-Reply-To: From: Alan Somers Date: Sat, 17 Sep 2022 11:53:03 -0600 Message-ID: Subject: Re: Need help with live system expansion (zfs+geli) To: milky india Cc: freebsd-fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4MVJSq6CMcz3dH6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of asomers@gmail.com designates 209.85.160.169 as permitted sender) smtp.mailfrom=asomers@gmail.com X-Spamd-Result: default: False [-3.07 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.99)[-0.995]; NEURAL_HAM_MEDIUM(-0.98)[-0.980]; FORGED_SENDER(0.30)[asomers@freebsd.org,asomers@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; RWL_MAILSPIKE_GOOD(-0.10)[209.85.160.169:from]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; FREEMAIL_TO(0.00)[gmail.com]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[asomers@freebsd.org,asomers@gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.169:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[asomers]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On Sat, Sep 17, 2022 at 11:31 AM milky india wrote: > > 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. After doing "gpart resize" but before doing "zpool online -e", you need to do "geli resize".