[SOLVED] Filesystem errors - ok to replace?


Recommended Posts

Hi all,

 

I am recently having file system issues that are preventing mnt/disk1 from mounting (and the array from starting).  I attempted an xfs_repair, after diagnosing with -n, but I see the following message:

 

xfs_repair -v /dev/md1
Phase 1 - find and verify superblock...
        - block cache size set to 343376 entries
Phase 2 - using internal log
        - zero log...
zero_log: head block 542166 tail block 541726
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed.  Mount the filesystem to replay the log, and unmount it before
re-running xfs_repair.  If you are unable to mount the filesystem, then use
the -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.

 

At this point I am unable to start the array outside of maintenance mode.  My plan is to simply replace this (fairly old) drive to solve this issue (and expand the size a bit).  I understand that an xfs_repair -L could result in data loss, so this seems like the approach if I dont want to risk data loss on /mnt/disk1. 

 

2 questions:

 

[*]Am I correct that simply swapping out the drive, formatting and restoring with a new drive should solve this issue?

[*]Am I correct that filesystem errors aren't written to parity (meaning, by restoring, I'm not restoring the errors too)?

 

Anything else I should know? Thanks in advance!

 

 

M

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.