Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ext4]

The ext4 or fourth extended filesystem is a journaling file system for linux/*nix developed as the successor to ext3.

0
votes
0answers
12 views

Block level deduplication estimate on ext4

I'm thinking of changing an ext4 filesystem to a btrfs one, the only gain I hope to have is deduplication. I know there's no dedupe on ext4, but is there some tool that can give me an estimate of what ...
0
votes
0answers
27 views
+50

Hard drive with many hard links 'fills' almost overnight

I recently installed a cheap 2tb hard drive on a server for backing up files which are also backed up elsewhere. It's basically an overflow drive. The other drives on the server are configured as 1TB ...
0
votes
0answers
14 views

Can I truncate a corrupt directory?

Virtual machine was abruptly killed and the fs is now in an unclean state. Linux would not start, geting stuck on fsck. When I mount the image: mount /virtual_drives/biginfoservice /mnt -o loop,...
1
vote
1answer
32 views

Why is UUID missing after creating ext4 filesystem on RHEL7 ec2 instance

I'm using Ansible to configure a server. This server is running on AWS Ec2 and I'm attaching to it four EBS drives. When I run my ansible playbook it will fail about 50% of the time. The failure is ...
2
votes
1answer
60 views

mkfs -O ^64bit,^metadata_csum -t ext4 in 2019

Thomas Krenn recommends creating ext4 partitions like: https://www.thomas-krenn.com/de/wiki/FSCK_Best_Practices mkfs -O ^64bit,^metadata_csum -t ext4 what does this mean? does this have anything ...
2
votes
1answer
77 views

quotacheck: Cannot stat() given mountpoint –cugv: No such file or directory

I am trying to enable quotas on an ext4 partition of a Debian 9 VM. The partition is mounted on /public with the usrquota,grpquota options. The machine has been rebooted. Here is what happens: root@...
10
votes
4answers
453 views

Options for performance improvements on very big Filesystems and high IOWAIT

I have a Ubuntu 16.04 Backup Server with 8x10TB HDD via a SATA 3.0 Backplane. The 8 Harddisks are assembled to a RAID6, an EXT4 Filesystem is in use. This Filesystem stores a huge amount of small ...
0
votes
2answers
89 views

Copy LVM Volume Group to a new single hard disk

I have a headless Ubuntu (18.04) server with 3 hard drives each partitioned to a single lvm volume group for a combined size of 6Tb. I recently purchased a new hard drive that is 8Tb and I want to get ...
0
votes
1answer
50 views

ext4 mysterious “No space left on device” error

Im having trouble with my ext4 filesystem. Im using this with NFS to make it available to remote machines. Now its showing a mysterious "No space left on device" error when im trying to mkdir $name ...
0
votes
0answers
29 views

What File systems can I use with Samba VFS Shadow Copy

I have an up and running file server running a LVM managed mirrored array and Samba Version 4.5.12-Debian. I want to add some protection against accidental deletion / overwrite. The protection only ...
1
vote
1answer
90 views

how to get kubernetes to mount ext4 volumes over iscsi in journaled mode instead of ordered

I'm running kubernetes on Ubuntu 18.04.1, running some of my pods with mounts via ISCSI. I've noticed recently (maybe due to improperly unmounting the iscsi volume or for other reasons) that at ...
0
votes
1answer
567 views

How to recover an ext4 signature deleted with fdisk?

While resizing an EBS volume on Amazon AWS I accidentally deleted the ext4 signature. root@server:~# fdisk /dev/xvdf Welcome to fdisk (util-linux 2.31.1). Changes will remain in memory only, until ...
2
votes
2answers
436 views

Centos 7 - fstab does not mount some partitions, but mount /dev/sd* does

i have a Virtual Machine with Centos 7, on which i want to mount some ext4 partitions. Physical disks are actually hard disks provided by vSphere. All disks are located on the same NAS - so the three ...
1
vote
1answer
159 views

Make Ubuntu Server use less swap and more actual RAM

I have a server with 128 GB of RAM and a 100 GB hard drive in it. It seems to use pretty much swap instead of using actual RAM when rsyncing disks. I found other questions on Stack Overflow with ...
1
vote
0answers
32 views

KVM: Is it possible to detect guest disk was mounted RW?

Let's assume I have a KVM-based virtual machine. There is a volume that contains the operating system and the data. I know it is possible to access from host at least READ-ONLY the filesystem which ...
2
votes
1answer
53 views

Uneven disk load with mdadm RAID5 and ext4 filesystem with journal

Recently I created a RAID5 with mdadm: mdadm --create /dev/md0 -l 5 -n 4 -c 512 /dev/sdb /dev/sdc /dev/sdd /dev/sde The usual tuning to speed up the initial sync: echo 32768 > /sys/block/md0/md/...
0
votes
0answers
27 views

What a recovery of a deleted file a journaling file system depends on?

I presumed relatively freshly deleted files are nearly guaranteed to be restored. But in an experiment which consisted of the following steps: rm a folder from an ext4 partition unmount the partition ...
0
votes
1answer
310 views

How to delete files after EXT4-fs error: Directory hole found

I have a specific directory where I am unable to delete the files or the directory. The directory is on an ext4 file system, using RAID5 over 3 disks on a QNAP NAS. Using rm -f gives me: rm: unable ...
0
votes
2answers
67 views

Partitioning - Is 5% reserved blocks required/recommended?

I'm performing a new Ubuntu Server installation, on hardware RAID 10, 6 x 1.72TB SSD, total space to partition is 5.8TB. The server is going to be used for KVM virtualisation. I've allocated 500MB ...
1
vote
0answers
40 views

Is it possible to relink an Inode in EXT4 with it's original filename

Ok, so foolish idiot here, trashes his postgresql data directory, right at the very moment when his backup routine is currently in the "delete old files" and "create new files" phase. As a result, Iv'...
2
votes
1answer
101 views

rsync file size discrepancies [duplicate]

I have a few PC's with an ext4 filesystem that I want to backup to a file server which is also ext4. Problem is there are some discrepancies in file sizes when using rsync, and I have noticed this is ...
0
votes
0answers
27 views

Inheriting Permissions for New Files

I'm having trouble getting inherited permissions to work on an ext4 filesystem. In fstab I added the acl attribute, and when I try the following I expect the new files to get rwxrwx--- permissions, ...
0
votes
1answer
29 views

Strange file corruptions in ext4

Recently I came in contact with what appears to be disk corruption scenarios, and I would like to understand them better. I have a build server which I work with daily. During one full build of a ...
1
vote
1answer
124 views

File system, that handles over 2 million files

I'm going to store files in one folder in my server. The amount of files will exceed 2 million. Each file size will have range between 5MB - 100MB. What kind of file system can handle well that ...
3
votes
2answers
279 views

How does SSD meta-data corruption on power-loss happen? And can I minimize it?

Note: This is a follow-up question to Is there a way to protect SSD from corruption due to power loss?. I got good info there but it basically centered in three area, "get a UPS", "get better drives",...
14
votes
3answers
4k views

Is there a way to protect SSD from corruption due to power loss?

We have a group of consumer terminals that have Linux, a local web server, and PostgreSQL installed. We are getting field reports of machines with problems and upon investigation it seems as if there ...
0
votes
0answers
16 views

Resize (enlarge) filesystem to partition size [duplicate]

I've got an 16GB SD card with Raspbian on it. $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 8.0 (jessie) Release: 8.0 Codename: ...
1
vote
0answers
29 views

Tried to recover a Ext4 Superblock to a CEPH disk

We have a server with Proxmox installed with Debian, it's an dedicated server (sda). The VM's are being backed up every night on a CEPH disk (sdb). After an reboot of the dedicated, the ext4 drive ...
0
votes
1answer
108 views

ext4 corruption leading to unbootable disk. Partition is mountable, but grub detects unknown filesystem

I'm trying to recover from a system disk corruption issue without having to reinstall the OS, which would be super-painful currently. I'm using Ubuntu 18.04, the affected partition is ext4 and on a ...
0
votes
1answer
626 views

Is there any way to mount an EXT4 file system with errors?

I may have been somewhat foolish, but kept putting off the warning signs about the impending failure of my EXT4-on-LVM Ubuntu machine (like the partition remounting itself R/O, SMART errors, etc.) and ...
0
votes
2answers
708 views

File system keeps becoming read-only

After working for a while, my filesystem (EXT4) becomes read-only. I then use my live USB to boot into live mode and I run fsck on the corrupted partition (and others too, to be safe). I run fsck -y ...
6
votes
3answers
556 views

Disabling ext4 write barriers when using an external journal

I'm currently experimenting with different ways of improving write speeds to a fairly large, rotating disk-based, software-raid (mdadm) array on Debian using fast NVMe devices. I found that using a ...
1
vote
0answers
69 views

I got a power loss and my directory became a file (ext4, ssd), what to do?

After a power loss 1 directory (maybe more, I don't know) just became a file on my SSD (ext4 fs): -rw------- 1 postgres postgres 16K May 15 20:06 stolon It was a directory! How could it ...
1
vote
1answer
54 views

Is GNU tar incremental backup reliable if ext4 is mounted with noatime?

My system is running on SSD on top of LVM logical volume, formatted to ext4. I'm using noatime option at my fstab for this partition. I'm going to do incremental backups of system partition using LVM ...
2
votes
1answer
63 views

Does ZFS, using default settings, use more physical space than ext4 for the same amount of data?

I'm currently considering a switch from ext4 to ZFS and am having trouble finding information about whether or not it uses more or less space to store the same amount of data as ext4. My understanding ...
1
vote
4answers
128 views

why does a file sometimes appear empty when being written to by another process

We have a situation where files are uploaded to a folder by FTP and then served by nginx. We've found that if the GET request immediately follows the modification of the file nginx returns files with ...
2
votes
0answers
134 views

Partition mounted and unmounted simultaneously

Edit: Narrowed this down to virtfs mounts. To jump to the question, mount says the partition is already mounted and umount says that the partition is already unmounted, and fsck agrees with mount. ...
3
votes
1answer
284 views

18TB with ext4 filesystem

I have the server with 4 disks 6TB each. At start disks were configured as RAID 10 and I had 11TB partition with ex4 filesystem on it. I grew up RAID from level 10 to 5 and now it’s 17.9TB. After ...
0
votes
1answer
222 views

RAID1 mdadm, automatically fail a drive and avoid a read-only file-system?

I am managing a server with two solid state drives configured in mdadm RAID1. The server is running RHEL6 with an ext4 filesystem. This evening the server went offline shortly after nightly backups ...
0
votes
0answers
75 views

Linux KVM readonly mount ext4 LV on host and guest simultaneously

Is it possible to read-only mount a Linux LVM Logical Volume ext4 (or 3) on both the host and the guest simultaneously? If ext3/4 cannot be used, is there any other well maintained FS candidate? ...
1
vote
2answers
261 views

How to pass multiple options to `tune2fs -E mount_opts`?

According to the manual: mount_opts=mount_option_string Set a set of default mount options which will be used when the file system is mounted. Unlike ...
1
vote
0answers
136 views

mdadm/ext4 chunk size on raid 1

Sorry for my noob question. I have a raid 1 system on mdadm in Debian, with the resulting partition formatted as ext4. Looking at the resulting share in Windows, it reports: Size: 618GB Size on disk:...
1
vote
1answer
223 views

Characteristics of Linux DUMP command

While looking at ways to virtualise (to KVM) an old, lightly used Linux server (to which I have root, but not physical access), I came acrossthis post which mentions a command I'm unfamiliar with - "...
0
votes
1answer
556 views

How to decrease the size of AWS EBS volume having xfs file system

I am having an EBS volume of 50 GB and I want to decrease it to 20 GB. The OS is centos 7 and has XFS file system. I have followed this link but it is more specific to ext4 and Ubuntu, can someone ...
2
votes
1answer
1k views

“Operation not permitted” on files over 2GB on ext4 filesystem

I have a bit of a mystery. I have an Ubuntu 17.04 system (upgraded from 16.04 LTS) using ext4 as it's main filesystem. I used wget and curl to download a 2.3GB iso, but i cannot mount it. In fact, I ...
1
vote
1answer
354 views

Recover partition table or MBR in EXT4 backup HD

I have a external USB HD for backup formated with EXT4. When I turned it on, it made some weird noise and I was unable to connect to it with ubuntu. Nautilus said unable to mount and many other ...
1
vote
0answers
26 views

My ext4 file system actually contains 2/3 as much as df/tune2fs says it does. Why? [duplicate]

I have a 45-ish-gig virtual drive connected to a VM as my root partition. root@alang-web:~# df -h Filesystem Size Used Avail Use% Mounted on udev 2.0G 0 2.0G 0% /dev ...
1
vote
2answers
373 views

How to display the ext4 inode flags?

We cannot create more than 65000 sub-directories on a ext4 file systems and one suspicion we have is that the directory was created with an older version of ext4 or a different feature set. I know ...
3
votes
0answers
123 views

What could go wrong with ext4 on LVM on a hardware RAID6?

Intro Recently one of my systems using ext4 on LVM on hardware RAID6 experienced a disastrous failure. To name some of the disasters: several filesystems failed beyond repair, at least one was ...
0
votes
0answers
136 views

Why is mounted nas showing 0 inodes on users partition?

I am using a NetGear ReadyNAS machine as a NAS for our server. The server is a linux CentOS 6.6. The server is run using Rocks cluster, with all our users' home directories located on the NAS. My ...