From owner-freebsd-questions@freebsd.org Mon Mar 15 01:20:30 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3E91F569709 for ; Mon, 15 Mar 2021 01:20:30 +0000 (UTC) (envelope-from gobble.wa@gmail.com) Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DzJWc692Mz3HXb for ; Mon, 15 Mar 2021 01:20:28 +0000 (UTC) (envelope-from gobble.wa@gmail.com) Received: by mail-ej1-x630.google.com with SMTP id ci14so63360741ejc.7 for ; Sun, 14 Mar 2021 18:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=QOKAztRVTi4ofTR8KpZS+zudiu2h+GIwjmr2MG2shb4=; b=j2YJk5/yro+8EOpfu5WVBHs775m7Q6s7RFnL8BDhjF0pJ2JG0AYwly2l15oF0fGcg6 DcnKOvfylSEvmR1/XkzEDRRLG0mNAAEABkor87SRo5YMyCIXGb/DPhtLrJVtee9yrpiA i0PVHxUVvJW6RORa+T1fL9LnYoqmVSnNxpzh+rTzy+5En6o6XaAvCo071lbvauS/n6ih pr973ubL5QuTCmep4uXc8olGmFNH+paour14+dirG+kdSYacbmy2iRwcpKpwLnMeQbpE lJ735fBs6NgpZbl6qDMdVggpIPMXnJEPKNK1ACKxfCPf3L6N20bTtXx0VGwiDwXBBl8k NxGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=QOKAztRVTi4ofTR8KpZS+zudiu2h+GIwjmr2MG2shb4=; b=bJwdXpSE0F7Z1R8r4LGNCTKzjd2z81nkl4zZ75AEoXIGEQcF49X1VEcpPvnKH/0UV0 qhdxMCwFMN+YQCrwmToCuU6bJEOsq+FQ6p4FUsuAVAGXZq7Yn2+aQwbN1SqAWRkHfWJ8 uGllZQchi50gCskcrrGAAuSkEGCZlfx0T5dNxvuOxDBgMXXf5DMZTj3hXTAdVj3G2a1f gouFos3Pwu7sgDnqisfK1H0Wk4VRhr9XAZoBwILeWKmX3CrmAF5OfL0nLpoRQcO9ldYZ 64nJZjHu3c/fDOOZ4YuFV0U/u2GENJQ/nePWqeT5X+UJsXMi2U/sy0FiEpfPgT1n9SYr 8MgA== X-Gm-Message-State: AOAM530KPR+xLIRUqWFQh9s/lrD4ytjf5HwAv5sxEnHr3LBi1uedXvus e4qII2vY9NFZhRuiuM6YpBYGciF7+6XixT7XZsmuYrzLKzhGPw== X-Google-Smtp-Source: ABdhPJy/k9Aj9mortiBGf/cDrFoLbx6k2x6S5Gv+B1YwDSycarD9LjmA1Zv0DdGVSfrnVJTQdYwJuJ5aK+G/4HV67Rg= X-Received: by 2002:a17:906:4410:: with SMTP id x16mr21075505ejo.446.1615771226223; Sun, 14 Mar 2021 18:20:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Waitman Gobble Date: Sun, 14 Mar 2021 21:20:15 -0400 Message-ID: Subject: Re: Disappearing files in FreeBSD 13.0-R2 To: FreeBSD Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4DzJWc692Mz3HXb X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=j2YJk5/y; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gobblewa@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) smtp.mailfrom=gobblewa@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::630:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::630:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::630:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2021 01:20:30 -0000 On Sun, Mar 14, 2021 at 8:00 PM David Christensen wrote: > > On 3/14/21 4:03 PM, Waitman Gobble wrote: > > I did a fresh install using ZFS with encryption. I copied the files on a > > second drive (UFS) to /usr/home/backup (ZFS). I reformatted the second > > drive ZFS and created a new pool "home" for that drive. It decided to mount > > the drive as /home. AFAIK i never told the system to do that. But /home and > > /usr/home are different, there is no link. > > > > I can only see /usr/home/backup if i boot into single user mode. If i mount > > read write or boot normally then /usr/home is empty. > > > > I copied the files to a usb drive. > > > > How do i delete the backup? Its taking up 100 gb. I can see them read only > > and copy to usb drive, but as soon as i mount read write they disappear. I > > did not import the home pool, it does not show up in the status command. > > > Please run the following commands and post your console session: > > # gpart show > > # zpool list > > # zfs list -d 1 > > # zfs list -r -t all home > > > David Thanks for the reply. Ok, Here's the info from multi-user mode. In single user mode the 'home' pool (second drive) doesn't show up in status or list or anything, which is fine. When I boot into single user mode / read only then /usr/home has 100gb of backup. If I reboot to multi-user or mount read-write in single user then the files in /usr/home disappear. (even if the second drive isn't mounted). The 80 GB avail should be like 180GB I think, it's a 250GB drive. The usage stats don't change if the files in /usr/home appear or not. The home directory for the second drive is /home which isn't a link to /usr/home or vice-versa AFAIK. in multi-user mode /home has my files, /usr/home is empty. in single-user read only , /home is empty and /usr/home has the backup files. root@ayo:/home # gpart show => 40 488397088 ada0 GPT (233G) 40 532480 1 efi (260M) 532520 1024 2 freebsd-boot (512K) 533544 984 - free - (492K) 534528 4194304 3 freebsd-swap (2.0G) 4728832 483667968 4 freebsd-zfs (231G) 488396800 328 - free - (164K) => 40 976773088 ada1 GPT (466G) 40 976773088 1 freebsd-zfs (466G) => 40 976773088 da0 GPT (466G) 40 2008 - free - (1.0M) 2048 976771072 1 freebsd-ufs (466G) 976773120 8 - free - (4.0K) => 40 976773088 da1 GPT (466G) 40 2008 - free - (1.0M) 2048 976771072 1 freebsd-ufs (466G) 976773120 8 - free - (4.0K) root@ayo:/home # zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT home 464G 294G 170G - - 0% 63% 1.00x ONLINE - zroot 230G 142G 87.6G - - 0% 61% 1.00x ONLINE - root@ayo:/home # zfs list -d 1 NAME USED AVAIL REFER MOUNTPOINT home 294G 156G 294G /home zroot 142G 80.4G 96K /zroot zroot/ROOT 140G 80.4G 96K none zroot/tmp 184K 80.4G 184K /tmp zroot/usr 1.38G 80.4G 96K /usr zroot/var 877M 80.4G 96K /var root@ayo:/home # zfs list -r -t all home NAME USED AVAIL REFER MOUNTPOINT home 294G 156G 294G /home root@ayo:/home # ls /usr/home/ [nada] root@ayo:/home # -- Waitman Gobble