From nobody Sun May 21 14:14:00 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 4QPMyn0DbXz4CYFs for ; Sun, 21 May 2023 14:14:25 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 4QPMyl6QmDz3CrY for ; Sun, 21 May 2023 14:14:23 +0000 (UTC) (envelope-from dch@skunkwerks.at) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=skunkwerks.at header.s=fm2 header.b="Gs/e+cz6"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=pBjEUhef; spf=pass (mx1.freebsd.org: domain of dch@skunkwerks.at designates 66.111.4.28 as permitted sender) smtp.mailfrom=dch@skunkwerks.at; dmarc=pass (policy=none) header.from=skunkwerks.at Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 644495C00CB; Sun, 21 May 2023 10:14:22 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute1.internal (MEProxy); Sun, 21 May 2023 10:14:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1684678462; x=1684764862; bh=Qu 4am9hRolx0u3gk+BgdkC9dR3flwu3LCPO6X5BaB4g=; b=Gs/e+cz6eIfyiF3aS/ OFtamRu/jEocSYDG7WtyG9JO7IgPK7GWwv2Q3DCW+KWYrnZCX1VkA4RKd52dyP+J SO8DtMFwYAfAQaOG294dNBliCNVt3uk1h+GSascW7m8sg1ztNbTwoRs7Bi19lRkn GzhnSDXuQ0t75VSeOINT/PfzuaECNa1OM2pVQBEBRQNKJDK+S7NWDn0WAX7z6x23 A/PE2oAm1fpPLjGCYGt6dWY/dqYYRFDqgCIYsXoR/1e03TC95Hr7pY5AlQLBzSOS NH4uqnVmTb0XRtnEMCWNaz6ec11efZVxk2I+AwxactCo42lI4K8Z3skpUO+KwPE2 mhzg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684678462; x=1684764862; bh=Qu4am9hRolx0u 3gk+BgdkC9dR3flwu3LCPO6X5BaB4g=; b=pBjEUhefS/JVOFfkei2D0EgFccjNn bGa6RtofULIGcwDsLs8Tcq3+i70Rsk0HPGi3yYc/z+NZIrdVb51yMP6ZW1qRHT8c UWP2I74sJpwTfAf6S/fighUWpZF/L1uPY+brnMNGK18yZjyXc6vbsWKLDdCfnPcF VJZluZO2pj0GsSeJT5yBGdwxzCaq4Du/1P+jxal21weZSxuHcEUcerMMclAJnvxS gGV7DBVpkPNb7Kq4/pI9/GTdzoUmZwDFNL+IAq5kj+lmmeKKPlkaAuTDEGHMdqkQ KLXJfa9K8tQ+zXFIjCOX5ZdFJyb1id5SQAOOfCVI68QT05cof04ZF6fwQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeiledgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfffgrvhgvucevohhtthhlvghhuhgsvghrfdcuoegutghh sehskhhunhhkfigvrhhkshdrrghtqeenucggtffrrghtthgvrhhnpedvteeljefhveetie egfeeggeetjeeiffdufedviedvgfetieehgfeugffghfekheenucffohhmrghinhepfhhr vggvsghsugdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegutghhsehskhhunhhkfigvrhhkshdrrght X-ME-Proxy: Feedback-ID: ic0e84090:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 245DE36A0073; Sun, 21 May 2023 10:14:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-431-g1d6a3ebb56-fm-20230511.001-g1d6a3ebb 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 Message-Id: In-Reply-To: References: Date: Sun, 21 May 2023 14:14:00 +0000 From: "Dave Cottlehuber" To: questions@freebsd.org, odhiambo@gmail.com Subject: Re: Moving to a larger disk Content-Type: text/plain X-Spamd-Result: default: False [-4.68 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[skunkwerks.at,none]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[skunkwerks.at:s=fm2,messagingengine.com:s=fm1]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.28]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.28:from]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[66.111.4.28:from]; XM_UA_NO_VERSION(0.01)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[dch]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; BLOCKLISTDE_FAIL(0.00)[66.111.4.28:server fail]; DKIM_TRACE(0.00)[skunkwerks.at:+,messagingengine.com:+]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[freebsd.org,gmail.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4QPMyl6QmDz3CrY X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N On Fri, 19 May 2023, at 07:39, Odhiambo Washington wrote: > It's been years since I ever did this so allow me to post so that I can > gather ideas - newer ideas :) > > I have a 1TB disk, with UFS fs. > I'd like to migrate to a 2TB SSD and retire/repurpose the 1TB disk. Hi Odhiambo, TLDR as already suggested, use dump/restore in base system, but with UFS snapshots: https://docs.freebsd.org/en/books/handbook/disks/#backup-basics https://docs.freebsd.org/en/books/handbook/disks/#snapshots This would look like: - use bsdinstall(8) onto the new disk, so you get the boot loader and partitions all set up for you (looks like you did this already) - use newfs(8) on the new root partition to empty it out again - use mksnap_ffs(8) on the existing root partition - mount the snapshot readonly back into the filesystem - use dump(8) and restore(8) but from the snapshot mountpoint - check /etc/fstab in the restored partition for correct labels as your existing disk is ada0 and the new one is da0 https://forums.freebsd.org/threads/using-ufs-snapshots.3317/ explains this nicely. Using dd will, probably take longer and, transfer 1TiB instead of the actual ~ 260GiB you actually have in use. With dump/restore you can tweak the config of the file system when you create it with newfs. A+ Dave