Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been plagued with this notion for quite some time, I'm running 2 x 2TB drives in raid 0 with "/" receiving all the diskspace. I can only see 3.5TB available to it. Is there any way to reclaim the ~300-350GB?
Here's a screenshot
#1, thanks to all of the manufactures over a decade ago they dropped the true bit count of the drives and round things up. a 2TB drive is never going to be a true 2TB any longer. so maybe you have 1.8TB or so and it could be as little as 1.67TB
#2. when you created your raid you lost space for the pairing of the drives.
In all you have not lost as much as you think you have, if any at all out side of the creation of the raid.
#1, thanks to all of the manufactures over a decade ago they dropped the true bit count of the drives and round things up. a 2TB drive is never going to be a true 2TB any longer. so maybe you have 1.8TB or so and it could be as little as 1.67TB
It is not really rounding, it is just using a different scale. While a kilobyte usually was 1024 byte and a megabyte 1024 kilobyte those people use the factor 1000 instead of 1024.
So a 2TB disk has 2000GB, or 2000000MB, ..., coming down to 2000000000000 byte. If you now use the 1024 factor to scale that up to "real" terabyte you come to about 1863GB. In a RAID 0 with two of those disks you get to about 3.725TB total capacity. If you now format such a partition you will, dependent on the file system in use, need some space for the journal. Also, do not forget that most Linux filesystems reserve some space (usually 5%, in this case about 180GB) for the root user, so that in the end you have about 3.5TB usable space. You can change the amount of space reserved for root using the tune2fs command, if you use an ext filesystem.
Not a problem. Happens to nearly everybody that deals with disks.
Originally, disk manufacturers measured disk capacity the same way that the computer engineers did - using units of 1024. Once disks reached 500MB (or the next generation) marketing got in the action - and immediately realized that if they used a smaller sized unit (1000) it would make the disks appear larger... On their side was that 1000 is the standard unit meaning for kilo. After the battle over units (k = 1000 vs K=1024) the printing remained using k, and disguising that fact using TB (using standard units), leading to a lot of confusion.
The filesystem overhead is USUALLY documented with the filesystem. Some don't because they can dynamically expand some tables (xfs for instance can't run out of inodes - it just allocates another allocation group. The downside is that inodes are not based on count, but where they are located - so inode numbers used in directories have 64 bit values). Again, the variation makes computing the default overhead tricky.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.