用了三天的 SSD 硬盘就报警了,你信吗? 以前我不信,但是最近我信了。上周在京东上买了两块 2TB 的 SSD 硬盘,拿来做 ZFS RAID1。 结果才用了3天,就收到了报警。得亏是做的 RAID1 不丢数据,赶紧的拔盘申请京东的换货。 ![image.png](https://cdn.steemitimages.com/DQmWKLYBXm1M8p8RcG7LAWgAyci8DxgUUArRi5gh6ZGjh9P/image.png) 昨天新的 SSD 到了,赶紧的安装上。 使用 zpool 命令对损坏硬盘进行替换,因为UI界面不支持替换操作。 先看下目前的状态 ``` zpool status -v ssd-main ``` ![image.png](https://cdn.steemitimages.com/DQmaneCZmvh9ZJLXCF6yTAB56G3DBd1whYKjPioZQzYuVET/image.png) 可以看到故障盘拔掉后,有一个残余信息。 我们需要看一下新安装的盘的名字 ![image.png](https://cdn.steemitimages.com/DQmazWDgTbu4MSUAg9iwN4scuVQ9pjcCD1NgYpNNGx4Zzfo/image.png) 新硬盘在 `/dev/sdb` 上。为了稳妥,我们使用磁盘的 id 来进行接下来的操作。 使用 `/dev/sdx` 这种形式进行部署,在主板拔掉一些硬盘的情况下,盘符会发生变化,造成不可预估的错误。 ``` root@pvemain:~# ls -l /dev/disk/by-id/ total 0 lrwxrwxrwx 1 root root 9 Sep 25 05:12 ata-Colorful_SL500_2TB_2021060900049 -> ../../sdb ...... ``` 拿到硬盘 ID 是 `ata-Colorful_SL500_2TB_2021060900049`。接下来使用 `zpool` 命令替换掉损坏的盘就可以了。 ``` zpool replace ssd-main 10854339447243245570 ata-Colorful_SL500_2TB_2021060900049 ``` ![image.png](https://cdn.steemitimages.com/DQmXxmeR8pGVs3MfjS9nPWFmzp7RuUsnVVNowSQTkwuMb5k/image.png) 执行后,可以看到出现了 replacing 信息。这里的截图是我最开始我使用的 sdb 的,后来我又改成用硬盘 ID 了。 方法也很简单,先摘掉不想要的盘 ``` zpool detach ssd-main sdb ``` 之后,再把盘加入进去 ``` zpool attach ssd-main ata-Colorful_SL500_2TB_2021060901040 ata-Colorful_SL500_2TB_2021060900049 ``` ![image.png](https://cdn.steemitimages.com/DQmRzw46dT2NsYMwjiVeEUxk5SB6VxZxQJFAEKdYzTu4YkG/image.png) attach 后需要重新做盘,所以耐心等待即可。 --- **ET碎碎念,每周更新,欢迎订阅,点赞,转发!** ![](https://cdn.steemitimages.com/DQmNqMmFcstxiRQqGStZSSEPEN4Z23cywF1whi91qbGTXxn/640.gif) --- #### 好用不贵的VPS推荐 [https://1hour.win](https://1hour.win) --- **感谢你的阅读,我是中文区见证人之一,欢迎通过 [AuthSteem](http://auth.steem.fans/sign/account-witness-vote?witness=ety001&approve=1) 来给我投票,或者打开 [https://steemitwallet.com/~witnesses](https://steemitwallet.com/~witnesses) 页面,输入 *ety001* 进行投票。** ![2.gif](https://steemitimages.com/DQmZfJo3F8NXpFx7nenQA3zTU9jg6YoRQvfyeeHgSYpdqr4/2.gif) **中文区的见证人目前有:** 支持一下他们(按字母顺序),*一人可以有30票*: - @cn-witnesses| [投票](https://auth.steem.fans/sign/account_witness_vote?approve=1&witness=cn-witnesses) - @ety001| [投票](https://auth.steem.fans/sign/account_witness_vote?approve=1&witness=ety001) - @familyonline-tv| [投票](https://auth.steem.fans/sign/account_witness_vote?approve=1&witness=familyonline-tv) - @fuli| [投票](https://auth.steem.fans/sign/account_witness_vote?approve=1&witness=fuli) - @justyy |[投票](https://auth.steem.fans/sign/account_witness_vote?approve=1&witness=justyy) - @ldsn001| [投票](https://auth.steem.fans/sign/account_witness_vote?approve=1&witness=ldsn001) - @lemooljiang| [投票](https://auth.steem.fans/sign/account_witness_vote?approve=1&witness=lemooljiang) - @maiyude | [投票](https://auth.steem.fans/sign/account_witness_vote?approve=1&witness=maiyude) - @smt-wherein| [投票](https://auth.steem.fans/sign/account_witness_vote?approve=1&witness=smt-wherein) --- **Thank you for reading. I'm a witness. I would really appreciate your witness vote! You can vote by [SteemLogin](https://steemlogin.com/sign/account-witness-vote?witness=ety001&approve=1). Or open [https://steemitwallet.com/~witnesses](https://steemitwallet.com/~witnesses) page, input *ety001* to vote.** ![2.gif](https://steemitimages.com/DQmZfJo3F8NXpFx7nenQA3zTU9jg6YoRQvfyeeHgSYpdqr4/2.gif)
post_id | 94,262,094 |
---|---|
author | ety001 |
permlink | zfs-raid1 |
category | cn |
json_metadata | {"tags":["cn-dev","wherein","raid","zfs"],"image":["https:\/\/cdn.steemitimages.com\/DQmWKLYBXm1M8p8RcG7LAWgAyci8DxgUUArRi5gh6ZGjh9P\/image.png","https:\/\/cdn.steemitimages.com\/DQmaneCZmvh9ZJLXCF6yTAB56G3DBd1whYKjPioZQzYuVET\/image.png","https:\/\/cdn.steemitimages.com\/DQmazWDgTbu4MSUAg9iwN4scuVQ9pjcCD1NgYpNNGx4Zzfo\/image.png","https:\/\/cdn.steemitimages.com\/DQmXxmeR8pGVs3MfjS9nPWFmzp7RuUsnVVNowSQTkwuMb5k\/image.png","https:\/\/cdn.steemitimages.com\/DQmRzw46dT2NsYMwjiVeEUxk5SB6VxZxQJFAEKdYzTu4YkG\/image.png","https:\/\/cdn.steemitimages.com\/DQmNqMmFcstxiRQqGStZSSEPEN4Z23cywF1whi91qbGTXxn\/640.gif","https:\/\/steemitimages.com\/DQmZfJo3F8NXpFx7nenQA3zTU9jg6YoRQvfyeeHgSYpdqr4\/2.gif"],"app":"steemit\/0.2","format":"markdown","users":["cn-witnesses","ety001","familyonline-tv","fuli","justyy","ldsn001","lemooljiang","maiyude","smt-wherein"],"links":["https:\/\/1hour.win","http:\/\/auth.steem.fans\/sign\/account-witness-vote?witness=ety001&approve=1","https:\/\/steemitwallet.com\/~witnesses","https:\/\/auth.steem.fans\/sign\/account_witness_vote?approve=1&witness=cn-witnesses","https:\/\/auth.steem.fans\/sign\/account_witness_vote?approve=1&witness=ety001","https:\/\/auth.steem.fans\/sign\/account_witness_vote?approve=1&witness=familyonline-tv","https:\/\/auth.steem.fans\/sign\/account_witness_vote?approve=1&witness=fuli","https:\/\/auth.steem.fans\/sign\/account_witness_vote?approve=1&witness=justyy","https:\/\/auth.steem.fans\/sign\/account_witness_vote?approve=1&witness=ldsn001","https:\/\/auth.steem.fans\/sign\/account_witness_vote?approve=1&witness=lemooljiang","https:\/\/auth.steem.fans\/sign\/account_witness_vote?approve=1&witness=maiyude","https:\/\/auth.steem.fans\/sign\/account_witness_vote?approve=1&witness=smt-wherein","https:\/\/steemlogin.com\/sign\/account-witness-vote?witness=ety001&approve=1"]} |
created | 2021-09-24 21:34:15 |
last_update | 2021-09-24 22:09:33 |
depth | 0 |
children | 1 |
net_rshares | 28,611,752,402,244 |
last_payout | 2021-10-01 21:34:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 9.348 SBD |
curator_payout_value | 7.540 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 3,290 |
author_reputation | 190,546,071,796,324 |
root_title | "替换 ZFS RAID1 中坏掉的磁盘" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gerber | 0 | 474,757,198 | 3% | ||
ezzy | 0 | 39,438,854,325 | 3% | ||
exyle | 0 | 2,556,550,256 | 3% | ||
lemooljiang | 0 | 1,774,484,999 | 100% | ||
ace108 | 0 | 155,095,399,906 | 12% | ||
xiaohui | 0 | 61,877,227 | 3.95% | ||
justyy | 0 | 1,109,759,962,189 | 2.95% | ||
happyukgo | 0 | 386,195,607 | 3.95% | ||
sqube | 0 | 100,914,351 | 0.25% | ||
nokeh | 0 | 0 | 3.95% | ||
mrpointp | 0 | 355,836,595 | 3.95% | ||
robinlee | 0 | 0 | 3.95% | ||
ety001 | 0 | 39,762,420,578 | 100% | ||
rainyapril | 0 | 0 | 3.95% | ||
kangnajiang | 0 | 0 | 3.95% | ||
kikima | 0 | 0 | 3.95% | ||
geass | 0 | 0 | 3.95% | ||
htotoo | 0 | 1,179,189,126 | 100% | ||
mrspointm | 0 | 497,857,468 | 3.95% | ||
accelerator | 0 | 14,810,132,029 | 3% | ||
acactus1013 | 0 | 195,310,500 | 3.95% | ||
rosatravels | 0 | 1,046,217,484 | 3.95% | ||
superbing | 0 | 58,907,704 | 3.95% | ||
dailyfortune | 0 | 39,041,601 | 3.95% | ||
dailystats | 0 | 91,929,995 | 3.95% | ||
khaleelkazi | 0 | 114,801,104 | 3% | ||
jianan | 0 | 679,931,250 | 3.95% | ||
eonwarped | 0 | 7,471,719,805 | 3% | ||
cnbuddy | 0 | 943,640,410,101 | 100% | ||
daxiang | 0 | 0 | 3.95% | ||
anxin | 0 | 6,895,350 | 3.95% | ||
jyoti-thelight | 0 | 30,555,384 | 2.95% | ||
mmmmkkkk311 | 0 | 194,256,355,354 | 100% | ||
moobear | 0 | 0 | 3.95% | ||
nealmcspadden | 0 | 2,148,215,900 | 3% | ||
nean | 0 | 0 | 3.95% | ||
foodielifestyle | 0 | 465,218,656 | 3.95% | ||
woolfe19861008 | 0 | 9,490,591 | 3.95% | ||
dailychina | 0 | 120,059,124 | 3.95% | ||
vincenthan | 0 | 0 | 3.95% | ||
yuxuan | 0 | 5,552,422 | 3.95% | ||
dongfengman | 0 | 261,894,959 | 3.95% | ||
serenazz | 0 | 0 | 3.95% | ||
yedda | 0 | 0 | 3.95% | ||
heiduya | 0 | 0 | 3.95% | ||
angel-baby | 0 | 1,028,203,901 | 47% | ||
zasilla | 0 | 0 | 3.95% | ||
aaronstar | 0 | 0 | 3.95% | ||
ethanlee | 0 | 79,973,621 | 3.95% | ||
twinsnicole | 0 | 0 | 3.95% | ||
deepthinking | 0 | 0 | 3.95% | ||
gogoabc | 0 | 0 | 3.95% | ||
fanso | 0 | 0 | 3.95% | ||
lilypang22 | 0 | 0 | 3.95% | ||
fishcc | 0 | 0 | 3.95% | ||
lilyan | 0 | 0 | 3.95% | ||
zens | 0 | 0 | 3.95% | ||
tinyfish | 0 | 255,563,836 | 50% | ||
steemitvip | 0 | 0 | 3.95% | ||
regals | 0 | 0 | 3.95% | ||
baymaxos | 0 | 0 | 3.95% | ||
joelone | 0 | 0 | 3.95% | ||
sweet-jenny8 | 0 | 0 | 3.95% | ||
atinna | 0 | 0 | 3.95% | ||
team-cn | 0 | 22,600,684,425 | 10% | ||
weicomenew | 0 | 0 | 3.95% | ||
laiyuehta | 0 | 84,595,080 | 3.95% | ||
turtlegraphics | 0 | 16,141,427 | 3.95% | ||
lucacroce | 0 | 0 | 3.95% | ||
dlike | 0 | 18,367,844,469 | 6% | ||
evelaurie | 0 | 0 | 3.95% | ||
yalehazlitt | 0 | 0 | 3.95% | ||
eltonwright | 0 | 0 | 3.95% | ||
zorapolly | 0 | 0 | 3.95% | ||
yettawild | 0 | 0 | 3.95% | ||
bobarchibald | 0 | 0 | 3.95% | ||
annasandy | 0 | 0 | 3.95% | ||
wyh | 0 | 0 | 3.95% | ||
wanshuai002 | 0 | 0 | 3.95% | ||
wangcheng002 | 0 | 0 | 3.95% | ||
yuanweiru002 | 0 | 0 | 3.95% | ||
wancheng001 | 0 | 0 | 3.95% | ||
claraalbert | 0 | 0 | 3.95% | ||
yettareade | 0 | 0 | 3.95% | ||
witnesstools | 0 | 142,192,306 | 3.95% | ||
ilovecoding | 0 | 129,065,478 | 3.95% | ||
eonwarp | 0 | 0 | 3% | ||
steemfuckeos | 0 | 37,453,649 | 3.95% | ||
ctime | 0 | 50,018,417,001 | 5% | ||
steem.leo | 0 | 127,657,196 | 3% | ||
cplusplus | 0 | 127,012,282 | 3.95% | ||
leo.voter | 0 | 104,952,595 | 3% | ||
justsoso | 0 | 0 | 3.95% | ||
boylikegirl | 0 | 2,412,810,913 | 30% | ||
longhash | 0 | 0 | 3.95% | ||
cnlifes | 0 | 0 | 3.95% | ||
llfestyle | 0 | 0 | 3.95% | ||
steeemmonsters | 0 | 0 | 3.95% | ||
maiydue | 0 | 0 | 3.95% | ||
wongshiylng | 0 | 0 | 3.95% | ||
deepcrypti8 | 0 | 0 | 3.95% | ||
myiord1992 | 0 | 0 | 3.95% | ||
wilhb82 | 0 | 0 | 3.95% | ||
morningshlne | 0 | 0 | 3.95% | ||
leodec | 0 | 0 | 3.95% | ||
sexybeach | 0 | 130,178,952 | 3.95% | ||
suckmydick | 0 | 38,992,079 | 3.95% | ||
chromebook | 0 | 2,660,174 | 3.95% | ||
xarviur | 0 | 0 | -10% | ||
ericandryan | 0 | 404,820,309 | 3.95% | ||
plato2005 | 0 | 0 | 2.95% | ||
justyy222 | 0 | 36,910,869 | 3.95% | ||
a9876 | 0 | 15,102,642,008 | 100% | ||
sheya | 0 | 289,353,113 | 3.95% | ||
enchanter88 | 0 | 145,478,146 | 3.95% | ||
alpha-omega | 0 | 6,072,838,901 | 50% | ||
nutbox.mine | 0 | 25,954,848,449,225 | 12.24% | ||
pchords4 | 0 | 708,690,626 | 12.24% | ||
blues529 | 0 | 16,776,101 | 2.95% | ||
jade3 | 0 | 16,709,508,832 | 47% | ||
xianlaiyiju | 0 | 67,925,675 | 100% | ||
mrpenmind | 0 | 15,193,717 | 3.95% | ||
musscout | 0 | 0 | 100% | ||
kanza1 | 0 | 0 | 100% | ||
buddy-forever | 0 | 1,850,994,118 | 100% | ||
boylikegirl.wit | 0 | 2,881,482,082 | 100% |
👍 [WhereIn Android] (http://www.wherein.io)
post_id | 94,276,237 |
---|---|
author | blues529 |
permlink | wherein-1632575520013 |
category | cn |
json_metadata | {} |
created | 2021-09-25 13:12:06 |
last_update | 2021-09-25 13:12:06 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2021-10-02 13:12:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 44 |
author_reputation | 27,825,594,022,071 |
root_title | "替换 ZFS RAID1 中坏掉的磁盘" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |