LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-11-2019, 01:43 AM   #1
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,655

Rep: Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484
Centos 7 / xfs : is there a reserved space setting for xfs like there is in ext4?


Hi Guys,

in the ext4 fs we can reduce the reserved space from default 5% to eg 2% if we want to use the extra space.

I have a system with a new xfs disk mnt with default settings and no data on it.
It's 6TB raw, 5.5TB formatted, for now...

Can I reduce the reserved space (if xfs has such a thing), as 0.5TB seems like a lot of space, even allowing for formatting overhead.
 
Old 09-12-2019, 09:21 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,929

Rep: Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853
xfs does not have reserved space and I agree that 0.5TB is quite excessive for overhead. As a simple test I created a 1 and 2 GB file that I formatted as xfs. In either case the used space was the same, 33M as displayed by the df command.

What happens when you run the xfs_check and xfs_repair commands.
 
Old 09-12-2019, 09:51 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,082

Rep: Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900
Phttt - it's only 8 and a bit percent ....
If I had to guess, I saw it's "ducks and drakes". The vendor sold you a 6 TB drive, and XFS formatted a 5.5 TiB filesystem. Disk sizes are a scam - 1000 versus 1024 for a k is just the start ...
 
1 members found this post helpful.
Old 09-13-2019, 01:15 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,655

Original Poster
Rep: Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484
I guess syg00 is probably right.

Unfortunately, we've started using it (it's a backup system we needed stat), so I probably won't get a chance to run the cmds michaelk suggested, as they both require unmounting or at least making it read-only - not going to happen now...

Thanks anyway - I'll, maybe try them next time.
 
Old 09-13-2019, 03:53 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,082

Rep: Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900
Read this - there are other articles as well. The numbers start to get your attention as they get bigger.
Note also that the reserved space on ext? is in the filesystem, so would not show in this context anyway.

Last edited by syg00; 09-13-2019 at 05:18 AM. Reason: oops - left out the "not"
 
Old 09-13-2019, 08:03 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,929

Rep: Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853Reputation: 2853
syg00 is correct reserved space is part of the filesystem. From what I read and what I think are ~ real numbers is a bit different on my system so I will need to look into it a bit further. Yes it depends if 6TB is the manufactures disk size or the actual raw partition size and if the reference is decimal or binary.

The /boot partition on one of my systems is 1GB. Just for some quick numbers parted reports it as raw = 1074MB and formatted df -h = 1014MB which is about 5.6%
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reserved space on ext4 database file system r0tty Linux - General 9 01-27-2016 07:10 AM
Should I use XFS type file systems with CentOS 7? How do those compare to EXT4? abefroman Linux - Server 2 03-05-2015 05:44 PM
kdump reserved memory not getting reserved Rohant Linux - Server 3 07-02-2013 08:59 AM
accessing liveusb reserved space ssaha Ubuntu 0 05-09-2010 10:43 AM
Deleting Reserved Space on Doc Partition jman82s Linux - Hardware 1 12-13-2007 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration