From nobody Fri May 19 13:21:04 2023 X-Original-To: freebsd-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 4QN6tm5hNvz4BxJp for ; Fri, 19 May 2023 13:21:36 +0000 (UTC) (envelope-from 93ab.82.c3ab00006e828c.160ac5a7e92e737d4b07be64aa700111@email-od.com) Received: from s1-b515.socketlabs.email-od.com (s1-b515.socketlabs.email-od.com [142.0.181.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QN6tk3ZZVz3Lp8 for ; Fri, 19 May 2023 13:21:34 +0000 (UTC) (envelope-from 93ab.82.c3ab00006e828c.160ac5a7e92e737d4b07be64aa700111@email-od.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tundraware.com header.s=slkey header.b=JAw3oAwZ; dkim=pass header.d=email-od.com header.s=dkim header.b=XXU6xKkY; spf=pass (mx1.freebsd.org: domain of 93ab.82.c3ab00006e828c.160ac5a7e92e737d4b07be64aa700111@email-od.com designates 142.0.181.21 as permitted sender) smtp.mailfrom=93ab.82.c3ab00006e828c.160ac5a7e92e737d4b07be64aa700111@email-od.com; dmarc=pass (policy=reject) header.from=tundraware.com DKIM-Signature: v=1; a=rsa-sha256; d=tundraware.com;s=slkey; c=relaxed/relaxed; q=dns/txt; t=1684502495; x=1687094495; h=x-tundraware-mailscanner-from:x-greylist:content-transfer-encoding:content-type:in-reply-to:from:references:to:content-language:subject:mime-version:date:message-id:x-thread-info:subject:to:from:cc:reply-to; bh=RbeBTW2gRIXZ9U8KG7qWIsyfGXGGCEiCaLiLWOJMeZs=; b=JAw3oAwZrGE729QPuqcHfyBPaTifspLHNokcsIdLYUo08HHMA3m1z//H5tIzVpKhpCyW/vb18+Iaei8PVnJtSkmWnWxbtQe9ZZONEUSywiKtIZIx8Aaqh7lOKYNg1TEEOBb3iBYFubz6cZEeLwsueh51zRisBXUL3Q0xasaHYDfbg8CjdgYDe66EilBcMguAZFCJFLYCfpgqPvUF455QopmS/k0pgVsJyk5VL4ob1CyeoUmU1BqmIchMshqcqW62tpCkk1qPbq9uNn52sHmJ92zrjxGp0wLmx6laxnW/UNfq7SVZBgW2QNqK15shtZYb3yyR4KiE1h/oE43rs4GZjA== DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1684502495; x=1687094495; h=x-tundraware-mailscanner-from:x-greylist:content-transfer-encoding:content-type:in-reply-to:from:references:to:content-language:subject:mime-version:date:message-id:x-thread-info:subject:to:from:cc:reply-to; bh=RbeBTW2gRIXZ9U8KG7qWIsyfGXGGCEiCaLiLWOJMeZs=; b=XXU6xKkYAMk+b/fJD4iMX05f3a+BnfJUh3nwnrjuNVvA9H1+vgTNSpRgOfHMr0xd1pdrz0lJMv2vklkkBkh4wDesDTFjwJ0Qz2cA06y9KZ2/fPiOZh7P6T94Zio8t/u2q6BYGO4pGRCPS4WBciNqorKgNyNCpbic0xPfRQ5eYQ0= X-Thread-Info: OTNhYi4xMi5jM2FiMDAwMDZlODI4Yy5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r1.us-west-2.aws.in.socketlabs.com (r1.us-west-2.aws.in.socketlabs.com [142.0.190.1]) by mxh4.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Fri, 19 May 2023 09:21:26 -0400 Received: from oceanview.tundraware.com (oceanview.tundraware.com [45.55.60.57]) by r1.us-west-2.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Fri, 19 May 2023 09:21:25 -0400 Received: from [192.168.0.2] (ozzie.tundraware.com [75.145.138.73]) (authenticated bits=0) by oceanview.tundraware.com (8.17.1/8.17.1) with ESMTPSA id 34JDL9YZ058896 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Fri, 19 May 2023 08:21:10 -0500 (CDT) (envelope-from tundra@tundraware.com) Message-ID: Date: Fri, 19 May 2023 08:21:04 -0500 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: Moving to a larger disk Content-Language: en-US To: FreeBSD Mailing List References: <25703.26549.49813.771008@jerusalem.litteratus.org> From: Tim Daneliuk In-Reply-To: <25703.26549.49813.771008@jerusalem.litteratus.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (oceanview.tundraware.com [45.55.60.57]); Fri, 19 May 2023 08:21:10 -0500 (CDT) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: 34JDL9YZ058896 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-4.437, required 6, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90, NICE_REPLY_A -1.53, T_SCC_BODY_TEXT_LINE -0.01) X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-Spamd-Result: default: False [-3.70 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[tundraware.com,reject]; FORGED_SENDER(0.30)[tundra@tundraware.com,93ab.82.c3ab00006e828c.160ac5a7e92e737d4b07be64aa700111@email-od.com]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; R_DKIM_ALLOW(-0.20)[tundraware.com:s=slkey,email-od.com:s=dkim]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; BLOCKLISTDE_FAIL(0.00)[45.55.60.57:server fail,75.145.138.73:server fail,142.0.190.1:server fail,142.0.181.21:server fail]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[142.0.181.21:from,142.0.190.1:received]; DKIM_TRACE(0.00)[tundraware.com:+,email-od.com:+]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DWL_DNSWL_NONE(0.00)[email-od.com:dkim]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:53658, ipnet:142.0.180.0/22, country:US]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[tundra@tundraware.com,93ab.82.c3ab00006e828c.160ac5a7e92e737d4b07be64aa700111@email-od.com]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org] X-Rspamd-Queue-Id: 4QN6tk3ZZVz3Lp8 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N 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)