Converting from ext3 to ext4

kirelgt

Member
Nov 16, 2010
85
0
6
Hello everyone.

Does anybody knows a good guide to convert ext3 filesystem to ext4 in a proxmox machine.

Thanks in advance for your reply.
 
Tom thanks for the reply. I am afraid to tell you that I am still in the same place. I saw that site and just don't understan what it means.

It should be noted that the stock 2.6.26 ext4 has problems with delayed allocation and with filesystems with non-extent based files. So until Debian starts shipping a 2.6.27 based kernel or a 2.6.26 kernel with at least the 2.6.26-ext4-7 patchset, you should mount ext4dev filesystems using -o nodelalloc and only use freshly created filesystems using "mke2fs -t ext4dev". (Without these fixes, if you try to use an ext3 filesystem which was converted using "tune2fs -E test_fs -o extents /dev/DEV", you will probably hit a kernel BUG the moment you try to delete or truncate an old non-extent based file.)

At some point I understand that they mean that when installing debian I should do "mke2fs -t ext4dev" (do not know how) or if I have to do this once is installed I do not know.
 
you need a kernel with ext4 support. 2.6.26 is not working. 2.6.32 are ok (e.g. from backports or a proxmox kernel).
 
I just converted /dev/pve/data (var/lib/vz) from ext3 to ext4, run fsck as pointed out in the wiki, adapted the /etc/fstab - no issues.

at what point to you fail? did you convert the boot partition?

If you got issues you should tell us what is not working - without details we cannot help.
 
Trying not to hijack his thread, but I am curious about converting too. I tried about a month ago on a 2.6.32 kernel and got a vzquota panic. I guess I do not really care about quotas per-se, so if disabling those would allow me to switch, I would. Any thoughts?
 
I really have not been lucky so far, I tried many tutorials and no luck, the one suggested did not work either, when I finish doing the steps , it was just the same way.
 
openvz has still some issue with ext4 so you should not use ext4 if you want reliable OpenVZ.
 
Is there a way TOM you could put a guide on how to do it because I could see its more than one person trying to achieve this. In order to get TRIM to work ext4 is needed. I follow the guide you send me and I did not get it. It still says ext3 after I finish.
Please help.
 
Per a thread elsewhere, I set DISK_QUOTA=no, rebooted the HN and I am on ext4, so that seems to work.
 
Hello dswartz. Hey can you be more specific with what you did?. Trying to figure it out and can't. And also where did you find DISK_QUOTA=no.

Thanks
 
In /etc/vz/vz.conf, look for 'DISK_QUOTA=yes' and change the yes to no. Reboot the HN.