Unmountable drive... next steps


Recommended Posts

 

Hi guys,

 

we’ve had a power cut, and on starting my server one of my drives is now unmountable... (i will be investing in a UPS as soon as possible). There are some files on here that i dont have backed up, but they are not as important.

 

i have started in maintenance mode and ran xfs repair with -n option.

 

phase 1 states find and verify superblock... and nothing else. Phase 2 gives an alert saying that the filesystem has metadata changes in a log which is being ignored.

 

after that several folders and files are listed as referencing non-existent inode.

 

now are these the only files it can find or the only ones it has an issue with?

 

Thanks in advance

M0zz

Edited by M0zza
Link to comment

 

Right. Well it is now the weekend and I have had a chance to look into this...

 

tried to run xfs-repair with no options and got the following...

 

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 to repair.

 

Now the drive is mostly full and had only just started being written to again... is this what i can expect to lose of will the log contain long term data?

Link to comment
32 minutes ago, M0zza said:

Now the drive is mostly full and had only just started being written to again... is this what i can expect to lose of will the log contain long term data?

Nearly always using the -L option causes absolutely no data loss at all.   In the worst case it is only likely to affect the last file that was written.

Link to comment

Updated to 6.7 and rerun xfs_repair.

 

it looks like not much if anything was lost, but i do have a bit of tidying up to do as a hundred or so files and folders in lost+found.

 

Thank you all for your help with this. Couldnt have done it with out you.

 

M0zz

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.