Skip to contentSkip to conversation

rsync and corrupt inodes (was xfs_dump problem)

DISCUSSION Michael Monnerie 2 participants 4 messages Jul 15, 2010 – Jul 16, 2010

lore
Share & tools
lore
#0 lore raw

Ping?

Quoted 8 lines · On Montag, 5. Juli 2010 Dave Chinner wrote:
Quoted 4 lines

So far, so good. I'm on 2.6.34 now. Is there any chance for a fixed version of xfs_repair, so that I can either get rid of the 4 broken files (i.e. delete them), or repair the filesystem? ATM, xfs_repair asserts on this filesystem.

What version of xfs_repair? v3.1.2 does not assert fail here on the metadump image you posted, but it does take 3 runs to fix up all the problems with the busted inodes....

Do you mean this one?
http://zmi.at/saturn_bigdata.metadump.only_broken.bz2 (197 MB)

I have xfs_repair 3.1.2, and made a shell script which 10x does xfs_repair that image, I attached the output here. Doesn't seem to repair anything, just crashing.

Maybe I did something wrong? I configured xfsprogs 3.1.2 with CFLAGS=-march=athlon64-sse3 ./configure --prefix=/usr and then
make;make install

I recompiled the whole thing now with

# gcc --version
gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]

and it's the same output as ever. Either you meant another metadump, or there is a problem somewhere I don't see.

Signature · 10 lines
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

xfs_repair version 3.1.2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
corrected attribute entry count in inode 649642, was 40, now 0 problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
- agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0 corrected attribute entry totsize in inode 2902971474, was 6, now 4 problem with attribute contents in inode 2902971474
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 2
- agno = 1
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
data fork in inode 2195133988 claims metadata block 537122652
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed. xfs_repair version 3.1.2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
corrected attribute entry count in inode 649642, was 40, now 0 problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
- agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0 corrected attribute entry totsize in inode 2902971474, was 6, now 4 problem with attribute contents in inode 2902971474
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
data fork in inode 2195133988 claims metadata block 537122652
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed. xfs_repair version 3.1.2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
corrected attribute entry count in inode 649642, was 40, now 0 problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
- agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0 corrected attribute entry totsize in inode 2902971474, was 6, now 4 problem with attribute contents in inode 2902971474
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
data fork in inode 2195133988 claims metadata block 537122652
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed. xfs_repair version 3.1.2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
corrected attribute entry count in inode 649642, was 40, now 0 problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
- agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0 corrected attribute entry totsize in inode 2902971474, was 6, now 4 problem with attribute contents in inode 2902971474
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
data fork in inode 2195133988 claims metadata block 537122652
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed. xfs_repair version 3.1.2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
corrected attribute entry count in inode 649642, was 40, now 0 problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
- agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0 corrected attribute entry totsize in inode 2902971474, was 6, now 4 problem with attribute contents in inode 2902971474
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
data fork in inode 649642 claims metadata block 537266460
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed. xfs_repair version 3.1.2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
corrected attribute entry count in inode 649642, was 40, now 0 problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
- agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0 corrected attribute entry totsize in inode 2902971474, was 6, now 4 problem with attribute contents in inode 2902971474
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
data fork in inode 2195133988 claims metadata block 537122652
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed. xfs_repair version 3.1.2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
corrected attribute entry count in inode 649642, was 40, now 0 problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
- agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0 corrected attribute entry totsize in inode 2902971474, was 6, now 4 problem with attribute contents in inode 2902971474
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
data fork in inode 649642 claims metadata block 537266460
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed. xfs_repair version 3.1.2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
corrected attribute entry count in inode 649642, was 40, now 0 problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
- agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0 corrected attribute entry totsize in inode 2902971474, was 6, now 4 problem with attribute contents in inode 2902971474
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
data fork in inode 649642 claims metadata block 537266460
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed. xfs_repair version 3.1.2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
corrected attribute entry count in inode 649642, was 40, now 0 problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
- agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0 corrected attribute entry totsize in inode 2902971474, was 6, now 4 problem with attribute contents in inode 2902971474
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
data fork in inode 2195133988 claims metadata block 537122652
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed. xfs_repair version 3.1.2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
corrected attribute entry count in inode 649642, was 40, now 0 problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
- agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0 corrected attribute entry totsize in inode 2902971474, was 6, now 4 problem with attribute contents in inode 2902971474
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 1
- agno = 0
- agno = 3
- agno = 2
- agno = 4
- agno = 5
data fork in inode 2195133988 claims metadata block 537122652
- agno = 6
- agno = 7
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#1 lore raw
Quoted 8 lines · Michael Monnerie

Ping?

Quoted 5 lines · On Montag, 5. Juli 2010 Dave Chinner wrote:
Quoted 4 lines

So far, so good. I'm on 2.6.34 now. Is there any chance for a fixed version of xfs_repair, so that I can either get rid of the 4 broken files (i.e. delete them), or repair the filesystem? ATM, xfs_repair asserts on this filesystem.

Quoted 6 lines
Quoted 3 lines

What version of xfs_repair? v3.1.2 does not assert fail here on the metadump image you posted, but it does take 3 runs to fix up all the problems with the busted inodes....

Do you mean this one?
http://zmi.at/saturn_bigdata.metadump.only_broken.bz2 (197 MB)

Yes, that's the one.

Quoted 8 lines

I have xfs_repair 3.1.2, and made a shell script which 10x does xfs_repair that image, I attached the output here. Doesn't seem to repair anything, just crashing.

Maybe I did something wrong? I configured xfsprogs 3.1.2 with CFLAGS=-march=athlon64-sse3 ./configure --prefix=/usr and then
make;make install

Drop the CFLAGS and see what happens when you just use a generic arch target.

Quoted 3 lines

I recompiled the whole thing now with

# gcc --version
gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
$ gcc --version
gcc (Debian 4.4.4-6) 4.4.4
Quoted 2 lines

and it's the same output as ever. Either you meant another metadump, or there is a problem somewhere I don't see.

It's the same metadump. The repair output is identical up to phase
4. Then I note that your first run processes AGs out of order and so detects problems in a different order to when I run locally.

Quoted 5 lines

Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 2

Quoted 8 lines

- agno = 1
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
data fork in inode 2195133988 claims metadata block 537122652
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' failed.

This is where things go out of order. In comparison:

Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
data fork in inode 649642 claims metadata block 537266460 correcting nblocks for inode 649642, was 8928025 - counted 8388604 data fork in inode 649790 claims metadata block 537274140 bad attribute format 1 in inode 649790, resetting value correcting nblocks for inode 649790, was 8928025 - counted 8388604
- agno = 1
data fork in inode 2195133988 claims metadata block 537122652 bad attribute format 1 in inode 2195133988, resetting value correcting nblocks for inode 2195133988, was 8928025 - counted 8388604 data fork in inode 2902971474 claims metadata block 537036572 correcting nblocks for inode 2902971474, was 8928025 - counted 8388604
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
Phase 5 - rebuild AG headers and trees...
- reset superblock...
....

This is not consistent, though, so it seems there is some problem where bad attribute format is not being detected and corrected properly for inode 2195133988. I don't see why AG processing order would affect this.

Regardless, can you run xfs_repair -P and see if that prevents the assert failure?

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#2 lore raw
Quoted 7 lines · On Freitag, 16. Juli 2010 Dave Chinner wrote:
Quoted 4 lines

Maybe I did something wrong? I configured xfsprogs 3.1.2 with CFLAGS=-march=athlon64-sse3 ./configure --prefix=/usr and then
make;make install

Drop the CFLAGS and see what happens when you just use a generic arch target.

OK, I'll retry this.

Quoted 2 lines

Regardless, can you run xfs_repair -P and see if that prevents the
assert failure?

I did this 10 times manually. It started good, but after a while repeats itself again:

# xfs_repair -P saturn_bigdata.only_broken                 
Phase 1 - find and verify superblock...                                
Phase 2 - using internal log                                           
        - zero log...                                                  
        - scan filesystem freespace and inode maps...                  
        - found root inode chunk                                       
Phase 3 - for each AG...                                               
        - scan and clear agi unlinked lists...                         
        - process known inodes and perform inode discovery...          
        - agno = 0
corrected attribute entry count in inode 649642, was 40, now 0
problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
        - agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0
corrected attribute entry totsize in inode 2902971474, was 6, now 4
problem with attribute contents in inode 2902971474
        - agno = 2
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
data fork in inode 649642 claims metadata block 537266460
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' 
failed.
Aborted

---------------------------------------------------

# xfs_repair -P saturn_bigdata.only_broken 2>&1|tee broken.log          
Phase 1 - find and verify superblock...                                             
Phase 2 - using internal log                                                        
        - zero log...                                                               
        - scan filesystem freespace and inode maps...                               
        - found root inode chunk                                                    
Phase 3 - for each AG...                                                            
        - scan and clear agi unlinked lists...                                      
        - process known inodes and perform inode discovery...                       
        - agno = 0                                                                  
corrected attribute entry count in inode 649642, was 40, now 0
problem with attribute contents in inode 649642
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
        - agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0
corrected attribute entry totsize in inode 2902971474, was 6, now 4
problem with attribute contents in inode 2902971474
        - agno = 2
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 1
data fork in inode 2195133988 claims metadata block 537122652
        - agno = 2
        - agno = 3
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' 
failed.

-------------------------------------------------

# xfs_repair -P saturn_bigdata.only_broken 2>&1|tee broken2.log         
Phase 1 - find and verify superblock...                                             
Phase 2 - using internal log                                                        
        - zero log...                                                               
        - scan filesystem freespace and inode maps...                               
        - found root inode chunk                                                    
Phase 3 - for each AG...                                                            
        - scan and clear agi unlinked lists...                                      
        - process known inodes and perform inode discovery...                       
        - agno = 0                                                                  
corrected attribute entry count in inode 649642, was 40, now 0                      
problem with attribute contents in inode 649642                                     
local inode 649790 attr too small (size = 1, min size = 4)
bad attribute fork in inode 649790, clearing attr fork
clearing inode 649790 attributes
cleared inode 649790
        - agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0
corrected attribute entry totsize in inode 2902971474, was 6, now 4
problem with attribute contents in inode 2902971474
        - agno = 2
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
        - agno = 2
data fork in inode 649642 claims metadata block 537266460
        - agno = 3
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' 
failed.
        - agno = 4
        - agno = 5

-------------------------------------------------

# xfs_repair -P saturn_bigdata.only_broken 2>&1|tee broken3.log        
Phase 1 - find and verify superblock...                                            
Phase 2 - using internal log                                                       
        - zero log...                                                              
        - scan filesystem freespace and inode maps...                              
        - found root inode chunk                                                   
Phase 3 - for each AG...                                                           
        - scan and clear agi unlinked lists...                                     
        - process known inodes and perform inode discovery...                      
        - agno = 0                                                                 
corrected attribute entry count in inode 649642, was 40, now 0                     
problem with attribute contents in inode 649642                                    
local inode 649790 attr too small (size = 1, min size = 4)                         
bad attribute fork in inode 649790, clearing attr fork                             
clearing inode 649790 attributes                                                   
cleared inode 649790                                                               
        - agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0
corrected attribute entry totsize in inode 2902971474, was 6, now 4
problem with attribute contents in inode 2902971474
        - agno = 2
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
        - agno = 2
        - agno = 1
data fork in inode 2195133988 claims metadata block 537122652
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
data fork in inode 649642 claims metadata block 537266460
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' 
failed.
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' 
failed.

-------------------------------------------------

# xfs_repair -P saturn_bigdata.only_broken 2>&1|tee broken4.log       
Phase 1 - find and verify superblock...                                           
Phase 2 - using internal log                                                      
        - zero log...                                                             
        - scan filesystem freespace and inode maps...                             
        - found root inode chunk                                                  
Phase 3 - for each AG...                                                          
        - scan and clear agi unlinked lists...                                    
        - process known inodes and perform inode discovery...                     
        - agno = 0                                                                
corrected attribute entry count in inode 649642, was 40, now 0                    
problem with attribute contents in inode 649642                                   
local inode 649790 attr too small (size = 1, min size = 4)                        
bad attribute fork in inode 649790, clearing attr fork                            
clearing inode 649790 attributes                                                  
cleared inode 649790
        - agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0
corrected attribute entry totsize in inode 2902971474, was 6, now 4
problem with attribute contents in inode 2902971474
        - agno = 2
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
        - agno = 2
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
        - agno = 1
data fork in inode 2195133988 claims metadata block 537122652
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' 
failed.

-------------------------------------------------

# xfs_repair -P saturn_bigdata.only_broken 2>&1|tee broken5.log      
Phase 1 - find and verify superblock...                                          
Phase 2 - using internal log                                                     
        - zero log...                                                            
        - scan filesystem freespace and inode maps...                            
        - found root inode chunk                                                 
Phase 3 - for each AG...                                                         
        - scan and clear agi unlinked lists...                                   
        - process known inodes and perform inode discovery...                    
        - agno = 0                                                               
corrected attribute entry count in inode 649642, was 40, now 0                   
problem with attribute contents in inode 649642                                  
local inode 649790 attr too small (size = 1, min size = 4)                       
bad attribute fork in inode 649790, clearing attr fork                           
clearing inode 649790 attributes                                                 
cleared inode 649790
        - agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0
corrected attribute entry totsize in inode 2902971474, was 6, now 4
problem with attribute contents in inode 2902971474
        - agno = 2
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 1
        - agno = 0
        - agno = 2
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
data fork in inode 649642 claims metadata block 537266460
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' 
failed.

-------------------------------------------------

# xfs_repair -P saturn_bigdata.only_broken 2>&1|tee broken6.log     
Phase 1 - find and verify superblock...                                         
Phase 2 - using internal log                                                    
        - zero log...                                                           
        - scan filesystem freespace and inode maps...                           
        - found root inode chunk                                                
Phase 3 - for each AG...                                                        
        - scan and clear agi unlinked lists...                                  
        - process known inodes and perform inode discovery...                   
        - agno = 0                                                              
corrected attribute entry count in inode 649642, was 40, now 0                  
problem with attribute contents in inode 649642                                 
local inode 649790 attr too small (size = 1, min size = 4)                      
bad attribute fork in inode 649790, clearing attr fork                          
clearing inode 649790 attributes                                                
cleared inode 649790
        - agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0
corrected attribute entry totsize in inode 2902971474, was 6, now 4
problem with attribute contents in inode 2902971474
        - agno = 2
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
        - agno = 2
        - agno = 1
data fork in inode 2195133988 claims metadata block 537122652
        - agno = 0
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' 
failed.
-------------------------------------------------
The next run gave the same output, only the order of AG's was different:
# diff broken6.log broken7.log 
34,39c34                                   
<         - agno = 3                       
<         - agno = 4                       
<         - agno = 5                       
<         - agno = 6                       
<         - agno = 7                       
<         - agno = 2                       
---                                        
Quoted 1 line

- agno = 0

42d36
< - agno = 0

-------------------------------------------------

# xfs_repair -P saturn_bigdata.only_broken 2>&1|tee broken8.log
Phase 1 - find and verify superblock...                                    
Phase 2 - using internal log                                               
        - zero log...                                                      
        - scan filesystem freespace and inode maps...                      
        - found root inode chunk                                           
Phase 3 - for each AG...                                                   
        - scan and clear agi unlinked lists...                             
        - process known inodes and perform inode discovery...              
        - agno = 0                                                         
corrected attribute entry count in inode 649642, was 40, now 0             
problem with attribute contents in inode 649642                            
local inode 649790 attr too small (size = 1, min size = 4)                 
bad attribute fork in inode 649790, clearing attr fork                     
clearing inode 649790 attributes                                           
cleared inode 649790
        - agno = 1
local inode 2195133988 attr too small (size = 3, min size = 4)
bad attribute fork in inode 2195133988, clearing attr fork
clearing inode 2195133988 attributes
cleared inode 2195133988
corrected attribute entry count in inode 2902971474, was 163, now 0
corrected attribute entry totsize in inode 2902971474, was 6, now 4
problem with attribute contents in inode 2902971474
        - agno = 2
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
        - agno = 1
data fork in inode 2195133988 claims metadata block 537122652
        - agno = 2
        - agno = 3
        - agno = 4
xfs_repair: dinode.c:2101: process_inode_data_fork: Assertion `err == 0' 
failed.
        - agno = 5
        - agno = 6
        - agno = 7

-------------------------------------------------
The next run gave the same output as "broken5.log", only the order of AG's was different:

# diff broken9.log broken5.log
34d33
<         - agno = 0
35a35,41
Quoted 7 lines

- agno = 0
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7

I made another 20 runs, all the same.

And I retried with the "CFLAGS":
CFLAGS="-march=athlon64-sse3 -g -Os" ./configure --prefix=/usr

No matter what I use for CFLAGS, the resulting binary repair/xfs_repair is always the same. So it seems to be ignored during compile anyway. Smells like a bug? Because config.status gets the CFLAGS set, it's just not used during compile. Comparing a "config.status" with CFLAGS set and without:

# diff config.status config.status.default
360c360                                                                 
<   with options \"'--prefix=/usr' 'CFLAGS=-march=athlon64-sse3 -g -
Os'\"
---
Quoted 1 line

with options \"\"

439c439
< set X '/bin/sh' './configure' '--prefix=/usr' 'CFLAGS=-
march=athlon64-sse3 -g -Os' $ac_configure_extra_args --no-create --no- recursion
---

Quoted 1 line
  set X '/bin/sh' './configure'  $ac_configure_extra_args --no-create 

--no-recursion
488c488
< max_cmd_len='1572864'
---

Quoted 1 line

max_cmd_len='3458764513820540925'

507c507
< CFLAGS='-march=athlon64-sse3 -g -Os'
---

Quoted 1 line

CFLAGS='-g -O2'

591c591
< LTCFLAGS='-march=athlon64-sse3 -g -Os'
---

Quoted 1 line

LTCFLAGS='-g -O2'

717c717
< S["have_zipped_manpages"]="true"
---

Quoted 1 line

S["have_zipped_manpages"]="false"

835c835
< S["CFLAGS"]="-march=athlon64-sse3 -g -Os"
---

Quoted 1 line

S["CFLAGS"]="-g -O2"

Signature · 10 lines
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#3 lore raw
In reply to Dave Chinner
Quoted 4 lines · On Freitag, 16. Juli 2010 Dave Chinner wrote:
Quoted 1 line

CFLAGS=-march=athlon64-sse3 ./configure --prefix=/usr

Drop the CFLAGS and see what happens when you just use a generic arch target.

I investigated this a bit more, and I'm sure that CFLAGS get completely ignored. I even set all variables with "GCC" in config.status to random content, and it compiles. Then I found that the one in include/builddefs gets always set to this:
GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall

So I changed it manually:
GCCFLAGS = -march=athlon64-sse3 -g -Os -funsigned-char -fno-strict- aliasing -Wall
and now the resulting binary is different. I guess that should not be happening? I'm used to setting "CFLAGS=" during configure to have smaller bins, and CFLAGS normally get passed through during compile, but not with xfsprogs. Not that it's very important, but maybe worth a fix?

Signature · 10 lines
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs