Can I convert thick mode files to thin mode files in cephfs?
Does cephfs not support thin provisioning disk formats like vmware virtual machine disks? For example, the same vmware disk file in the rbd block is: root@backup-server:/mnt# du rbd/Win2003-002-198-bak/Win2003-002-198-bak_5-flat.vmdk -h 1.9G rbd/Win2003-002-198-bak/ win2003-002-198-bak_5-flat-.vmdk After copying to cephfs: root@backup-server:/mnt# du cephfs/Win2003-002-198-bak_5-flat.vmdk -h 30G cephfs/Win2003-002-198-bak_5-flat.vmdk The capacity was increased to a thick disk format. Is there any way to change this? Thank you!
Hi, On 18.02.25 05:05, 苏察哈尔灿 wrote:
root@backup-server:/mnt# du rbd/Win2003-002-198-bak/Win2003-002-198-bak_5-flat.vmdk -h 1.9G rbd/Win2003-002-198-bak/ win2003-002-198-bak_5-flat-.vmdk
After copying to cephfs:
root@backup-server:/mnt# du cephfs/Win2003-002-198-bak_5-flat.vmdk -h 30G cephfs/Win2003-002-198-bak_5-flat.vmdk
How did you copy that file? cp tries to detect a sparse file but may have failed here. Try "cp --sparse=always /mnt/rbd/Win2003-002-198-bak/Win2003-002-198-bak_5-flat.vmdk /mnt/cephfs/Win2003-002-198-bak_5-flat.vmdk". AFAIK this has nothing to do with CephFS as filesystems do not automagically "thin provision" files. Regards -- Robert Sander Heinlein Consulting GmbH Schwedter Str. 8/9b, 10119 Berlin http://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Zwangsangaben lt. §35a GmbHG: HRB 220009 B / Amtsgericht Berlin-Charlottenburg, Geschäftsführer: Peer Heinlein -- Sitz: Berlin
participants (2)
-
Robert Sander
-
苏察哈尔灿