How to check XFS filesystem version?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
6
down vote

favorite
1












How to check the version of a XFS filesystem on a system, whether it is V5 or later?










share|improve this question



























    up vote
    6
    down vote

    favorite
    1












    How to check the version of a XFS filesystem on a system, whether it is V5 or later?










    share|improve this question

























      up vote
      6
      down vote

      favorite
      1









      up vote
      6
      down vote

      favorite
      1






      1





      How to check the version of a XFS filesystem on a system, whether it is V5 or later?










      share|improve this question















      How to check the version of a XFS filesystem on a system, whether it is V5 or later?







      linux xfs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 26 at 17:09









      sebasth

      6,34421643




      6,34421643










      asked Aug 29 '16 at 15:20









      MikasaAckerman

      17917




      17917




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          Since version 3.15, the kernel tells you the version of XFS used in each filesystem as it mounts it; dmesg | grep XFS should give you something like



          [1578018.463269] XFS (loop0): Mounting V5 Filesystem


          Instead of loop0 on your system you'll get the underlying device, and V5 will be replaced by whatever version your filesystem uses.



          Older kernels officially supported XFS version 4 filesystems, but could mount version 5 filesystems (since mid 2013); for the latter, the kernel would print




          Version 5 superblock detected. This kernel has EXPERIMENTAL support enabled!




          when the filesystem was mounted.






          share|improve this answer






















          • I get something like this: 1.342982] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled [ 1.345446] XFS (dm-0): Mounting Filesystem [ 1.497979] XFS (dm-0): Starting recovery (logdev: internal) [ 1.587471] XFS (dm-0): Ending recovery (logdev: internal) [ 6.980611] XFS (sda2): Mounting Filesystem [ 9.675872] XFS (sda2): Ending clean mount
            – MikasaAckerman
            Sep 15 '16 at 19:19











          • @MikasaAckerman OK, that means you're using a kernel older than 3.15, and a version 4 filesystem (see my updated answer for details).
            – Stephen Kitt
            Sep 15 '16 at 21:01

















          up vote
          2
          down vote













          We can check using below command.



          # yum list installed | grep xfs


          enter image description here



          # yum info xfsprogs


          enter image description here






          share|improve this answer






















          • This only shows the installed version of xfsprogs tools. The question is about the the version of file system on disk format on an existing file system. xfsprogs version doesn't tell which on disk format version is used on existing file systems: file systems created with older versions of xfsprogs will have an older on disk format version.
            – sebasth
            Aug 26 at 17:04

















          up vote
          2
          down vote













          You can check the on disk format version of a XFS file system with xfs_db.



          Example output of an old (V4) XFS file system on my system:



          xfs_db -r /dev/...
          xfs_db> version
          versionnum [0xb5b4+0x8a] = V4,NLINK,DIRV2,ATTR,ALIGN,DALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT


          Output of a new (V5) XFS file system (created with xfsprogs version 4.9.0):



          xfs_db -r /dev/...
          xfs_db> version
          versionnum [0xb4a5+0x18a] = V5,NLINK,DIRV2,ALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT,CRC,FTYPE,FINOBT





          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f306442%2fhow-to-check-xfs-filesystem-version%23new-answer', 'question_page');

            );

            Post as a guest






























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            5
            down vote



            accepted










            Since version 3.15, the kernel tells you the version of XFS used in each filesystem as it mounts it; dmesg | grep XFS should give you something like



            [1578018.463269] XFS (loop0): Mounting V5 Filesystem


            Instead of loop0 on your system you'll get the underlying device, and V5 will be replaced by whatever version your filesystem uses.



            Older kernels officially supported XFS version 4 filesystems, but could mount version 5 filesystems (since mid 2013); for the latter, the kernel would print




            Version 5 superblock detected. This kernel has EXPERIMENTAL support enabled!




            when the filesystem was mounted.






            share|improve this answer






















            • I get something like this: 1.342982] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled [ 1.345446] XFS (dm-0): Mounting Filesystem [ 1.497979] XFS (dm-0): Starting recovery (logdev: internal) [ 1.587471] XFS (dm-0): Ending recovery (logdev: internal) [ 6.980611] XFS (sda2): Mounting Filesystem [ 9.675872] XFS (sda2): Ending clean mount
              – MikasaAckerman
              Sep 15 '16 at 19:19











            • @MikasaAckerman OK, that means you're using a kernel older than 3.15, and a version 4 filesystem (see my updated answer for details).
              – Stephen Kitt
              Sep 15 '16 at 21:01














            up vote
            5
            down vote



            accepted










            Since version 3.15, the kernel tells you the version of XFS used in each filesystem as it mounts it; dmesg | grep XFS should give you something like



            [1578018.463269] XFS (loop0): Mounting V5 Filesystem


            Instead of loop0 on your system you'll get the underlying device, and V5 will be replaced by whatever version your filesystem uses.



            Older kernels officially supported XFS version 4 filesystems, but could mount version 5 filesystems (since mid 2013); for the latter, the kernel would print




            Version 5 superblock detected. This kernel has EXPERIMENTAL support enabled!




            when the filesystem was mounted.






            share|improve this answer






















            • I get something like this: 1.342982] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled [ 1.345446] XFS (dm-0): Mounting Filesystem [ 1.497979] XFS (dm-0): Starting recovery (logdev: internal) [ 1.587471] XFS (dm-0): Ending recovery (logdev: internal) [ 6.980611] XFS (sda2): Mounting Filesystem [ 9.675872] XFS (sda2): Ending clean mount
              – MikasaAckerman
              Sep 15 '16 at 19:19











            • @MikasaAckerman OK, that means you're using a kernel older than 3.15, and a version 4 filesystem (see my updated answer for details).
              – Stephen Kitt
              Sep 15 '16 at 21:01












            up vote
            5
            down vote



            accepted







            up vote
            5
            down vote



            accepted






            Since version 3.15, the kernel tells you the version of XFS used in each filesystem as it mounts it; dmesg | grep XFS should give you something like



            [1578018.463269] XFS (loop0): Mounting V5 Filesystem


            Instead of loop0 on your system you'll get the underlying device, and V5 will be replaced by whatever version your filesystem uses.



            Older kernels officially supported XFS version 4 filesystems, but could mount version 5 filesystems (since mid 2013); for the latter, the kernel would print




            Version 5 superblock detected. This kernel has EXPERIMENTAL support enabled!




            when the filesystem was mounted.






            share|improve this answer














            Since version 3.15, the kernel tells you the version of XFS used in each filesystem as it mounts it; dmesg | grep XFS should give you something like



            [1578018.463269] XFS (loop0): Mounting V5 Filesystem


            Instead of loop0 on your system you'll get the underlying device, and V5 will be replaced by whatever version your filesystem uses.



            Older kernels officially supported XFS version 4 filesystems, but could mount version 5 filesystems (since mid 2013); for the latter, the kernel would print




            Version 5 superblock detected. This kernel has EXPERIMENTAL support enabled!




            when the filesystem was mounted.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 15 '16 at 21:00

























            answered Sep 2 '16 at 12:49









            Stephen Kitt

            146k22321386




            146k22321386











            • I get something like this: 1.342982] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled [ 1.345446] XFS (dm-0): Mounting Filesystem [ 1.497979] XFS (dm-0): Starting recovery (logdev: internal) [ 1.587471] XFS (dm-0): Ending recovery (logdev: internal) [ 6.980611] XFS (sda2): Mounting Filesystem [ 9.675872] XFS (sda2): Ending clean mount
              – MikasaAckerman
              Sep 15 '16 at 19:19











            • @MikasaAckerman OK, that means you're using a kernel older than 3.15, and a version 4 filesystem (see my updated answer for details).
              – Stephen Kitt
              Sep 15 '16 at 21:01
















            • I get something like this: 1.342982] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled [ 1.345446] XFS (dm-0): Mounting Filesystem [ 1.497979] XFS (dm-0): Starting recovery (logdev: internal) [ 1.587471] XFS (dm-0): Ending recovery (logdev: internal) [ 6.980611] XFS (sda2): Mounting Filesystem [ 9.675872] XFS (sda2): Ending clean mount
              – MikasaAckerman
              Sep 15 '16 at 19:19











            • @MikasaAckerman OK, that means you're using a kernel older than 3.15, and a version 4 filesystem (see my updated answer for details).
              – Stephen Kitt
              Sep 15 '16 at 21:01















            I get something like this: 1.342982] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled [ 1.345446] XFS (dm-0): Mounting Filesystem [ 1.497979] XFS (dm-0): Starting recovery (logdev: internal) [ 1.587471] XFS (dm-0): Ending recovery (logdev: internal) [ 6.980611] XFS (sda2): Mounting Filesystem [ 9.675872] XFS (sda2): Ending clean mount
            – MikasaAckerman
            Sep 15 '16 at 19:19





            I get something like this: 1.342982] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled [ 1.345446] XFS (dm-0): Mounting Filesystem [ 1.497979] XFS (dm-0): Starting recovery (logdev: internal) [ 1.587471] XFS (dm-0): Ending recovery (logdev: internal) [ 6.980611] XFS (sda2): Mounting Filesystem [ 9.675872] XFS (sda2): Ending clean mount
            – MikasaAckerman
            Sep 15 '16 at 19:19













            @MikasaAckerman OK, that means you're using a kernel older than 3.15, and a version 4 filesystem (see my updated answer for details).
            – Stephen Kitt
            Sep 15 '16 at 21:01




            @MikasaAckerman OK, that means you're using a kernel older than 3.15, and a version 4 filesystem (see my updated answer for details).
            – Stephen Kitt
            Sep 15 '16 at 21:01












            up vote
            2
            down vote













            We can check using below command.



            # yum list installed | grep xfs


            enter image description here



            # yum info xfsprogs


            enter image description here






            share|improve this answer






















            • This only shows the installed version of xfsprogs tools. The question is about the the version of file system on disk format on an existing file system. xfsprogs version doesn't tell which on disk format version is used on existing file systems: file systems created with older versions of xfsprogs will have an older on disk format version.
              – sebasth
              Aug 26 at 17:04














            up vote
            2
            down vote













            We can check using below command.



            # yum list installed | grep xfs


            enter image description here



            # yum info xfsprogs


            enter image description here






            share|improve this answer






















            • This only shows the installed version of xfsprogs tools. The question is about the the version of file system on disk format on an existing file system. xfsprogs version doesn't tell which on disk format version is used on existing file systems: file systems created with older versions of xfsprogs will have an older on disk format version.
              – sebasth
              Aug 26 at 17:04












            up vote
            2
            down vote










            up vote
            2
            down vote









            We can check using below command.



            # yum list installed | grep xfs


            enter image description here



            # yum info xfsprogs


            enter image description here






            share|improve this answer














            We can check using below command.



            # yum list installed | grep xfs


            enter image description here



            # yum info xfsprogs


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Aug 29 '16 at 17:52









            GAD3R

            22.9k164895




            22.9k164895










            answered Aug 29 '16 at 16:16









            Babin Lonston

            1,9161920




            1,9161920











            • This only shows the installed version of xfsprogs tools. The question is about the the version of file system on disk format on an existing file system. xfsprogs version doesn't tell which on disk format version is used on existing file systems: file systems created with older versions of xfsprogs will have an older on disk format version.
              – sebasth
              Aug 26 at 17:04
















            • This only shows the installed version of xfsprogs tools. The question is about the the version of file system on disk format on an existing file system. xfsprogs version doesn't tell which on disk format version is used on existing file systems: file systems created with older versions of xfsprogs will have an older on disk format version.
              – sebasth
              Aug 26 at 17:04















            This only shows the installed version of xfsprogs tools. The question is about the the version of file system on disk format on an existing file system. xfsprogs version doesn't tell which on disk format version is used on existing file systems: file systems created with older versions of xfsprogs will have an older on disk format version.
            – sebasth
            Aug 26 at 17:04




            This only shows the installed version of xfsprogs tools. The question is about the the version of file system on disk format on an existing file system. xfsprogs version doesn't tell which on disk format version is used on existing file systems: file systems created with older versions of xfsprogs will have an older on disk format version.
            – sebasth
            Aug 26 at 17:04










            up vote
            2
            down vote













            You can check the on disk format version of a XFS file system with xfs_db.



            Example output of an old (V4) XFS file system on my system:



            xfs_db -r /dev/...
            xfs_db> version
            versionnum [0xb5b4+0x8a] = V4,NLINK,DIRV2,ATTR,ALIGN,DALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT


            Output of a new (V5) XFS file system (created with xfsprogs version 4.9.0):



            xfs_db -r /dev/...
            xfs_db> version
            versionnum [0xb4a5+0x18a] = V5,NLINK,DIRV2,ALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT,CRC,FTYPE,FINOBT





            share|improve this answer


























              up vote
              2
              down vote













              You can check the on disk format version of a XFS file system with xfs_db.



              Example output of an old (V4) XFS file system on my system:



              xfs_db -r /dev/...
              xfs_db> version
              versionnum [0xb5b4+0x8a] = V4,NLINK,DIRV2,ATTR,ALIGN,DALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT


              Output of a new (V5) XFS file system (created with xfsprogs version 4.9.0):



              xfs_db -r /dev/...
              xfs_db> version
              versionnum [0xb4a5+0x18a] = V5,NLINK,DIRV2,ALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT,CRC,FTYPE,FINOBT





              share|improve this answer
























                up vote
                2
                down vote










                up vote
                2
                down vote









                You can check the on disk format version of a XFS file system with xfs_db.



                Example output of an old (V4) XFS file system on my system:



                xfs_db -r /dev/...
                xfs_db> version
                versionnum [0xb5b4+0x8a] = V4,NLINK,DIRV2,ATTR,ALIGN,DALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT


                Output of a new (V5) XFS file system (created with xfsprogs version 4.9.0):



                xfs_db -r /dev/...
                xfs_db> version
                versionnum [0xb4a5+0x18a] = V5,NLINK,DIRV2,ALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT,CRC,FTYPE,FINOBT





                share|improve this answer














                You can check the on disk format version of a XFS file system with xfs_db.



                Example output of an old (V4) XFS file system on my system:



                xfs_db -r /dev/...
                xfs_db> version
                versionnum [0xb5b4+0x8a] = V4,NLINK,DIRV2,ATTR,ALIGN,DALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT


                Output of a new (V5) XFS file system (created with xfsprogs version 4.9.0):



                xfs_db -r /dev/...
                xfs_db> version
                versionnum [0xb4a5+0x18a] = V5,NLINK,DIRV2,ALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT,CRC,FTYPE,FINOBT






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 26 at 16:57

























                answered Aug 26 at 16:50









                sebasth

                6,34421643




                6,34421643



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f306442%2fhow-to-check-xfs-filesystem-version%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?