gareth_iowc Posted December 11, 2019 Share Posted December 11, 2019 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? Quote Link to comment
JorgeB Posted December 12, 2019 Share Posted December 12, 2019 You likely copied some sparse files, like vdisks, without using the sparse flag, so they will take more space. Quote Link to comment
gareth_iowc Posted December 12, 2019 Author Share Posted December 12, 2019 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? Quote Link to comment
itimpi Posted December 12, 2019 Share Posted December 12, 2019 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. Quote Link to comment
JorgeB Posted December 12, 2019 Share Posted December 12, 2019 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.