From owner-freebsd-questions@freebsd.org Tue Mar 23 16:37:35 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 AC62C5B3AAA for ; Tue, 23 Mar 2021 16:37:35 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [195.30.95.33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F4cV65LcMz3Lj1 for ; Tue, 23 Mar 2021 16:37:34 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from server.idefix.lan (040-137-067-156.ip-addr.inexio.net [156.67.137.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: idefix@fechner.net) by anny.lostinspace.de (Postfix) with ESMTPSA id 96CC9517E4; Tue, 23 Mar 2021 17:37:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fechner.net; s=default; t=1616517451; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2vyvaUzXQQYFvsOCLiGQiQ9LiiGLNhfFQE2rVIhx5lI=; b=t6qHYKs2oHGmWrKD2J1C8GiuIh9NIkboUt8JzSky7o8Xerdj2Me9XlZaXm0poGOH8vi8os tJFYaakrY7btOmzcglxVShPVie9oEPJkpFJKdN8o5xP3KOTFORaUUdNLH8Gp3vxK0Vzjmj pMTqoBDxtBvCiMEcB4pvI5/iyHuq7jg= Received: from [192.168.0.151] (040-137-067-156.ip-addr.inexio.net [156.67.137.40]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by server.idefix.lan (Postfix) with ESMTPSA id DB39E14095A; Tue, 23 Mar 2021 17:37:30 +0100 (CET) To: Waitman Gobble , FreeBSD References: <202103230747.12N7lnl0000125@sdf.org> From: Matthias Fechner Subject: Re: Disappearing files in FreeBSD 13.0-R2 Message-ID: <0ade3392-4e85-fba0-e614-4351ef77e23f@fechner.net> Date: Tue, 23 Mar 2021 17:37:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Rspamd-Server: anny.lostinspace.de X-Rspamd-Queue-Id: 4F4cV65LcMz3Lj1 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fechner.net header.s=default header.b=t6qHYKs2; dmarc=pass (policy=none) header.from=fechner.net; spf=pass (mx1.freebsd.org: domain of idefix@fechner.net designates 195.30.95.33 as permitted sender) smtp.mailfrom=idefix@fechner.net X-Spamd-Result: default: False [-6.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[195.30.95.33:from]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[fechner.net,none]; DKIM_TRACE(0.00)[fechner.net:+]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; ASN(0.00)[asn:5539, ipnet:195.30.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[156.67.137.40:received]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[fechner.net:s=default]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[fechner.net:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; 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: Tue, 23 Mar 2021 16:37:35 -0000 Am 23.03.2021 um 16:40 schrieb Waitman Gobble: > What's basic? I've done this many times with UFS systems but maybe the > first time with ZFS. Maybe creating a pool named "home" mucked things > up for me. The solution was simply deleting /home, an empty directory. > After deleting the backup files I decrypted the second drive, imported > it and it magically showed up on /usr/home where I wanted it. Then I > made a symlink from /usr/home to /home, just because it's always been > that way that I remember. When I have time I'll check out that ZFS > book somebody pointed out. be very careful here. If you use the standard configuration and you create a "directory" in=20 your pool, zfs automatically mount it based on the configuration of your = pool. So if your zroot mounts to / and you create zroot/home it will be=20 mounted to /home. If you want to migrate an old UFS to ZFS make sure you mount your new=20 zpool to an alternative root, to not shadow your current data: zpool create -f -o altroot=3D/mnt zroot /dev/gpt/... (your disc label) If you have already a pool you can them import to an alternative root: zpool import -f -o altroot=3D/mnt -d /dev/gpt zroot Replace zroot with your poolname. Gru=C3=9F Matthias --=20 "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook