From nobody Thu Nov 23 09:23:40 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 4SbXjc3W0Zz51Bm2 for ; Thu, 23 Nov 2023 09:23:48 +0000 (UTC) (envelope-from mirror176@hotmail.com) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02olkn2048.outbound.protection.outlook.com [40.92.43.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SbXjb3Lhyz4J3x for ; Thu, 23 Nov 2023 09:23:47 +0000 (UTC) (envelope-from mirror176@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=jg8Yrm8N; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (mx1.freebsd.org: domain of mirror176@hotmail.com designates 40.92.43.48 as permitted sender) smtp.mailfrom=mirror176@hotmail.com; dmarc=pass (policy=none) header.from=hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S1Beayo3wsRRumvc0F+rXgEnDBe9lFape/Ef5PKepbE4Bo/ZrzyGT7wgjUvma76ZDhk1tswzmBjNuEevfDh+Muig8qM0WzhdKDVR0HCpAjQLg20B4fiWFZejHWX968t+OF/ip0NCItbTbAIMp19Xq2JAvOIHmAtVdBCU2UqNTd65u1PNwAus3kC2XodPbEDqIal9zZ5H8AZWHiHQYoqB8Kh/Lm2Li4yQ5+j+y+jyvScuiIX16HGVR3KnDz2IKKB3UpnZhXAKPf9YBB6yHF6D+sDwc95bAnJKZK0E7jqYvDGnNUe/51g8K5UV32ouLGaJeHgx2IffJoSb+R24tVxXdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ewBAcSKqsUixyppYh8DZ0tHCbYZlRIUk1K7ReAiU+6s=; b=bg4E0vS+y2fPZfhyFeUVc4bX69EAv88B9pPZs4uixIhJx+/NldX8bZEPPf5EXPMrmddhRcFgsyQwVJd72IS9Lxr7rNj+Tj0qTHOoR6xP4bPXHwQlYPSrAj8IzYEtqf8vXwZmz8SP4E8Hc/4oB7rCe5OJtNkfBoE0D/W6N7b8z14NJBa+LA5kgPtlDrH+JCohf46OBbUu2dlZQcb4RqIRUGsONoGdGjmIdCNg1xaEeAD2JAvf8LYmnqSekacXF0bFMwDuTNzKNX7awDGvWoAS8tHeIOulc+sr4FdQYT7D9CyGy1VwZ2jvmGWYsBvII472wBmX5KNBd8C4bbGj3w3Ywg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ewBAcSKqsUixyppYh8DZ0tHCbYZlRIUk1K7ReAiU+6s=; b=jg8Yrm8N7XWs/L7BukNfVj+K7z56Q4tP2rqkTTm7mmgnkWCStW9z/hFdx+bANGPqyZYrgCBtmuHzVmi6VrxlxQNzsCfBoUs0mclqfR4IjjgXCr+T8rf0Q95i6e9zxUz7fkXXFGWB09H+WrHu5Ro06CYYrMZM0YBhtrG9Zzenu7n5yOpiJPFFTGzz2WlO4fXAsfo4yDHvRfgXgwcfng94YMsa8KKPTGaPSU+JWL2OXrrK1t56tyzxUx609fQppLgn0U6XgAykoToWdgy8Mo5DSYGvLk98fqhN+UdS/v9ISzltUBpTahqP2Y+8QKnATO9UwjTCMvfAsOyaQnq1UrVkAQ== Received: from CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) by MW4PR11MB6887.namprd11.prod.outlook.com (2603:10b6:303:225::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.26; Thu, 23 Nov 2023 09:23:45 +0000 Received: from CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::10a1:33d7:1d06:31ea]) by CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::10a1:33d7:1d06:31ea%4]) with mapi id 15.20.7025.020; Thu, 23 Nov 2023 09:23:45 +0000 Message-ID: Date: Thu, 23 Nov 2023 02:23:40 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: I am sick and tired of the poor quality of documentation on FreeBSD Content-Language: en-US To: questions@freebsd.org References: <1781224.E1bnfOMcs6@ravel> From: "Edward Sanford Sutton, III" In-Reply-To: <1781224.E1bnfOMcs6@ravel> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [5gP9NoYraRS4A4/wlz3nWvpCt5S2TOSW] X-ClientProxiedBy: BL1PR13CA0115.namprd13.prod.outlook.com (2603:10b6:208:2b9::30) To CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) X-Microsoft-Original-Message-ID: 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 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB4770:EE_|MW4PR11MB6887:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d9f215a-2b79-4a0e-4b1e-08dbec05e38d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-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NOSFVTL0M5N3l0Ly9p?= =?utf-8?B?T2dJaVNHMmRiRDdac0tTbTlMOVF1OWVBOTcyTjA3dWRpUzJQVkpIa0dOOU9v?= =?utf-8?B?b1RrYURDZWJyUVhpZ29nR3VRaXRWejc5MlFTbzRNd2QxZTNxeFlUNzNrQ2gz?= =?utf-8?B?aG5mTXQ0RGpBbkdMY2JzRnBJYjZsUlB0eWhlcDE3NXlYWUU4N0FRQXhoMzhH?= =?utf-8?B?Mm5UcHVIY3lYYVhlOEVOOUhzRW5xT2N3M0tIRU5NbllqR0hLelFFdk1Ma3lz?= =?utf-8?B?Uko1cGJuUjdjVm10aE9TZTk2alhXZmVMTXBVdzRQK08wSzFFeXgwSHp5bTVy?= =?utf-8?B?S2EzUGFJZVZEZTIxMUUxeElYSUFDL01pVStlMVUyZEUvNGR2LzhpdkJTdktl?= =?utf-8?Q?IRS+I6wxmUKRHlEcQGK3WdIg+xHmWmYsDR8UnIOlCrNM=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 9d9f215a-2b79-4a0e-4b1e-08dbec05e38d X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4770.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 09:23:45.5859 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB6887 X-Spamd-Result: default: False [-2.50 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/16]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_IN_DNSWL_NONE(0.00)[40.92.43.48:from]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.43.48:from]; DKIM_TRACE(0.00)[hotmail.com:+]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4SbXjb3Lhyz4J3x X-Spamd-Bar: -- On 11/23/23 01:01, Olivier Certner wrote: > Hi, > >> Another fun gotcha is if you use zpool send+zpool receive to write a >> backup of a boot disk to removable media instead of writing the >> datastream as a file to the backup media, you get to learn about the fun >> of when your backup mounted in place of the live system because its >> properties said for it to be mounted there. I make modifications to zfs >> properties on the receiving side to fix that and some other >> issues+desires but suspect there are more things I have to learn in this >> space. > > I've also been bitten by this a few times a while ago. You may want to look at option '-R' in zpool-import(8), even if I agree it's not ideal since it has to be applied at each import, whereas we would like it to be so automatically to avoid foot-shooting. Rather than hope I will do an export/import dance of a backup drive with the flag, I prefer to use -x or -o to change properties to a different state while they are on the backup drive before they have a chance to take effect. This also works nice to set different compression settings, decide if atime should be enabled or not, and even put the backup into a read only state automatically. Keeping settings like refreservation from being overridden just because a backup seems important instead of just an afterthought since the two disks are likely different sizes with different needs. These 'overrides' are noted so that zfs inherit -S can get you back on track if wanting to start using the data in place with original properties or -b for when data gets sent the other way. > Regards. >