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

learn more… | top users | synonyms

0
votes
1answer
17 views

Are zero byte files an indication of file system corruption?

I recently noticed a strange behaviour. I could not restart a productive webserver running since more than a year because the configuration was invalid: # /etc/init.d/apache2 restart Syntax error on ...
0
votes
2answers
434 views

running mke2fs with limited memory

I'm working on a computer with very little memory (128MB) - for my application I need to format large drives (4TB) I'm able to format greater than 2TB disks, up to about 2.5TB, but beyond that I'm ...
1
vote
2answers
633 views

Permission denied to resize filesystem

Im attempting to resize a filesystem on a mulipathed volume that I've grown, rescanned all the disks, and resized the multipath map. # resize2fs /dev/mapper/my_vol resize2fs 1.43-WIP (20-Jun-2013) ...
6
votes
5answers
42k views

How to extend an ext4 partition and filesystem?

I have a 400GB disk with a 320GB ext4 partition. I would like to grow the ext4 partition to use the left space (80GB of free space). +--------------------------------+--------+ | ext4 ...
0
votes
2answers
54 views

Creative way to shrink a live ext4 filesystem from cloud provider?

When buying droplets, as DigitalOcean calls their cloud VM's, they are always configured with one large ext4 partition. I have an app that needs an LVM partition, so I need a creative way to shrink ...
3
votes
0answers
44 views

What does the mkfs.ext4 -G option do?

On Microsoft's Best Practices for running Linux on Hyper-V page it is recommended to use ext4 and not ext3 and "specify the number of groups to be 4096" using mkfs.ext4 –G 4096 /dev/sdX1. What is this ...
0
votes
1answer
896 views

Direct I/O on Linux

I'm trying to enable Direct I/O on /opt (/dev/sda6, ext4) on Linux Mint 13. What I'm trying is: mount -o dio,rw /dev/sda6 /opt as root. The system responds with: mount: wrong fs type, bad option, ...
0
votes
1answer
100 views

LVM on disk with no partition table. How to reallocate free space with fdisk?

I shrank an LVM in half using these commands: e2fsck -f /dev/VG/LV resize2fs /dev/VG/LV 5G lvreduce -L 5G /dev/VG/LV Inspecting the physical volume yields this: --- Physical volume --- PV Name ...
-2
votes
1answer
74 views

my ext3 to ext4 dont work

my tools on centos 5.11 kernel - 3.2.69 util-linux-ng-2.17 ( mount 2.17 ) e2fsprogs-1.41.14 grub-1.97 this tool and kernel are all working my steps boot on recovery change the fstab ...
5
votes
2answers
478 views

Why is my VM disc file more than 2x bigger then the actual FS?

I'm having a VM with a small Debian 7 server inside a VMware Player VM. The Disc has a maximum size of 55 GB, the virtual machine properties show a current size of 46.5 GB. No other discs/volumes are ...
1
vote
0answers
36 views

Why is nfs server not seeing resized filesystem size?

On the NFS server, when I extend the the logical volume (using lvm2) and subsequently the ext4 fs on top of it (using resize2fs), I'm able to see the new size locally with df. But the NFS clients ...
1
vote
1answer
39 views

df is reporting wrong information in an LVM

I had a full disk usage on /var/log (100%) and deleted a few files to increase space. this is and ext4 partition mounted with default options. However, when I df -h I get: Filesystem ...
8
votes
2answers
3k views

How to get checksum data integrity on ext4?

On file systems like btrfs you can preform a scrub, which will go though all the data to see if the data still matches the file system checksum. I would like to check the data on ext4 if it is ...
1
vote
0answers
39 views

Trouble creating ext4 filesystem when trying to mount EBS volume on AWS instance

I'm trying to mount an EBS volume on my AWS instance. Following Amazon's instructions, I get the following error when running sudo mkfs -t ext4 /dev/xvdf: Allocating group tables: done ...
1
vote
1answer
54 views

Why does /sys/fs/ext4/vda1 exist when /dev/vda1 is ext3?

I'm trying to tune my filesystem for some operations I have to do involving huge numbers of files. Then I got confused about what FS I'm even using. tune2fs -l /dev/vda1 contains: Filesystem magic ...
2
votes
1answer
123 views

Creating the exact size FS on xfs

I got a few hundred folders that I need to migrate to a new server. I've been asked to create a xfs FS for each individual folder. Ran a du so I know the exact size of each folder and specified block ...
1
vote
0answers
51 views

Alternative to ReiserFS for storing many small files in one block?

I know that ReiserFS is able to store multiple small files in a single block, and at one time was recommended for use with s3backer because of that feature, as fewer blocks to store on S3 mean lower ...
0
votes
2answers
44 views

mkfs.ext4 command not available in fedora 8

Is ext4 file system supported on fedora 8? If yes, then how do i enable it? I am unable to see format command for ext4. I can see only mkfs.ext3 and mkfs.ext2.
5
votes
1answer
129 views

Getting Error: “No space left on device” for a particular filename

I have a ext4 volume with lot of files inside a particular directory. Whenever I am trying to create a file inside it of a particular name, I am getting "No space left on device" error. $ touch ...
4
votes
1answer
2k views

Does increasing the journal size improve performance for ext4 filesystems?

There is an article on linux-mag which says that increasing the size of the journal on ext4 filesystems actually improves filesystem performance for very large partitions. I'm wondering if anyone ...
10
votes
10answers
1k views

How does the number of subdirectories impact drive read / write performance on Linux?

I've got an EXT3 formatted drive on a Linux CentOS server. This is a web app data drive and contains a directory for every user account ( there are 25,000 users ). Each folder contains files that ...
1
vote
1answer
57 views

Create KVM storage pool using a ext4 formatted drive

I have a secondary hdd that I would like to use as a storage pool for my KVM host. Here is the xml file I use to create the storage pool, <pool type='disk'> ...
8
votes
3answers
6k views

Linux: Why change inode size?

Tune2fs allows to change inode size from default (128 bytes on ext3, 256 bytes on ext4) to almost anything, but it should be power of two. What are the reasons for changing default inode size? Here ...
2
votes
4answers
3k views

How can I compact the VHD file with Ubuntu?

I use windows server 2008r2 with role Hyper-V. The guest system is Ubuntu 12.04 LTC. It is situated on the dynamic virtual hard disk. I want to compact this VHD (The real size is 50 GB, 360 GB on the ...
1
vote
1answer
42 views

Shrinking LVM Volumes

We have a Synology RS3614rpxs NAS head containing (9) 3TB hard drives in a RAID 6 + 1 hot spare. The storage became exhausted and we added an expansion chassis where 5TB hard drivers were installed ...
1
vote
0answers
2k views

recover a damaged partition table with ext4 fs

I have an external 2TB HD, that should have only one ext4 partition but the partition table is damaged and I'd love to rebuild/restore the partition. Things ain't that easy so here's the longer ...
0
votes
1answer
42 views

ddrescue — which files are in error locations?

I had a HDD crash and had to use ddrescue to restore it. It took a month, but it finally finished today. However, there were three errors that it could not read. Is there a way to find out which files ...
0
votes
0answers
146 views

XenServer CentOS VM: EXT4-fs error (device dm-2): ext4_journal_start_sb: Detected aborted journal

I have 2 different CentOS 6.4 VM's on 2 different Citrix XenServer and both have the same error within couple of few days. Output of messages: kernel: Aborting journal on device dm-2-8. kernel: ...
0
votes
1answer
533 views

XFS as default filesystem in the enterprise

After reading up on the whole data=ordered fiasco that EXT4 went through and how much support there was on it accommodating "broken" applications, I was surprised that a filesystem that is not ...
-1
votes
0answers
34 views

An ext4 filesystem spanning multiple RAID arrays and calculating alignment parameters [closed]

So I have the following setup: 3x4TB RAID-5 (Hardware RAID) (two data disks) 5x2TB RAID-5 (Hardware RAID) (four data disks) = six data disks in total? These will be encrypted using LUKS and then ...
3
votes
1answer
93 views

Pacemaker error on failback with drbd

I have two nodes in my cluster with drbd+pacemaker+corosync When the first node fails, the second assumes the service and it's ok, but when we have to failback (node1 back online) it shows some errors ...
13
votes
3answers
5k views

max files per directory in ext4

I manage an application that contains a filestore in which all the files are stored with the filenames equal to their md5 sums. All files are stored in one directory. Currently there are thousands, ...
4
votes
3answers
3k views

Can't resize2fs - combination of flex_bg and !resize_inode

I recently set up my first software raid with mdadm and after adding more disks to the raid I am unable to resize the filesystem to the full size of the raid. I created a single (~16TB) filesystem on ...
0
votes
1answer
417 views

How i can restrict certain file extension upload via ssh?

How can I restrict certain file extensions and file upload size via SSH? I am using Ubuntu 12.10 default installation and Open-ssh server.
0
votes
1answer
2k views

centos 6.3 increase disk size on /

I have a VM running CentOS 6.3. LVM is not installed. From the VM side, I have increased the underlying disk from 15GB to 40GB, so I now need to expand the partition and file system. I've managed to ...
1
vote
4answers
3k views

Slow ext4 fsck

Why fsck is so slow on ext4 filesystem? I was always using reiserfs or xfs and with those systems fsck was really fast, just few seconds. Now i decided to give a try ext4 but i'm dissapointed that ...
15
votes
4answers
797 views

Ensuring a repeatable directory ordering in linux

I run a hosted continuous integration company, and we run our customers' code on Linux. Each time we run the code, we run it in a separate virtual machine. A frequent problem that arises is that a ...
0
votes
0answers
100 views

Resizing a software RAID remotely, no LVM, / partition

I have a server that has a software RAID without LVM. That is only mdadm. There are the partitions /dev/sda2 and /dev/sdb2 which form /dev/md2. There is also a lot of space after both /dev/sda2 and ...
1
vote
3answers
5k views

Possible to mount an ext4 partition image via FUSE?

I'm attempting to mount an ext4 partition image in userspace. (no sudo, no special config/permissions modification to /dev/loop0 or /etc/fstab etc). So I'm hoping FUSE will come to the rescue. ...
0
votes
1answer
129 views

EXT4 Single Larger Volume or Many Smaller Volumes

My question is regarding the file system performance of EXT4 volumes relative to size. We have a NAS running any arbitrary Linux platform. The NAS has (12) 4TB disks in a hardware RAID 6 with LVM ...
0
votes
0answers
14 views

find space used by journal files

Is there any way to find the disk space used by journal. Running xfs on host and ext4 on guest. How can we see the space occupied by journals of these filesystem.is it possible.
0
votes
1answer
414 views

existing files are “invisible” to some applications

I have a problem with accessing files on an ext4 file system mounted as type NFS on a Linux server running CENTOS 6.5. I know the files exist on this file system because I can see them when I ...
0
votes
0answers
64 views

AWS volume from snapshot missing data

This is a weird one. On a new ec2 instance + new data volume attached at /dev/xvdb mounted with: mkfs -t ext4 /dev/xvdb mkdir /mnt/xvdb mount -t ext4 /dev/xvdb /mnt/xvdb I take a snapshot of ...
0
votes
0answers
24 views

use ext3 with inode size 128 and acl

i saw this in one of the docs that i had read Inode size: The default inode size is 256 bytes. Specify a value in bytes that is a power of 2 and equal to 128 or larger in bytes and up to the block ...
1
vote
1answer
76 views

Is it possible to update stripe-width on an existing, and used, ext4 fs?

I have a RAID 5 with 5 3TB drives (8 in few weeks), on a Debian. There is only one ext4 partition on it, using all the space available. Actually, due to origins of the RAID (4 drives), the ext4 fs ...
0
votes
1answer
75 views

Is my default File System ext4

By running df -hT that shows mounted file systems, how can I know if my default FS is ext4? Also as mentioned by one of the MongoDB engineers in this video (@1:13) from M202: MONGODB ADVANCED ...
0
votes
1answer
434 views

Warning :mounting fs with errors, running e2fsck is recommended

Linux server will hang and when I restart it will take around 2 hours to come up and resume normal operations. I checked the system log files and found mounting fs with errors, running e2fsck is ...
1
vote
2answers
1k views

Testdisk won’t list files for an ext4 partition inside a LVM inside a LUKS partition

I have accidentally deleted a file that I want to recover. The partition is an ext4 partition inside an LVM partition that is encrypted with dm-crypt/LUKS. The encrypted LUKS partition is: /dev/sda2 ...
11
votes
4answers
4k views

SSD TRIM (discard) problems with ext4 on Crucial C300 SSDs with CentOS 5.5

Playing around with using a modern kernel (2.6.37 currently) on an older OS (CentOS 5.5) so we can get TRIM (discard) working on our SSDs (Crucial C300s). The most recent hdparm (9.37) concurs that ...
3
votes
5answers
6k views

EXT4 “No space left on device (28)” incorrect

I have been through the other questions/answers regarding inode usage, mounting issues and others but none of those questions seem to apply... df -h /dev/sdd1 931G 100G 785G 12% ...