fstransform icon indicating copy to clipboard operation
fstransform copied to clipboard

Can I convert 33T logical partitions?

Open h77626592 opened this issue 2 years ago • 2 comments

The ext4 logical partition made of three hard disks, the data is about 20T, and the conversion to xfs is wrong. How to solve this problem?

10:04:13 dd: Unable to target output file”/tmp/fstransform.mount.120513/.fstransform.loop.120513 35994497712127 Truncate at byte: file is too large

h77626592 avatar Feb 15 '23 05:02 h77626592

The logical partition size is 33T

h77626592 avatar Feb 15 '23 05:02 h77626592

Short answer: an ext4 33TB filesystem is currently too large for conversion with fstransform; the current limit on ext4 is 16 TB.

Long answer: fstransform creates inside the filesystem to be converted a single sparse file as large as the filesystem itself, then formats the sparse file (to xfs, in this case), loop-mounts it and progressively moves data from the ext4 filesystem into the loop-mounted xfs sparse file.

Unluckily, ext4 maximum file size is 16 TB - see https://en.wikipedia.org/wiki/Ext4 - thus the error you reported.

A possible, future, solution could be to create several smaller files, and view them as a single block device using Linux Device Mapper instead of the current solution that uses loop devices. This would require modifying fstransform, clearly.

cosmos72 avatar Feb 15 '23 16:02 cosmos72