• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

zfs zpool status DEGRADED pfSense Plus 23.05

Hardware
3
5
408
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    AMG A35
    last edited by Aug 8, 2023, 4:08 PM

    Re: zfs zpool status DEGRADED - correct procedure to replace the failed disk ?

    I have a Protectli FWD6C running pfSense Plus 23.05 with a zfs mirror. Today one of the SSD in the mirror failed.

    zpool status gives:

    pool: pfSense
    state: DEGRADED
    status: One or more devices has been removed by the administrator.
       Sufficient replicas exist for the pool to continue functioning in a
       degraded state.
    action: Online the device using zpool online' or replace the device with
       'zpool replace'.
    config:
    
       NAME        STATE     READ WRITE CKSUM
       pfSense     DEGRADED     0     0     0
         mirror-0  DEGRADED     0     0     0
           ada0p3  ONLINE       0     0     0
           ada1p3  REMOVED      0     0     0
    
    errors: No known data errors
    

    This is different to the response in the earlier thread on this subject as it refers to a 'zpool replace' option. I can't find any pfSense documentation on this, but this link Replacing a Device in a ZFS Storage Pool suggests there may be a simpler way to replace a defective drive.

    Has anyone used this option please?

    C 1 Reply Last reply Aug 8, 2023, 5:32 PM Reply Quote 0
    • C
      cmcdonald Netgate Developer @AMG A35
      last edited by Aug 8, 2023, 5:32 PM

      @AMG-A35 There is currently no GUI tool for replacing failed drives (It is on my list of to-dos). You will have to zfs-replace(8) at the command line. I would suggest reading the FreeBSD specific man page https://man.freebsd.org/cgi/man.cgi?query=zpool-replace&apropos=0&sektion=8&manpath=FreeBSD+14.0-CURRENT&arch=default&format=html

      Need help fast? https://www.netgate.com/support

      A 1 Reply Last reply Aug 8, 2023, 5:48 PM Reply Quote 1
      • A
        AMG A35 @cmcdonald
        last edited by Aug 8, 2023, 5:48 PM

        @cmcdonald thanks, I'll give that a try

        T 1 Reply Last reply Aug 8, 2023, 6:24 PM Reply Quote 0
        • T
          tedquade @AMG A35
          last edited by Aug 8, 2023, 6:24 PM

          @AMG-A35 I employed the following with success. It was suggested by Steve Wheeler.

          https://farrokhi.net/posts/2020/05/replacing-a-faulty-disk-in-zfs/

          Ted Quade

          A 1 Reply Last reply Aug 9, 2023, 9:20 AM Reply Quote 1
          • A
            AMG A35 @tedquade
            last edited by Aug 9, 2023, 9:20 AM

            @tedquade Thanks for that, extremely helpful.

            I did not anticipate replacing a zfs mirror would not be a documented and supported procedure. I can't risk router being offline, so I've got a replacement unit coming today and I'll try that recovery when the current unit is offline.

            1 Reply Last reply Reply Quote 0
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.