74
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
...
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 ...
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 ...
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 ...
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....
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....
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 ...
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 ...
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]...
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.
...
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 ...
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 * ...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
xfs × 338linux × 119
filesystems × 74
centos × 37
lvm × 36
ext4 × 33
centos7 × 32
raid × 29
partition × 22
ubuntu × 17
amazon-ec2 × 15
redhat × 15
nfs × 15
performance × 14
data-recovery × 12
quota × 12
ext3 × 11
hard-drive × 9
mount × 9
mdadm × 9
mysql × 8
backup × 8
storage × 8
zfs × 8
software-raid × 8