LoginSignup
1
0

More than 5 years have passed since last update.

ZFS(mirror)でスペアディスクを追加する

Posted at

ZFS(mirror)でスペアディスクを追加する

FreeBSDのセットアップ時にZFS Rootにすると、ミラーまでは作れるけど、スペアが追加出来ないため、
セットアップ完了後に追加する方法です。

ググればすぐ分かるんだけど、gpartのbackup/restoreが忘れがちなので、記事にしました。

前提条件

  • ada0/ada1でミラー構成している
  • ada2をスペアに追加する
  • ZFSのボリューム名は zroot

操作方法

gpartでada0のパーティション構成をada2にコピーして、スペアに追加する

# gpart backup ada0 | gpart restore ada2
# zpool add zroot spare ada2p4

参考にした記事

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0