Questions tagged [xfs]

Questions about XFS filesystem, utilities and other situations where XFS filesystem is relevant.

217 questions
31
votes
1 answer

XFS vs ext4 performance

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 better and this benchmark doesn't make sense. So I…
user264359
30
votes
1 answer

Why is ext4 only recommended up to 16 TB?

In the ext4 wiki article I've seen that ext4 can be used up to 1 EiB, but is only recommended up to 16 TiB. Why is that the case? Why is XFS recommended for larger file systems? (ELICS: Explain me like I'm a CS student, but without much knowledge in…
Martin Thoma
  • 2,802
  • 5
  • 34
  • 45
25
votes
4 answers

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 the data from the caller address space…
Mridul Verma
  • 353
  • 1
  • 3
  • 5
24
votes
4 answers

How to correctly install GRUB on a soft RAID 1?

In my setup, I have two disks that are each formatted in the following way: (GPT) 1) 1MB BIOS_BOOT 2) 300MB LINUX_RAID 3) * LINUX_RAID The boot partitions are mapped in /dev/md0, the rootfs in /dev/md1. md0 is formatted with ext2,…
vic
  • 2,012
  • 4
  • 14
  • 23
15
votes
3 answers

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 only write permissions on log files. The problem is,…
metalhead
  • 153
  • 1
  • 1
  • 7
15
votes
4 answers

How to repair CentOS ? Failed to mount /sysroot

I have installed centOS 7 on my machine and I am using it for last 4-5 month it was working fine. But few days back due to power cut (un-proper shut down) there is something bad happened with my machine. Now when I start system it gives me this…
Varun Naharia
  • 201
  • 1
  • 2
  • 7
15
votes
3 answers

How to check XFS filesystem version?

How to check the version of a XFS filesystem on a system, whether it is V5 or later?
MikasaAckerman
  • 339
  • 1
  • 3
  • 9
11
votes
1 answer

fstrim doesn't seem to trim a partition that uses lvm and dm-crypt

I try to setup Fedora 25 with dm-crypt and LVM, but struggle to make TRIM work. $ sudo fstrim -av /boot: 28.6 MiB (30003200 bytes) trimmed /: 56.5 GiB (60672704512 bytes)…
NefariousOctopus
  • 491
  • 6
  • 22
9
votes
1 answer

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 created the filesystem (I used the defaults). Is there…
TheSola10
  • 201
  • 2
  • 8
9
votes
3 answers

How to recover xfs data after rm?

Is it possible to recover files that have been rm'ed from an XFS filesystem? How can I recover any files assuming they haven't been overwritten? Edit: The existing questions regarding this topic are all assuming an ext{2,3,4} file system. I am…
Timothy Pulliam
  • 3,549
  • 3
  • 21
  • 42
9
votes
3 answers

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 ext4 file systems use less space? In other words,…
abadys
  • 91
  • 1
  • 1
  • 3
9
votes
4 answers

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 declares to be "atomic". I'm more concerned about what…
rboyer
  • 191
  • 2
8
votes
1 answer

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 editing fstab and adding: /dev/sdh /vol xfs noatime 0…
cwd
  • 44,479
  • 71
  • 146
  • 167
8
votes
1 answer

md raid5: translate md internal sector numbers to offsets

TL;DR summary: Translate an md sector number into offsets(s) within the /dev/mdX device, and how to investigate it with xfs_db. The sector number is from sh->sector in linux/drivers/md/raid5.c:handle_parity_checks5(). I don't know MD internals, so…
Peter Cordes
  • 6,328
  • 22
  • 41
8
votes
1 answer

Is xfs_fsr safe to interrupt?

Is it safe to interrupt (Ctrl-C) a long running xfs_fsr job? I'm attempting to defragment a very large XFS volume.
twblamer
  • 919
  • 2
  • 10
  • 19
1
2 3
14 15