[Level 1] How to Set Autoreplace in ZFS Pool?

Someone ask me about why ZFS pool won't use the hot spare disk while one of the raid5 disk is crashed?
That's because the default pool won't set "autoreplace" on.
How can we set it "on"?
1. check the zpool properties first:
# zpool get autoreplace rpool;
NAME   PROPERTY     VALUE    SOURCE
rpool  autoreplace  off      default
2. set it on:
# zpool set autoreplace=on rpool;
3. check the zpool properties again:
# zpool get autoreplace rpool;
NAME   PROPERTY     VALUE    SOURCE
rpool  autoreplace  on       local


Wish this helps.

regards,
Stanley Huang

Comments

Popular posts from this blog

[Level 2] Shell Interactive With Zenity Episode 5 -- list

[Level 2] iif in Python