Questions tagged [ext4]

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

Filter by
Sorted by
Tagged with
5 votes
4 answers
2k views

Effectively handling 2+ million files

I have a file based DB that has about 2M files stored in 3 levels of subdirectories. 2/2/6253 2/2/6252 ... File a vary from 30 bytes to 60 KB. Whole DB is Read Only. DB is about 125 Gigabytes big. ...
Worker's user avatar
  • 647
3 votes
1 answer
2k 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'> <name>guest_images_disk<...
user2887201's user avatar
1 vote
1 answer
282 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 ...
sardean's user avatar
  • 843
2 votes
2 answers
671 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 ...
rlbond's user avatar
  • 181
2 votes
2 answers
12k 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 ...
Thomas Lynema's user avatar
5 votes
1 answer
1k 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 ...
Leandro Ferreira's user avatar
1 vote
0 answers
664 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 /dev/...
Sleeper Smith's user avatar
3 votes
2 answers
4k 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 ...
Moff Tigriss's user avatar
5 votes
3 answers
23k 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) ...
Sirch's user avatar
  • 5,815
0 votes
1 answer
1k 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 ...
sardean's user avatar
  • 843
0 votes
1 answer
268 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 ...
Ostati's user avatar
  • 103
2 votes
2 answers
10k 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 ...
Manju Kb's user avatar
0 votes
1 answer
2k 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 ...
user2363318's user avatar
3 votes
3 answers
15k 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 ...
woter324's user avatar
  • 253
5 votes
1 answer
4k views

Cannot remove mount option "discard" on an ext4 file system

I tried to turn off TRIM ("discard") on my ext4 filesystem, but I did not succeed. I tried to add nodiscard option into /etc/fstab, but I can still see this: # tune2fs -l /dev/md2 | grep ...
Alex Flo's user avatar
  • 1,821
3 votes
3 answers
199 views

How can I modify the wtime of ext filesystem

How can I modify the superblock of an ext filesystem so that I can set the field wtime (Last write time)? I've tried with debugfs: debugfs 1.42.9 (4-Feb-2014) debugfs: open /dev/sdd2 -w debugfs: ...
bat_ventzi's user avatar
0 votes
0 answers
278 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 /...
alexandernst's user avatar
5 votes
3 answers
3k views

How to recover data from a messed up drive (LVM written on top of Ext4)?

The previous administrator of a server that is now under my supervision made a mistake. He accidentally created a LVM volume (no more than pvcreate, I think, though not sure) on a disk that actually ...
Vilx-'s user avatar
  • 853
-2 votes
1 answer
8k views

Centos 5.5 [Read-only file system] issue after rebooting [closed]

I have a virtual server under centos 5.5 (hosted by a japanese company called sakura ) Since yesterday, connection through ssh couldn't be established. I've contacted support center who told me to ...
canu johann's user avatar
1 vote
1 answer
115 views

First 500MB of RAID6 array is wiped, how to recover?

We have a RAID6 array with 12 disks on a 3ware 9650SE-12ML controller. An engineer of our server provider issued this command by mistake: sudo dd if=/dev/zero of=/dev/sde bs=1M count=500; sync; /dev/...
refik's user avatar
  • 193
30 votes
2 answers
58k views

Transparent compression filesystem in conjunction with ext4

I am trying to test a project that needs compressed storage with use of the ext4 file system since the application I use relies on ext4 features. Are there any production/stable solutions out there ...
user235918's user avatar
2 votes
1 answer
2k views

impossible creating a ext4 fs with block size of 1024

Im triying to build up a new server for a service that saves the data on very small files of max 1 kb on the fs. The problem its, now we are using a block size of 4 kb and we are wasting a lot of ...
PsySkeletor's user avatar
0 votes
0 answers
576 views

Linux filesystem ext4 fragmentation

I have a question about the filesystem ext4 and disk fragmentation: Does ext4 place files in the same directory near or next to each other on the disk? And if so how is it fragmented, for example is ...
klaasio's user avatar
  • 79
1 vote
1 answer
672 views

How can I grow an ext4 filesystem inside a dm-crypt/LVM volume?

I have a disk with this format: sdc 8:32 0 1,8T 0 disk └─sdc1 8:33 0 1,8T 0 part ├─vg-lv1 (dm-0) 254:0 0 900G 0 lvm /...
Valmiky Arquissandas's user avatar
5 votes
0 answers
1k views

Cannot set ACL on ACL-enabled EXT4 partition

I am trying to enable xattrs and acls on a Debian machine. I've (re)mounted the partition in question with user_xattr and acl. (/dev/md3 is the partition in question) root@fs01:/# mount | grep /dev/...
Chris's user avatar
  • 248
10 votes
1 answer
62k views

Remount root RW without reboot

Today I did something stupid on production xen vm server. I mounted the external device mapper as read only to make a copy of the filesystem. This process went well but then the rootfs / become read-...
posixcompliant's user avatar
0 votes
0 answers
544 views

Replacing files with symlinks takes more space - Fedora19 EXT4

Background: We are using PHP CacheLite. In order to have a human readable path to cache files cache_{hash}_{hash}, there is a symbolic link that is more descriptive of the cache contents. We ...
Richard Ginsberg's user avatar
0 votes
2 answers
653 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 ...
geoweaser's user avatar
1 vote
1 answer
2k views

Software-RAID with ext4 but without 64bit support

last year I set up a Software-RAID5 with 5x3TB yielding 12TB of usable capacity. Just today, needing more storage, I have finished growing the RAID to two more 3TB disks: Personalities : [linear] [...
Frederic Beister's user avatar
3 votes
1 answer
552 views

How do I replace the root filesystem (ext4) with a new one in LVM with one which has more inodes?

I have a few systems which have been running over a decade in a cluster on SLES 10 (now long past EOL). We're migrating to CentOS 6 64-bit. I got everything done but the final data syncs, and lo and ...
Fairlight's user avatar
0 votes
1 answer
422 views

How do I allow users to add/modify files in a directory but not change the directory - Linux

How can I modify a directory so that it is owned by a group and users in that group can add and delete files and create sub directories but are unable to change the permissions on the parent directory?...
Peter's user avatar
  • 1,102
0 votes
1 answer
2k views

fsck ext4 inode error

Today while I was booting I got an error in an ext4 partition with some inodes. I just entered the root password and run fsck manually but I am a bit worried. fsck warned many times about some errors ...
Javier's user avatar
  • 105
2 votes
1 answer
11k views

Loss of data when trying to fix ext4 "group descriptors corrupted!"

When I try to mount an existing disk, I get the message sudo mount -t ext4 /dev/sdc1 /data mount: wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, ...
Ryan's user avatar
  • 6,041
-2 votes
3 answers
667 views

Sharing disk space between two Ubuntu hosts [closed]

I have two Digital Ocean droplets (Ubuntu 14.04 LTS VPS instances): Alice: 40GB disk / 38GB used Bob: 20GB disk / 2GB used Alice’s storage needs will continue to grow slowly but steadily. Rather ...
Ryan's user avatar
  • 81
4 votes
2 answers
20k views

How to increase inodes? [duplicate]

How can I increase the maximum amount of inodes available on a dedicated server running CentOS 6.5 and ext4? The websites we are hosting create and use millions of small files. We are already hitting ...
user1155594's user avatar
2 votes
1 answer
301 views

How to add partition table to existing EXT4 filesystem

I have software RAID6 on 8x3TB disks (18TB), there is filesystem od device /dev/md1, but EXT4 can`t be bigger than 16TB so there is 2TB of free space. I would like to use this space. My first idea was ...
user3153187's user avatar
5 votes
2 answers
3k views

Best parameters for ext4 filesystem for storing virtualbox disk images

I have partition, which I'm going to use for keeping VirtualBox disk images (VDI, or may be VMDK). They are fixed-size (not dynamically-allocated) images. There are no other files/directories on ...
Sasha's user avatar
  • 158
1 vote
0 answers
5k 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 ...
biophonc's user avatar
  • 129
1 vote
1 answer
4k views

/proc/self/mountinfo per-mount-options vs per-super-options

I am trying to check for the current status of a mounted partition, rw/ro. On Cent6 /proc/self/mountinfo has some interesting info. One of the items contained in the output for each mount point is "...
Matty's user avatar
  • 163
2 votes
0 answers
2k views

ext4 root filesystem corruption under XenServer 6.2 DomU

We're with a problem with filesystem corruption in guest machines in a XenServer 6.2 It only happens in Linux Machines. Randomly the filesystem remounts as read-only and them corruption starts on the ...
Vinícius Ferrão's user avatar
7 votes
1 answer
2k views

Failing to mount root from ramdisk while PXE boot

I have a working TFTP/DHCP PXE boot environment where I've already booted some images successful. Now I built an CentOS 6.5 diskless image and this one is failing booting with the following error: No ...
marcap's user avatar
  • 71
0 votes
1 answer
624 views

Why is file rewrite slower?

on Linux, using various benchmark tools (bonnie++, iozone, etc) on ext4 (but i guess it's the same on other FS), rewrite is always slower than write to new files. For example, using bonnie++, with ...
Benoît's user avatar
  • 1,351
0 votes
1 answer
303 views

ext4 production ready on kernel 2.6.32 (debian6)?

I've to maintain a production system on debian6 (kernel version 2.6.32). I'd like to use ext4 on a ssd disk (and generally hope to improve performance upgrading from ext3). I can't find any reference ...
Fabio Bonfante's user avatar
-1 votes
3 answers
1k views

What happens if fsck.ext4 -y is run on a ext3 fs and how to I recover from it

I had a mountable fs (pretty sure it was ext3), fsck.ext4 was run with -y and ended in a segmentation fault. Now it is unmountable (dmesg says it's corrupt) and identifies as a ext4 fs via the "blkid" ...
FeelTheBurns's user avatar
1 vote
1 answer
2k views

Qnap TS-410 deleted folder by accident anyway to recover data (raid 5 / ext4)?

I am not in a very good situation at the moment, and bit stressed! I have a Qnap nas (TS-410), this operates on a Marvell 6281 800MHz CPU, while I SSH'ed into the Nas box, I deleted the wrong folder ...
Dino's user avatar
  • 111
2 votes
0 answers
1k views

SMB Share (samba) Centos 6 Mounted hard drive Permission Denied

I have set up a SMB share on Centos for all users. This share is available and working correctly. Guide followed -> CentOS 6.4 Samba Standalone Server With tdbsam Backend Procedure: For diagnostic ...
dooffas's user avatar
  • 325
4 votes
1 answer
2k views

Kickstart partitioning with ext4 in autopart mode?

When installing CentOS 6.x, how to specify the filesystem type with ext4 and also use the autopart directive in kickstart file? The default filesystem type with autopart directive used is ext3, which ...
boydc2011's user avatar
  • 141
0 votes
1 answer
6k views

Errors when repairing ext4 filesystem

I just tried to boot from live CD and checked my file system using fsck,fsck.ext4, no errors was reported/fixed (i.e. says file system is clean), yet when I'm inside of system it tells me something ...
alexus's user avatar
  • 13.4k
3 votes
2 answers
2k views

FS for many small files, mostly reads?

I need a direction since all the blogs/benchs seems to contradict. Goal: Having a lot of small files on FS in a directory tree fashion similar to this AB/CD/EF... Two size groups : G1 : 10-20 kB G2 : ...
Larry's user avatar
  • 145
0 votes
1 answer
2k views

remount / move root folder to another partition on centos

We have an EC2/CentOS6 instance with "/" mounted to an EXT4 partition, and now another bigger sized hard disk formatted in XFS attached to the system. Since the former partition for "/" is ...
Jason Hsu's user avatar
  • 129

1
3 4
5
6 7
10