xfs
[Top] [All Lists]

Re: centos7 xfs able to mount, but unable to write, unable to perform re

To: xfs@xxxxxxxxxxx
Subject: Re: centos7 xfs able to mount, but unable to write, unable to perform repair
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Mon, 23 May 2016 17:24:33 -0500
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CAHV_CwYrTg8H9BZ60shH4PFYW4FMY7nc6dx49+7N6O15PfvuFw@xxxxxxxxxxxxxx>
References: <CAHV_CwYrTg8H9BZ60shH4PFYW4FMY7nc6dx49+7N6O15PfvuFw@xxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
On 5/23/16 1:46 PM, Morgan Yang wrote:
> I am running CentOS 7.1. I have a 1TB drive that is formatted as XFS.
> 
> After a year of continuous use, I can no longer write to it
> 
> sudo touch /capture/a.a
> 
> touch: cannot touch ‘/capture/a.a’: No space left on device

You've probably run out of room for new inode allocations,
which require a certain amount of contiguous free space.

> 
> However, there's plenty of room on the drive

Don't leave us guessing; how much?

And what does xfs_info /mount/point say.

...

> I see the following on dmesg

Oh, hum.

> [336198.224298] XFS (sdb): metadata I/O error: block 0x3a3836e2 
> ("xfs_trans_read_buf_map") error 117 numblks 1
> [336198.224479] XFS (sdb): Metadata corruption detected at 
> xfs_agi_read_verify+0x5e/0x110 [xfs], block 0x57545252
> [336198.224483] XFS (sdb): Unmount and run xfs_repair
> [336198.224486] XFS (sdb): First 64 bytes of corrupted metadata buffer:
> [336198.224489] ffff880404f30400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
> 00 00  ................
> [336198.224491] ffff880404f30410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
> 00 00  ................
> [336198.224494] ffff880404f30420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
> 00 00  ................
> [336198.224496] ffff880404f30430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
> 00 00  ................
> [336198.224554] XFS (sdb): metadata I/O error: block 0x57545252 
> ("xfs_trans_read_buf_map") error 117 numblks 1
> [337680.482764] xfs_db[25323]: segfault at 7ffe0aeceff8 ip 0000000000424085 
> sp 00007ffe0aecf000 error 6 in xfs_db[400000+81000]

Totally zeroed.

what kind of disk is this?

> When I try to run "xfs_repair", it can't seem to find secondary superblock
> 
> sudo xfs_repair -v /dev/sdb
> Phase 1 - find and verify superblock...
> couldn't verify primary superblock - not enough secondary superblocks with 
> matching geometry !!!
> 
> attempting to find secondary superblock...
> ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Sorry,
> could not find valid secondary superblock
> Exiting now.

what does file -s /dev/sdb say?

-Eric
 
> 
> Does anyone have any recommendations on how I can recover this? 
> 
> 
> Much Thanks
> 
> Morgan Yang
> 
<Prev in Thread] Current Thread [Next in Thread>