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

    XFS mirror rebuild

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 812 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.
    • T
      tedquade
      last edited by tedquade

      22.05-RELEASE (amd64)

      I had one drive of a new 2 drive ZFS mirror suffer early death. The identical replacement has been installed and the appliance is running all be it in a DEGRADED state.

      Is there some method to rebuild the array and remain on-line?

      Ted

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You need to use zpool replace but I don't think we have a specific doc for that yet.

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

        Steve

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

          @stephenw10 That's the answer.

          Thanks
          Ted

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            No problem. Let us know if you have any issues getting that replaced. It's not something many people have attempted. It would be good to know if that guide is sufficient or if more details are required etc.

            Steve

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

              @stephenw10 The above procedure did the job.

              It would have been just as quick to backup config, re-install and restore config.

              In a high availability environment with hot-swap drives, the procedure would be a great solution to avoid any downtime.

              Thanks for the info.

              Ted

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