Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [xfs]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
15 views

Boot error / data corruption Redhat 7.9

After rebooting a Redhat 7.9 system, I am faced with data corruption on first partition (dev/sda1) The System is a VM and last shutdown was graceful from within the OS, no power off, hard stop etc. ...
MMAX's user avatar
  • 235
1 vote
1 answer
36 views

Empty xfs drive has 50+ gigs used

OS is Debian. I have a new 8 TB disk. Formatted, it's 7.3 TB. Filesystem is XFS. Block size is 4096. I used it a bit, then recently removed all files from it, but df still shows 52 gigs as used. find ....
cat pants's user avatar
  • 487
0 votes
1 answer
30 views

xfs_quota bsoft limit explanation

Using RHEL 8.9, I have xfs_quota applied to each home account folder under /home. In doing xfs_quota -x -c 'limit bhard=1g ron' /home I can observe for example a cp fail when trying to copy a single ...
ron's user avatar
  • 6,817
4 votes
1 answer
154 views

Which filesystems support the C attribute?

On BTRFS filesystems you can disable CoW for a file using the C file attribute, like this: chattr +C filename I expected this to work on ZFS too, since it is also a CoW filesystem, but the attribute ...
Maestro's user avatar
  • 191
0 votes
1 answer
70 views

xfs_quota apply for all users under /home

in RHEL 8.9, I have a 100gb XFS formatted /home partition; all local user accounts in /etc/passwd have their home directories under /home. And all user accounts primary gid is and will always be 100 {...
ron's user avatar
  • 6,817
0 votes
1 answer
66 views

Can the data on corrupt XFS disk be saved?

I have 6 SSD disks (Disk model: Samsung SSD 970 EVO Plus 2TB) equipped on a Linux server (Rocky Linux 9.1). Two m.2 to pcie converter cards are used, one holds 4 disks and the other holds 2. All disks ...
Ben Lau's user avatar
11 votes
2 answers
2k views

What's using all the space on a seemingly empty partition?

OS: RHEL8 Filesystem: xfs I'm guessing that some zombie process is holding the space, but I can't find it. The problem is with /var/lib/pgsql/14, which df says is using 1.1TB of space: $ sudo df -T -...
RonJohn's user avatar
  • 1,148
0 votes
3 answers
267 views

Disks mount points inconsistent after each reboot. Using UUID in fstab

I am having an issue where I can mount my disks manually using the mount command. I than add the disks to fstab. Once I restart: sda1 points at the correct mount point (/mnt/da), but the rest do not. ...
lessharm's user avatar
2 votes
0 answers
207 views

copy XFS filesystem to another XFS filesystem on another disk with reflinks

I have a VM with two XFS file systems on two separate virtual disks. The first XFS is 2.5 TB big and the second one is 1.5 TB big. The first XFS uses 844 GB storage reported by df -h, but in reality 7....
smaxx1337's user avatar
-1 votes
1 answer
194 views

Linux + is it correct to create volume using LVM over physical disks when disks size are huge

Our Goal is to use huge storage as 200TB for Kafka machine In order to achieve this Goal , we create volume using LVM over 4 physical disks in RAID10 , when each disk size is 50T , Note - each disk as ...
yael's user avatar
  • 13.3k
0 votes
0 answers
50 views

Recovering an XML file on Oracle Linux 8 with LVM and XFS

I have a VM with Oracle Linux 8.8 virtualized on VMware, LVM is used and the format is XFS (v6). If I delete a file, for example xml (in users /home), is there any way to recover it? Its clear that ...
d2rkm4n's user avatar
  • 101
0 votes
0 answers
32 views

Recover modified files in xfs filesystem or find out what happened!

I would like to know if there is a way, I could narrow down what happened on our file system that cause over 700 files to be modified at the exact same date and time making the file sizes 0 bytes for ...
Ali K's user avatar
  • 1
0 votes
2 answers
1k views

XFS version 4 vs 5 (RHEL 7 to 8)

In RHEL 7.9 I formatted my large /data volume with XFS 4.5. In RHEL 8.8 XFS is version 5.0. XFS v5 in RHEL 8 can mount an XFS v4 file system created by RHEL 7.9, however RHEL 7.9 cannot mount an XFS ...
ron's user avatar
  • 6,817
0 votes
0 answers
125 views

Help make sense of xfs_logprint output

I recently came across this thread about recovering file in linux: Recover deleted files on Linux. After consulting the top answer which describes recovering in the ext file system family, I wanted to ...
amoosebitmymom's user avatar
0 votes
1 answer
199 views

Is there a case where Applications need to do it's own File corruption checks with file systems like EXT4 and XFS and recent Linux OS like Red-Hat 8

What I presumed is File systems like EXT4 and XFS. Writes blocks to disk (Could be a Hard Disk or a SSD) along with a checksum. When Reading back, if checksum fails, read operation will NOT return ...
aKumara's user avatar
  • 111
0 votes
0 answers
84 views

Is this the correct way to shift space from one LVM to another?

I need to move 500G from my RHEL 8 XFS home volume to the root volume. Here's what I have now: Can someone tell me if this blog post has the correct instructions for doing this? https://www....
Chanel's user avatar
  • 99
0 votes
1 answer
332 views

How do I put the XFS journal on another drive?

Trying to put the journal of a big hard drive on a smaller, but faster SSD. $ sudo mkfs.xfs -N -l logdev=/mnt/data-journal/journal /dev/sdc unable to get size of the log subvolume. $ sudo mkfs.xfs -N ...
martixy's user avatar
  • 111
2 votes
1 answer
848 views

Is it possible to downgrade an XFS filesystem in order for it to be compatible with an older kernel?

Background I have a system, where I generate an XFS filesystem image on one system, and then use this image in another system. Currently both use CentOS7 (7.9 and 7.8 respectively). This works ...
Popup's user avatar
  • 564
0 votes
0 answers
105 views

After xfs repair how can you recover file names?

All well pretty much all the files are in lost and found, I had a corrupt drive and before I quite knew what I was doing I used xfs repair most of the files have names but a lot have numbers Can I ...
Peter Robertson's user avatar
3 votes
4 answers
1k 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, ...
Philip Couling's user avatar
0 votes
0 answers
574 views

XFS superblock not found

I had an old drive beginning to fail and my backups were no good apparently. I got a new drive larger than the failed one and was able to ddrescue it over, with bad/missing superblocks of course. ...
MaKR's user avatar
  • 181
0 votes
0 answers
553 views

How to auto-recover after unclean shutdown?

I have an embedded system that I do not have very easy access to. Although in retrospect, I shouldn't have built it this way, but the only way to shut down the system is to kill power. This works 99.9%...
dberm22's user avatar
  • 113
1 vote
0 answers
52 views

Parsing xfs_quota -c 'free' output with bash

Is it possible to parse the output of xfs_quota -c "free" /mnt/xfs in a deterministic way? The problem is that depending on the length of the path to the block device mounted on /mnt/xfs its ...
Rovanion's user avatar
  • 959
1 vote
1 answer
402 views

What is the difference between the chattr and setfattr command

At the Veeam Documentation, I read that the chattr and setfattr commands need to be supported: https://helpcenter.veeam.com/docs/backup/vsphere/hardened_repository_limitations.html?ver=110 I have ...
Nightscape's user avatar
1 vote
1 answer
789 views

How to Verify a Fix to smartctl Error?

My harddrive got some errors per smartctl short test result (see below). Then, I just zero-ed out data on my disk first for privacy reason: sudo dd if=/dev/zero of=/dev/sdc1 bs=1M sudo dd if=/dev/zero ...
HCSF's user avatar
  • 213
0 votes
0 answers
677 views

How do I recover data from xfs and ext4 filesystem

Hi guys I just wanna know if there’s a simple command to recover a simple data file such as vi text in ext4 and xfs filesystem in linux
Tae's user avatar
  • 1
0 votes
1 answer
1k views

Bad magic number while trying to mount a new hard disk

Im using RHEL 8.7 I've added new HD nvme0n2 to my linux and created partititions successfully the output of lsblk -f NAME FSTYPE LABEL UUID ...
Raj Parayane's user avatar
1 vote
0 answers
2k views

how to solve `XFS Filesystem has duplicate UUID - can't mount` without reboot?

I use udiskctl to mount my usb disks. From time to time my usb hub has power problem that when I turn on some device using large current, the hub will reset all connections. This results in ...
Wang's user avatar
  • 1,306
0 votes
0 answers
2k views

Repair disk with xfs_repair fails

I am trying to repair a disk with xfs_repair after unmounting the disk as below. However I am still getting input/output error. I have some important data to recover. Is there any way to recover? ...
xrkr's user avatar
  • 279
1 vote
1 answer
351 views

Unable to figure the permissions required by lstat

I am running into this weird permission issue on Debian 10, with lstat call on XFS filesystem. I have been referring to this link to understand how extended ACLs will work The man page says that ...
viral_mutant's user avatar
1 vote
0 answers
323 views

can't read superblock on /dev/nvme0n1p1. (xfs)

The Disk Type : xfs Suddenly we can't access the data from the Hard Disk. We got the following error while trying to mount the disk using this command : mount /dev/nvme0n1p1 /000. mount: /000: can't ...
Sathya's user avatar
  • 31
1 vote
1 answer
2k views

Resize an xfs-formatted logical volume group

My partitions currently look like this: sda 8:0 0 1.8T 0 disk └─sda1 8:1 0 1.8T 0 part /mnt/storage sdb 8:16 0 119.2G 0 disk ├─sdb1 ...
MathIsNice1729's user avatar
3 votes
4 answers
1k views

missing disk space on server

I have a weird problem on one of our servers. Almost half of my disk space is missing. df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 271G 122G 149G 46% / devtmpfs 3....
user1403360's user avatar
  • 2,020
0 votes
0 answers
38 views

Buffalo NAS access FILEIO

Alright my Linux gurus, i have a situation. I am trying to recover data from a Buffalo NAS with 12 4 TB drives in RAID 6 totaling close to 40 TB on one array. It shows that the drive has around 36 TB ...
NeoTom's user avatar
  • 1
1 vote
0 answers
124 views

Corrupted LUKS Header, Restoring Header does not work

Sorry for my English. A few days ago, during a routine work, I suddenly lost access to the encrypted xfs partition. I did a reboot of the computer that got stuck. After the reboot, the partition was ...
TobinFrost's user avatar
3 votes
2 answers
4k views

NTFS mount under Linux: Slow transfer speeds

I am migrating my home server from Windows to Ubuntu server 22.04. Some of the data I am migrating is on an NTFS drive and I want to transfer this data to a new (second) drive which is using XFS. ...
flamemagister's user avatar
2 votes
1 answer
609 views

Is it possible to have the External XFS Journal on a RAM disk?

Oracle suggests to have the external journal on a low latency device. The default location for an XFS journal is on the same block device as the data. As synchronous metadata writes to the journal ...
ceving's user avatar
  • 3,599
2 votes
2 answers
4k views

Filesystem with checksums?

I have a single hard drive. I want to use a filesystem that will give me less storage space, but as a tradeoff, give me checksums or any other method to help preserve data integrity. It is my ...
gfdjjrtiejo's user avatar
2 votes
0 answers
936 views

How do I determine what files are affected by bad blocks on a disk that uses LUKS and XFS?

Here is my setup: no partition, just LUKS1 and then XFS inside that. To confirm, the disk was set up like so: disk is installed, luksFormat, luksOpen, mkfs.xfs, mount, start using. First of all, what ...
gfdjjrtiejo's user avatar
0 votes
1 answer
1k views

Proper way of extend /opt with lvm and xfs filesystem

I am keen to know more about the proper way to extend /opt after additional hard disk 5GB with lvm and xfs filesystem. Kindly advised. Many thanks.
Nick eric adelee's user avatar
0 votes
0 answers
210 views

Add a disk into volume group

I want to extend a filesystem mounted as /a01 with XFS filesystem on an Oracle Linux 8.x system. I have an existing virtual disk with 50Gb /dev/sdc partitioned with fdisk as /dev/sdc1. My current ...
Merouan Ball's user avatar
1 vote
1 answer
724 views

How to let already copied files share fragments (reflink)?

I copy a file to a different XFS volume on daily basis as follows: # on monday cp --sparse=always /mnt/disk1/huge.file /mnt/disk2/monday/huge.file # on tuesday cp --sparse=always /mnt/disk1/huge.file /...
mgutt's user avatar
  • 487
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 ...
aviro's user avatar
  • 5,632
0 votes
1 answer
2k views

Why XFS under LUKS encryption is so slow (Samsung 980 PRO SSD)

I tried to measure the overhead of LUKS/dm-crypt encryption on a XFS filesystem with default settings. It turned out that on a laptop with Samsung 980 PRO SSD (NVME variety) the overhead of git status ...
Igor Bukanov's user avatar
0 votes
3 answers
7k views

XFS: metadata I/O error in "xfs_trans_read_buf_map" error 5

Linux is continuously throwing these error logs: XFS: metadata I/O error in "xfs_trans_read_buf_map" at daddr ... len 32 error 5 XFS: xfs_imap_to_bp: xfs_trans_read_buf() returned error -5 ...
Megidd's user avatar
  • 1,559
0 votes
1 answer
669 views

prevent inode reuse

We are using Logstash to ingest our logs and we are facing some issues due inodes being reused. We tried all possible options on Logstash side so we are exploring the OS side. As far as I can see, if ...
sickfear's user avatar
2 votes
1 answer
5k views

Fail to format disk, missing mkfs file. [mkfs: failed to execute mkfs.* : No such file or directory]

While working on a fresh install of debian on GCP, I am trying to format a disk to xfs. sudo mkfs -t xfs -n ftype=1 /dev/sdb -f which gives me this error: mkfs: failed to execute mkfs.xfs: No such ...
Paulo's user avatar
  • 151
2 votes
1 answer
546 views

xfs - Can't have a partition outside the disk

My hard drive crashed and a restoration company was able to copy everything to another new drive. I think they used dd or similar. It had two xfs partitions. But, now I can only mount the first one. ...
virilo's user avatar
  • 21
2 votes
0 answers
687 views

xfs_quota and quota commands not working for NFS clients

I've been bumping up against this issue for years, but have never been able to find a resolution. Prior to RHEL7 (i.e. RHEL 5, RHEL 6, and CentOS 6), I was able to... Implement user quotas on my NFS ...
Will's user avatar
  • 23
0 votes
1 answer
113 views

Is it possible for an application to corrupt an entire filesystem?

OS is Debian 10. I was using Basilisk to install some old mac classic applications to a shared drive, ie "Unix Root", as the mac volume didn't have enough space. When viewing the installed ...
cat pants's user avatar
  • 487

1
2 3 4 5