CentOS 7 xfs resblks

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

Oxzhor

Member
Jan 11, 2017
30
3
8
40
The Netherlands, Amsterdam
Hi All,

I trying at my CentOS 7 64-bit on xfs file system to reserve 15GB space on disk1 and disk2.

With the follow command:
Code:
xfs_io -xc "resblks 15360" /mnt/data/disk1
xfs_io -xc "resblks 15360" /mnt/data/disk2
Output:
Code:
reserved blocks = 15360
available reserved blocks = 15360
Df -h:
Code:
/dev/sdb1                    2.8T   61M  2.8T   1% /mnt/data/disk1
/dev/sdc1                    2.8T   61M  2.8T   1% /mnt/data/disk2
Before:
Code:
/dev/sdb1                    2.8T   33M  2.8T   1% /mnt/data/disk1
/dev/sdc1                    2.8T   33M  2.8T   1% /mnt/data/disk2
Only 28MB different and not 15GB like a want.
Also after reboot the resblks are reset and i need give the commands again.

Who know how can fix this issues?
Thanks a lot for your feedback.

greetings
 

Oxzhor

Member
Jan 11, 2017
30
3
8
40
The Netherlands, Amsterdam
Oke i reboot the machine
Before xfs_io -xc "resblks 15360" /mnt/data/disk1

[root@media ~]# df
Code:
Filesystem                   1K-blocks    Used  Available Use% Mounted on
/dev/sdb1                   2928834296   32996 2928801300   1% /mnt/data/disk1
After:
[root@media ~]# df
Code:
Filesystem                   1K-blocks    Used  Available Use% Mounted on
/dev/sdb1                   2928834296   61668 2928772628   1% /mnt/data/disk1
That is 28672 MB / 28 GB reserved and not the 15GB i want. Also after a reboot the reserved space is gone.
How i can fix this?