From nobody Sun May 21 06:07:05 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 4QP99D5FKRz4C5Kq for ; Sun, 21 May 2023 06:07:44 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QP99C5jkBz3hVv for ; Sun, 21 May 2023 06:07:43 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2af2c7f2883so13556531fa.3 for ; Sat, 20 May 2023 23:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684649261; x=1687241261; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HdIEUe9I8EcvdnFdgQNJZXVv3y8QYk+nlEa1Cb1LtLI=; b=lnb2Xd02Ubq5fA6ksDkPXRINx9fr5Nk/+vQylVk9YArsXWlMgrNqGDxo5+lNADMIFx V0EGqHmGkf0ns09WyazmYzGK41OZH46TCqyOalpUetxmZC/h9fHsaQfMm5rKaT77hDUA L/8yzS/3o2np00QmdYb62Z9TNPo/NibmqxLPjguj2i23HaFjgxVJ2k1CDeMMbKBwz5AH 00+sb/PDINAnRsGaL0FfUaegY2YqN/kSDGtN+Dl2RNmYvEQLT8k5BW5rofwyotVCAG/8 jVDWnRBNBlo7TOZLUpLQUwkgnXTfNdJwYjBeAfDHDm7NGGdyDb03IBpx84od2jIcBLuJ z/Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684649261; x=1687241261; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HdIEUe9I8EcvdnFdgQNJZXVv3y8QYk+nlEa1Cb1LtLI=; b=Oc9oNQRPOqyoYRQ67WBlW3zDyI6kPI3uNUIJ6Ar8BEuOYY0ftUxHAJ1mpXABCFwWUV lsd1gTNnzT+xI6N6kdifCC6T++q3h3BTSlBV2NDq6Q9eyegRJxF52AaKd3CcgMdCe+TN pXHZaiEdDohwfqXwq3sBn6m8clp5ZLMwvPlUdDH3inkWk9S5ZyUeLDkrL9aDO9N38HhM uGGr7vkBublAr5Bf8Yof+FTShuWksSlSfMK5qYoLr5LNaAoQ+Jt43H3+QeYxR6Mo9f6r SFgpW6tKSnQp4oeMe/KQo2ExMoee0FQo59N2uHvgvmqjcDpZpGY4apxscDUfilCzZcgc BROw== X-Gm-Message-State: AC+VfDzBjtBzeoVbTHFJdTFgz2vMZ7q7CfKz0yBvXyocPoamPiLtV5jS n7niBYqwnbvIJlo9sVcGfOP3YMIjStz8PUtwIHHzhQ8BEwrguJoE X-Google-Smtp-Source: ACHHUZ5/BPXI/Ogy/Z5Ga9bYUluIccWaAnB4ztXcBegZ1xqty/+abg9PJZ3YGuaqYSWRMjy82ua9ACdyGMX68Qyb6pA= X-Received: by 2002:a05:651c:22e:b0:2af:1844:6fdb with SMTP id z14-20020a05651c022e00b002af18446fdbmr2654951ljn.5.1684649261201; Sat, 20 May 2023 23:07:41 -0700 (PDT) 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 References: <09d63b53-73ca-f1f5-8716-e1be9c67f3cc@holgerdanske.com> In-Reply-To: <09d63b53-73ca-f1f5-8716-e1be9c67f3cc@holgerdanske.com> From: Odhiambo Washington Date: Sun, 21 May 2023 09:07:05 +0300 Message-ID: Subject: Re: Moving to a larger disk To: David Christensen Cc: questions@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c8fdc905fc2df806" X-Rspamd-Queue-Id: 4QP99C5jkBz3hVv X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --000000000000c8fdc905fc2df806 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, May 21, 2023 at 5:35=E2=80=AFAM David Christensen wrote: > On 5/20/23 01:16, Odhiambo Washington wrote: > > On Sat, May 20, 2023 at 2:55=E2=80=AFAM David Christensen < > dpchrist@holgerdanske.com> > > wrote: > > > >> On 5/19/23 00:39, Odhiambo Washington wrote: > >>> It's been years since I ever did this so allow me to post so that I c= an > >>> 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. > >>> > >>> ``` > >>> [10:27 ~ ]$ df -h > >>> Filesystem Size Used Avail Capacity Mounted on > >>> /dev/ada0p2 899G 269G 558G 33% / > >>> devfs 1.0K 1.0K 0B 100% /dev > >>> fdescfs 1.0K 1.0K 0B 100% /dev/fd > >>> procfs 4.0K 4.0K 0B 100% /proc > >>> linprocfs 4.0K 4.0K 0B 100% /compat/linux/proc > >>> linsysfs 4.0K 4.0K 0B 100% /compat/linux/sys > >>> tmpfs 7.0G 4.0K 7.0G 0% /compat/linux/dev/shm > >>> devfs 1.0K 1.0K 0B 100% /compat/linux/dev > >>> fdescfs 1.0K 1.0K 0B 100% /compat/linux/dev/fd > >>> ``` > >>> > >>> What is the easiest/best method to migrate? > >>> > >>> -- > >>> Best regards, > >>> Odhiambo WASHINGTON, > >>> Nairobi,KE > >>> +254 7 3200 0004/+254 7 2274 3223 > >>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) > >>> [How to ask smart questions: > >>> http://www.catb.org/~esr/faqs/smart-questions.html] > >>> > >> > >> > >> What is the purpose of the computer? What environment(s)? > >> > >> > >> What is the make, model, and/or part number of your computer? What CP= U? > >> What memory? What storage devices are installed? What storage > device > >> bays and interface ports are available? > >> > >> > >> Please run the following commands and copy/paste console session into > >> reply: > >> > >> # freebsd-version ; uname -a > >> > >> # geom disk list | perl -pe 's/(lunid|ident): (.+)/$1: ********/' > >> > >> # geom part show -p > >> > >> > >> Please tell us about your sysadmin and disaster planning -- e.g. versi= on > >> control, configuration management, images, backups, archives? Media? > >> > >> > >> David > >> > > > > All those questions are relevant to the migration to a larger disk? > > > I think you will find it impossible to do the migration without knowing > the answers to some subset of the questions I asked; which subset > depends upon your equipment and the path you follow during migration. > > > I asked for additional information in case you are in an "all your eggs > in one basket" situation; you might want to hear suggestions for > alternatives. > > > David > I currently have two 1TB disks mounted as primary and secondary. Every Saturday I would clone the primary disk onto the second disk with the following: clone -d -y / /disk2 I also have an external disk which is a replica of the primary disk and which is where I make backups using rsync. Having said that, I use UFS fs. Now to your questions: ``` 1root@gw:/usr/home/wash # uname -a FreeBSD gw.mydomain.name 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64 ``` ``` [09:03 ~ ]$ geom disk list | perl -pe 's/(lunid|ident): (.+)/$1: ********/' # Taken when only one disk is connected internally, and another via USB3 port while running 'cloning' Geom name: ada0 Providers: 1. Name: ada0 Mediasize: 1000204886016 (932G) Sectorsize: 512 Mode: r2w2e3 descr: Hitachi HDS721010CLA630 lunid: ******** ident: ******** rotationrate: 7200 fwsectors: 63 fwheads: 16 Geom name: cd0 Providers: 1. Name: cd0 Mediasize: 0 (0B) Sectorsize: 2048 Mode: r0w0e0 descr: hp DVD D DH16D7SH ident: ******** rotationrate: unknown fwsectors: 0 fwheads: 0 Geom name: da0 Providers: 1. Name: da0 Mediasize: 2000398934016 (1.8T) Sectorsize: 512 Mode: r1w1e2 descr: Samsung SSD 870 EVO 2TB lunid: ******** ident: ******** rotationrate: 0 fwsectors: 63 fwheads: 255 ``` ``` [09:03 ~ ]$ geom part show -p =3D> 40 1953525088 ada0 GPT (932G) 40 409600 ada0p1 efi (200M) 409640 1945747456 ada0p2 freebsd-ufs (928G) 1946157096 7368032 ada0p3 freebsd-swap (3.5G) =3D> 40 3907029088 da0 GPT (1.8T) 40 532480 da0p1 efi (260M) 532520 3900170240 da0p2 freebsd-ufs (1.8T) 3900702760 6326272 da0p3 freebsd-swap (3.0G) 3907029032 96 - free - (48K) ``` As for the last question, I have already answered it. --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --000000000000c8fdc905fc2df806 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sun, May 21, 2023 at 5:35=E2=80=AF= AM David Christensen <dpchr= ist@holgerdanske.com> wrote:
On 5/20/23 01:16, Odhiambo Washington wrote:
> On Sat, May 20, 2023 at 2:55=E2=80=AFAM David Christensen <dpchrist@holgerdans= ke.com>
> wrote:
>
>> On 5/19/23 00: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.
>>>
>>> ```
>>> [10:27 ~ ]$ df -h
>>> Filesystem=C2=A0 =C2=A0 =C2=A0Size=C2=A0 =C2=A0 Used=C2=A0 =C2= =A0Avail Capacity=C2=A0 Moun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0 0B=C2=A0 =C2=A0100%=C2=A0 =C2=A0 /compat/linux/dev/fd
>>> ```
>>>
>>> What is the easiest/best method to migrate?
>>>
>>> --
>>> Best regards,
>>> Odhiambo WASHINGTON,
>>> Nairobi,KE
>>> +254 7 3200 0004/+254 7 2274 3223
>>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\= _(=E3=83=84)_/=C2=AF :-)
>>> [How to ask smart questions:
>>> http://www.catb.org/~esr/faqs/smart-q= uestions.html]
>>>
>>
>>
>> What is the purpose of the computer?=C2=A0 What environment(s)? >>
>>
>> What is the make, model, and/or part number of your computer?=C2= =A0 What CPU?
>>=C2=A0 =C2=A0 What memory?=C2=A0 What storage devices are installed= ?=C2=A0 What storage device
>> bays and interface ports are available?
>>
>>
>> Please run the following commands and copy/paste console session i= nto
>> reply:
>>
>> # freebsd-version ; uname -a
>>
>> # geom disk list | perl -pe 's/(lunid|ident): (.+)/$1: *******= */'
>>
>> # geom part show -p
>>
>>
>> Please tell us about your sysadmin and disaster planning -- e.g. v= ersion
>> control, configuration management, images, backups, archives?=C2= =A0 Media?
>>
>>
>> David
>>
>
> All those questions are relevant to the migration to a larger disk?

I think you will find it impossible to do the migration without knowing the answers to some subset of the questions I asked; which subset
depends upon your equipment and the path you follow during migration.


I asked for additional information in case you are in an "all your egg= s
in one basket" situation; you might want to hear suggestions for
alternatives.


David

I currently have two 1TB disks mo= unted as primary and secondary. Every Saturday I would clone the primary di= sk onto the second disk with the following:
clone -d -y / /disk2= =C2=A0
I also have an external disk which is a replica of the pr= imary disk and which is where I make backups using rsync.

Having said that, I use UFS fs.
Now to your questions:
```
1root@gw:/usr/home/wash # uname -a
FreeBSD gw.mydomain.name 13.2-RELEASE FreeBSD 13.2-REL= EASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
```

<= /div>
```
[09:03 ~ ]$ =C2=A0geom disk list | perl -pe 's/= (lunid|ident): (.+)/$1: ********/' # Taken when only one disk is connec= ted internally, and another via USB3 port while running 'cloning'Geom name: ada0
Providers:
1. Name: ada0
=C2=A0 =C2=A0Mediasize:= 1000204886016 (932G)
=C2=A0 =C2=A0Sectorsize: 512
=C2=A0 =C2=A0Mode:= r2w2e3
=C2=A0 =C2=A0descr: Hitachi HDS721010CLA630
=C2=A0 =C2=A0luni= d: ********
=C2=A0 =C2=A0ident: ********
=C2=A0 =C2=A0rotationrate: 7= 200
=C2=A0 =C2=A0fwsectors: 63
=C2=A0 =C2=A0fwheads: 16

Geom n= ame: cd0
Providers:
1. Name: cd0
=C2=A0 =C2=A0Mediasize: 0 (0B)=C2=A0 =C2=A0Sectorsize: 2048
=C2=A0 =C2=A0Mode: r0w0e0
=C2=A0 =C2= =A0descr: hp DVD D =C2=A0DH16D7SH
=C2=A0 =C2=A0ident: ********
=C2=A0= =C2=A0rotationrate: unknown
=C2=A0 =C2=A0fwsectors: 0
=C2=A0 =C2=A0f= wheads: 0

Geom name: da0
Providers:
1. Name: da0
=C2=A0 =C2= =A0Mediasize: 2000398934016 (1.8T)
=C2=A0 =C2=A0Sectorsize: 512
=C2= =A0 =C2=A0Mode: r1w1e2
=C2=A0 =C2=A0descr: Samsung SSD 870 EVO 2TB
= =C2=A0 =C2=A0lunid: ********
=C2=A0 =C2=A0ident: ********
=C2=A0 =C2= =A0rotationrate: 0
=C2=A0 =C2=A0fwsectors: 63
=C2=A0 =C2=A0fwheads: 2= 55
```

```
[09:03 ~ ]$ =C2= =A0geom part show -p
=3D> =C2=A0 =C2=A0 =C2=A0 =C2=A040 =C2=A01953525= 088 =C2=A0 =C2=A0ada0 =C2=A0GPT =C2=A0(932G)
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 40 =C2=A0 =C2=A0 =C2=A0409600 =C2=A0ada0p1 =C2=A0efi =C2=A0(200M)=C2=A0 =C2=A0 =C2=A0 409640 =C2=A01945747456 =C2=A0ada0p2 =C2=A0freebsd-u= fs =C2=A0(928G)
=C2=A0 1946157096 =C2=A0 =C2=A0 7368032 =C2=A0ada0p3 =C2= =A0freebsd-swap =C2=A0(3.5G)

=3D> =C2=A0 =C2=A0 =C2=A0 =C2=A040 = =C2=A03907029088 =C2=A0 =C2=A0da0 =C2=A0GPT =C2=A0(1.8T)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 40 =C2=A0 =C2=A0 =C2=A0532480 =C2=A0da0p1 =C2=A0efi = =C2=A0(260M)
=C2=A0 =C2=A0 =C2=A0 532520 =C2=A03900170240 =C2=A0da0p2 = =C2=A0freebsd-ufs =C2=A0(1.8T)
=C2=A0 3900702760 =C2=A0 =C2=A0 6326272 = =C2=A0da0p3 =C2=A0freebsd-swap =C2=A0(3.0G)
=C2=A0 3907029032 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A096 =C2=A0 =C2=A0 =C2=A0 =C2=A0 - free - =C2=A0(48K)=
```

As for the last question, I hav= e already answered it.



=

--
= Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+25= 4 7 2274 3223
"Oh, the cruft.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2= =AF\_(=E3=83=84)_/=C2=AF=C2=A0:-)
[How to ask smart question= s:=C2=A0http://www.catb.org/~= esr/faqs/smart-questions.html]
--000000000000c8fdc905fc2df806--