Questions tagged [xfs]

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

Filter by
Sorted by
Tagged with
28
votes
1answer
6k views

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 ...
22
votes
3answers
82k views

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 ...
21
votes
4answers
13k 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
1answer
42k 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 ...
15
votes
4answers
75k views

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 ...
13
votes
3answers
11k 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 ...
12
votes
3answers
14k 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?
10
votes
1answer
5k views

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 ...
9
votes
3answers
16k 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
4answers
2k 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
1answer
896 views

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:...
7
votes
3answers
21k views

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 ...
7
votes
1answer
7k 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
1answer
3k views

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.
6
votes
2answers
4k 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
2answers
53k views

How do I mount an XFS partition via /etc/fstab and non-root users can r/w to it?

I have 2 XFS partitions I want to mount via /etc/fstab: /dev/sdb1 /media/data xfs defaults 0 2 /dev/sdc1 /media/backup xfs defaults 0 ...
6
votes
3answers
3k 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,...
6
votes
1answer
2k 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 ...
5
votes
2answers
7k views

big data + what is the right filesystem ext4 or xfs?

We have Linux Redhat version 7.2 , with xfs file system. from /etc/fstab /dev/mapper/vgCLU_HDP-root / xfs defaults 0 0 UUID=7de1ab5c-b605-4b6f-bdf1-f1e8658fb9 /boot ...
5
votes
1answer
832 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
1answer
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
1answer
557 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
3answers
8k 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
1answer
743 views

How to list all inodes and blocks in file system which are available for unprivileged user

I'm trying to list all inodes and blocks in certain file system which are available and unused for unprivileged user. I tried stat -f but from what I've read it list nodes and block available for all ...
4
votes
3answers
4k 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
2answers
12k views

Re-partitioning /home partition in CentOS

I have a CentOS 7 system with a /home partition that is too large. I wish to reduce its size but it's XFS so that's pretty much impossible. Since I don't have much user data anyway (only 1 user ...
4
votes
1answer
559 views

XFS Volume has wrong blocksize after being mounted

I did the following: $ mkfs.xfs -b size=4096 /dev/xvdf meta-data=/dev/xvdf isize=256 agcount=4, agsize=131072 blks = sectsz=512 attr=2, projid32bit=1 ...
4
votes
1answer
3k 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 ...
4
votes
0answers
211 views

How are XFS deltas for xfsdump -l n calculated?

I have a xfs filesystem with many small and a couple very large files (~100GB), its on a lvm2 volume. I want to do incremental backups from it. Is there any computational overhead when using a tool ...
3
votes
2answers
5k 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
1answer
17k 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
2answers
363 views

How to check disk usage for folders containing reflinked files on XFS?

XFS supports copy on write (CoW), so it is not entirely clear what du will say if some of the bytes are shared across files. I'd like to find a way to check how much disk space a folder uses, not ...
3
votes
2answers
5k views

Change filesystem without losing data

I've got 16 nodes of elasticsearch (RHEL 7) - 18TB each, every node has a ext4 filesystem. For better efficency I need to change to XFS filesystem. Is there any tool / way which help me change ...
3
votes
1answer
279 views

What is the proper path to expand /root LVM

I have recently added a 562 GB to a virtual machine in Vsphere. I expanded the /dev/sda2. I performed the 8e LVM... and now executed pvresize /dev/sda2 My goal is to expand the LVM for root partition....
3
votes
1answer
2k views

How to tell if a block device needs cache flushes

I want to know if a particular block device claims to requires cache flushes. From the xfs faq (emphasis mine): Q. Should barriers be enabled with storage which has a persistent write cache? ...
3
votes
1answer
9k views

Extend XFS parititon ( xfs_growfs )

Here are the partitions of my server : NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 54.6T 0 disk ├─sda1 8:1 0 1004.5K 0 part ├─sda2 8:2 0 19.5G 0 part / ├─sda3 8:...
3
votes
1answer
1k 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 ...
3
votes
2answers
3k views

How to determine freeze/unfreeze status of a filesystem?

I use xfs_freeze to freeze and unfreeze my xfs filesystem: xfs_freeze -f /blahblah xfs_freeze -u /blahblah After I run the unfreeze command I want to make sure that the filesystem is not frozen ...
3
votes
1answer
1k views

Server Claims No Space Left But Has 5TB Available

Currently a backup server (CentOS 6.8) is showing messages when rsnapshot is running, indicating that there's no space left on the device (/raid; an xfs file system) to write. Below is the output of ...
3
votes
1answer
2k views

How can I tell if xfs_repair is stuck or still running?

I have a backup server with ~72TB of space. Only about half of that is used. Earlier in the week I got the following message and directly after the xfs filesystem was unmounted. Mar 15 15:15:47 ...
3
votes
1answer
337 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 ...
3
votes
0answers
759 views

RAID 6 with XFS dealing with bad sectors

I have 7 2tb hdd in a raid 6 attached to a Adaptec 71685 dmesg message says I have bad sectors 2321236720 2321236728 2321236760 2321236792 2321236824 2321236856 2321236864 2329211680 2329212192 ...
3
votes
0answers
2k views

Difference in space reserved for inodes in ext4 and XFS partitions

I am formatting a couple of 60G Logical Volumes (vg01-logs and vg01-monitoring) in one of our servers. These partitions will hold a large number of small files, so I want them with more than the ...
3
votes
0answers
1k views

Which file system (among XFS, BTRFS and EXT4 only) does provide the best data resilience to disk corruption? [closed]

Question: Given these three filesystems: XFS, BTRFS and EXT4, I'm wishing to know which does provide the best data resilience to data corruption in a setup without RAID. And, of course, why? (...
3
votes
0answers
3k views

Unable to mount XFS volume after reboot - unknown filesystem type 'xfs'

I have an aws ec2 instance that's been running Ubuntu 12.04 for a good long while. It has attached to it an EBS volume formatted with xfs. Today after a reboot, I'm unable to mount this volume. ...
2
votes
2answers
324 views

How is the theoretical maximum file size on filesystems like XFS calculcated?

Documentation for XFS claims its current theoretical maximum file size is 8 exbibytes - 1 byte. However, I am wondering how this calculation was computed? I cannot seem to find discussion of this ...
2
votes
1answer
12k 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-...
2
votes
1answer
5k views

Error setting up a new xfs file system: unknow fs type

I am trying to setup a new xfs filesystem in Debian 9/stretch. My kernel version is 4.9.0-3-amd64. For that I installed the package xfsprogs, and initialised the new partition with: mkfs.xfs /dev/...
2
votes
2answers
8k views

Changing label of xfs root file system

I'm running a centos 7 server. I want to change the label of the root file system (xfs). xfs_admin -L "newlabel" /dev/mapper/centos-root fails because it can't operate on a mounted ...
2
votes
1answer
293 views

Can I merge an XFS partition with another XFS partition?

I am using an SSD where I have 3 partitions: $ lsblk /dev/sda NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk ├─sda1 8:1 0 2M 0 part ├─sda2 8:2 0 108G ...