Want to understand XFS strangenessCannot mount cdrom in Linux due to “I/O error”XFS I/O Error accessing Logical Block 0 of an LVM snapshot: is the drive or snapshot bad?How to format XFS parition if the stability is the most important thingCorrupt XFS headerData recovery for XFS partitionunable to mount XFS after rescueMounted disk disappears after reboot40tb storage on sles 11 sp1Virtualbox disk in CentOS mount/format issuemount: wrong fs type, bad option, bad superblock on /dev/xvdf1, missing codepage or helper program, or other error

Examples where existence is harder than evaluation

How to explain intravenous drug abuse to a 6-year-old?

What happens when the drag force exceeds the weight of an object falling into earth?

History: Per Leviticus 19:27 would the apostles have had corner locks ala Hassidim today?

Align a table column at a specific symbol

Every group the homology of some space?

Did any early RISC OS precursor run on the BBC Micro?

What are my options legally if NYC company is not paying salary?

Is there an application which does HTTP PUT?

What should I use to get rid of some kind of weed in my onions

Was Mohammed the most popular first name for boys born in Berlin in 2018?

99 coins into the sacks

How to start your Starctaft II games vs AI immediatly?

Why did Ham the Chimp push levers?

My perfect evil overlord plan... or is it?

How to animate petals opening

Using mean length and mean weight to calculate mean BMI?

I'm attempting to understand my 401k match and how much I need to contribute to maximize the match

Do oversize pulley wheels increase derailleur capacity?

Is there a reason why Turkey took the Balkan territories of the Ottoman Empire, instead of Greece or another of the Balkan states?

Is it safe to keep the GPU on 100% utilization for a very long time?

How long can fsck take on a 30 TB volume?

Exactly which act of bravery are Luke and Han awarded a medal for?

Names of the Six Tastes



Want to understand XFS strangeness


Cannot mount cdrom in Linux due to “I/O error”XFS I/O Error accessing Logical Block 0 of an LVM snapshot: is the drive or snapshot bad?How to format XFS parition if the stability is the most important thingCorrupt XFS headerData recovery for XFS partitionunable to mount XFS after rescueMounted disk disappears after reboot40tb storage on sles 11 sp1Virtualbox disk in CentOS mount/format issuemount: wrong fs type, bad option, bad superblock on /dev/xvdf1, missing codepage or helper program, or other error






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








3















have a XFS partition that I find to act very strangely. It mounts fine under a system but won't mount under others --of which my main system. As I'm new at XFS, I'd love to hear from users more experienced than me before I just forget about XFS.



  • Hardware is fine: S.M.A.R.T. shows the three months old 1TB 2.5" Momentus is good; all attributes are like WORST=VALUE. HDD stands in an Inateck external aluminium rack that's USB connected to either of my laptops.

  • Partition layout is a dead simple MBR with four primary partitions, the XFS one is where I store all of media stuff (library).
    I created the partitions three months ago under Arch i686 (kernel 3.19-ck) with parted. Had no issues whatsoever accessing it under that system. But under Fedora 16 i686 with an older kernel where it wouldn't mount, even after running xfs_repair.

  • Also, I have no issues mounting the other (ext4/swap) partitions on that drive under any Linux I'm running.

  • Now I'm unable to mount the XFS partition from the Arch x86_64 that replaced the i686 version on my main laptop here. Changed nothing but the OS version.

  • If I try to mount the same partition the next minute under Slackware 14.1 with linux-3.17.4 (i686), it just... mounts?!

Here's the disk layout



# fdisk -l /dev/sdb

Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x531843f8

Device Boot Start End Sectors Size Id Type
/dev/sdb1 8192 212991 204800 100M 83 Linux
/dev/sdb2 212992 8200191 7987200 3.8G 82 Linux swap / Solaris
/dev/sdb3 8200192 20488191 12288000 5.9G 83 Linux
/dev/sdb4 20488192 1953523711 1933035520 921.8G 83 Linux


Mount attempt as my user gave this:



$ mount /media/momedia/
mount: mount /dev/sdb4 on /media/momedia failed: Structure needs cleaning


Then as root



# mount /media/momedia/
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.


With dmesg :



# dmesg | tail
[274136.490862] sd 9:0:0:0: [sdb] 1953525168 512-byte logical blocks:

(1.00 TB/931 GiB)
[274136.490876] sd 9:0:0:0: [sdb] 4096-byte physical blocks
[274136.491965] sd 9:0:0:0: [sdb] Write Protect is off
[274136.491980] sd 9:0:0:0: [sdb] Mode Sense: 43 00 00 00
[274136.493079] sd 9:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[274136.519478] sdb: sdb1 sdb2 sdb3 sdb4
[274136.523459] sd 9:0:0:0: [sdb] Attached SCSI disk
[274162.463851] XFS (sdb4): Version 5 superblock detected. This kernel has EXPERIMENTAL support enabled!
Use of these features in this kernel is at your own risk!
[274162.463864] XFS (sdb4): Superblock has unknown read-only compatible features (0x1) enabled.
[274162.463869] XFS (sdb4): Attempted to mount read-only compatible filesystem read-write.
Filesystem can only be safely mounted read only.
[274162.463878] ffff880079931000: 58 46 53 42 00 00 10 00 00 00 00 00 0e 66 f9 00 XFSB.........f..
[274162.463884] ffff880079931010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[274162.463889] ffff880079931020: ed 2d 1b 3d be 8e 4a 99 94 48 1e 50 b3 63 8a 3b .-.=..J..H.P.c.;
[274162.463895] ffff880079931030: 00 00 00 00 08 00 00 08 00 00 00 00 00 00 00 60 ...............`
[274162.463901] XFS (sdb4): Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c. Caller 0xffffffffa0714635

[274162.463910] CPU: 0 PID: 81 Comm: kworker/0:1H Not tainted 3.10.94-1-lts310-ck #1
[274162.463915] Hardware name: Dell Inc. Inspiron 1012/00D2K7, BIOS A11 11/12/2010
[274162.463942] Workqueue: xfslogd xfs_buf_iodone_work [xfs]
[274162.463947] 0000000000000001 ffff880078f25d88 ffffffff814bec2d ffff880078f25dc8
[274162.463956] ffffffffa07172d3 ffffffffa0714635 ffffffffa0795945 ffff88007002a100
[274162.463963] 0000000000000016 ffff88007985d800 0000000000001000 ffff880078f25e08
[274162.463971] Call Trace:
[274162.463985] [<ffffffff814bec2d>] dump_stack+0x19/0x1b
[274162.464007] [<ffffffffa07172d3>] xfs_corruption_error+0x93/0xa0 [xfs]
[274162.464028] [<ffffffffa0714635>] ? xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464059] [<ffffffffa076da02>] xfs_sb_read_verify+0x112/0x130 [xfs]
[274162.464081] [<ffffffffa0714635>] ? xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464102] [<ffffffffa0714635>] xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464112] [<ffffffff8107558a>] process_one_work+0x17a/0x4e0
[274162.464120] [<ffffffff81076093>] worker_thread+0x123/0x430
[274162.464128] [<ffffffff814c2dc3>] ? preempt_schedule+0x43/0x60
[274162.464137] [<ffffffff81075f70>] ? manage_workers.isra.8+0x290/0x290
[274162.464144] [<ffffffff8107c6f0>] kthread+0xc0/0xd0
[274162.464152] [<ffffffff8107c630>] ? kthread_worker_fn+0x170/0x170
[274162.464161] [<ffffffff814cbe48>] ret_from_fork+0x58/0x90
[274162.464168] [<ffffffff8107c630>] ? kthread_worker_fn+0x170/0x170
[274162.464174] XFS (sdb4): Corruption detected. Unmount and run xfs_repair
[274162.464193] XFS (sdb4): SB validate failed with error 22.


file -s identifies the filesystem neat and clear



[root@gwenael ~]# file -s /dev/sdb4
/dev/sdb4: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs)


I checked the data at the begining of the partition and find it neat (but I'm no expert when it comes to hex)



[root@gwenael ~]# dd if=/dev/sdb4 bs=512 count=64 iflag=direct | hexdump -C
64+0 records in
64+0 records out
32768 bytes (33 kB) copied, 0.0252469 s, 1.3 MB/s
00000000 58 46 53 42 00 00 10 00 00 00 00 00 0e 66 f9 00 |XFSB.........f..|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 ed 2d 1b 3d be 8e 4a 99 94 48 1e 50 b3 63 8a 3b |.-.=..J..H.P.c.;|
00000030 00 00 00 00 08 00 00 08 00 00 00 00 00 00 00 60 |...............`|
00000040 00 00 00 00 00 00 00 61 00 00 00 00 00 00 00 62 |.......a.......b|
00000050 00 00 00 01 03 99 be 40 00 00 00 04 00 00 00 00 |.......@........|
00000060 00 01 cc df bc a5 10 00 02 00 00 08 6d 6f 6d 65 |............mome|
00000070 64 69 61 73 00 00 00 00 0c 0c 09 03 1a 00 00 19 |dias............|
00000080 00 00 00 00 00 03 f8 00 00 00 00 00 00 00 01 22 |..............."|
00000090 00 00 00 00 09 77 78 90 00 00 00 00 00 00 00 00 |.....wx.........|
000000a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
000000b0 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 |................|


Next mount attempt, output changed back to what it was from my user



# mount -t xfs /dev/sdb4 /media/momedia/
mount: mount /dev/sdb4 on /media/momedia failed: Structure needs cleaning


Safe check finds the superblock



# xfs_repair -n /dev/sdb4
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
<SNIP SNIP>
- moving disconnected inodes to lost+found ...
Phase 7 - verify link counts...
Maximum metadata LSN (1:402600) is ahead of log (1:8).
Would format log to cycle 4.


Since it does not mount, I run xfs_repair /dev/sdb4 with the same output as above but



Phase 5 - rebuild AG headers and trees...
- reset superblock...


Yet I can't mount it either



# mount -t xfs /dev/sdb4 /media/momedia/
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
missing codepage or helper program, or other error


I then runned xfs_repair /dev/sdb4 with the same result.



First time I meet such a sensitive FS so, do you know what can I do to have this mount in a more standard/compatible way?




EDITED to show the full system log upon mount command.
Also, mouting it read-only as per the log's advice fails on Arch:



# mount -t xfs -o ro /dev/sdb4 /mnt/tmp/
mount: mount /dev/sdb4 on /mnt/tmp failed: Structure needs cleaning









share|improve this question
























  • Please show the rest of the kernel bug messages from dmesg, you have only shown the last few lines of them and there are often 30 or more lines.

    – Michael Hampton
    Jan 2 '16 at 18:22











  • Done @MichaelHampton; dmesg full output upon mount is much more readable :} though not uderstandable to me espec. Version 5 superblock detected, Filesystem can only be safely mounted read only (cannot) or ` Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c.`. I'll try to get it from Fedora (mount failed like in Arch x86_64)

    – tuk0z
    Jan 4 '16 at 2:18






  • 1





    Well, I think that makes it obvious: You need a newer kernel, just like it told you. And Fedora 16 is far past end of life anyway; you shouldn't have any such systems in existence.

    – Michael Hampton
    Jan 4 '16 at 2:20











  • Yes, thank you for confirming this. Means if one had his / partition XFS formated and he musts rollback to an older kernel for any reasons (as it happens) then he can't even boot his system. Wooow. That makes XFS obviously not a reliable fs for me. Feels like a proprietary format that requires one to buy a certain version of the software used just to be able to read it. When ext4 can still access ext2 partition rw even with kernel 4x or Libreoffice open OOo 1x files. Am glad I tried it!

    – tuk0z
    Jan 5 '16 at 13:10











  • Sometimes backward incompatible changes are required, and that's true of every software project. Rolling back wouldn't be a problem here, but you're not trying to roll back to a slightly older kernel; you're trying to roll back for several years!

    – Michael Hampton
    Jan 5 '16 at 15:48

















3















have a XFS partition that I find to act very strangely. It mounts fine under a system but won't mount under others --of which my main system. As I'm new at XFS, I'd love to hear from users more experienced than me before I just forget about XFS.



  • Hardware is fine: S.M.A.R.T. shows the three months old 1TB 2.5" Momentus is good; all attributes are like WORST=VALUE. HDD stands in an Inateck external aluminium rack that's USB connected to either of my laptops.

  • Partition layout is a dead simple MBR with four primary partitions, the XFS one is where I store all of media stuff (library).
    I created the partitions three months ago under Arch i686 (kernel 3.19-ck) with parted. Had no issues whatsoever accessing it under that system. But under Fedora 16 i686 with an older kernel where it wouldn't mount, even after running xfs_repair.

  • Also, I have no issues mounting the other (ext4/swap) partitions on that drive under any Linux I'm running.

  • Now I'm unable to mount the XFS partition from the Arch x86_64 that replaced the i686 version on my main laptop here. Changed nothing but the OS version.

  • If I try to mount the same partition the next minute under Slackware 14.1 with linux-3.17.4 (i686), it just... mounts?!

Here's the disk layout



# fdisk -l /dev/sdb

Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x531843f8

Device Boot Start End Sectors Size Id Type
/dev/sdb1 8192 212991 204800 100M 83 Linux
/dev/sdb2 212992 8200191 7987200 3.8G 82 Linux swap / Solaris
/dev/sdb3 8200192 20488191 12288000 5.9G 83 Linux
/dev/sdb4 20488192 1953523711 1933035520 921.8G 83 Linux


Mount attempt as my user gave this:



$ mount /media/momedia/
mount: mount /dev/sdb4 on /media/momedia failed: Structure needs cleaning


Then as root



# mount /media/momedia/
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.


With dmesg :



# dmesg | tail
[274136.490862] sd 9:0:0:0: [sdb] 1953525168 512-byte logical blocks:

(1.00 TB/931 GiB)
[274136.490876] sd 9:0:0:0: [sdb] 4096-byte physical blocks
[274136.491965] sd 9:0:0:0: [sdb] Write Protect is off
[274136.491980] sd 9:0:0:0: [sdb] Mode Sense: 43 00 00 00
[274136.493079] sd 9:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[274136.519478] sdb: sdb1 sdb2 sdb3 sdb4
[274136.523459] sd 9:0:0:0: [sdb] Attached SCSI disk
[274162.463851] XFS (sdb4): Version 5 superblock detected. This kernel has EXPERIMENTAL support enabled!
Use of these features in this kernel is at your own risk!
[274162.463864] XFS (sdb4): Superblock has unknown read-only compatible features (0x1) enabled.
[274162.463869] XFS (sdb4): Attempted to mount read-only compatible filesystem read-write.
Filesystem can only be safely mounted read only.
[274162.463878] ffff880079931000: 58 46 53 42 00 00 10 00 00 00 00 00 0e 66 f9 00 XFSB.........f..
[274162.463884] ffff880079931010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[274162.463889] ffff880079931020: ed 2d 1b 3d be 8e 4a 99 94 48 1e 50 b3 63 8a 3b .-.=..J..H.P.c.;
[274162.463895] ffff880079931030: 00 00 00 00 08 00 00 08 00 00 00 00 00 00 00 60 ...............`
[274162.463901] XFS (sdb4): Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c. Caller 0xffffffffa0714635

[274162.463910] CPU: 0 PID: 81 Comm: kworker/0:1H Not tainted 3.10.94-1-lts310-ck #1
[274162.463915] Hardware name: Dell Inc. Inspiron 1012/00D2K7, BIOS A11 11/12/2010
[274162.463942] Workqueue: xfslogd xfs_buf_iodone_work [xfs]
[274162.463947] 0000000000000001 ffff880078f25d88 ffffffff814bec2d ffff880078f25dc8
[274162.463956] ffffffffa07172d3 ffffffffa0714635 ffffffffa0795945 ffff88007002a100
[274162.463963] 0000000000000016 ffff88007985d800 0000000000001000 ffff880078f25e08
[274162.463971] Call Trace:
[274162.463985] [<ffffffff814bec2d>] dump_stack+0x19/0x1b
[274162.464007] [<ffffffffa07172d3>] xfs_corruption_error+0x93/0xa0 [xfs]
[274162.464028] [<ffffffffa0714635>] ? xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464059] [<ffffffffa076da02>] xfs_sb_read_verify+0x112/0x130 [xfs]
[274162.464081] [<ffffffffa0714635>] ? xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464102] [<ffffffffa0714635>] xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464112] [<ffffffff8107558a>] process_one_work+0x17a/0x4e0
[274162.464120] [<ffffffff81076093>] worker_thread+0x123/0x430
[274162.464128] [<ffffffff814c2dc3>] ? preempt_schedule+0x43/0x60
[274162.464137] [<ffffffff81075f70>] ? manage_workers.isra.8+0x290/0x290
[274162.464144] [<ffffffff8107c6f0>] kthread+0xc0/0xd0
[274162.464152] [<ffffffff8107c630>] ? kthread_worker_fn+0x170/0x170
[274162.464161] [<ffffffff814cbe48>] ret_from_fork+0x58/0x90
[274162.464168] [<ffffffff8107c630>] ? kthread_worker_fn+0x170/0x170
[274162.464174] XFS (sdb4): Corruption detected. Unmount and run xfs_repair
[274162.464193] XFS (sdb4): SB validate failed with error 22.


file -s identifies the filesystem neat and clear



[root@gwenael ~]# file -s /dev/sdb4
/dev/sdb4: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs)


I checked the data at the begining of the partition and find it neat (but I'm no expert when it comes to hex)



[root@gwenael ~]# dd if=/dev/sdb4 bs=512 count=64 iflag=direct | hexdump -C
64+0 records in
64+0 records out
32768 bytes (33 kB) copied, 0.0252469 s, 1.3 MB/s
00000000 58 46 53 42 00 00 10 00 00 00 00 00 0e 66 f9 00 |XFSB.........f..|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 ed 2d 1b 3d be 8e 4a 99 94 48 1e 50 b3 63 8a 3b |.-.=..J..H.P.c.;|
00000030 00 00 00 00 08 00 00 08 00 00 00 00 00 00 00 60 |...............`|
00000040 00 00 00 00 00 00 00 61 00 00 00 00 00 00 00 62 |.......a.......b|
00000050 00 00 00 01 03 99 be 40 00 00 00 04 00 00 00 00 |.......@........|
00000060 00 01 cc df bc a5 10 00 02 00 00 08 6d 6f 6d 65 |............mome|
00000070 64 69 61 73 00 00 00 00 0c 0c 09 03 1a 00 00 19 |dias............|
00000080 00 00 00 00 00 03 f8 00 00 00 00 00 00 00 01 22 |..............."|
00000090 00 00 00 00 09 77 78 90 00 00 00 00 00 00 00 00 |.....wx.........|
000000a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
000000b0 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 |................|


Next mount attempt, output changed back to what it was from my user



# mount -t xfs /dev/sdb4 /media/momedia/
mount: mount /dev/sdb4 on /media/momedia failed: Structure needs cleaning


Safe check finds the superblock



# xfs_repair -n /dev/sdb4
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
<SNIP SNIP>
- moving disconnected inodes to lost+found ...
Phase 7 - verify link counts...
Maximum metadata LSN (1:402600) is ahead of log (1:8).
Would format log to cycle 4.


Since it does not mount, I run xfs_repair /dev/sdb4 with the same output as above but



Phase 5 - rebuild AG headers and trees...
- reset superblock...


Yet I can't mount it either



# mount -t xfs /dev/sdb4 /media/momedia/
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
missing codepage or helper program, or other error


I then runned xfs_repair /dev/sdb4 with the same result.



First time I meet such a sensitive FS so, do you know what can I do to have this mount in a more standard/compatible way?




EDITED to show the full system log upon mount command.
Also, mouting it read-only as per the log's advice fails on Arch:



# mount -t xfs -o ro /dev/sdb4 /mnt/tmp/
mount: mount /dev/sdb4 on /mnt/tmp failed: Structure needs cleaning









share|improve this question
























  • Please show the rest of the kernel bug messages from dmesg, you have only shown the last few lines of them and there are often 30 or more lines.

    – Michael Hampton
    Jan 2 '16 at 18:22











  • Done @MichaelHampton; dmesg full output upon mount is much more readable :} though not uderstandable to me espec. Version 5 superblock detected, Filesystem can only be safely mounted read only (cannot) or ` Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c.`. I'll try to get it from Fedora (mount failed like in Arch x86_64)

    – tuk0z
    Jan 4 '16 at 2:18






  • 1





    Well, I think that makes it obvious: You need a newer kernel, just like it told you. And Fedora 16 is far past end of life anyway; you shouldn't have any such systems in existence.

    – Michael Hampton
    Jan 4 '16 at 2:20











  • Yes, thank you for confirming this. Means if one had his / partition XFS formated and he musts rollback to an older kernel for any reasons (as it happens) then he can't even boot his system. Wooow. That makes XFS obviously not a reliable fs for me. Feels like a proprietary format that requires one to buy a certain version of the software used just to be able to read it. When ext4 can still access ext2 partition rw even with kernel 4x or Libreoffice open OOo 1x files. Am glad I tried it!

    – tuk0z
    Jan 5 '16 at 13:10











  • Sometimes backward incompatible changes are required, and that's true of every software project. Rolling back wouldn't be a problem here, but you're not trying to roll back to a slightly older kernel; you're trying to roll back for several years!

    – Michael Hampton
    Jan 5 '16 at 15:48













3












3








3








have a XFS partition that I find to act very strangely. It mounts fine under a system but won't mount under others --of which my main system. As I'm new at XFS, I'd love to hear from users more experienced than me before I just forget about XFS.



  • Hardware is fine: S.M.A.R.T. shows the three months old 1TB 2.5" Momentus is good; all attributes are like WORST=VALUE. HDD stands in an Inateck external aluminium rack that's USB connected to either of my laptops.

  • Partition layout is a dead simple MBR with four primary partitions, the XFS one is where I store all of media stuff (library).
    I created the partitions three months ago under Arch i686 (kernel 3.19-ck) with parted. Had no issues whatsoever accessing it under that system. But under Fedora 16 i686 with an older kernel where it wouldn't mount, even after running xfs_repair.

  • Also, I have no issues mounting the other (ext4/swap) partitions on that drive under any Linux I'm running.

  • Now I'm unable to mount the XFS partition from the Arch x86_64 that replaced the i686 version on my main laptop here. Changed nothing but the OS version.

  • If I try to mount the same partition the next minute under Slackware 14.1 with linux-3.17.4 (i686), it just... mounts?!

Here's the disk layout



# fdisk -l /dev/sdb

Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x531843f8

Device Boot Start End Sectors Size Id Type
/dev/sdb1 8192 212991 204800 100M 83 Linux
/dev/sdb2 212992 8200191 7987200 3.8G 82 Linux swap / Solaris
/dev/sdb3 8200192 20488191 12288000 5.9G 83 Linux
/dev/sdb4 20488192 1953523711 1933035520 921.8G 83 Linux


Mount attempt as my user gave this:



$ mount /media/momedia/
mount: mount /dev/sdb4 on /media/momedia failed: Structure needs cleaning


Then as root



# mount /media/momedia/
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.


With dmesg :



# dmesg | tail
[274136.490862] sd 9:0:0:0: [sdb] 1953525168 512-byte logical blocks:

(1.00 TB/931 GiB)
[274136.490876] sd 9:0:0:0: [sdb] 4096-byte physical blocks
[274136.491965] sd 9:0:0:0: [sdb] Write Protect is off
[274136.491980] sd 9:0:0:0: [sdb] Mode Sense: 43 00 00 00
[274136.493079] sd 9:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[274136.519478] sdb: sdb1 sdb2 sdb3 sdb4
[274136.523459] sd 9:0:0:0: [sdb] Attached SCSI disk
[274162.463851] XFS (sdb4): Version 5 superblock detected. This kernel has EXPERIMENTAL support enabled!
Use of these features in this kernel is at your own risk!
[274162.463864] XFS (sdb4): Superblock has unknown read-only compatible features (0x1) enabled.
[274162.463869] XFS (sdb4): Attempted to mount read-only compatible filesystem read-write.
Filesystem can only be safely mounted read only.
[274162.463878] ffff880079931000: 58 46 53 42 00 00 10 00 00 00 00 00 0e 66 f9 00 XFSB.........f..
[274162.463884] ffff880079931010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[274162.463889] ffff880079931020: ed 2d 1b 3d be 8e 4a 99 94 48 1e 50 b3 63 8a 3b .-.=..J..H.P.c.;
[274162.463895] ffff880079931030: 00 00 00 00 08 00 00 08 00 00 00 00 00 00 00 60 ...............`
[274162.463901] XFS (sdb4): Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c. Caller 0xffffffffa0714635

[274162.463910] CPU: 0 PID: 81 Comm: kworker/0:1H Not tainted 3.10.94-1-lts310-ck #1
[274162.463915] Hardware name: Dell Inc. Inspiron 1012/00D2K7, BIOS A11 11/12/2010
[274162.463942] Workqueue: xfslogd xfs_buf_iodone_work [xfs]
[274162.463947] 0000000000000001 ffff880078f25d88 ffffffff814bec2d ffff880078f25dc8
[274162.463956] ffffffffa07172d3 ffffffffa0714635 ffffffffa0795945 ffff88007002a100
[274162.463963] 0000000000000016 ffff88007985d800 0000000000001000 ffff880078f25e08
[274162.463971] Call Trace:
[274162.463985] [<ffffffff814bec2d>] dump_stack+0x19/0x1b
[274162.464007] [<ffffffffa07172d3>] xfs_corruption_error+0x93/0xa0 [xfs]
[274162.464028] [<ffffffffa0714635>] ? xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464059] [<ffffffffa076da02>] xfs_sb_read_verify+0x112/0x130 [xfs]
[274162.464081] [<ffffffffa0714635>] ? xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464102] [<ffffffffa0714635>] xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464112] [<ffffffff8107558a>] process_one_work+0x17a/0x4e0
[274162.464120] [<ffffffff81076093>] worker_thread+0x123/0x430
[274162.464128] [<ffffffff814c2dc3>] ? preempt_schedule+0x43/0x60
[274162.464137] [<ffffffff81075f70>] ? manage_workers.isra.8+0x290/0x290
[274162.464144] [<ffffffff8107c6f0>] kthread+0xc0/0xd0
[274162.464152] [<ffffffff8107c630>] ? kthread_worker_fn+0x170/0x170
[274162.464161] [<ffffffff814cbe48>] ret_from_fork+0x58/0x90
[274162.464168] [<ffffffff8107c630>] ? kthread_worker_fn+0x170/0x170
[274162.464174] XFS (sdb4): Corruption detected. Unmount and run xfs_repair
[274162.464193] XFS (sdb4): SB validate failed with error 22.


file -s identifies the filesystem neat and clear



[root@gwenael ~]# file -s /dev/sdb4
/dev/sdb4: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs)


I checked the data at the begining of the partition and find it neat (but I'm no expert when it comes to hex)



[root@gwenael ~]# dd if=/dev/sdb4 bs=512 count=64 iflag=direct | hexdump -C
64+0 records in
64+0 records out
32768 bytes (33 kB) copied, 0.0252469 s, 1.3 MB/s
00000000 58 46 53 42 00 00 10 00 00 00 00 00 0e 66 f9 00 |XFSB.........f..|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 ed 2d 1b 3d be 8e 4a 99 94 48 1e 50 b3 63 8a 3b |.-.=..J..H.P.c.;|
00000030 00 00 00 00 08 00 00 08 00 00 00 00 00 00 00 60 |...............`|
00000040 00 00 00 00 00 00 00 61 00 00 00 00 00 00 00 62 |.......a.......b|
00000050 00 00 00 01 03 99 be 40 00 00 00 04 00 00 00 00 |.......@........|
00000060 00 01 cc df bc a5 10 00 02 00 00 08 6d 6f 6d 65 |............mome|
00000070 64 69 61 73 00 00 00 00 0c 0c 09 03 1a 00 00 19 |dias............|
00000080 00 00 00 00 00 03 f8 00 00 00 00 00 00 00 01 22 |..............."|
00000090 00 00 00 00 09 77 78 90 00 00 00 00 00 00 00 00 |.....wx.........|
000000a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
000000b0 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 |................|


Next mount attempt, output changed back to what it was from my user



# mount -t xfs /dev/sdb4 /media/momedia/
mount: mount /dev/sdb4 on /media/momedia failed: Structure needs cleaning


Safe check finds the superblock



# xfs_repair -n /dev/sdb4
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
<SNIP SNIP>
- moving disconnected inodes to lost+found ...
Phase 7 - verify link counts...
Maximum metadata LSN (1:402600) is ahead of log (1:8).
Would format log to cycle 4.


Since it does not mount, I run xfs_repair /dev/sdb4 with the same output as above but



Phase 5 - rebuild AG headers and trees...
- reset superblock...


Yet I can't mount it either



# mount -t xfs /dev/sdb4 /media/momedia/
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
missing codepage or helper program, or other error


I then runned xfs_repair /dev/sdb4 with the same result.



First time I meet such a sensitive FS so, do you know what can I do to have this mount in a more standard/compatible way?




EDITED to show the full system log upon mount command.
Also, mouting it read-only as per the log's advice fails on Arch:



# mount -t xfs -o ro /dev/sdb4 /mnt/tmp/
mount: mount /dev/sdb4 on /mnt/tmp failed: Structure needs cleaning









share|improve this question
















have a XFS partition that I find to act very strangely. It mounts fine under a system but won't mount under others --of which my main system. As I'm new at XFS, I'd love to hear from users more experienced than me before I just forget about XFS.



  • Hardware is fine: S.M.A.R.T. shows the three months old 1TB 2.5" Momentus is good; all attributes are like WORST=VALUE. HDD stands in an Inateck external aluminium rack that's USB connected to either of my laptops.

  • Partition layout is a dead simple MBR with four primary partitions, the XFS one is where I store all of media stuff (library).
    I created the partitions three months ago under Arch i686 (kernel 3.19-ck) with parted. Had no issues whatsoever accessing it under that system. But under Fedora 16 i686 with an older kernel where it wouldn't mount, even after running xfs_repair.

  • Also, I have no issues mounting the other (ext4/swap) partitions on that drive under any Linux I'm running.

  • Now I'm unable to mount the XFS partition from the Arch x86_64 that replaced the i686 version on my main laptop here. Changed nothing but the OS version.

  • If I try to mount the same partition the next minute under Slackware 14.1 with linux-3.17.4 (i686), it just... mounts?!

Here's the disk layout



# fdisk -l /dev/sdb

Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x531843f8

Device Boot Start End Sectors Size Id Type
/dev/sdb1 8192 212991 204800 100M 83 Linux
/dev/sdb2 212992 8200191 7987200 3.8G 82 Linux swap / Solaris
/dev/sdb3 8200192 20488191 12288000 5.9G 83 Linux
/dev/sdb4 20488192 1953523711 1933035520 921.8G 83 Linux


Mount attempt as my user gave this:



$ mount /media/momedia/
mount: mount /dev/sdb4 on /media/momedia failed: Structure needs cleaning


Then as root



# mount /media/momedia/
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.


With dmesg :



# dmesg | tail
[274136.490862] sd 9:0:0:0: [sdb] 1953525168 512-byte logical blocks:

(1.00 TB/931 GiB)
[274136.490876] sd 9:0:0:0: [sdb] 4096-byte physical blocks
[274136.491965] sd 9:0:0:0: [sdb] Write Protect is off
[274136.491980] sd 9:0:0:0: [sdb] Mode Sense: 43 00 00 00
[274136.493079] sd 9:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[274136.519478] sdb: sdb1 sdb2 sdb3 sdb4
[274136.523459] sd 9:0:0:0: [sdb] Attached SCSI disk
[274162.463851] XFS (sdb4): Version 5 superblock detected. This kernel has EXPERIMENTAL support enabled!
Use of these features in this kernel is at your own risk!
[274162.463864] XFS (sdb4): Superblock has unknown read-only compatible features (0x1) enabled.
[274162.463869] XFS (sdb4): Attempted to mount read-only compatible filesystem read-write.
Filesystem can only be safely mounted read only.
[274162.463878] ffff880079931000: 58 46 53 42 00 00 10 00 00 00 00 00 0e 66 f9 00 XFSB.........f..
[274162.463884] ffff880079931010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[274162.463889] ffff880079931020: ed 2d 1b 3d be 8e 4a 99 94 48 1e 50 b3 63 8a 3b .-.=..J..H.P.c.;
[274162.463895] ffff880079931030: 00 00 00 00 08 00 00 08 00 00 00 00 00 00 00 60 ...............`
[274162.463901] XFS (sdb4): Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c. Caller 0xffffffffa0714635

[274162.463910] CPU: 0 PID: 81 Comm: kworker/0:1H Not tainted 3.10.94-1-lts310-ck #1
[274162.463915] Hardware name: Dell Inc. Inspiron 1012/00D2K7, BIOS A11 11/12/2010
[274162.463942] Workqueue: xfslogd xfs_buf_iodone_work [xfs]
[274162.463947] 0000000000000001 ffff880078f25d88 ffffffff814bec2d ffff880078f25dc8
[274162.463956] ffffffffa07172d3 ffffffffa0714635 ffffffffa0795945 ffff88007002a100
[274162.463963] 0000000000000016 ffff88007985d800 0000000000001000 ffff880078f25e08
[274162.463971] Call Trace:
[274162.463985] [<ffffffff814bec2d>] dump_stack+0x19/0x1b
[274162.464007] [<ffffffffa07172d3>] xfs_corruption_error+0x93/0xa0 [xfs]
[274162.464028] [<ffffffffa0714635>] ? xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464059] [<ffffffffa076da02>] xfs_sb_read_verify+0x112/0x130 [xfs]
[274162.464081] [<ffffffffa0714635>] ? xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464102] [<ffffffffa0714635>] xfs_buf_iodone_work+0x75/0xa0 [xfs]
[274162.464112] [<ffffffff8107558a>] process_one_work+0x17a/0x4e0
[274162.464120] [<ffffffff81076093>] worker_thread+0x123/0x430
[274162.464128] [<ffffffff814c2dc3>] ? preempt_schedule+0x43/0x60
[274162.464137] [<ffffffff81075f70>] ? manage_workers.isra.8+0x290/0x290
[274162.464144] [<ffffffff8107c6f0>] kthread+0xc0/0xd0
[274162.464152] [<ffffffff8107c630>] ? kthread_worker_fn+0x170/0x170
[274162.464161] [<ffffffff814cbe48>] ret_from_fork+0x58/0x90
[274162.464168] [<ffffffff8107c630>] ? kthread_worker_fn+0x170/0x170
[274162.464174] XFS (sdb4): Corruption detected. Unmount and run xfs_repair
[274162.464193] XFS (sdb4): SB validate failed with error 22.


file -s identifies the filesystem neat and clear



[root@gwenael ~]# file -s /dev/sdb4
/dev/sdb4: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs)


I checked the data at the begining of the partition and find it neat (but I'm no expert when it comes to hex)



[root@gwenael ~]# dd if=/dev/sdb4 bs=512 count=64 iflag=direct | hexdump -C
64+0 records in
64+0 records out
32768 bytes (33 kB) copied, 0.0252469 s, 1.3 MB/s
00000000 58 46 53 42 00 00 10 00 00 00 00 00 0e 66 f9 00 |XFSB.........f..|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 ed 2d 1b 3d be 8e 4a 99 94 48 1e 50 b3 63 8a 3b |.-.=..J..H.P.c.;|
00000030 00 00 00 00 08 00 00 08 00 00 00 00 00 00 00 60 |...............`|
00000040 00 00 00 00 00 00 00 61 00 00 00 00 00 00 00 62 |.......a.......b|
00000050 00 00 00 01 03 99 be 40 00 00 00 04 00 00 00 00 |.......@........|
00000060 00 01 cc df bc a5 10 00 02 00 00 08 6d 6f 6d 65 |............mome|
00000070 64 69 61 73 00 00 00 00 0c 0c 09 03 1a 00 00 19 |dias............|
00000080 00 00 00 00 00 03 f8 00 00 00 00 00 00 00 01 22 |..............."|
00000090 00 00 00 00 09 77 78 90 00 00 00 00 00 00 00 00 |.....wx.........|
000000a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
000000b0 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 |................|


Next mount attempt, output changed back to what it was from my user



# mount -t xfs /dev/sdb4 /media/momedia/
mount: mount /dev/sdb4 on /media/momedia failed: Structure needs cleaning


Safe check finds the superblock



# xfs_repair -n /dev/sdb4
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
<SNIP SNIP>
- moving disconnected inodes to lost+found ...
Phase 7 - verify link counts...
Maximum metadata LSN (1:402600) is ahead of log (1:8).
Would format log to cycle 4.


Since it does not mount, I run xfs_repair /dev/sdb4 with the same output as above but



Phase 5 - rebuild AG headers and trees...
- reset superblock...


Yet I can't mount it either



# mount -t xfs /dev/sdb4 /media/momedia/
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
missing codepage or helper program, or other error


I then runned xfs_repair /dev/sdb4 with the same result.



First time I meet such a sensitive FS so, do you know what can I do to have this mount in a more standard/compatible way?




EDITED to show the full system log upon mount command.
Also, mouting it read-only as per the log's advice fails on Arch:



# mount -t xfs -o ro /dev/sdb4 /mnt/tmp/
mount: mount /dev/sdb4 on /mnt/tmp failed: Structure needs cleaning






mount xfs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 4 '16 at 2:12







tuk0z

















asked Jan 2 '16 at 16:13









tuk0ztuk0z

1165




1165












  • Please show the rest of the kernel bug messages from dmesg, you have only shown the last few lines of them and there are often 30 or more lines.

    – Michael Hampton
    Jan 2 '16 at 18:22











  • Done @MichaelHampton; dmesg full output upon mount is much more readable :} though not uderstandable to me espec. Version 5 superblock detected, Filesystem can only be safely mounted read only (cannot) or ` Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c.`. I'll try to get it from Fedora (mount failed like in Arch x86_64)

    – tuk0z
    Jan 4 '16 at 2:18






  • 1





    Well, I think that makes it obvious: You need a newer kernel, just like it told you. And Fedora 16 is far past end of life anyway; you shouldn't have any such systems in existence.

    – Michael Hampton
    Jan 4 '16 at 2:20











  • Yes, thank you for confirming this. Means if one had his / partition XFS formated and he musts rollback to an older kernel for any reasons (as it happens) then he can't even boot his system. Wooow. That makes XFS obviously not a reliable fs for me. Feels like a proprietary format that requires one to buy a certain version of the software used just to be able to read it. When ext4 can still access ext2 partition rw even with kernel 4x or Libreoffice open OOo 1x files. Am glad I tried it!

    – tuk0z
    Jan 5 '16 at 13:10











  • Sometimes backward incompatible changes are required, and that's true of every software project. Rolling back wouldn't be a problem here, but you're not trying to roll back to a slightly older kernel; you're trying to roll back for several years!

    – Michael Hampton
    Jan 5 '16 at 15:48

















  • Please show the rest of the kernel bug messages from dmesg, you have only shown the last few lines of them and there are often 30 or more lines.

    – Michael Hampton
    Jan 2 '16 at 18:22











  • Done @MichaelHampton; dmesg full output upon mount is much more readable :} though not uderstandable to me espec. Version 5 superblock detected, Filesystem can only be safely mounted read only (cannot) or ` Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c.`. I'll try to get it from Fedora (mount failed like in Arch x86_64)

    – tuk0z
    Jan 4 '16 at 2:18






  • 1





    Well, I think that makes it obvious: You need a newer kernel, just like it told you. And Fedora 16 is far past end of life anyway; you shouldn't have any such systems in existence.

    – Michael Hampton
    Jan 4 '16 at 2:20











  • Yes, thank you for confirming this. Means if one had his / partition XFS formated and he musts rollback to an older kernel for any reasons (as it happens) then he can't even boot his system. Wooow. That makes XFS obviously not a reliable fs for me. Feels like a proprietary format that requires one to buy a certain version of the software used just to be able to read it. When ext4 can still access ext2 partition rw even with kernel 4x or Libreoffice open OOo 1x files. Am glad I tried it!

    – tuk0z
    Jan 5 '16 at 13:10











  • Sometimes backward incompatible changes are required, and that's true of every software project. Rolling back wouldn't be a problem here, but you're not trying to roll back to a slightly older kernel; you're trying to roll back for several years!

    – Michael Hampton
    Jan 5 '16 at 15:48
















Please show the rest of the kernel bug messages from dmesg, you have only shown the last few lines of them and there are often 30 or more lines.

– Michael Hampton
Jan 2 '16 at 18:22





Please show the rest of the kernel bug messages from dmesg, you have only shown the last few lines of them and there are often 30 or more lines.

– Michael Hampton
Jan 2 '16 at 18:22













Done @MichaelHampton; dmesg full output upon mount is much more readable :} though not uderstandable to me espec. Version 5 superblock detected, Filesystem can only be safely mounted read only (cannot) or ` Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c.`. I'll try to get it from Fedora (mount failed like in Arch x86_64)

– tuk0z
Jan 4 '16 at 2:18





Done @MichaelHampton; dmesg full output upon mount is much more readable :} though not uderstandable to me espec. Version 5 superblock detected, Filesystem can only be safely mounted read only (cannot) or ` Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c.`. I'll try to get it from Fedora (mount failed like in Arch x86_64)

– tuk0z
Jan 4 '16 at 2:18




1




1





Well, I think that makes it obvious: You need a newer kernel, just like it told you. And Fedora 16 is far past end of life anyway; you shouldn't have any such systems in existence.

– Michael Hampton
Jan 4 '16 at 2:20





Well, I think that makes it obvious: You need a newer kernel, just like it told you. And Fedora 16 is far past end of life anyway; you shouldn't have any such systems in existence.

– Michael Hampton
Jan 4 '16 at 2:20













Yes, thank you for confirming this. Means if one had his / partition XFS formated and he musts rollback to an older kernel for any reasons (as it happens) then he can't even boot his system. Wooow. That makes XFS obviously not a reliable fs for me. Feels like a proprietary format that requires one to buy a certain version of the software used just to be able to read it. When ext4 can still access ext2 partition rw even with kernel 4x or Libreoffice open OOo 1x files. Am glad I tried it!

– tuk0z
Jan 5 '16 at 13:10





Yes, thank you for confirming this. Means if one had his / partition XFS formated and he musts rollback to an older kernel for any reasons (as it happens) then he can't even boot his system. Wooow. That makes XFS obviously not a reliable fs for me. Feels like a proprietary format that requires one to buy a certain version of the software used just to be able to read it. When ext4 can still access ext2 partition rw even with kernel 4x or Libreoffice open OOo 1x files. Am glad I tried it!

– tuk0z
Jan 5 '16 at 13:10













Sometimes backward incompatible changes are required, and that's true of every software project. Rolling back wouldn't be a problem here, but you're not trying to roll back to a slightly older kernel; you're trying to roll back for several years!

– Michael Hampton
Jan 5 '16 at 15:48





Sometimes backward incompatible changes are required, and that's true of every software project. Rolling back wouldn't be a problem here, but you're not trying to roll back to a slightly older kernel; you're trying to roll back for several years!

– Michael Hampton
Jan 5 '16 at 15:48










1 Answer
1






active

oldest

votes


















5














mkfs.xfs (starting with version 3.2.4 of xfsprogs) recently defaulted to version 5 superblock, with lots of new enhancements like metadata CRC checksums. Version 5 superblock requires a 3.16 kernel or better. This error is typical, you're trying to mount the volume on a kernel which doesn't support v5 superblocks, i. e. with a version prior to 3.16.



Be careful, when using recent versions of xfsprogs with older kernels. You'll have to use these options to create a v4 filesystem:



mkfs.xfs -m crc=0,finobt=0 /your/device


Notice that the finobt option may not be necessary.



On the other hand, in case you need to check or repair your filesystem, it's always better to use the latest xfsprogs release. So I'd advise to use xfsprogs in a version as high as possible, with the caveat that you may need to use the previous command line when creating a new filesystem to be sure it's compatible with your running kernel.



Additional info about RH/CentOS 7.x



There is an exception:RedHat/CentOS v. 7.x provide xfsprogs in a version which supports XFS v5, and their kernels (even though the default version pretends to be 3.10.x) also supports XFS v5.



However RH/CentOS' mkfs.xfs has been patched to default to XFS v4. So if you're running RedHat/CentOS v7.x, you may want to use



mkfs.xfs -m crc=1,finobt=1 /your/device


to take advantage of the new features.






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f746377%2fwant-to-understand-xfs-strangeness%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    mkfs.xfs (starting with version 3.2.4 of xfsprogs) recently defaulted to version 5 superblock, with lots of new enhancements like metadata CRC checksums. Version 5 superblock requires a 3.16 kernel or better. This error is typical, you're trying to mount the volume on a kernel which doesn't support v5 superblocks, i. e. with a version prior to 3.16.



    Be careful, when using recent versions of xfsprogs with older kernels. You'll have to use these options to create a v4 filesystem:



    mkfs.xfs -m crc=0,finobt=0 /your/device


    Notice that the finobt option may not be necessary.



    On the other hand, in case you need to check or repair your filesystem, it's always better to use the latest xfsprogs release. So I'd advise to use xfsprogs in a version as high as possible, with the caveat that you may need to use the previous command line when creating a new filesystem to be sure it's compatible with your running kernel.



    Additional info about RH/CentOS 7.x



    There is an exception:RedHat/CentOS v. 7.x provide xfsprogs in a version which supports XFS v5, and their kernels (even though the default version pretends to be 3.10.x) also supports XFS v5.



    However RH/CentOS' mkfs.xfs has been patched to default to XFS v4. So if you're running RedHat/CentOS v7.x, you may want to use



    mkfs.xfs -m crc=1,finobt=1 /your/device


    to take advantage of the new features.






    share|improve this answer





























      5














      mkfs.xfs (starting with version 3.2.4 of xfsprogs) recently defaulted to version 5 superblock, with lots of new enhancements like metadata CRC checksums. Version 5 superblock requires a 3.16 kernel or better. This error is typical, you're trying to mount the volume on a kernel which doesn't support v5 superblocks, i. e. with a version prior to 3.16.



      Be careful, when using recent versions of xfsprogs with older kernels. You'll have to use these options to create a v4 filesystem:



      mkfs.xfs -m crc=0,finobt=0 /your/device


      Notice that the finobt option may not be necessary.



      On the other hand, in case you need to check or repair your filesystem, it's always better to use the latest xfsprogs release. So I'd advise to use xfsprogs in a version as high as possible, with the caveat that you may need to use the previous command line when creating a new filesystem to be sure it's compatible with your running kernel.



      Additional info about RH/CentOS 7.x



      There is an exception:RedHat/CentOS v. 7.x provide xfsprogs in a version which supports XFS v5, and their kernels (even though the default version pretends to be 3.10.x) also supports XFS v5.



      However RH/CentOS' mkfs.xfs has been patched to default to XFS v4. So if you're running RedHat/CentOS v7.x, you may want to use



      mkfs.xfs -m crc=1,finobt=1 /your/device


      to take advantage of the new features.






      share|improve this answer



























        5












        5








        5







        mkfs.xfs (starting with version 3.2.4 of xfsprogs) recently defaulted to version 5 superblock, with lots of new enhancements like metadata CRC checksums. Version 5 superblock requires a 3.16 kernel or better. This error is typical, you're trying to mount the volume on a kernel which doesn't support v5 superblocks, i. e. with a version prior to 3.16.



        Be careful, when using recent versions of xfsprogs with older kernels. You'll have to use these options to create a v4 filesystem:



        mkfs.xfs -m crc=0,finobt=0 /your/device


        Notice that the finobt option may not be necessary.



        On the other hand, in case you need to check or repair your filesystem, it's always better to use the latest xfsprogs release. So I'd advise to use xfsprogs in a version as high as possible, with the caveat that you may need to use the previous command line when creating a new filesystem to be sure it's compatible with your running kernel.



        Additional info about RH/CentOS 7.x



        There is an exception:RedHat/CentOS v. 7.x provide xfsprogs in a version which supports XFS v5, and their kernels (even though the default version pretends to be 3.10.x) also supports XFS v5.



        However RH/CentOS' mkfs.xfs has been patched to default to XFS v4. So if you're running RedHat/CentOS v7.x, you may want to use



        mkfs.xfs -m crc=1,finobt=1 /your/device


        to take advantage of the new features.






        share|improve this answer















        mkfs.xfs (starting with version 3.2.4 of xfsprogs) recently defaulted to version 5 superblock, with lots of new enhancements like metadata CRC checksums. Version 5 superblock requires a 3.16 kernel or better. This error is typical, you're trying to mount the volume on a kernel which doesn't support v5 superblocks, i. e. with a version prior to 3.16.



        Be careful, when using recent versions of xfsprogs with older kernels. You'll have to use these options to create a v4 filesystem:



        mkfs.xfs -m crc=0,finobt=0 /your/device


        Notice that the finobt option may not be necessary.



        On the other hand, in case you need to check or repair your filesystem, it's always better to use the latest xfsprogs release. So I'd advise to use xfsprogs in a version as high as possible, with the caveat that you may need to use the previous command line when creating a new filesystem to be sure it's compatible with your running kernel.



        Additional info about RH/CentOS 7.x



        There is an exception:RedHat/CentOS v. 7.x provide xfsprogs in a version which supports XFS v5, and their kernels (even though the default version pretends to be 3.10.x) also supports XFS v5.



        However RH/CentOS' mkfs.xfs has been patched to default to XFS v4. So if you're running RedHat/CentOS v7.x, you may want to use



        mkfs.xfs -m crc=1,finobt=1 /your/device


        to take advantage of the new features.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 29 at 14:33

























        answered Jun 7 '16 at 10:34









        wazooxwazoox

        4,93642349




        4,93642349



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f746377%2fwant-to-understand-xfs-strangeness%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

            Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

            Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020