Jump to content

[SOLVED] Min. free space being ignored for share


Recommended Posts

Not sure if this is a bug, or just me not setting things up correctly.

 

I've created a media share, with the following properties:

 

Name: Media

Comments: Media share on MicroServer

Allocation method: High-water

Min. free space: 40000000

Split level: 2

Included disks:

Excluded disks:

Use cache disk: Yes

Share empty? No

 

It is exported via both SMB and AFP.

 

From what I can tell, setting Min. free space to 40000000, should have resulted in no single drive having less than 40GB free on it.

 

However, if I look at my current disks, I see that /mnt/disk1 is down to approx. 8.2GB free:

 

Filesystem            Size  Used Avail Use% Mounted on

/dev/sdg1             3.8G  267M  3.5G   7% /boot

/dev/sde1              75G   56G   19G  75% /mnt/cache

/dev/md4              466G   33M  466G   1% /mnt/disk4

/dev/md3              932G  513G  420G  55% /mnt/disk3

/dev/md2              932G  875G   57G  94% /mnt/disk2

/dev/md1              1.9T  1.9T  8.2G 100% /mnt/disk1

shfs                  4.1T  3.2T  951G  78% /mnt/user

 

Overnight, my mover script failed, as it tried to copy a newly ripped file onto /mnt/disk1, even though the min. free space had been breached, and there wasn't enough space for the copy. I saw the following in the syslog:

 

May 23 04:46:35 MicroServer logger: mover started

May 23 04:46:37 MicroServer logger: ./media/Videos/HD Movies/Pirates of the Caribbean; The Curse of the Black Pearl (2003)/blackpearl.mkv

May 23 04:46:37 MicroServer logger: >f.stpog... media/Videos/HD Movies/Pirates of the Caribbean; The Curse of the Black Pearl (2003)/blackpearl.mkv

May 23 04:51:47 MicroServer shfs: shfs_write: write: (28) No space left on device

May 23 04:51:48 MicroServer logger: rsync: writefd_unbuffered failed to write 4092 bytes to socket [sender]: Broken pipe (32)

May 23 04:51:48 MicroServer logger: rsync: write failed on "/mnt/user/media/Videos/HD Movies/Pirates of the Caribbean; The Curse of the Black Pearl (2003)/blackpearl.mkv": No space left on device (28)

May 23 04:51:48 MicroServer logger: rsync error: error in file IO (code 11) at receiver.c(302) [receiver=3.0.7]

May 23 04:51:48 MicroServer logger: rsync: connection unexpectedly closed (28 bytes received so far) [sender]

May 23 04:51:48 MicroServer logger: rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]

May 23 04:51:48 MicroServer logger: ./media/Videos/HD Movies/Pirates of the Caribbean; The Curse of the Black Pearl (2003)

May 23 04:51:48 MicroServer logger: ./media/Videos/HD Movies

May 23 04:51:48 MicroServer logger: ./media/Videos

May 23 04:51:48 MicroServer logger: ./media

May 23 04:51:48 MicroServer logger: mover finished

 

I have the following directory structure:

 

/mnt/user/media/Video/HD Movies

/mnt/user/media/Video/Movies

/mnt/user/media/Video/TV

 

in the media share, and therefore expect my split level to allow the HD Movies, Movies and TV directories to be split across drives, but any directories under this point to remain together.

If I look at the data layout, I can see that the 'TV' directory is split across /mnt/disk1 and /mnt/disk2, but that my Burn Notice subfolder is only on /mnt/disk1, and my Dexter folder is only on /mnt/disk2.

 

I fully expected that the same would happen for the 'HD Movies' folder, in that when the min. free space on /mnt/disk1 reached 40GB, the next file copy would create a new 'HD Movies' folder on one of the other drives, and copy new stuff there. This doesn't seem to be happening.

 

Is this simply an issue with the mover script not respecting the min.free space?

 

Any help would be appreciated.

 

Andy.

 

Link to comment

It's the Split level;

1 - media

2 - Movies

3 - HD Movies

 

unRAID won't split the HD Movies when it's only allowed to split the media and Movies folders.

 

Peter

 

Not sure I understand. Both 'Movies' and 'HD Movies' are at the same level in the directory structure:

 

e.g.

 

media

      |_ Movies

      |_ HD Movies

      |_ TV

 

'HD Movies' is not nested inside 'Movies'. As I said in my initial post, the 'TV' directory has been split across disks, but 'HD Movies' won't.

 

I've tried running the mover script again, and it persists in trying to copy new files for the 'HD Movies' directory onto /mnt/disk1.

 

From what I can see, the mover script has no logic inside it to determine which disk is an appropriate destination, so I must assume that this decision is made elsewhere in the unRAID architecture. Wherever it happens, it's not working correctly.

 

 

Link to comment

Name: Media

Comments: Media share on MicroServer

Allocation method: High-water

Min. free space: 40000000

Split level: 2

Included disks:

Excluded disks:

Use cache disk: Yes

Share empty? No

 

from this the media share is supposed to have 40 Gb free spanned over ALL your drives

now first split level = Media

second split level =

      |_ Movies

      |_ HD Movies

      |_ TV

 

since you are using splitlevel 2 does it don't want to split the HD movies folder over other disks

 

so if you move to splitlevel 3 then you will have more HD movies folders on different disks

dunno why you want Media as your share level....

i assume it has something to do with a player ....

 

 

Link to comment

Hmm. Still not sure I get this.

 

My configuration is exactly as shown in the 'unofficial' manual here:

http://lime-technology.com/wiki/index.php?title=Un-Official_UnRAID_Manual#Split_level

 

My 'Movies', 'HD Movies' and 'TV' folders are all at level 2. According to the documentation, this means that any subfolders of 'Movies', 'HD Movies' or 'TV' can be on any disk, but that their contents must remain together.

 

So, I would expect the following to happen:

 

disk1

      |_ user

              |_ media

                          |_ Videos

                                        |_ HD Movies

                                        |                |_ Tron

                                        |                |_ Tron Legacy

                                        |

                                        |_ TV

                                              |_ Burn Notice

                                              |_ House

disk2

      |_ user

              |_ media

                          |_ Videos

                                        |_ HD Movies

                                        |                |_ Iron Man

                                        |                |_ Iron Man 2

                                        |

                                        |_ TV

                                              |_ Dexter

                                              |_ True Blood

 

 

What has actually happened is this:

 

disk1

      |_ user

              |_ media

                          |_ Videos

                                        |_ HD Movies

                                        |                |_ Iron Man

                                        |                |_ Iron Man 2

                                        |                |_ Tron

                                        |                |_ Tron Legacy

                                        |

                                        |_ TV

                                              |_ Burn Notice

                                              |_ House

disk2

      |_ user

              |_ media

                          |_ Videos

                                        |_ TV

                                              |_ Dexter

                                              |_ True Blood

 

 

For the TV series, the split has happened exactly as I expected, but for the HD Movies it hasn't. What I don't understand is why.

 

Link to comment

You guys are of course completely correct. I've got an extra 'Videos' level in there which means the split needs to be at level 3.

Just couldn't see it until I drew the diagram in my previous post.

 

Weird how the TV series folders do seem to have split, though.......

 

Thanks!

Link to comment

Archived

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

×
×
  • Create New...