where are my 22GB?

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

voodooFX

Active Member
Jan 26, 2014
247
52
28
Code:
root@storage:~# mdadm --detail /dev/md0
/dev/md0:
        Version : 1.2
  Creation Time : Sun May  3 11:51:50 2015
     Raid Level : raid1
     Array Size : 468718592 (447.00 GiB 479.97 GB)
  Used Dev Size : 468718592 (447.00 GiB 479.97 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Sun May  3 12:49:22 2015
          State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
  Spare Devices : 0

           Name : storage:0  (local to host storage)
           UUID : a585311b:b4238657:8f7f3e85:aef94019
         Events : 399

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

root@storage:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
...
/dev/md0        440G   71M  418G   1% /ssd
/dev/sdc3        11T  818G  9.5T   8% /storage
root@storage:~#
I can not understand why I have only 418G free if the drive is 440G and only 71M are used :confused:
 

nry

Active Member
Feb 22, 2013
312
61
28
Not the reserved space that comes with some file systems is it?

I know with my ext4 volumes it's usually set to 5% by default if I recall correctly which would bring you out at 418!

I usually set my volumes to 1% using tune2fs

Code:
tune2fs -m 1 /dev/sdX
Maybe someone who has drank less wine will be along shortly though ;)
 
  • Like
Reactions: cptbjorn

ColdCanuck

Member
Jul 23, 2013
38
3
8
Halifax NS
Why do you think it is used or missing. The mdadm command is telling you the device is 449 ish GB, not that it is used up. or full

The df command is telling you that the file system on the device /dev/md0 has 71 MB used. I assume that is correct
 

cptbjorn

Member
Aug 16, 2013
100
19
18
As nry said, it's the filesystem root reserve. It is not used, just once the rest of the disk is full you need root to fill the rest up. You can set it to 0 or 1% if you need the space.
 

voodooFX

Active Member
Jan 26, 2014
247
52
28
Hi, thanks for the explanation
I knew about the root reservation but for some reasons 22GB seemed too much :oops: