Convert Container from ext3 to ext4

Shotgun Teddy

Active Member
Aug 23, 2016
10
0
41
www.chuglife.xyz
Running: 2.6.32-43-pve
Debian Version 7.9

Current partition setup:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 127M 0 part
└─sda3 8:3 0 3.7T 0 part
├─pve-root (dm-0) 253:0 0 96G 0 lvm /
├─pve-swap (dm-1) 253:1 0 27G 0 lvm [SWAP]
└─pve-data (dm-2) 253:2 0 3.5T 0 lvm /var/lib/vz
sr0 11:0 1 1024M 0 rom
hcp1 121:1 0 3.5T 0 disk

blkid output:
/dev/sda2: UUID="135B-5E3E" TYPE="vfat"
/dev/sda3: UUID="wWob1p-ugbS-AGO2-BMuq-EnkJ-BD9T-cNrHh7" TYPE="LVM2_member"
/dev/mapper/pve-root: UUID="22d67a02-ffa0-49fb-9de2-69d53896bf87" TYPE="ext3"
/dev/mapper/pve-swap: UUID="68c8985a-f65a-4634-9192-1a71a919f17f" TYPE="swap"
/dev/mapper/pve-data: UUID="75099b7c-90b6-44c7-9f2b-22d729dd35d9" TYPE="ext3" SEC_TYPE="ext2"
/dev/hcp1: UUID="75099b7c-90b6-44c7-9f2b-22d729dd35d9" SEC_TYPE="ext2" TYPE="ext3"

I have 3 containers running on this box, I need to either convert container 404042 to ext4, or rebuild it as ext4. Right now its in ext3 format. Data loss is not an issue, its an empty container.

Is it possible to convert it / format it as is, or is there a process to setup a container as ext4 when you are installing the template?

I was only able to find this old useful Proxmox forum post:
https://forum.proxmox.com/threads/converting-from-ext3-to-ext4.5410/

In there, Tom makes a reference to this wiki article: https://ext4.wiki.kernel.org/index.php/UpgradeToExt4

But this box is in production, and I cannot mess up the other two containers running on it, just need this one container changed. Is it even possible to have the head node be in ext3 format and have a container within be in ext4?

Thank you for your time, apologies if there is another post covering this process, I was unable to find any documentation on this.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!