From nobody Wed May 24 15:54:20 2023 X-Original-To: questions@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 4QRG2n05BHz4CsTZ for ; Wed, 24 May 2023 15:54:25 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 4QRG2l4MGHz41lH for ; Wed, 24 May 2023 15:54:23 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=l1XlQ5VV; spf=pass (mx1.freebsd.org: domain of freebsdlouisville@gmail.com designates 2607:f8b0:4864:20::f30 as permitted sender) smtp.mailfrom=freebsdlouisville@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-624f17dc078so8301916d6.1 for ; Wed, 24 May 2023 08:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684943662; x=1687535662; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:user-agent:mime-version:date:message-id:from:from:to:cc :subject:date:message-id:reply-to; bh=0T/gV+85xRTzqfd6nD+Pi6IjUhceXQSbAaPwHttjz2w=; b=l1XlQ5VVtj8TtqLn+vL36JiJjglOquyvx390Nu+kzRGpT7MYSMap5ObERLhHkzYEnC Qkhp4PNEoGGU25KO4NdSzZM6aQdoAj1reeO5DqreKF4xvHL3032bUBKx1Tp+zutzDjl+ kJxRBuJ45deYRWCFntFt4yT6/BcX+p0Fm13VW6bnJmc83teLUVnB2Zz5rPe53hFZAnKa /lciANTz52CcpErRlY3DemGHYtjPr0+C/FrbdnaU7gbJ05c0QiKzLIAERZWwx8tyTHz/ SHlqMoXntPAgO8uxPQdIZYChujp6FmnySHR/00hLr1x9MuJ61uD18fSJKVKa+7B7iaLB OMgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684943662; x=1687535662; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0T/gV+85xRTzqfd6nD+Pi6IjUhceXQSbAaPwHttjz2w=; b=RUIl+FQJ1l7W9pSaEQZyhuuetgdmqct6bKpTZUZULz75K/bCqMuJSLQTpnahzbZRIL AKjcFnI6KyxL1fCQR88TwzFxZ5mv0IZzhwR98a7TfZhRjHqze2NQ7su8YzYRHvZoRNp4 PQfsmsRTKB+8miPO3SHRwjfIkhfvMB6Yr6vWUUA0Y1Jjh3VeZfXLG7petdnS1Kk/HeKo r/rGjQIMDwHz6L8D6QWFCCKnSm5NJd8ZnYmmSd65YmxAH/m/Ak+/1N3z10ccf0ezA0iL BHzXwaNlifWOvMjoD/iGTe7G3bcj5oqkCfr9vhX+9okghi9iithzm7u9PE1rLgkyaSMw RYHQ== X-Gm-Message-State: AC+VfDzd+78iBujwpKq28nokSzz38iJ7wdKxq/ibRYYUSXNhVg82waYN 82kGqK5w6nyjCG5YDQM3JWk14o03sMjt5w== X-Google-Smtp-Source: ACHHUZ6a6yk5x/wrtPgA0SzNjX06JgfSK2FwWdVaEwuZsZqRnZ1ULKvR6zGemX0mE+M89+a86Eqf5A== X-Received: by 2002:a05:6214:e8f:b0:572:6e81:ae9c with SMTP id hf15-20020a0562140e8f00b005726e81ae9cmr30863421qvb.1.1684943662216; Wed, 24 May 2023 08:54:22 -0700 (PDT) Received: from [192.168.2.10] (254.sub-75-221-175.myvzw.com. [75.221.175.254]) by smtp.gmail.com with ESMTPSA id v16-20020a0ccd90000000b00604ee171d99sm3589752qvm.106.2023.05.24.08.54.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 May 2023 08:54:21 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Message-ID: Date: Wed, 24 May 2023 11:54:20 -0400 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: zfs-on-root, missing swap (fixed subject) To: questions@freebsd.org References: <646cc38a-ab59-1bf2-d7c6-d25371159810@FreeBSD.org> Content-Language: en-US In-Reply-To: <646cc38a-ab59-1bf2-d7c6-d25371159810@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f30:from]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4QRG2l4MGHz41lH X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 5/24/23 10:54 AM, Matthew Seaman wrote: > On 24/05/2023 14:20, Steven Friedrich wrote: >> On 5/24/23 8:59 AM, Steven Friedrich wrote: >>> Just this morning, I installed 13.2 on a USB 500 GB SSD  I changed >>> swap size from 2GB to 128GB. >>> >>> Running synth to install kde5, noticed several build fails and synth >>> claims swap is n/a. >>> >>> Checked both df and mount, no swap shown.  Also swapinfo shows no swap. >>> >>> Where did it go? > > What's the result of `gpart show /dev/ada0` ?  (Assuming ada0 is the > correct device name for your SSD device.) > > You should see something like this: > > ``` > # gpart show /dev/ada0 > =>       34  976773101  ada0  GPT  (466G) >          34          6        - free -  (3.0K) >          40        984     1  freebsd-boot  (492K) >        1024   16776352     2  freebsd-swap  (8.0G) <<<-----**** >    16777376  959995752     3  freebsd-zfs  (458G) >   976773128          7        - free -  (3.5K) > ``` > > which tells you the allocated swap area is /dev/ada0p2.  You should > then be able to add a line in /etc/fstab like so: > > /dev/ada0p2 none swap sw 0 0 > > and then run: > > `service swap start` > > More complicated setups are possible, like swapping to a gmirror > across partitions on two physical drives, or using glabel to name the > partition -- useful if you have removable drives that can upset the > device numbering. > > It's not advisable to swap to a ZFS or to a file held on ZFS: > performance will be bad and you run the risk of system lockups where > ZFS will demand more swap before it can provide access to the swap area. > > 128GB is (I think) the absolute maximum configurable swap size in > FreeBSD 13.2 -- generally it's advisable to limit swap to about the > same as RAM on systems with more than 4GB RAM.  See tuning(7). > >     Cheers, > >     Matthew Thanks for the response.  I already discovered the problem.  I was installing from a USB stick, whuch was assigned da0.  When I rebooted, I pulled that and the SSD became da0, instead of da1. All I had to do was edit /etc/fstab and change da1p3 to da0p3. 8o) I also re-installed because it was complaining about swap size. I re-installed with only 64GB swap. -- FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64