Re: Which xfsprogs version to which kernel version

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

 



On Mon, Nov 30, 2015 at 09:37:46AM +0100, aluno3@xxxxxxxxxxxxxx wrote:
> On 11/27/15 16:22, Brian Foster wrote:
> > On Thu, Nov 26, 2015 at 03:36:58PM +0100, aluno3@xxxxxxxxxxxxxx wrote:
> >> dmesg when mounting volume which was formated xfsprogs 4.3.0:
> >>
> >> *
> >> root@192.168.176.24:~$ mkfs.xfs -V
> >> mkfs.xfs version 4.3.0
> >>
> >> root@192.168.176.24:~$ mkfs.xfs  -f -m crc=0,finobt=0 /dev/sdc4
> >> meta-data=/dev/sdc4              isize=256    agcount=4, agsize=474552 blks
> >>          =                       sectsz=512   attr=2, projid32bit=1
> >>          =                       crc=0        finobt=0, sparse=0
> >> data     =                       bsize=4096   blocks=1898208, imaxpct=25
> >>          =                       sunit=0      swidth=0 blks
> >> naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
> >> log      =internal log           bsize=4096   blocks=2560, version=2
> >>          =                       sectsz=512   sunit=0 blks, lazy-count=1
> >> realtime =none                   extsz=4096   blocks=0, rtextents=0
> >>
> >> root@192.168.176.24:~$ mount /dev/sdc4 /mnt/sdc4
> >> mount: wrong fs type, bad option, bad superblock on /dev/sdc4,
> >>        missing codepage or helper program, or other error
> >>
> >>        In some cases useful info is found in syslog - try
> >>        dmesg | tail or so.
> >>
> >> root@192.168.176.24:~$ dmesg
> >> [  212.984534] XFS (sdc4): bad version
> >> [  212.984547] ffff88005cccb000: 58 46 53 42 00 00 10 00 00 00 00 00 00
> >> 1c f6 e0  XFSB............
> >> [  212.984550] ffff88005cccb010: 00 00 00 00 00 00 00 00 00 00 00 00 00
> >> 00 00 00  ................
> >> [  212.984551] ffff88005cccb020: 55 9d 20 d9 1c e9 4e a9 a3 ee 8d fd ba
> >> 68 b3 70  U. ...N......h.p
> >> [  212.984553] ffff88005cccb030: 00 00 00 00 00 10 00 04 00 00 00 00 00
> >> 00 00 80  ................
> >> [  212.984556] XFS (sdc4): Internal error xfs_sb_read_verify at line 730
> >> of file fs/xfs/xfs_mount.c.  Caller 0xffffffff81256c7d
> >>
> > 
> > Interesting... have you tried to format without ftype support? It looks
> > like that wasn't introduced until v3.13. E.g.,
> > 
> > 	mkfs.xfs -f -m crc=0 -n ftype=0 <dev>
> > 
> 
> With ftype=0 and crc=0 options, mounting the volume is possible.
> 
> 
> root:~$ mkfs.xfs -f -m crc=0 -n ftype=0 /dev/sdc
> meta-data=/dev/sdc               isize=256    agcount=4, agsize=30524162
> blks
>          =                       sectsz=512   attr=2, projid32bit=1
>          =                       crc=0        finobt=0, sparse=0
> data     =                       bsize=4096   blocks=122096646, imaxpct=25
>          =                       sunit=0      swidth=0 blks
> naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
> log      =internal log           bsize=4096   blocks=59617, version=2
>          =                       sectsz=512   sunit=0 blks, lazy-count=1
> realtime =none                   extsz=4096   blocks=0, rtextents=0
> root:~$ mount /dev/sdc /mnt/sdc
> root:~$ dmesg
> [ 1761.805159]  sdc: unknown partition table
> [ 1768.928019] XFS (sdc): Mounting Filesystem
> [ 1768.987660] XFS (sdc): Ending clean mount
> 
> so is it safe to use xfsprogs 4.3.0 with crc=0 and ftype=0 with kernel
> 3.10?
> 

Hi,

it's safe once you're disabling the unsupported filesystem formats for the
kernel you're using.

> > Brian
> > 
> >> [  212.984560] CPU: 0 PID: 440 Comm: kworker/0:1H Tainted: P           O
> >> 3.10.92-oe64-ge331686 #15
> >> [  212.984562] Hardware name: System manufacturer System Product
> >> Name/P5WDG2 WS Pro, BIOS 0905    03/06/2008
> >> [  212.984567] Workqueue: xfslogd xfs_buf_iodone_work
> >> [  212.984570]  ffffffff81692f75 ffffffff81258c5d ffffffff81256c7d
> >> ffffffff818a39e3
> >> [  212.984573]  ffff88007aa9ef00 0000000000000016 ffff88007aa8b000
> >> 0000000000000000
> >> [  212.984576]  ffff88007ea17800 ffffffff812a32ac ffffffff81256c7d
> >> ffff88007ea11a40
> >> [  212.984579] Call Trace:
> >> [  212.984584]  [<ffffffff81692f75>] ? dump_stack+0xc/0x15
> >> [  212.984587]  [<ffffffff81258c5d>] ? xfs_corruption_error+0x8d/0x90
> >> [  212.984590]  [<ffffffff81256c7d>] ? xfs_buf_iodone_work+0x6d/0x90
> >> [  212.984595]  [<ffffffff812a32ac>] ? xfs_sb_read_verify+0xfc/0x120
> >> [  212.984598]  [<ffffffff81256c7d>] ? xfs_buf_iodone_work+0x6d/0x90
> >> [  212.984600]  [<ffffffff81256c7d>] ? xfs_buf_iodone_work+0x6d/0x90
> >> [  212.984604]  [<ffffffff8105ce4d>] ? process_one_work+0x13d/0x3b0
> >> [  212.984607]  [<ffffffff8105d7b1>] ? worker_thread+0x121/0x3d0
> >> [  212.984609]  [<ffffffff8105d690>] ? manage_workers.isra.26+0x280/0x280
> >> [  212.984613]  [<ffffffff81062e92>] ? kthread+0xc2/0xd0
> >> [  212.984616]  [<ffffffff81070000>] ? sched_clock_cpu+0x30/0x100
> >> [  212.984619]  [<ffffffff81062dd0>] ? kthread_create_on_node+0x110/0x110
> >> [  212.984623]  [<ffffffff8169db98>] ? ret_from_fork+0x58/0x90
> >> [  212.984626]  [<ffffffff81062dd0>] ? kthread_create_on_node+0x110/0x110
> >> [  212.984628] XFS (sdc4): Corruption detected. Unmount and run xfs_repair
> >> [  212.984634] XFS (sdc4): SB validate failed with error 22.
> >> *
> >>
> >> On 11/26/15 14:50, Brian Foster wrote:
> >>> On Thu, Nov 26, 2015 at 02:18:51PM +0100, aluno3@xxxxxxxxxxxxxx wrote:
> >>>> Yes I used -f option with 4.X version of xfsprogs but mounting the
> >>>> volume was not possible - before mkfs.xfs finished successfully
> >>>> (mkfs.xfs -f -m crc=0,finobt=0).
> >>>>
> >>>
> >>> You posted the output associated with the crc=1 fs mount failure, what
> >>> happens when you try to mount after formatting with crc=0?
> >>>
> >>> Brian
> >>>
> >>>> Should I stay in 3.1.X family of xfsprogs or is it recommended to use at
> >>>> least 3.2.x version with kernel 3.10?
> >>>>
> >>>> The most I care about xfs_repair.
> >>>>
> >>>> On 11/26/15 13:26, Emmanuel Florac wrote:
> >>>>> Le Thu, 26 Nov 2015 11:21:45 +0100
> >>>>> "aluno3@xxxxxxxxxxxxxx" <aluno3@xxxxxxxxxxxxxx> écrivait:
> >>>>>
> >>>>>> mkfs.xfs -m crc=0,finobt=0
> >>>>>>
> >>>>>> but it does not work with 4.X version of xfsprogs. Call trace also
> >>>>>> occurred so I tried to use 3.2.4 family with crc=0,finobt=0 and volume
> >>>>>> mounted successfully.
> >>>>>>
> >>>>>
> >>>>> Did you use -f? else mkfs.xfs won't do anything as it'll detect an
> >>>>> existing filesystem.
> >>>>>
> >>>>
> >>>> _______________________________________________
> >>>> xfs mailing list
> >>>> xfs@xxxxxxxxxxx
> >>>> http://oss.sgi.com/mailman/listinfo/xfs
> >>
> >> _______________________________________________
> >> xfs mailing list
> >> xfs@xxxxxxxxxxx
> >> http://oss.sgi.com/mailman/listinfo/xfs
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

-- 
Carlos

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux