Products > Computers
Linux:: EXT4-fs odds?!?
madires:
Best current practice is to backup data, reformat partition with ext4 and restore data. A direct migration won't create a complete ext4. It's a well known issue.
0db:
--- Quote from: madires on April 04, 2020, 10:10:09 am ---Best current practice is to back up data, reformat partition with ext4 and restore data. A direct migration won't create a complete ext4. It's a well known issue.
--- End quote ---
Lesson learned :D
greenpossum:
--- Quote from: 0db on April 04, 2020, 10:03:05 am ---e2fsck is v1.44.5 (15-Dec-2018) and it was able to check and identifies problems with Ext4 on the crashed server, but not able to report any problem on the computer migrated from Ext3 to Ext4.
--- End quote ---
The thing is it never went to ext4, the migration didn't succeed and you then mounted it as ext4. That would be a problem. One of the steps is to check that it really is ext4 before trying to mount it.
Best practice is to do a backup of anything important. You can do the migration and if it succeeds you have saved a restore. Of course it's better if you start with ext4, but sometimes in real life you don't have the luxury because you have to do the change in place and hope that you won't need to activate plan B.
madires:
From https://docs.fedoraproject.org/en-US/Fedora/14/html/Storage_Administration_Guide/ext4converting.html:
--- Quote ---Whenever possible, create a new ext4 file system and migrate your data to it instead of converting from ext3 to ext4. This ensures a better metadata layout, allowing for the enhanced performance natively provided by ext4.
--- End quote ---
greenpossum:
--- Quote from: madires on April 04, 2020, 10:10:09 am ---Best current practice is to backup data, reformat partition with ext4 and restore data. A direct migration won't create a complete ext4. It's a well known issue.
--- End quote ---
To be precise, what happens is that existing files do not use the new features such as extents so you don't get full performance on those, but files created afterwards will. That includes copies, so if you know that a file needs the performance, say a DB file, you could make a copy and rename to the original name. While it's not in use, of course. Hopefully that's what you mean by "complete". It is a valid ext4 filesystem after conversion.
Navigation
[0] Message Index
[*] Previous page
Go to full version