Questions tagged [xfs]
Questions about XFS filesystem, utilities and other situations where XFS filesystem is relevant.
213
questions
0
votes
0
answers
29
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....
0
votes
1
answer
53
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 ...
2
votes
1
answer
62
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 ...
0
votes
0
answers
33
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 ...
3
votes
3
answers
430
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, ...
0
votes
0
answers
82
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.
...
0
votes
0
answers
93
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%...
0
votes
0
answers
25
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 ...
1
vote
1
answer
100
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 ...
1
vote
1
answer
200
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 ...
0
votes
0
answers
268
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
0
votes
1
answer
297
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 ...
1
vote
0
answers
315
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 ...
0
votes
0
answers
480
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?
...
1
vote
1
answer
104
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 ...
1
vote
0
answers
175
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 ...
1
vote
1
answer
531
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 ...
4
votes
4
answers
456
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....
0
votes
0
answers
22
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 ...
0
votes
0
answers
67
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 ...
2
votes
2
answers
2k
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. ...
2
votes
1
answer
313
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 ...
2
votes
2
answers
2k
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 ...
2
votes
0
answers
414
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 ...
0
votes
1
answer
623
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.
0
votes
0
answers
132
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 ...
1
vote
1
answer
358
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 /...
4
votes
0
answers
757
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 ...
0
votes
1
answer
1k
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 ...
0
votes
2
answers
4k
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
...
0
votes
1
answer
356
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 ...
1
vote
1
answer
2k
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 ...
2
votes
1
answer
318
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.
...
2
votes
0
answers
471
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 ...
0
votes
1
answer
76
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 ...
0
votes
2
answers
176
views
How to log flag changes to files on ext4 and xfs filesystems?
I was wondering how to log flag changes in a file, e.g. chattr +a somefile.
I realized that timestamps shown by stat somefile are not useful to audit flag changes: when the file is appended, it ...
1
vote
1
answer
292
views
Increase disk size and change from MBR to GPT
I have a CentOS server on VMware that has, among others, a disk of 1.5TB, with a single xfs partition using the whole disk. This disk/partition is running out of space, so I need to increase its size ...
0
votes
1
answer
730
views
On xfs, why can't I hardlink to /tmp/, giving the error "Invalid cross-device link" when my fstab indicates tmp is on the same partition?
My error:
ln "99700.fa821246f01ef7f3d86a503e33de5753b50640d69de790fd3db5a5dc31ffa45d1dc64a93f950379ee432aa27cbb0593e6e50ddbb6f8a7e279afaf90cec961233.png" /home/anon/foo.png
# ^ ...
-1
votes
1
answer
756
views
rhel + how to increase sdb1 after increasing sdb disk
on our rhel 7.2 VM server we increased the sdb disk ( not LVM ) from 200 to 220G , as the following ( sdb is with xfs fs )
sdb 8:16 0 200G 0 disk
└─sdb1 8:17 0 200G ...
0
votes
0
answers
560
views
lsof not working in emergency mode?
I have Linux Centos 7.
My server keeps booting in emergency mode:
xfs (dm-0): failed to recover intents
journalctl gives me: Failed to mount /sysroot
Mounting /dev/dm-0 fails to mount.
I'm trying to ...
1
vote
2
answers
1k
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 ...
0
votes
1
answer
237
views
Mount points overlapped
I have a VM with RHEL 6 where I have several disks with their respective mount points, they are in xfs and each one has a label which is declared in the fstab for each mount point
It happens that the ...
2
votes
2
answers
1k
views
Deduplicating Files while moving them to XFS
I've got a folder on a non reflink-capable file system (ext4) which I know contains many files with identical blocks in them.
I'd like to move/copy that directory to an XFS file system whilst ...
0
votes
0
answers
236
views
XFS and zero bytes files
I am trying to establish what has happened to my data.
Before I go into the history, can anyone explan the discrepency between these two outputs;
# du --si /var/media/footage/k0/09/99/88
1.6G /var/...
-1
votes
1
answer
2k
views
lsblk + file system type not appears from lsblk
we have VM machine with disks as sdb sdc sdd ,,, etc
we create ext4 file system on sdb disk as the following
mkfs.ext4 -j -m 0 /dev/sdb -F
mke2fs 1.42.9 (28-Dec-2013)
Discarding device blocks: done
...
0
votes
1
answer
210
views
Is there a file system out there that supports custom file size limit?
I'm aware that EXT4 has a max_dir_size_kb mount option to set up the max size of each directory. It doesn't have a similar option to specify the max size of individual files, though.
Is somebody aware ...
2
votes
0
answers
729
views
Extremely poor performance for ZFS 4k randwrite on NVMe compared to XFS?
I've been a fan of ZFS for a long time and I use it on my home NAS, but in testing its viability for production workloads I've found that its performance is inconceivably bad compared with XFS on the ...
0
votes
2
answers
182
views
How can I extend lvm+xfs with no free partitions
I'm stuck with a centos 7 vm with 1 disk that has 4 primary partitions created... and now I need to add more space:
It currently looks like this - simplified:
mount
/dev/mapper/centos-root on / type ...
1
vote
0
answers
2k
views
mkfs complain about disk is apparently in use by the system
on our rhel server we want to re-create ext4 filesystem as
[root@worker ~]# mkfs.ext4 -j -m 0 /dev/sdd -F
mke2fs 1.42.9 (28-Dec-2013)
/dev/sdd is apparently in use by the system; will not make a ...
4
votes
4
answers
2k
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 ...