Questions tagged [sparse-files]

10 questions
21
votes
2 answers

Does NFS and SMB support sparse files?

This question was previously asked in stack overflow but the good folks there have recommended that i try the community over here instead. I am researching on sparse files with regards to various filesystems and am trying to find something concrete…
winhung
  • 323
  • 2
  • 7
20
votes
1 answer

How do you create a qcow2 file that is small yet commodious on a Linux server?

I believe that there are qcow2 files that displace a small amount of gigabytes on a server (as verified with a df -h on the physical server) yet allow for lots of space when you log into the virt-manager VM and issue a df -h. How do you create such…
5
votes
0 answers

why `rsync --sparse` create much larger file than the source?

I try to rsync between 2 local disks, thus there is no compression. the sparse file has apparent size of 50GB, actual size of 16GB. I tried rsync -a -P --sparse, it did generate sparse file on destination at the end. However, it is not as sparse as…
Wang
  • 372
3
votes
2 answers

No write failure on an over-allocated sparse file

I've been working with sparse files in order to replicate Linux fs permissions on a Windows samba mount an idea from here: https://www.thanassis.space/backup.html. While testing sparse files though, I've discovered an, interesting, problem wherein a…
j. Doe
  • 33
3
votes
1 answer

XFS/EXT4: Why is actual file size on disk larger than apparent size? Clarification

On a CentOS 7.1.1503 (3.10.0-229.el7.x86_64) system running KVM/qemu on an XFS filesystem, I'm attempting to work out what specifically is adding additional space to a VM diskimage file. $ ls -ls --block-size=1k 15728648 -rw-------. 1 qemu qemu…
Chrisxb
  • 31
2
votes
2 answers

Reduce xen image disk usage

Two cases: 1.If making hdd image using dd and copy it trough nfs to another server: mount -o ro,remount / dd if=/dev/sda bs=64K | gzip -c > /share/test.img.gz then after gunzip I get 20Gb (for ex.) file, filled w/zeroes at the end: du -h…
Dmitry
  • 31
1
vote
1 answer

Disable thin provisioning (sparse files) in proxmox

I'm using Proxmox Virtual Environment to run few virtual machines. I use raw storage format and I need that the disk is fully pre allocated when created so it does not grow. The proxmox says that this is default behavior but I experience the…
1
vote
0 answers

Files with apparent 86TB file size, how to shrink them?

After extracting a zip, I have 8.6P in apparent size but only 728M on disk used. I did some checks and hdparm --fibmap shows that all the files have a huge byte_offset: 94331430207488. I tried to use fallocate -d, cp --sparse=never but both keep the…
Nassiel
  • 11
1
vote
0 answers

Are MacOS sparsebundles suitable for multiuser access

I want to use a sparsebundle on a linux bases NAS (synology) as a encrypted container. The sparsebundle files will be accessible in a shared Folder via SMB or AFP for MacOS Clients. Does this work, if potentially multiple users access the…
0
votes
1 answer

Barman: rsync wal archival stalls on some files

I'm archiving wal files from a postgres server via rsync, most of the time the archiving works fine and is quick, the speedtest for the connection is here: (this goes via the internet) [ ID] Interval Transfer Bandwidth Retr …
Thoro
  • 53
  • 8