Replacing all disks in zroot
Johan Hendriks
joh.hendriks at gmail.com
Mon Sep 19 18:29:07 UTC 2016
Op 17/09/16 om 16:12 schreef Malcolm Matalka:
> Hello,
>
> Right now I have a ZFS on root on FreeBSD 10.3. Currently I only have 1
> disk in zroot and it's too small. So I would like to do the following
> thing, but I'm not sure if I need to do some special work to make the
> new setup bootable.
>
> 1. Bought 2 new, larger HDs.
>
> 2. Going to add one of them to the existing disk as a mirror and let it
> resilver.
>
> 3. Replace the small drive with the second drive I bought, removing the
> smaller drive.
>
> As I understand it, after this I will have the larger capacity,
> mirrored. But will this be bootable? Do I have to do something else to
> copy the boot setup over?
>
> Thanks,
> /Malcolm
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
That should do the trick, like Mike said, you will need a boot partition
and a swap partition.
Also use the right command with zpool.
So do not use add but ATTACH, this way you create a mirror.
If you add a disk , your pool is then a pool with two vdevs without any
redendency.
regards
Johan
More information about the freebsd-questions
mailing list