Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 May 2023 09:07:05 +0300
From:      Odhiambo Washington <odhiambo@gmail.com>
To:        David Christensen <dpchrist@holgerdanske.com>
Cc:        questions@freebsd.org
Subject:   Re: Moving to a larger disk
Message-ID:  <CAAdA2WOV5Vkf540rCPH=sCbQFDamq_Vm9wRJqCjZAxga8tGnqA@mail.gmail.com>
In-Reply-To: <09d63b53-73ca-f1f5-8716-e1be9c67f3cc@holgerdanske.com>
References:  <CAAdA2WOK3HVmJzWkt-1Un=8ytmLcey5Byvs=brtWhVGvw3iPvQ@mail.gmail.com> <aaf85d2f-2639-88fc-e9ba-0d034a1f1398@holgerdanske.com> <CAAdA2WNXFx3MMZvfmFnM_=CwhRb3EbB=KtP2Jf7sYUebV%2Bnp=g@mail.gmail.com> <09d63b53-73ca-f1f5-8716-e1be9c67f3cc@holgerdanske.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Sun, May 21, 2023 at 5:35 AM David Christensen <dpchrist@holgerdanske.com>
wrote:

> On 5/20/23 01:16, Odhiambo Washington wrote:
> > On Sat, May 20, 2023 at 2:55 AM 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 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     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 '^$|^.*#' ¯\_(ツ)_/¯ :-)
> >>> [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 CPU?
> >>    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. version
> >> 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
=>        40  1953525088    ada0  GPT  (932G)
          40      409600  ada0p1  efi  (200M)
      409640  1945747456  ada0p2  freebsd-ufs  (928G)
  1946157096     7368032  ada0p3  freebsd-swap  (3.5G)

=>        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.




-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 21, 2023 at 5:35 AM David Christensen &lt;<a href="mailto:dpchrist@holgerdanske.com">dpchrist@holgerdanske.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/20/23 01:16, Odhiambo Washington wrote:<br>
&gt; On Sat, May 20, 2023 at 2:55 AM David Christensen &lt;<a href="mailto:dpchrist@holgerdanske.com" target="_blank">dpchrist@holgerdanske.com</a>&gt;<br>
&gt; wrote:<br>
&gt; <br>
&gt;&gt; On 5/19/23 00:39, Odhiambo Washington wrote:<br>
&gt;&gt;&gt; It&#39;s been years since I ever did this so allow me to post so that I can<br>
&gt;&gt;&gt; gather ideas - newer ideas :)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have a 1TB disk, with UFS fs.<br>
&gt;&gt;&gt; I&#39;d like to migrate to a 2TB SSD and retire/repurpose the 1TB disk.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ```<br>
&gt;&gt;&gt; [10:27 ~ ]$ df -h<br>
&gt;&gt;&gt; Filesystem     Size    Used   Avail Capacity  Mounted on<br>
&gt;&gt;&gt; /dev/ada0p2    899G    269G    558G    33%    /<br>
&gt;&gt;&gt; devfs          1.0K    1.0K      0B   100%    /dev<br>
&gt;&gt;&gt; fdescfs        1.0K    1.0K      0B   100%    /dev/fd<br>
&gt;&gt;&gt; procfs         4.0K    4.0K      0B   100%    /proc<br>
&gt;&gt;&gt; linprocfs      4.0K    4.0K      0B   100%    /compat/linux/proc<br>
&gt;&gt;&gt; linsysfs       4.0K    4.0K      0B   100%    /compat/linux/sys<br>
&gt;&gt;&gt; tmpfs          7.0G    4.0K    7.0G     0%    /compat/linux/dev/shm<br>
&gt;&gt;&gt; devfs          1.0K    1.0K      0B   100%    /compat/linux/dev<br>
&gt;&gt;&gt; fdescfs        1.0K    1.0K      0B   100%    /compat/linux/dev/fd<br>
&gt;&gt;&gt; ```<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; What is the easiest/best method to migrate?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Best regards,<br>
&gt;&gt;&gt; Odhiambo WASHINGTON,<br>
&gt;&gt;&gt; Nairobi,KE<br>
&gt;&gt;&gt; +254 7 3200 0004/+254 7 2274 3223<br>
&gt;&gt;&gt; &quot;Oh, the cruft.&quot;, egrep -v &#39;^$|^.*#&#39; ¯\_(ツ)_/¯ :-)<br>
&gt;&gt;&gt; [How to ask smart questions:<br>
&gt;&gt;&gt; <a href="http://www.catb.org/~esr/faqs/smart-questions.html" rel="noreferrer" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]<br>;
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; What is the purpose of the computer?  What environment(s)?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; What is the make, model, and/or part number of your computer?  What CPU?<br>
&gt;&gt;    What memory?  What storage devices are installed?  What storage device<br>
&gt;&gt; bays and interface ports are available?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Please run the following commands and copy/paste console session into<br>
&gt;&gt; reply:<br>
&gt;&gt;<br>
&gt;&gt; # freebsd-version ; uname -a<br>
&gt;&gt;<br>
&gt;&gt; # geom disk list | perl -pe &#39;s/(lunid|ident): (.+)/$1: ********/&#39;<br>
&gt;&gt;<br>
&gt;&gt; # geom part show -p<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Please tell us about your sysadmin and disaster planning -- e.g. version<br>
&gt;&gt; control, configuration management, images, backups, archives?  Media?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; David<br>
&gt;&gt;<br>
&gt; <br>
&gt; All those questions are relevant to the migration to a larger disk?<br>
<br>
<br>
I think you will find it impossible to do the migration without knowing <br>
the answers to some subset of the questions I asked; which subset <br>
depends upon your equipment and the path you follow during migration.<br>
<br>
<br>
I asked for additional information in case you are in an &quot;all your eggs <br>
in one basket&quot; situation; you might want to hear suggestions for <br>
alternatives.<br>
<br>
<br>
David<br></blockquote><div><br></div><div>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:</div><div>clone -d -y / /disk2 </div></div>I also have an external disk which is a replica of the primary disk and which is where I make backups using rsync.<div><br></div><div>Having said that, I use UFS fs.</div><div>Now to your questions:</div><div>```</div><div>1root@gw:/usr/home/wash # uname -a</div>FreeBSD <a href="http://gw.mydomain.name">gw.mydomain.name</a>; 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64<div>```</div><div><br></div><div>```</div><div>[09:03 ~ ]$  geom disk list | perl -pe &#39;s/(lunid|ident): (.+)/$1: ********/&#39; # Taken when only one disk is connected internally, and another via USB3 port while running &#39;cloning&#39;<br>Geom name: ada0<br>Providers:<br>1. Name: ada0<br>   Mediasize: 1000204886016 (932G)<br>   Sectorsize: 512<br>   Mode: r2w2e3<br>   descr: Hitachi HDS721010CLA630<br>   lunid: ********<br>   ident: ********<br>   rotationrate: 7200<br>   fwsectors: 63<br>   fwheads: 16<br><br>Geom name: cd0<br>Providers:<br>1. Name: cd0<br>   Mediasize: 0 (0B)<br>   Sectorsize: 2048<br>   Mode: r0w0e0<br>   descr: hp DVD D  DH16D7SH<br>   ident: ********<br>   rotationrate: unknown<br>   fwsectors: 0<br>   fwheads: 0<br><br>Geom name: da0<br>Providers:<br>1. Name: da0<br>   Mediasize: 2000398934016 (1.8T)<br>   Sectorsize: 512<br>   Mode: r1w1e2<br>   descr: Samsung SSD 870 EVO 2TB<br>   lunid: ********<br>   ident: ********<br>   rotationrate: 0<br>   fwsectors: 63<br>   fwheads: 255<br></div><div>```</div><div><br></div><div>```</div><div>[09:03 ~ ]$  geom part show -p<br>=&gt;        40  1953525088    ada0  GPT  (932G)<br>          40      409600  ada0p1  efi  (200M)<br>      409640  1945747456  ada0p2  freebsd-ufs  (928G)<br>  1946157096     7368032  ada0p3  freebsd-swap  (3.5G)<br><br>=&gt;        40  3907029088    da0  GPT  (1.8T)<br>          40      532480  da0p1  efi  (260M)<br>      532520  3900170240  da0p2  freebsd-ufs  (1.8T)<br>  3900702760     6326272  da0p3  freebsd-swap  (3.0G)<br>  3907029032          96         - free -  (48K)<br></div><div>```</div><div><br></div><div>As for the last question, I have already answered it.</div><div><br><div><br></div><div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>&quot;<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">&quot;, </span><span style="font-size:12.8px">egrep -v &#39;^$|^.*#&#39; </span><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&quot;,monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div><div><span style="font-size:12.8px">[How to ask smart questions: </span><span style="font-size:12.8px"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></div></div></div>;

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WOV5Vkf540rCPH=sCbQFDamq_Vm9wRJqCjZAxga8tGnqA>