Menu

Linux: Internal inode *** inconsistency for file '***' already present

Help
Suika
2021-10-23
2021-10-27
  • Suika

    Suika - 2021-10-23

    Error:

    snapraid sync
    Self test...
    Loading state from /opt/.snapraid/snapraid.content...
    Scanning disk storage_d1...
    Internal inode '25826414747' inconsistency for file '/snapraid/storage_d1/XYZ/XYZ/XYZ.png' already present
    Stacktrace of snapraid v11.6, gcc 9.3.0, 64-bit, PATH_MAX=4096
    [bt] 01: snapraid(+0x2c26f) [0x56509226226f]
    addr2line: 'snapraid': No such file
    exit:1
    [bt] 02: snapraid(+0x2c9db) [0x5650922629db]
    addr2line: 'snapraid': No such file
    exit:1
    [bt] 03: snapraid(+0x2cb54) [0x565092262b54]
    addr2line: 'snapraid': No such file
    exit:1
    [bt] 04: snapraid(+0x2cb54) [0x565092262b54]
    addr2line: 'snapraid': No such file
    exit:1
    [bt] 05: snapraid(+0x2cb54) [0x565092262b54]
    addr2line: 'snapraid': No such file
    exit:1
    [bt] 06: snapraid(+0x2cb54) [0x565092262b54]
    addr2line: 'snapraid': No such file
    exit:1
    [bt] 07: snapraid(+0x2cb54) [0x565092262b54]
    addr2line: 'snapraid': No such file
    exit:1
    [bt] 08: snapraid(+0x2cedd) [0x565092262edd]
    addr2line: 'snapraid': No such file
    exit:1
    [bt] 09: snapraid(main+0x12c2) [0x565092243fa2]
    addr2line: 'snapraid': No such file
    exit:1
    [bt] 10: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f36c4fbb0b3]
    ??:0
    [bt] 11: snapraid(_start+0x2e) [0x56509224470e]
    addr2line: 'snapraid': No such file
    exit:1
    Please report this error to the SnapRAID Forum:
    https://sourceforge.net/p/snapraid/discussion/1677233/
    Aborted
    

    Config:

    parity /snapraid/storage_p1/snapraid.parity
    2-parity /snapraid/storage_p2/snapraid.2-parity
    content /opt/.snapraid/snapraid.content
    content /snapraid/storage_d1/.snapraid/snapraid.content
    content /snapraid/storage_d2/.snapraid/snapraid.content
    data storage_d1 /snapraid/storage_d1
    data storage_d2 /snapraid/storage_d2
    data storage_d3 /snapraid/storage_d3
    data storage_d4 /snapraid/storage_d4
    data storage_d5 /snapraid/storage_d5
    data storage_d6 /snapraid/storage_d6
    data storage_d7 /snapraid/storage_d7
    data storage_d8 /snapraid/storage_d8
    blocksize 64
    hashsize 8
    autosave 0
    

    storage_d devices are XFS.
    storage_p
    is ext4 parity.
    Ubuntu 20.04.3 LTS

    I reduced blocksize due to the nature of the files being relatively small, which would mess up the storage use later on.
    And by proxy I had to reduce hashsize to keep the RAM size in check. If this is the cause of the problem, I can increase it since I have the resources. But the system has at least 10M files and growing fast.

    The file in question is nothing special:

      File: /snapraid/storage_d1/XYZ/XYZ/XYZ.png
      Size: 1363929         Blocks: 2664       IO Block: 4096   regular file
    Device: 800h/2048d      Inode: 25826414747  Links: 1
    Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
    

    When I hash the file, it has the right has (got a db with all that information).
    I'm kinda puzzled where this error came from, since this never happened.
    File has no hardlinks and no known problems.

    Help? File is ok, disk smart is ok, filesystem has no inconsistencies, everything is almost default except blocksize and hashsize.

     
  • Suika

    Suika - 2021-10-23

    I copied that file outside the disk and added it to the exclusion, to make snapraid run, and it runs.
    ¯\(ツ)/¯ don't get it, but at least I can sync until the problem is figured out

     
  • Suika

    Suika - 2021-10-23

    Ok, for whatever reason it had a problem with a file in storage_d5.
    I do the same thing. Copy the file, add it to exclusion, run snpraid sync aaaaand some other file now has a problem in storage_d1. Which had not shown up minutes ago, when snapraid happily scanned d1-d4 before.

     
  • Suika

    Suika - 2021-10-23

    Ok... I had an application running that was hashingthe files and moving them to another directory.
    And that was the cause of this problem, probably due to the way XFS handles the metadata.

    Still strange. But it seems to work now without problems, when the hashing application is not running.

     

    Last edit: Suika 2021-10-23
  • Muddy Waters

    Muddy Waters - 2021-10-27

    yes I have found you need to be careful when running sync as any files being added, changed, moved during the sync will cause issues.

     

Log in to post a comment.