差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
zfs:zfs_tips [2016-07-30 16:01] Decomo |
zfs:zfs_tips [2017-08-24 12:33] Decomo |
||
---|---|---|---|
行 56: | 行 56: | ||
addと紛らわしいので注意。 | addと紛らわしいので注意。 | ||
+ | |||
+ | ==== ミラー用のデバイスを取り外す ==== | ||
+ | |||
+ | < | ||
+ | zpool detach ZTANK ada | ||
+ | $ zpool status zhome2 | ||
+ | pool: zhome2 | ||
+ | | ||
+ | status: One or more devices could not be opened. | ||
+ | the pool to continue functioning in a degraded state. | ||
+ | action: Attach the missing device and online it using 'zpool online' | ||
+ | see: http:// | ||
+ | scan: resilvered 572G in 1h50m with 0 errors on Mon Aug 1 00:18:18 2016 | ||
+ | config: | ||
+ | |||
+ | NAME STATE READ WRITE CKSUM | ||
+ | zhome2 | ||
+ | mirror-0 | ||
+ | 15064995861805685088 | ||
+ | 3873376026971882544 | ||
+ | ada13p1 | ||
+ | ada12p1 | ||
+ | </ | ||
+ | |||
+ | ==== ZILを外す ==== | ||
+ | < | ||
+ | zpool remove POOOLNAME ada0p0 | ||
+ | </ | ||
+ | ミラーにしてる時は順次デバイスをdetachし、最後の1つをremoveする。 | ||
+ | < | ||
+ | zpool detach POOLNAME ada0p0 | ||
+ | zpool detach POOLNAME ada1p0 | ||
+ | ... | ||
+ | zpool remove POOLNAME adaXp0 | ||
+ | </ | ||
===== gpartコマンド例集 ===== | ===== gpartコマンド例集 ===== |