Answer the question
In order to leave comments, you need to log in
How to remove previously mounted disks from a ZFS pool?
Hello everybody.
There is a pool under ZFS
The hard disk in a pool fell off.
Disk removed. Installed a new one, made a markup and executed zpool replace rpool /dev/ada1p2 /dev/ada1p3 The
old disk did not have a SWAP partition from here and such a markup.
As a result, we have the following:
$ zpool status rpool
pool: rpool
state: DEGRADED
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: illumos.org/msg/ZFS-8000-8A
scan: resilvered 734G in 19h1m with 13 errors on Thu Mar 22 07:29:57 2018
config:
NAME STATE READ WRITE CKSUM
rpool DEGRADED 0 0 9
mirror-0 DEGRADED 0 0 18
ada0p2 ONLINE 0 0 18
replacing-1 DEGRADED 22 0 18
17411848472487701632 UNAVAIL 0 0 0 was /dev/ada1p2
5494085468949920513 UNAVAIL 0 0 0 was /dev/gpt/disk1
ada1p3 ONLINE 0 0 40
Should traces of other disks be removed from the pool? If so, how?
Thank you in advance for your help!
Answer the question
In order to leave comments, you need to log in
If you are unable to insert a disk into a free slot before replacing:
- remove the failed disk from the pool (if zfs has not already done so)
- remove the failed disk
- insert a new disk
- partition the disk if necessary
- replace with the zpool replace command
- wait for the end of the procedure
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question