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

    zfs zpool status DEGRADED pfSense Plus 23.05

    Scheduled Pinned Locked Moved Hardware
    5 Posts 3 Posters 413 Views
    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.
    • AMG A35A
      AMG A35
      last edited by

      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?

      cmcdonaldC 1 Reply Last reply Reply Quote 0
      • cmcdonaldC
        cmcdonald Netgate Developer @AMG A35
        last edited by

        @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

        AMG A35A 1 Reply Last reply Reply Quote 1
        • AMG A35A
          AMG A35 @cmcdonald
          last edited by

          @cmcdonald thanks, I'll give that a try

          T 1 Reply Last reply Reply Quote 0
          • T
            tedquade @AMG A35
            last edited by

            @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

            AMG A35A 1 Reply Last reply Reply Quote 1
            • AMG A35A
              AMG A35 @tedquade
              last edited by

              @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
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.