Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[6.4rc20] - Mover and IMG files

Featured Replies

Description:  Mover causes IMG files to take up their full amount of storage despite actual size of vdisk

How to reproduce: Take a raw img file that isn't full size (i.e. 50G but 25G on disk) and then let mover move it from cache to array or array to cache

Expected results: IMG file retains all its parameters

Actual results: after the move, IMG file is the full size on disk verified with ls -lsh

Other information: see examples below

 

 13G -rwxrwxrwx 1 root root  50G Jan  9 03:05 vdisk1.img*

350G -rwxrwxrwx 1 root root 350G Jan  9 03:05 vdisk2.img*

 

The first disk was created on cache and never touched by mover.  The second disk was created on my array and then I used mover to move it on to cache.  Prior to move the img was only about 240G.  I've replicated this a few times.  I then have to use qemu-img commands to build a new img file that doesn't take up the slack space.

 

This also may have been an issue in 6.3.5 also but it took me a while to catch on to the fact that the img was now taking up the full size since you have to use du or ls -lsh to see the real size on disk.

Edited by nickp85

  • Author

Good to know, but it looks like unraid has some of those commands that can be used to move sparse files.  Perhaps mover can be enhanced to handle it properly?  If it detects an img file maybe use dd or cp with the sparse options?  Just thinking out loud.

 

Would also be nice to have an easy way to load libguestfs since it has a command to sparsify an img file in place which is ideal for img on cache where you don't have the space to convert it using a second file.

  • 4 months later...

Running into the same issue. Sparse files are created fine on the cache drive, but mover expands them to preallocated size.

 

I am on 6.5.2-rc2.

12 hours ago, MrChunky said:

Running into the same issue. Sparse files are created fine on the cache drive, but mover expands them to preallocated size.

 

I am on 6.5.2-rc2.

 

The lseek() command in Linux supports handling of sparse files by use of SEEK_DATA and SEEK_HOLE, which means it's possible to teach mover to query the source file system for the holes in moved files.

 

This would result in faster moves of sparse files and the file would continue to be sparse on the destination drive.

 

If mover doesn't support sparse files, then this should probably be added as an improvement suggestion in the specific subforum.

  • 2 weeks later...
On 5/25/2018 at 1:18 AM, pwm said:

 

The lseek() command in Linux supports handling of sparse files by use of SEEK_DATA and SEEK_HOLE, which means it's possible to teach mover to query the source file system for the holes in moved files.

 

This would result in faster moves of sparse files and the file would continue to be sparse on the destination drive.

 

If mover doesn't support sparse files, then this should probably be added as an improvement suggestion in the specific subforum.

 

Thank you for the explanation. I have submitted a bug report a few weeks back. We'll see what the response is, possibly I will move it to feature request :)

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.