Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2016 20:29:02 +0200
From:      Johan Hendriks <joh.hendriks@gmail.com>
To:        Malcolm Matalka <mmatalka@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: Replacing all disks in zroot
Message-ID:  <b3e33ce7-0218-5815-1100-96eb6c86b226@gmail.com>
In-Reply-To: <861t0ik43m.fsf@gmail.com>
References:  <861t0ik43m.fsf@gmail.com>

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


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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b3e33ce7-0218-5815-1100-96eb6c86b226>