Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I convert 33T logical partitions? #51

Open
h77626592 opened this issue Feb 15, 2023 · 2 comments
Open

Can I convert 33T logical partitions? #51

h77626592 opened this issue Feb 15, 2023 · 2 comments

Comments

@h77626592
Copy link

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
Copy link
Author

The logical partition size is 33T

@cosmos72
Copy link
Owner

cosmos72 commented Feb 15, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants