December 11, 20196 yr Hi all, So i don't use parity and used rsync to copy the data from my old 500gb samsung to a 1tb ssd. The new crucial MX500 1tb was formatted and showed no usage before i started the copy. The 1tb drive was mounted in unassigned devices to copy the data from the array and i could already see it was showing more storage was used. Moved the drive into the array as i thought it must of been an error but still shows its used 149gb more. I've never used compression so i'm assuming it's not that. Any ideas?
December 12, 20196 yr Community Expert You likely copied some sparse files, like vdisks, without using the sparse flag, so they will take more space.
December 12, 20196 yr Author Yes, there are a couple of virtual machines on that disk so i will check the size when i'm home. i am unfamiliar with a sparse flag. would this be ok to use on all data that is being copied across?
December 12, 20196 yr Community Expert 8 minutes ago, gareth_iowc said: i am unfamiliar with a sparse flag. would this be ok to use on all data that is being copied across? It only helps with files that contain large sections that are all zeroes so does not do anything useful with media files. It should not hurt, though, to always provide the sparse flag as on files that do not contain the zero sections all you do is end up consuming a little more CPU during the copy process.
December 12, 20196 yr Community Expert 19 minutes ago, gareth_iowc said: would this be ok to use on all data that is being copied across? Yes, if you have enough space you can "re-sparsify" the file in place, e.g.: cp --sparse=always /mnt/cache/path_to_vdisk /mnt/cache/path_to_new_vdisk Then delete the old one and rename the new one.
Archived
This topic is now archived and is closed to further replies.