75 votes
Accepted

How to shrink /home and add more space on CentOS7

As others have pointed out, XFS filesystem cannot be shrunk. So your best bet is to backup /home, remove and recreate its volume in a smaller size and give the rest to your /root volume just as Koen ...
Ari's user avatar
  • 866
37 votes

Ext4 vs. XFS vs. Btrfs vs. ZFS for NAS

I generally use one of the following two filesystems: XFS for anything which does not play well with CoW (or for virtual machines whose datastore already is on a CoW filesystem) or when extremely ...
shodanshok's user avatar
  • 50.6k
31 votes

Very strange file size (more than 600 PB) on a small filesystem

I can see two possible reasons for you to be seeing those file sizes: Sparse files File system corruption Sparse files is a feature on some file systems whereby you can create a file with holes in ...
kasperd's user avatar
  • 30.7k
29 votes
Accepted

Proper way to deal with corrupt XFS filesystems

If you're attempting to run xfs_repair, getting the error message that suggests mounting the filesystem to replay the log, and after mounting still receiving the same error message, you may need to ...
brendonofficial's user avatar
26 votes

Newly created XFS filesystem shows 78 GB used

All filesystems have an overhead for their own internal data structures. This internal information is used for the filesystem to create files and directories in future, and to keep track of where ...
Moshe Katz's user avatar
  • 3,182
19 votes

Is GPT needed on a 16 TB data disk?

GPT is about partitioning disks and partition tables. So if you plan to put the XFS filesystem on the disk, without having partitions you do not need a GPT label. The GPT label would be destroyed ...
Thomas's user avatar
  • 4,305
19 votes
Accepted

Is GPT needed on a 16 TB data disk?

You can do this without any problems... I'm assuming /dev/sdb is a separate HP Smart Array Logical Drive. Don't use any partitioning for this setup... Just create the filesystem on the block device: ...
ewwhite's user avatar
  • 198k
17 votes
Accepted

Why does the official docker image for mongo not use XFS, and then warn about not using it?

The full answer. A docker image doesn't have a file system. A docker image is a bunch of tar files each representing a layer plus some JSON files with the image metadata. When a docker image is pulled ...
AlexD's user avatar
  • 10.3k
15 votes

Unable to mount an XFS filesystem from Linux RAID6 array ("Log inconsistent")

I want to extend suggestions above. It is extremly worth setting up overlay block device, so any changes to the file system that you'll do in attempt to recover it will not change anything on the RAID ...
Nikita Kipriyanov's user avatar
14 votes

xfs_growfs: is not a mounted xfs filesystem when trying to grow ol-root

You need to target the mount-point not the LVM mapper for the xfs_growfs command. This seems to be a new "feature" since we used to be able to xfs_growfs on the mapper. But the man page specifically ...
Jason Richling's user avatar
13 votes

How to change the file system of a partition in a RAID 1?

/dev/md2 is your root file system, so if you would just format this it means your server would be gone for good. So this is a very good reason why mkfs refuses to format a running, mounted file system....
Marc Stürmer's user avatar
12 votes
Accepted

xfs on lvm on hardware RAID: correct parameters?

Rather than "strip size" and "stripe size", the XFS man pages use the terms "stripe unit" and "stripe width" respectively. This makes it possible to decode the otherwise confusing text in the mkfs....
Michael Hampton's user avatar
11 votes

Want to understand XFS strangeness

mkfs.xfs (starting with version 3.2.4 of xfsprogs) recently defaulted to version 5 superblock, with lots of new enhancements like metadata CRC checksums. Version 5 superblock requires a 3.16 kernel or ...
wazoox's user avatar
  • 6,998
10 votes
Accepted

How to force re-read XFS file system contents

XFS isn't a cluster filesystem and therefore hasn't any facility to do what you're asking for (well, there existed a proprietary -- and expensive -- clustered version known as CXFS, but that's another ...
wazoox's user avatar
  • 6,998
10 votes

Unable to mount an XFS filesystem from Linux RAID6 array ("Log inconsistent")

The logs [13297.001208] XFS (md125): Mounting V5 Filesystem [13297.008854] XFS (md125): Log inconsistent (didn't find previous header) [13297.008874] XFS (md125): failed to find log head [13297.008878]...
shodanshok's user avatar
  • 50.6k
8 votes

How to recover XFS file system with "superblock read failed"

The answers above did not help me when I had this issue today (about 9.5 hours ago now). I'll present here the solution that worked for me, along with the reasons why the previous answer did not help. ...
ChrisR's user avatar
  • 181
8 votes

VPS: How can I update the available hard disk space after upgrade?

xfs_growfs -d /dev/vda1 Capital -D grows to specified size in filesystem blocks, and it doesn't understand 'G'. As such it assumed you wanted 53 filesystem blocks, which failed. Lower case -d grows ...
mzhaase's user avatar
  • 3,848
8 votes

Getting files out of XFS with 64kb block size

I've done a bit of research into your problem. Not easy but looks feasible. The area of code breaking you is this (well, in newer kernels): fs/xfs/libxfs/xfs_sb.c 271 /* 272 * ...
Matthew Ife's user avatar
  • 23.6k
8 votes
Accepted

Centos7 - Buffer I/O error on dev sda, logical block xxxxxxxxx, lost async page write

Messages as Buffer I/O error on dev sda, logical block 886865171, lost async page write mean that an async write (ie: dirty page writeback or buffered writes) failed. You found these errors in ...
shodanshok's user avatar
  • 50.6k
8 votes
Accepted

Newly created XFS filesystem shows 78 GB used

For XFS, the empty filesystem "Size Used" as shown by df -h seems to depend a lot on which metadata features you enable at mkfs.xfs time. Testing with an empty 12TB file: # truncate -s 12TB xfstest....
frostschutz's user avatar
8 votes

Ext4 vs. XFS vs. Btrfs vs. ZFS for NAS

This looks more like a question for superuser than for serverfault, but some of the ideas are valid for this site too, so I'll take a stab at answering some of the questions: XFS has had a reputation ...
Mikael H's user avatar
  • 5,099
7 votes

How to shrink /home and add more space on CentOS7

An addition to Ari's answer as I was unable to ssh using public key authentication after following his instructions. With selinux enabled you may get this message in /var/log/messages (with debug ...
Bart's user avatar
  • 71
7 votes

Does XFS support default quotas?

I have something to add here that I hope will help other people with the same problem. I have a single XFS filesystem mounted with uquota. I have multiple users using the filesystem whom I want ...
Andy Foster's user avatar
7 votes
Accepted

Why do my SSD read latency benchmarks get markedly worse when I put an XFS filesystem on top?

Most modern SSDs use a page-based mapping table. At first (or after a complete TRIM/UNMAP) the mapping table is empty - ie any LBA returns 0, even if the underlying flash page/block is not completely ...
shodanshok's user avatar
  • 50.6k
7 votes

Ext4 vs. XFS vs. Btrfs vs. ZFS for NAS

I would use whatever journalling file system the operating system in question suggested as default unless I had very good reason not to. Last time I checked with Ubuntu that was ext4. The reason is ...
Thorbjørn Ravn Andersen's user avatar
6 votes

Very strange file size (more than 600 PB) on a small filesystem

The problem is the way you compute a file size. One way it is look the offset of the last byte (like ls). The other way is to sum really allocated blocks (like du). What you see if probably a file ...
François's user avatar
  • 171
6 votes

Rsync size is difference from source to destination

Ran into this "problem" when using 'du -b -d0 source destination' as I had a huge list of things not match as I drilled down. The problem seemed to be is that du insists on reporting the disk usage ...
marinara's user avatar
  • 169
6 votes

How to change the file system of a partition in a RAID 1?

To be clear: "mkfs" deletes everything on the partition (what we usually call "formatting"). You can only "format" an unmounted (unused) partition, and you can't unmount ...
wazoox's user avatar
  • 6,998
5 votes
Accepted

xfs fails with errors on dmesg

I know this is a very old post, but as the answer is incorrect, I think it can be useful to future visitors to post a correct answer... The error message reported by the OP has nothing to do with XFS ...
shodanshok's user avatar
  • 50.6k
5 votes

Corruption of in-memory data detected: where does the issue lie?

"Corruption of in-memory data detected" doesn't necessarily mean that the hardware RAM is bad. It could also indicate a block was read or written incorrectly, the storage flipped a bit or is otherwise ...
Michael Hampton's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible