Questions tagged [xfs]
Questions about XFS filesystem, utilities and other situations where XFS filesystem is relevant.
236 questions
35
votes
1
answer
99k
views
XFS vs ext4 performance [closed]
According to this blog,
XFS is old file system and works slowly with small files.
My first impression when reading this was XFS was not good.
However someone told me that XFS makes disk perform ...
30
votes
4
answers
21k
views
Does any file system implement Copy on Write mechanism for CP?
We have seen OS doing Copy on Write optimisation when forking a process. Reason being that most of the time fork is preceded by exec, so we don't want to incur the cost of page allocations and copying ...
19
votes
3
answers
16k
views
Restrict file access to append only
I have a directory with log files and I'm putting
logs from script launched by users into them. Logging with syslog doesn't seem
possible in this case. (non-daemon rsync)
I want the users to have ...
15
votes
3
answers
25k
views
How to check XFS filesystem version?
How to check the version of a XFS filesystem on a system, whether it is V5 or later?
11
votes
1
answer
830
views
df shows 539G used on /apps, but du shows only 47G — unexplained disk usage discrepancy
I have a problem and I don't know what the problem is.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 5.0G 113M 4.9G 3% /
/dev/mapper/appsvg-...
11
votes
1
answer
8k
views
Is there a way to enable reflink on an existing XFS filesystem?
I currently have a 4TB RAID 1 setup on a small, personal Linux server, which is formatted as XFS in LVM. I am interested in enabling the reflink feature of XFS, but I did not do so when I first ...
10
votes
3
answers
21k
views
inodes, consumed space comparison for many small files (xfs, btrfs,ext4)
I have an ext4 partition (LVM on a VM) with a large amount of small files, which I have to extend every 3-4 months.
Regarding the amount of space used by the inodes.
Does one of the xfs, btrfs or ...
9
votes
4
answers
3k
views
What filesystem metadata operations are actually journaled in ext4 & xfs?
I can't find a simple, straight answer about which filesystem metadata operations are actually persisted to the ext4 & xfs filesystem journals. Note that I am not inquiring about what POSIX ...
8
votes
1
answer
8k
views
What is the difference between a symlink and binding with fstab?
In Eric Hammond's article Running MySQL on Amazon EC2 with EBS he shows how to add a second drive (/vol/) and then progresses to move mysql's config and data there.
/sdh gets mounted as /vol by ...
7
votes
2
answers
5k
views
rsync of sparse qemu image increases disk size
I have a sparse raw qemu image that I want to transfer to another server. qemu-img info gives me:
image: sparse.img
file format: raw
virtual size: 50G
disk size: 16G
I transfer it with:
rsync -azhP -...
6
votes
3
answers
4k
views
xfs disk usage is 15-30% bigger than the files
xfs seems to use 15-30% more disk space than the files require:
# du
0 .
# dd if=/dev/zero of=test bs=1M count=5k
5120+0 records in
5120+0 records out
5368709120 bytes (5,4 GB) copied, 10,527 s,...
5
votes
1
answer
951
views
Why 576GB of files on ext4 doesn't fit on a 600GB xfs? [closed]
I want to test XFS dedup feature, so i put a new HD to my fileserver VM.
I started rsync files from old disk to new one, but I got "No space left on device".
This is my df -h output:
Filesystem ...
5
votes
1
answer
2k
views
Resizing logical volume with no free extents but with free disk space
I have a 7.9 TB logical volume formatted with XFS filesystem. I have 8 1 TB RAID devices as physical volumes, and 1 volume group that contains all of these devices. I have 2.5 TB free space on my ...
4
votes
4
answers
3k
views
How to provision multi-tier a file system across fast and slow storage while combining capacity?
I'm hunting for a way to utilise a slow 500GB magnetic HDD alongside a fast 500GB SSD.
I'd like to end up with a reasonable fraction of the two combined [hopefully > 800GB] in terms of capacity, ...
4
votes
1
answer
15k
views
How do I mount an XFS partition enabling ACL?
I tried using:
sudo mount -t xfs -o acl /dev/sdb1 /mnt/ssd
I got:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1.
BTW, I'm using Fedora 25.
4
votes
1
answer
636
views
218TB XFS LVM filesystem. 144TB Free. Error message "No Free Space Left on Device"
I have a giant 218 TB RAID6, across LVM. It is actually 2 separate RAID6s joined together through LVM to form one giant RAID6. df -h shows all space was available, and I mounted to /share.
I wanted ...
4
votes
1
answer
2k
views
How to defrag XFS file-system if xfs_fsr exits with "no improvement will be made"?
I am trying to defrag a heavily fragmented XFS file-system on a CentOS 6.6 machine:
[root@server opt]# xfs_db -c frag -r /dev/md3
actual 598, ideal 215, fragmentation factor 64.05%
However, when I ...
4
votes
3
answers
14k
views
How do YOU detect a failed XFS filesystem?
Currently I monitor for a failed filesystem (as a result of a failed disk, controller, whatever) by checking syslog for messages like this:
2017-06-15T17:18:10.081665+00:00 2017-06-15T17:18:10+00:...
4
votes
3
answers
5k
views
Resize XFS home directory in LVM
I am trying to increase the swap space available to my server from 4GB to 16GB, however at present XFS + something is making this impossible.
I have a single SSD hosting the OS (CentOS 7), with a ...
4
votes
1
answer
773
views
Copying a file that is written at the same time
This related question can't solve my exact problem, so I'm writing a similar question.
My scenario is the following: a program (run by wine) writes to a file sized about 10-500 KB. About 1 KB ...
4
votes
1
answer
4k
views
xfs fllesystem remount doesn't work when modify quota configure
1.At the begining
mount | grep home
/dev/sdb1 on /home type xfs (rw,relatime,attr2,inode64,noquota)
2.try to modify
mount -o remount,rw,relatime,attr2,inode64,prjquota /dev/sbd1 /home
3.check it ...
4
votes
0
answers
1k
views
When does Linux flush data to the disk?
I know that usually the answer to this question is "when it sees fit", or some other obscure answer. And many times I saw that if the host gets hard booted, some of files that got recently ...
3
votes
1
answer
25k
views
Use "tune2fs" on XFS filesystem, get "Couldn't find valid filesystem superblock."
I ran into this message two days ago=:
tune2fs: Bad magic number in super-block while trying to open /dev/vdc1
Couldn't find valid filesystem superblock.
The system is Ubuntu, a KVM virtual machine ...
3
votes
2
answers
7k
views
Split home partition into 2 (xfs on LVM)
I am using centos 7 and I have a /home mounted on an xfs filesystem on a dedicated LVM partition.
/dev/mapper/centos-home 782G 34M 782G 1% /home
I want to split this partition to 2 ...
3
votes
1
answer
21k
views
[Firmware Bug]: the BIOS has corrupted hw-PMU resources and CentOS 7 not initializing
So I was on my desktop computer as usual, and then this happens out of nowhere:
For the little time that I've researched about the error, the first message [Firmware Bug]: the BIOS has corrupted hw-...