This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Fixing failed ZIL

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Gorgot
NewUser
NewUser
Posts: 2
Joined: 29 Mar 2017 01:27
Status: Offline

Fixing failed ZIL

Post by Gorgot »

Hi,

I have a ZIL that failed. I replaced the device, however, I can't seem to replace the ZIL in the zpool configuration.

Here is the current zpool status:

Code: Select all

zpool status
  pool: data
 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: http://illumos.org/msg/ZFS-8000-8A
  scan: resilvered 1.63T in 10h7m with 1 errors on Tue Mar 28 17:18:30 2017
config:

        NAME                     STATE     READ WRITE CKSUM
        data                     DEGRADED     0     0    83
          raidz1-0               ONLINE       0     0   166
            da6                  ONLINE       0     0     0
            da7                  ONLINE       0     0     0
            da2                  ONLINE       0     0     0
            da3                  ONLINE       0     0     0
            da4                  ONLINE       0     0     0
            da5                  ONLINE       0     0     0
        logs
          replacing-1            DEGRADED     0     0     0
            1603975256220764110  UNAVAIL      0     0     0  was /dev/da1
            gpt/log              ONLINE       0     0     0  block size: 512B configured, 4096B native
        cache
          gpt/cache              ONLINE       0     0     0
Here are some of the thing I tried:

Code: Select all

zpool offline data 1603975256220764110
cannot offline 1603975256220764110: log device has unplayed intent logs

Code: Select all

zpool detach data 1603975256220764110
cannot detach 1603975256220764110: no valid replicas

Code: Select all

zpool remove data 1603975256220764110
cannot remove 1603975256220764110: operation not supported on this type of pool

Code: Select all

zpool remove data /dev/da1
cannot remove /dev/da1: operation not supported on this type of pool
¸

I'm starting to get out of commands to run on the pool to get it back to a non-degraded state. Do you have any ideas?

sleid
PowerUser
PowerUser
Posts: 774
Joined: 23 Jun 2012 07:36
Location: FRANCE LIMOUSIN CORREZE
Status: Offline

Re: Fixing failed ZIL

Post by sleid »

# zpool online data /dev/da1
# zpool clear data
12.1.0.4 - Ingva (revision 7852)
FreeBSD 12.1-RELEASE-p12 #0 r368465M: Tue Dec 8 23:25:11 CET 2020
X64-embedded sur Intel(R) Atom(TM) CPU C2750 @ 2.40GHz Boot UEFI
ASRock C2750D4I 2 X 8GB DDR3 ECC
Pool of 2 vdev Raidz1: 3 WDC WD40EFRX + 3 WDC WD40EFRX

Gorgot
NewUser
NewUser
Posts: 2
Joined: 29 Mar 2017 01:27
Status: Offline

Re: Fixing failed ZIL

Post by Gorgot »

sleid wrote:
29 Mar 2017 08:30
# zpool online data /dev/da1
# zpool clear data

Code: Select all

# zpool online data /dev/da1

warning: device '/dev/da1' onlined, but remains in faulted state
use 'zpool replace' to replace devices that are no longer present

# zpool clear data
# zpool status

  pool: data
 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 Sat Apr  1 13:29:41 2017
        232M scanned out of 10.1T at 19.3M/s, 151h37m to go
        33.3M resilvered, 0.00% done
config:

        NAME                     STATE     READ WRITE CKSUM
        data                     DEGRADED     0     0     0
          raidz1-0               ONLINE       0     0     0
            da6                  ONLINE       0     0     0  (resilvering)
            da7                  ONLINE       0     0     0
            da2                  ONLINE       0     0     0
            da3                  ONLINE       0     0     0
            da4                  ONLINE       0     0     0
            da5                  ONLINE       0     0     0
        logs
          replacing-1            DEGRADED     0     0     0
            1603975256220764110  UNAVAIL      0     0     0  was /dev/da1
            gpt/log              ONLINE       0     0     0  block size: 512B configured, 4096B native
        cache
          gpt/cache              ONLINE       0     0     0

errors: No known data errors
Unfortunately, the pool is still DEGRADED :(

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Fixing failed ZIL

Post by raulfg3 »

wait until resilver done.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Post Reply

Return to “ZFS (only!)”