[OpenIndiana-discuss] problem replacing a disk by a bigger one
Judah Richardson
judahrichardson at gmail.com
Mon Jun 27 03:29:39 UTC 2022
I prefer this solution. Now to note it. Thanks :)
On Sun, Jun 26, 2022 at 6:52 PM Gary Mills <gary_mills at fastmail.fm> wrote:
> On Sun, Jun 26, 2022 at 11:46:25PM +0200, Marc Lobelle wrote:
> >
> > In tried to replace the ssd of my notebook running openindiana (120G) by
> a
> > bigger one (1T).
> >
> > I first copied the small ssd on the big one: I connected the big disk on
> a
> > usb adapter, ran format to identify the two devices then
> >
> > dd if=/dev/rdsk/c6t0d0p0 of=/dev/rdsk/c4t0d0p0 bs=2048K
>
> A much better way is to use the ZFS mirroring capability. The command
> is:
>
> # zpool attach -f ... ... ...
>
> You could also use:
>
> # zpool replace [-f] pool device [new_device]
>
> Wait for the resilver to complete. The result will be a two-way
> mirror, in the case of the first command. Then, detach the small SSD
> and try booting from the big one, again for the first command. The
> second command does it all in one operation. The manual will tell
> you more than I can.
>
> Note that I've only done this with both disks permanently installed
> on a desktop. I don't know if it even works with USB disks.
>
>
> --
> -Gary Mills- -refurb- -Winnipeg, Manitoba,
> Canada-
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
More information about the openindiana-discuss
mailing list