Questions tagged [xfs]
Questions about XFS filesystem, utilities and other situations where XFS filesystem is relevant.
193
questions
0
votes
0
answers
28
views
XFS on iSCSI drive
I'm trying to setup an iSCSI disk array using pooled disks over an iscsi link. Both the server and storage array are on 10Gbit links. However when I create the XFS filesystem and try to copy data onto ...
0
votes
0
answers
39
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 ...
0
votes
0
answers
21
views
How to access xfs partition encrypted with LUKS backed up with dd
How to access xfs partition encrypted with LUKS backed up with dd?
Some time ago I've backup up two disks from old laptop. One of them was encrypted with LUKS and inside it there was xfs partition. ...
1
vote
1
answer
61
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 /...
2
votes
0
answers
89
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 ...
-1
votes
1
answer
240
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
582
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
97
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 ...
0
votes
1
answer
397
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
100
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.
...
1
vote
0
answers
166
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
45
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
0
answers
61
views
Recover XFS Overwritten partition with backup disk
I added an OS disk as a secondary disk to a VM in Azure. It had boot problems suddenly after a VM resize with errors like: "error: no such device: root.". So I thought, I will add the disk ...
0
votes
2
answers
57
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
68
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
156
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
# ^ ...
0
votes
0
answers
21
views
xfs uses more space than it has stored in files [duplicate]
Why do I see more "used" space in df than in du?
$ grep bk0092 /etc/fstab
UUID=c614803f-49da-4eda-aeb1-c9b3e0056e73 /repo/bk0092 xfs defaults 0 0
$ df -h /repo/bk0092/
Filesystem ...
-1
votes
1
answer
117
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
240
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 ...
0
votes
0
answers
66
views
How to rebuild original file structure from the "Lost" folders that show in UFS Explorer Professional Recovery
"Documents" folder had been deleted on CentOS which used LUKS & XFS. UFS Explorer Professional Recovery has been able to recover what it seems all documents that were inside this folder ...
1
vote
2
answers
555
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
82
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
322
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
119
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/...
0
votes
1
answer
311
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
94
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 ...
1
vote
0
answers
385
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
71
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 ...
0
votes
0
answers
678
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 ...
3
votes
3
answers
884
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 ...
0
votes
3
answers
883
views
CentOS 8 Increase disk partition and /var file system while system is running
I have /var file system part of /dev/sdc1 disk. I need to increase this disk size from 25GB to 60GB. I have increase the disk size. Now I am looking for the correct steps to increase the sdc1 ...
1
vote
1
answer
2k
views
Why can't we reduce XFS filesystem?
I know that we can't reduce XFS file-system and it's not supported. However I would like to know the reason why xfs don't support shrink.
0
votes
0
answers
56
views
Full system partition, moving system folders and editing fstab
I have two partition one with system and other partition with home and data. I found this question
that have solution to my problem, but I'm not sure how exactly to apply it to my system, what I'm ...
2
votes
1
answer
463
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 ...
0
votes
1
answer
1k
views
Backup and restore of root file system (Ubuntu 20.04)
It seems I will have to move my root FS from XFS v4 to v5 because there seems to be a move to remove v4 support from Linux kernel. I can use tar to backup and restore files but I am not sure if that ...
3
votes
0
answers
2k
views
XFS metadata I/O error
Something odd for a couple of days. I've just noticed a lot of error messages in dmesg.
[11:34:02 2020] XFS (dm-5): metadata I/O error: block 0xf577b6e0 ("xfs_trans_read_buf_map") error 5 ...
0
votes
1
answer
60
views
Are XFS quotas and linux quotas part of the same thing?
I see there are two ways to create quotas, there is xfs_quota and then this suite of utilities like edquota and repquota. It seems all of these utilities can provide inode quotas. How does that tools ...
0
votes
1
answer
39
views
Fixing xfs fs error lives on home directory
How to fix xfs fs error on home directory as unmount it will get denied/prevented ?
-1
votes
1
answer
120
views
Should the storage device be stopped before using xfs_growfs?
My cloud server has an external device formatted as XFS. After expanding the volume, I will need to run the command:
$ sudo xfs_growfs /dev/sdb
Since it is critical for a service to keep writing on ...
-2
votes
1
answer
7k
views
xfs_repair /dev/sdb + could not find valid secondery superblock
we have rhel 7.2 machine , and machine is VM type
since one of the machines disk failure,we performed xfs_repair /dev/sdb ( in single user mode )
finally after 1 hour we get the following message
...
0
votes
1
answer
830
views
increase /var partition by adding few disks
Before one year I extend the /var on the redhat 7.x server as the following from 100G to 200G
notes:
a. VG-A is the VG
b. server is VM server
c. file-system is XFS
procedure:
1. pvcreate /dev/sdb
2. ...
1
vote
0
answers
69
views
Where can I see the difference in those mounts?
# mount | grep 'rootvg-var\b'
/dev/mapper/rootvg-var on /var type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/rootvg-var on /var/lib/docker/containers type xfs (rw,relatime,seclabel,...
2
votes
1
answer
5k
views
xfs filesystem - changing ftype=0 to ftype=1
I have Centos 7.7 with xfs filesystems where each was created with ftype=0, for example:
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
Is is possible to change/convert it to ftype=...
0
votes
1
answer
430
views
XFS space full and also inode got full too? How could this happen?
# df . -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vgFOO-lv_bar 53136 52857 279 100% /bar
# df . -h
Filesystem Size Used Avail Use% Mounted on
/...
0
votes
0
answers
323
views
birth/crtime timestamp is recorded on one xfs but not the other xfs filesystem
Two different xfs filesystems on two different Fedora.
Why one of them records Birth(crtime) in the inode and why the other one doesn't?
How to find the configuration/attribute differences between ...
1
vote
1
answer
903
views
Linux I/O Deadlock since Kernel Upgrade
I have been using Linux-Kernel 5.4.35 (and newer versions) after upgrading from 4.19, and ever since that my hpsa md RAID 0 hangs after some days (2-3 Days), RAID changes to read-only/I/O rejected. (...
-1
votes
1
answer
58
views
Linux start without mount to /var
after reboot the rhel machine , we noticed that server isn't up
and when access the OS to single user mode we can see that /var not mounted
therefore we perform xfs_repair but its hang for 5 hours
...
0
votes
0
answers
291
views
1T USB drive will not accept ext4 or xfs filessystem
I bought two 1T USB drives that I wanted to use for a backup media. They came default with exFAT on them and I can mount them with fuse drivers on Centos. But I would rather use a native filesystem ...
1
vote
0
answers
145
views
What is mounted on what with xfs; storage drivers for docker
I have a virtual redhat linux machine, that I am using for Docker. Apparently, I haven't set it properly up for production mode as I am still running the storage mode as a loop-back device with ...
0
votes
0
answers
62
views
XFS partition in Volume Group is suddenly showing up as Atari partition
I have a server with a large amount of data stored in an XFS partition within a Volume Group spanning a couple physical drive and numerous segemnts/extents.
Suddenly, in the last couple hours, the XFS ...