NFS shares - 2TB limit?

MontysEvilTwin

Well-Known Member
My lounge HDR-FOX has a 2TB drive fitted. The 'My Video' folders of two other HDR-FOX units are mounted on this device as NFS shares. It is known that such shares affect the drive space calculations on the HDR-FOX. As far as I can tell, when a share is mounted the free drive space of the shared drive (and used space, by the way the chart changes) is added to the local drive. I replaced the 500MB disk on one of the remote units with a 2TB drive. After the upgrade, mounting this as an NFS share makes the disk of the host unit appear full and makes recordings fail in the process. I presume that it can't cope with total amount of free space being greater than 2TB. Mounting the unit with the 2TB drive as an SMB share gets around the problem.
 
Correct. This is one of the reasons why I say it's better not to mount shares in MyVideo - the Humax firmware can't tell the difference between the local HDD and the remote share, therefore treats it the same in space calculations and scanning (DLNA indexer, thumbnail generation). I was not aware that an SMB share avoids this problem.

I very much recommend the network-shares-automount parameter shareFolder=off not on.

Of course, that does mean the mount will then be found under Media >> Storage (blue) >> USB (which is no bother on a HD-FOX), and you will need either virtual-disk2 (which inconveniently flashes up the USB action menu after boot - maybe that could be averted by an ir auto-run macro), or a real USB storage device plugged in (again no problem on a HD-FOX, and all my HDRs have either a USB HDD or a UPD).
 
I have the 'sharefolder' parameter set to 'off'. The My Video folders of the remote units are mounted but appear under USB (Storage>USB). The share sizes aren't shown in the USB section but as they mount they are added to the that of the internal disk and show up in the green 'HDD' chart on the HDR-FOX. This is mostly not a problem, but when the free space hits a certain value (I am guessing 2TB) the HDR-FOX is tricked into thinking the local disk is full and it refuses to record until you unmount the remote drive and reduce the combined free drive space.

As an aside, I know that af123 has contemplated rebuilding the kernel to add GPT support and thus allow internal drives larger than 2TB. If the issue I report in this thread is a bug in the humaxtv application rather than being somehow related to the kernel this could scupper that.
 
Last edited:
I tried to recreate the problem on my test machine. I mounted two units' 'My Video' folders as NFS shares: each unit has a 2TB disk. I managed to get up to 2607GB of free space so there is no 2TB limit. Mounting a third share caused the issue to manifest.

No_Mount.jpg No mounts
One_NFS_Mount.jpg One NFS share mounted
Two_NFS_Mounts.jpg Two NFS shares mounted
Three_NFS_Mounts.jpg Three NFS shares mounted

The internal drive appears to have no free space at this point: in fact if you look in the disk storage menu it registers no values of any kind:

Three_Mounts_Data_Storage.jpg HDR-FOX Data Storage menu output

In this state, the host unit refuses to record: if you try you get error messages stating that the hard drive is full.

The output from the 'df' function at each stage is presented below:
Code:
No mounted shares
Humax# df -h                                                                   
Filesystem                Size      Used Available Use% Mounted on             
/dev/root                21.3M     21.3M         0 100% /                      
tmpfs                    61.0M    108.0K     60.9M   0% /tmp                   
tmpfs                    61.0M         0     61.0M   0% /media                 
/dev/mtdblock1            2.0M    524.0K      1.5M  26% /var/lib/humaxtv       
/dev/mtdblock2            2.0M    476.0K      1.5M  23% /var/lib/humaxtv_backup
/dev/sdb1              1011.4M     45.3M    914.7M   5% /mnt/hd1               
/dev/sdb2               447.6G    349.7G     75.2G  82% /mnt/hd2               
/dev/sdb3                 9.8G      1.1G      8.2G  12% /mnt/hd3               
/dev/sdb2               447.6G    349.7G     75.2G  82% /mnt/hd2/My\040Video/[Mo
dSettings]                                                                     
/dev/sda1                58.6G     51.9M     58.5G   0% /media/drive1          

One NFS share mounted
Humax# df -h                                                                   
Filesystem                Size      Used Available Use% Mounted on             
/dev/root                21.3M     21.3M         0 100% /                      
tmpfs                    61.0M    112.0K     60.9M   0% /tmp                   
tmpfs                    61.0M         0     61.0M   0% /media                 
/dev/mtdblock1            2.0M    524.0K      1.5M  26% /var/lib/humaxtv       
/dev/mtdblock2            2.0M    476.0K      1.5M  23% /var/lib/humaxtv_backup
/dev/sdb1              1011.4M     45.4M    914.7M   5% /mnt/hd1               
/dev/sdb2               447.6G    349.7G     75.2G  82% /mnt/hd2               
/dev/sdb3                 9.8G      1.1G      8.2G  12% /mnt/hd3               
/dev/sdb2               447.6G    349.7G     75.2G  82% /mnt/hd2/My\040Video/[Mo
dSettings]                                                                     
/dev/sda1                58.6G     51.9M     58.5G   0% /media/drive1          
192.168.0.9://mnt/hd2/My\040Video                                              
                          1.8T    350.4G      1.3T  20% /media/HDR3            

Two NFS shares mounted                                                                               
Humax# df -h                                                                   
Filesystem                Size      Used Available Use% Mounted on             
/dev/root                21.3M     21.3M         0 100% /                      
tmpfs                    61.0M    112.0K     60.9M   0% /tmp                   
tmpfs                    61.0M         0     61.0M   0% /media                 
/dev/mtdblock1            2.0M    524.0K      1.5M  26% /var/lib/humaxtv       
/dev/mtdblock2            2.0M    476.0K      1.5M  23% /var/lib/humaxtv_backup
/dev/sdb1              1011.4M     45.4M    914.7M   5% /mnt/hd1               
/dev/sdb2               447.6G    349.7G     75.2G  82% /mnt/hd2               
/dev/sdb3                 9.8G      1.1G      8.2G  12% /mnt/hd3               
/dev/sdb2               447.6G    349.7G     75.2G  82% /mnt/hd2/My\040Video/[Mo
dSettings]                                                                     
/dev/sda1                58.6G     51.9M     58.5G   0% /media/drive1          
192.168.0.9://mnt/hd2/My\040Video                                              
                          1.8T    350.4G      1.3T  20% /media/HDR3            
192.168.0.4://mnt/hd2/My\040Video                                              
                          1.8T    783.7G    946.6G  45% /media/Lounge

Three NFS shares mounted
Humax# df -h                                                                   
Filesystem                Size      Used Available Use% Mounted on             
/dev/root                21.3M     21.3M         0 100% /                      
tmpfs                    61.0M    112.0K     60.9M   0% /tmp                   
tmpfs                    61.0M         0     61.0M   0% /media                 
/dev/mtdblock1            2.0M    524.0K      1.5M  26% /var/lib/humaxtv       
/dev/mtdblock2            2.0M    476.0K      1.5M  23% /var/lib/humaxtv_backup
/dev/sdb1              1011.4M     45.4M    914.7M   5% /mnt/hd1               
/dev/sdb2               447.6G    349.7G     75.2G  82% /mnt/hd2               
/dev/sdb3                 9.8G      1.1G      8.2G  12% /mnt/hd3               
/dev/sdb2               447.6G    349.7G     75.2G  82% /mnt/hd2/My\040Video/[Mo
dSettings]                                                                     
/dev/sda1                58.6G     51.9M     58.5G   0% /media/drive1          
192.168.0.9://mnt/hd2/My\040Video                                              
                          1.8T    350.4G      1.3T  20% /media/HDR3            
192.168.0.4://mnt/hd2/My\040Video                                              
                          1.8T    783.7G    946.6G  45% /media/Lounge          
192.168.0.6://mnt/hd2/My\040Video                                              
                        906.1G    721.8G    138.2G  84% /media/HDR1
I can't see anything obviously wrong. Perhaps the issue relates to the HumaxTV app?
 
Back
Top