How to understand the output of the df commandHow to understand what's taking up disk space?Ubuntu Server...

Why has Speaker Pelosi been so hesitant to impeach President Trump?

Phonetic distortion when words are borrowed among languages

How many space launch vehicles are under development worldwide?

My machine, client installed VPN,

If a spaceship ran out of fuel somewhere in space between Earth and Mars, does it slowly drift off to the Sun?

How is the Apple Watch ECG disabled in certain countries?

Is it possible to take a database offline when doing a backup using an SQL job?

Duck, duck, gone!

Realistically, how much do you need to start investing?

Why is the population of post-Soviet states declining?

Integrals from Brasilian Math Olympiad 2019

If someone asks a question using “quién”, how can one shortly respond?

Knights and Knaves: What does C say?

Beyond Futuristic Technology for an Alien Warship?

Is there an in-universe explanation of how Frodo's arrival in Valinor was recorded in the Red Book?

Are devices supposed to automatically be removed from iCloud when all content and settings are erased?

Can adverbs modify adjectives?

Was the ruling that prorogation was unlawful only possible because of the creation of a separate supreme court?

Top off gas with old oil, is that bad?

What is the non-slang form of "shitting on someone"?

Why, even after his imprisonment, do people keep calling Hannibal Lecter "Doctor"?

Why are the wings of some modern gliders tadpole shaped?

Do my potential customers need to understand the "meaning" of a logo, or just recognize it?

Why most footers have a background color has a divider of section?



How to understand the output of the df command


How to understand what's taking up disk space?Ubuntu Server 16.04 filesystem usagedf hangs and I have no idea whyI have a dedicated with 2 SSDs, how to I group them to behave as 1?how to understand the dmesgdf command not showing free disk space






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







-1















I have a dedicated server to host my website.



When I run the df -h command I get the following output:



Filesystem      Size  Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 322M 2.9G 11% /run
/dev/md2 20G 8.1G 11G 45% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md1 487M 29M 429M 7% /boot
/dev/md3 90G 22G 64G 26% /home


The commercial denomination of my server is: E3-SSD-2-32 - E3-1225v2 - 32GB - SoftRaid 3x120GB SSD. It is supposed to have 3 SSD drives of 120GB each. But I can't see this information in the output of the df command.



Am I missing something?










share|improve this question







New contributor



MonsieurNinja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






















  • What's the output of sudo fdisk -l?

    – guillermo chamorro
    40 mins ago











  • pastebin.com/BVHTUFsc it seems that this command is closer to what I was expecting. The /dev/sda, /dev/sdb, /dev/sdc disks look like they are the ones. Was I misunderstanding the df -h command?

    – MonsieurNinja
    30 mins ago











  • the df command only shows you filesystem sizes. To get the real disk capacities and partitions you would look at the output of fdisk. From your pastebin (you should copy all of that into your question) it would appear that you do indeed have three 120G disks, but you seem to have a software RAID on top of them. The contents of /proc/mdstat should have some information about your software RAID (also check out the mdadm command).

    – GracefulRestart
    24 mins ago


















-1















I have a dedicated server to host my website.



When I run the df -h command I get the following output:



Filesystem      Size  Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 322M 2.9G 11% /run
/dev/md2 20G 8.1G 11G 45% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md1 487M 29M 429M 7% /boot
/dev/md3 90G 22G 64G 26% /home


The commercial denomination of my server is: E3-SSD-2-32 - E3-1225v2 - 32GB - SoftRaid 3x120GB SSD. It is supposed to have 3 SSD drives of 120GB each. But I can't see this information in the output of the df command.



Am I missing something?










share|improve this question







New contributor



MonsieurNinja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






















  • What's the output of sudo fdisk -l?

    – guillermo chamorro
    40 mins ago











  • pastebin.com/BVHTUFsc it seems that this command is closer to what I was expecting. The /dev/sda, /dev/sdb, /dev/sdc disks look like they are the ones. Was I misunderstanding the df -h command?

    – MonsieurNinja
    30 mins ago











  • the df command only shows you filesystem sizes. To get the real disk capacities and partitions you would look at the output of fdisk. From your pastebin (you should copy all of that into your question) it would appear that you do indeed have three 120G disks, but you seem to have a software RAID on top of them. The contents of /proc/mdstat should have some information about your software RAID (also check out the mdadm command).

    – GracefulRestart
    24 mins ago














-1












-1








-1








I have a dedicated server to host my website.



When I run the df -h command I get the following output:



Filesystem      Size  Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 322M 2.9G 11% /run
/dev/md2 20G 8.1G 11G 45% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md1 487M 29M 429M 7% /boot
/dev/md3 90G 22G 64G 26% /home


The commercial denomination of my server is: E3-SSD-2-32 - E3-1225v2 - 32GB - SoftRaid 3x120GB SSD. It is supposed to have 3 SSD drives of 120GB each. But I can't see this information in the output of the df command.



Am I missing something?










share|improve this question







New contributor



MonsieurNinja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a dedicated server to host my website.



When I run the df -h command I get the following output:



Filesystem      Size  Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 322M 2.9G 11% /run
/dev/md2 20G 8.1G 11G 45% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md1 487M 29M 429M 7% /boot
/dev/md3 90G 22G 64G 26% /home


The commercial denomination of my server is: E3-SSD-2-32 - E3-1225v2 - 32GB - SoftRaid 3x120GB SSD. It is supposed to have 3 SSD drives of 120GB each. But I can't see this information in the output of the df command.



Am I missing something?







disk-usage disk






share|improve this question







New contributor



MonsieurNinja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question







New contributor



MonsieurNinja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question






New contributor



MonsieurNinja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 43 mins ago









MonsieurNinjaMonsieurNinja

991 bronze badge




991 bronze badge




New contributor



MonsieurNinja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




MonsieurNinja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • What's the output of sudo fdisk -l?

    – guillermo chamorro
    40 mins ago











  • pastebin.com/BVHTUFsc it seems that this command is closer to what I was expecting. The /dev/sda, /dev/sdb, /dev/sdc disks look like they are the ones. Was I misunderstanding the df -h command?

    – MonsieurNinja
    30 mins ago











  • the df command only shows you filesystem sizes. To get the real disk capacities and partitions you would look at the output of fdisk. From your pastebin (you should copy all of that into your question) it would appear that you do indeed have three 120G disks, but you seem to have a software RAID on top of them. The contents of /proc/mdstat should have some information about your software RAID (also check out the mdadm command).

    – GracefulRestart
    24 mins ago



















  • What's the output of sudo fdisk -l?

    – guillermo chamorro
    40 mins ago











  • pastebin.com/BVHTUFsc it seems that this command is closer to what I was expecting. The /dev/sda, /dev/sdb, /dev/sdc disks look like they are the ones. Was I misunderstanding the df -h command?

    – MonsieurNinja
    30 mins ago











  • the df command only shows you filesystem sizes. To get the real disk capacities and partitions you would look at the output of fdisk. From your pastebin (you should copy all of that into your question) it would appear that you do indeed have three 120G disks, but you seem to have a software RAID on top of them. The contents of /proc/mdstat should have some information about your software RAID (also check out the mdadm command).

    – GracefulRestart
    24 mins ago

















What's the output of sudo fdisk -l?

– guillermo chamorro
40 mins ago





What's the output of sudo fdisk -l?

– guillermo chamorro
40 mins ago













pastebin.com/BVHTUFsc it seems that this command is closer to what I was expecting. The /dev/sda, /dev/sdb, /dev/sdc disks look like they are the ones. Was I misunderstanding the df -h command?

– MonsieurNinja
30 mins ago





pastebin.com/BVHTUFsc it seems that this command is closer to what I was expecting. The /dev/sda, /dev/sdb, /dev/sdc disks look like they are the ones. Was I misunderstanding the df -h command?

– MonsieurNinja
30 mins ago













the df command only shows you filesystem sizes. To get the real disk capacities and partitions you would look at the output of fdisk. From your pastebin (you should copy all of that into your question) it would appear that you do indeed have three 120G disks, but you seem to have a software RAID on top of them. The contents of /proc/mdstat should have some information about your software RAID (also check out the mdadm command).

– GracefulRestart
24 mins ago





the df command only shows you filesystem sizes. To get the real disk capacities and partitions you would look at the output of fdisk. From your pastebin (you should copy all of that into your question) it would appear that you do indeed have three 120G disks, but you seem to have a software RAID on top of them. The contents of /proc/mdstat should have some information about your software RAID (also check out the mdadm command).

– GracefulRestart
24 mins ago










1 Answer
1






active

oldest

votes


















0
















You do have three drives, but they seem to be connected in RAID1 with one hot spare. Consider:



Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1 * 4096 1050623 1046528 511M fd Linux raid autodetect
/dev/sda2 1050624 42008575 40957952 19.5G fd Linux raid autodetect
/dev/sda3 42008576 233383935 191375360 91.3G fd Linux raid autodetect
/dev/sda4 233383936 234430463 1046528 511M 82 Linux swap / Solaris


The sizes of sda1, sda2 and sda3 match those of the md1, md2, md3 devices. If they were RAID5 you'd see a total of 240 GB, instead you see 120 GB.



This indicates in my opinion that sda and sdb are connected in RAID1, so that they show together as 120 GB overall, while sdc is kept in reserve, and isn't seen at all.



You can verify this by running mdadm --detail /dev/md1. I expect something like



       Raid Level : raid1
Array Size : 511 MiB
Raid Devices : 2
Total Devices : 3 <--------

State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 1 <--------

Consistency Policy : bitmap

Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda1
1 8 19 1 active sync /dev/sdb1




share




























    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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/4.0/"u003ecc by-sa 4.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
    });


    }
    });







    MonsieurNinja is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded
















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f543551%2fhow-to-understand-the-output-of-the-df-command%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









    0
















    You do have three drives, but they seem to be connected in RAID1 with one hot spare. Consider:



    Device     Boot     Start       End   Sectors  Size Id Type
    /dev/sda1 * 4096 1050623 1046528 511M fd Linux raid autodetect
    /dev/sda2 1050624 42008575 40957952 19.5G fd Linux raid autodetect
    /dev/sda3 42008576 233383935 191375360 91.3G fd Linux raid autodetect
    /dev/sda4 233383936 234430463 1046528 511M 82 Linux swap / Solaris


    The sizes of sda1, sda2 and sda3 match those of the md1, md2, md3 devices. If they were RAID5 you'd see a total of 240 GB, instead you see 120 GB.



    This indicates in my opinion that sda and sdb are connected in RAID1, so that they show together as 120 GB overall, while sdc is kept in reserve, and isn't seen at all.



    You can verify this by running mdadm --detail /dev/md1. I expect something like



           Raid Level : raid1
    Array Size : 511 MiB
    Raid Devices : 2
    Total Devices : 3 <--------

    State : clean
    Active Devices : 2
    Working Devices : 2
    Failed Devices : 0
    Spare Devices : 1 <--------

    Consistency Policy : bitmap

    Number Major Minor RaidDevice State
    0 8 3 0 active sync /dev/sda1
    1 8 19 1 active sync /dev/sdb1




    share






























      0
















      You do have three drives, but they seem to be connected in RAID1 with one hot spare. Consider:



      Device     Boot     Start       End   Sectors  Size Id Type
      /dev/sda1 * 4096 1050623 1046528 511M fd Linux raid autodetect
      /dev/sda2 1050624 42008575 40957952 19.5G fd Linux raid autodetect
      /dev/sda3 42008576 233383935 191375360 91.3G fd Linux raid autodetect
      /dev/sda4 233383936 234430463 1046528 511M 82 Linux swap / Solaris


      The sizes of sda1, sda2 and sda3 match those of the md1, md2, md3 devices. If they were RAID5 you'd see a total of 240 GB, instead you see 120 GB.



      This indicates in my opinion that sda and sdb are connected in RAID1, so that they show together as 120 GB overall, while sdc is kept in reserve, and isn't seen at all.



      You can verify this by running mdadm --detail /dev/md1. I expect something like



             Raid Level : raid1
      Array Size : 511 MiB
      Raid Devices : 2
      Total Devices : 3 <--------

      State : clean
      Active Devices : 2
      Working Devices : 2
      Failed Devices : 0
      Spare Devices : 1 <--------

      Consistency Policy : bitmap

      Number Major Minor RaidDevice State
      0 8 3 0 active sync /dev/sda1
      1 8 19 1 active sync /dev/sdb1




      share




























        0














        0










        0









        You do have three drives, but they seem to be connected in RAID1 with one hot spare. Consider:



        Device     Boot     Start       End   Sectors  Size Id Type
        /dev/sda1 * 4096 1050623 1046528 511M fd Linux raid autodetect
        /dev/sda2 1050624 42008575 40957952 19.5G fd Linux raid autodetect
        /dev/sda3 42008576 233383935 191375360 91.3G fd Linux raid autodetect
        /dev/sda4 233383936 234430463 1046528 511M 82 Linux swap / Solaris


        The sizes of sda1, sda2 and sda3 match those of the md1, md2, md3 devices. If they were RAID5 you'd see a total of 240 GB, instead you see 120 GB.



        This indicates in my opinion that sda and sdb are connected in RAID1, so that they show together as 120 GB overall, while sdc is kept in reserve, and isn't seen at all.



        You can verify this by running mdadm --detail /dev/md1. I expect something like



               Raid Level : raid1
        Array Size : 511 MiB
        Raid Devices : 2
        Total Devices : 3 <--------

        State : clean
        Active Devices : 2
        Working Devices : 2
        Failed Devices : 0
        Spare Devices : 1 <--------

        Consistency Policy : bitmap

        Number Major Minor RaidDevice State
        0 8 3 0 active sync /dev/sda1
        1 8 19 1 active sync /dev/sdb1




        share













        You do have three drives, but they seem to be connected in RAID1 with one hot spare. Consider:



        Device     Boot     Start       End   Sectors  Size Id Type
        /dev/sda1 * 4096 1050623 1046528 511M fd Linux raid autodetect
        /dev/sda2 1050624 42008575 40957952 19.5G fd Linux raid autodetect
        /dev/sda3 42008576 233383935 191375360 91.3G fd Linux raid autodetect
        /dev/sda4 233383936 234430463 1046528 511M 82 Linux swap / Solaris


        The sizes of sda1, sda2 and sda3 match those of the md1, md2, md3 devices. If they were RAID5 you'd see a total of 240 GB, instead you see 120 GB.



        This indicates in my opinion that sda and sdb are connected in RAID1, so that they show together as 120 GB overall, while sdc is kept in reserve, and isn't seen at all.



        You can verify this by running mdadm --detail /dev/md1. I expect something like



               Raid Level : raid1
        Array Size : 511 MiB
        Raid Devices : 2
        Total Devices : 3 <--------

        State : clean
        Active Devices : 2
        Working Devices : 2
        Failed Devices : 0
        Spare Devices : 1 <--------

        Consistency Policy : bitmap

        Number Major Minor RaidDevice State
        0 8 3 0 active sync /dev/sda1
        1 8 19 1 active sync /dev/sdb1





        share











        share


        share










        answered 7 mins ago









        LSerniLSerni

        2,5918 silver badges16 bronze badges




        2,5918 silver badges16 bronze badges


























            MonsieurNinja is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded

















            MonsieurNinja is a new contributor. Be nice, and check out our Code of Conduct.













            MonsieurNinja is a new contributor. Be nice, and check out our Code of Conduct.












            MonsieurNinja is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f543551%2fhow-to-understand-the-output-of-the-df-command%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

            Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

            The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

            Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...