Skip to contentSkip to conversation

'stripe width' inconsistency

DISCUSSION Jan 1 participant 2 messages Dec 25, 2018 – Apr 25, 2019

lore
Share & tools
lore

Jan

author
#0 lore raw

Hello!

I hope I came to the right place here. If not, I'd appreciate a pointer to a more appropriate one.

Recently, I ran into problems mounting one of my XFS file systems. It's been a while since I used that HDD but I'm almost certain there were no problems. 'xfs_repair' complains about 'bad stripe width in superblock' but 'xfs_db' has no problems parsing the filesystem. It reports (among other information)

Quoted 2 lines

unit = 8
width = 65535

[...]

Quoted 1 line

crc = 0xe9e260b (correct)

and can also output directory/file information properly. The values for 'unit' and 'width' do seem strange but are the defaults chosen by 'mkfs.xfs'. I double checked that by running 'mkfs.xfs -Nf' on the device which yields

Quoted 2 lines

data     =                       bsize=4096   blocks=976688597, imaxpct=5 =                       sunit=8      swidth=65535 blks

In case this is relevant: The filesystem is created on top of a LUKS container on an external USB disk. 'blockdev --getss --getpbsz --getiomin --getioopt /dev/mapper/XFS' reports

Quoted 4 lines

4096
4096
32768
268431360

and 'fdisk -l /dev/sdb'

Quoted 2 lines

Device     Start       End   Sectors  Size Type /dev/sdb1  65535 976754636 976689102  3,7T Linux filesystem

I'm running a 64-bit Debian Testing, so my xfsprogs are version 4.15.1 and the kernel is 4.18. If any further information is required/helpful, I'll gladly provide it. Is there any way to "repair" the XFS or at the very least (mount it to) copy its files?

Regards, Jan

author
#1 lore raw

Hi!

It's been some time but if anybody finds this thread later on, here is how I solved the problem:

Dec 26, 2018, 12:09 AM by [email protected]:

Quoted 7 lines

Recently, I ran into problems mounting one of my XFS file systems. It's been a while since I used that HDD but I'm almost certain there were no problems. 'xfs_repair' complains about 'bad stripe width in superblock' but 'xfs_db' has no problems parsing the filesystem. It reports (among other information)

Quoted 2 lines

unit = 8
width = 65535

[...]

Quoted 1 line

crc = 0xe9e260b (correct)

In the end it worked to use 'xfs_db -x' to change the width to '65536'. (Actually, I used a dm snapshot so I did not have to touch the actual block device, but that was just a safety measure.) After that, I could mount the filesystem normally again. Just to be safe, I mounted it read-only, made a backup and recreated the filesystem with (manually set) sane parameters.

As a recommendation: it would be nice if such "defect" filesystems were still mountable, even if read only ;-)

Regards, Jan