Help replacing disc

barrydocks

Member
May 3, 2023
40
2
13
I have a failed disc on my PBS. I have identified the disc and replaced it. Problem is that I now can't sync the new disc in the pool.

I have managed to add the new disc to the pool but now can replace the old disc, get "is in use and contains a unknown filesystem"

Any help would be welcome

Code:
root@mwnt:~# zpool status -v
  pool: rpool
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Tue Nov  4 09:26:21 2025
        107G / 1.28T scanned at 313M/s, 0B / 1.23T issued
        0B resilvered, 0.00% done, no estimated completion time
config:

        NAME                                     STATE     READ WRITE CKSUM
        rpool                                    DEGRADED     0     0     0
          mirror-0                               DEGRADED     0     0     0
            8398366330484151865                  UNAVAIL      0     0     0  was /dev/disk/by-id/ata-TOSHIBA_HDWD130_22ND9EUAS-part3
            ata-TOSHIBA_HDWD130_22NDAYEAS-part3  ONLINE       0     0     0
            ata-ST3000VX015-3CV10G_WW65EHVP      ONLINE       0     0     0
          mirror-1                               ONLINE       0     0     0
            ata-TOSHIBA_HDWD130_22ND8UNAS-part3  ONLINE       0     0     0
            ata-TOSHIBA_HDWD130_22NDDV6AS-part3  ONLINE       0     0     0

errors: No known data errors
root@mwnt:~# zpool replace rpool ata-TOSHIBA_HDWD130_22ND9EUAS ata-ST3000VX015-3CV10G_WW65EHVP -f
/dev/disk/by-id/ata-ST3000VX015-3CV10G_WW65EHVP is in use and contains a unknown filesystem.
 
Hi,

resilver mean that ZFS pool is in rebuilding process. The disk 3CV10G_WW65EHVP is already in pool. So try to wait a vile and report progress.

R.
 
I think you can wait until you turn blue ... because previous you configured a pool with partition 3 of a couple of disks and try to exchange a complete disk yet which isn't part of the pool so in the end that's impossible to your zpool replace cmd.
:)
 
Last edited: