Date: Fri, 19 May 2023 08:21:04 -0500 From: Tim Daneliuk <tundra@tundraware.com> To: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: Moving to a larger disk Message-ID: <a3009e36-ae80-1a11-1186-87b1ac00cc1e@tundraware.com> In-Reply-To: <25703.26549.49813.771008@jerusalem.litteratus.org> References: <CAAdA2WOK3HVmJzWkt-1Un=8ytmLcey5Byvs=brtWhVGvw3iPvQ@mail.gmail.com> <25703.26549.49813.771008@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5/19/23 07:12, Robert Huff wrote: > Odhiambo Washington asks: > >> I have a 1TB disk, with UFS fs. >> I'd like to migrate to a 2TB SSD and retire/repurpose the 1TB disk. > > [deletia] > >> What is the easiest/best method to migrate? > > What I would do: > 1) Put the new disk in an external drive dock. > 2) Format/label the new disk. > 3) Use dump/restore to transfer the contents; check for > integrity. > 4) Unmount the new disk; shutdown computer; swap disks; boot. > > > Anyone got a better plan? > > > Respectfully, > > > Robert Huff I dunno about "better" but I use a somewhat different strategy. It's been a while but it's very roughly this: - Install the new drive by some means - Quiesce all highly active processes like web and db servers - dd if=/dev/old-drive of=/dev/new-drive - Shut down and remove old drive - Reboot from recovery media like a linux repair disk that has 'gparted' on it. - Use gparted to edit and resize (grow only) the relevant partition(s) - Reboot and use 'growfs' to make the full disk size available to the filesystem(s)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a3009e36-ae80-1a11-1186-87b1ac00cc1e>