HEllo,
I am wanting to replace a disk in data-pool. It has many bad sectors. I did following but I am stuck now.
before:
replaced ada2:
ada2 = rawuuid: 49b38914-ff00-11eb-859f-00241d1d87a3
Next, I physically removed and replaced the disk.
Now I have new disk in but I am not able to add it to pool.
I do not think I should copy partition from any other disk in pool to this new disk.
What should I do?
Thank you.
I am wanting to replace a disk in data-pool. It has many bad sectors. I did following but I am stuck now.
before:
Code:
pool: data-pool state: ONLINE config: NAME STATE READ WRITE CKSUM data-pool ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 gptid/492ae752-ff00-11eb-859f-00241d1d87a3 ONLINE 0 0 0 gptid/49a746fb-ff00-11eb-859f-00241d1d87a3 ONLINE 0 0 0 gptid/49b38914-ff00-11eb-859f-00241d1d87a3 ONLINE 0 0 0 gptid/49cbabd6-ff00-11eb-859f-00241d1d87a3 ONLINE 0 0 0
replaced ada2:
ada2 = rawuuid: 49b38914-ff00-11eb-859f-00241d1d87a3
Code:
# zpool offline data-pool gptid/49b38914-ff00-11eb-859f-00241d1d87a3 # zpool detach data-pool gptid/49b38914-ff00-11eb-859f-00241d1d87a3 cannot detach gptid/49b38914-ff00-11eb-859f-00241d1d87a3: only applicable to mirror and replacing vdevs
Next, I physically removed and replaced the disk.
Now I have new disk in but I am not able to add it to pool.
Code:
# camcontrol devlist <MB2000EBUCF MK7OHPG3> at scbus0 target 0 lun 0 (pass0,ada0) <MB2000EBUCF MK7OHPG3> at scbus2 target 0 lun 0 (pass1,ada1) <MB2000EBUCF MK7OHPG3> at scbus3 target 0 lun 0 (pass2,ada2) <<<< New Disk <MD2000GSA3272DVR 1 MKAOA840> at scbus5 target 0 lun 0 (pass3,ada3) <WDC WD1600BJKT-75F4T0 11.01A11> at scbus6 target 0 lun 0 (pass4,ada4) <JAJS600M128C T1125A0> at scbus8 target 0 lun 0 (pass5,ada5) <JAJS600M128C T1125A0> at scbus9 target 0 lun 0 (pass6,ada6) # zpool replace data-pool ada2 cannot replace ada2 with ada2: no such device in pool # gpart list ada2 gpart: Class 'PART' does not have an instance named 'ada2'. # gpart recover ada2 gpart: arg0 'ada2': Invalid argument
I do not think I should copy partition from any other disk in pool to this new disk.
What should I do?
Thank you.