Re: xfs_scrub: call for testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 2, 2018 at 2:36 PM, Eric Sandeen <sandeen@xxxxxxxxxxx> wrote:


>
> I'd really value feedback on scrub as it stand at this point -
> Is the documentation clear?  Is the output correct?  Do the
> tool's arguments make sense?  Does it segfault?  Does it
> find real errors?  Does it crash your kernel? Does it
> eat your data?

xfsprogs-4.15.1-1.fc27.x86_64
I've built mainline 4.16.0-rc7 with CONFIG_XFS_ONLINE_SCRUB=y but I get this:

[chris@f27s ~]$ sudo xfs_scrub -T -v /mnt/fourth
EXPERIMENTAL xfs_scrub program in use! Use at your own risk!
Phase 1: Find filesystem geometry.
/mnt/fourth: using 4 threads to scrub.
Info: /mnt/fourth: Kernel metadata repair facility not detected.
Info: /mnt/fourth: Kernel metadata repair facility is not available.
Use -n to scrub.
Info: /mnt/fourth: Scrub aborted after phase 1.
/mnt/fourth: errors found: 1
Memory used: 132k/0k (17k/116k), time:  0.40/ 0.00/ 0.01s
I/O: 84.0KiB in, 0.0B out, 84.0KiB tot
I/O rate: 211.4KiB/s in, 0.0B/s out, 211.4KiB/s tot

Kernel message

mount
[  329.930644] SGI XFS with ACLs, security attributes, scrub, no debug enabled
[  329.940197] XFS (dm-16): Mounting V5 Filesystem
[  330.553888] XFS (dm-16): Ending clean mount

scrub command
[  373.941951] XFS (dm-16): EXPERIMENTAL online scrub feature in use.
Use at your own risk!


[chris@f27s ~]$ grep XFS linux/.config
CONFIG_XFS_FS=m
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
# CONFIG_XFS_RT is not set
CONFIG_XFS_ONLINE_SCRUB=y
CONFIG_XFS_WARN=y
# CONFIG_XFS_DEBUG is not set
# CONFIG_VXFS_FS is not set
[chris@f27s ~]$


When I try it with just -n then I get entries

Info: AG 2 superblock: Optimization is possible.

that appears to be working but it's also a noop.

Also the -n output has many unicode complaints with full filenames in
the output. e.g.

Info: inode 1815560251 (27/3620923): Unicode name
"Chapter\xc2\xa02.\xc2\xa0Securing Your Network.webloc" in directory
should be normalized as "Chapter 2. Securing Your Network.webloc".

This should be less verbose by default. Perhaps something generic
like, "Some unicode filenames should be normalized, use -v for verbose
output."  I don't want to have to report a scrub with a bunch of
filenames interlaced in the output. Plus that's nothing I can or even
want to do anything about. That file likely came from a Mac using
netatalk or samba. Hopefully the repair mode for scrub doesn't
normalize these files, I don't really want to find out the hard way
that corrected files then can't be properly read over that same
network connection or otherwise have filenames apparently mangled.



-- 
Chris Murphy
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux