[clug] nfs issue

Bob Edwards bob at cs.anu.edu.au
Mon May 20 07:13:56 UTC 2019


On 20/5/19 4:13 pm, Eyal Lebedinsky via linux wrote:
> For a while now I notice an unusual situation when I copy the content of 
> an array between two machines (f28 up-to-date).
> 
> Local array:
>      mount /dev/md127 /new-raid
> Remote array:
>          mount -t nfs e7:/data1 /data1
> Update local array:
>      rsync --delete -aHSKv --progress /data1/ /new-raid/
> 

My backup scripts for backing up NFS-mounted dirs use this:

ionice=19 $RSYNC ${RSYNC_OPTS} ... ...

I don't see any issues like you describe, but then maybe I don't
look at the output as closely...

The ionice is mainly to stop the backup job from clobbering the
NFS servers (which are in production and doing useful work 24x7).

cheers,
Bob Edwards.

> Looking at the log I noticed this line:
> 
> deleting 
> download/vocore/builds/v15.05.1/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/linux-3.18.23/arch/mips/loongson/common/uart_base.c 
> 
> 
> This was unexpected, the file is there, untouched for many years:
> -rw-r--r-- 1 eyal eyal 1356 Oct 29  2015 
> /data1/download/vocore/builds/v15.05.1/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/linux-3.18.23/arch/mips/loongson/common/uart_base.c 
> 
> 
> I then ran the rsync again and this time the file was copied in.
> 
> This is not the first time this happened, in a similar area of the 
> directory tree.
> 
> I can add that there is a symlink in the path (if it matters):
> 
> ls -l 
> /d/vocore/builds/v15.05.1/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2 
> 
> total 40
> lrwxrwxrwx  1 eyal eyal   30 Dec 28  2016 binutils -> 
> binutils-linaro-2.24.0-2014.09
> drwxr-xr-x 17 eyal eyal 4096 Dec 28  2016 binutils-linaro-2.24.0-2014.09
> lrwxrwxrwx  1 eyal eyal   22 Dec 28  2016 gcc -> gcc-linaro-4.8-2014.04
> drwxr-xr-x 33 eyal eyal 4096 Dec 28  2016 gcc-linaro-4.8-2014.04
> drwxr-xr-x 13 eyal eyal 4096 Dec 28  2016 gcc-linaro-4.8-2014.04-final
> drwxr-xr-x 13 eyal eyal 4096 Dec 28  2016 gcc-linaro-4.8-2014.04-initial
> drwxr-xr-x 13 eyal eyal 4096 Dec 28  2016 gcc-linaro-4.8-2014.04-minimal
> drwxr-xr-x 15 eyal eyal 4096 Dec 28  2016 gdb-linaro-7.6-2013.05
> lrwxrwxrwx  1 eyal eyal   13 Dec 28  2016 linux -> linux-3.18.23 
> <<<<<<<<<<<<<<<<<<<
> drwxrwxr-x 24 eyal eyal 4096 Dec 28  2016 linux-3.18.23
> drwxr-xr-x  3 eyal eyal 4096 Dec 28  2016 linux-dev
> lrwxrwxrwx  1 eyal eyal   15 Dec 28  2016 uClibc -> uClibc-0.9.33.2
> drwxr-xr-x 19 eyal eyal 4096 Dec 28  2016 uClibc-0.9.33.2
> drwxr-xr-x  3 eyal eyal 4096 Dec 28  2016 uClibc-dev
> 
> Now, I did once ran a loop of 'ls' of the directory and I could see that 
> the file at times was missing and at other times would show.
> Looks like an nfs issue.
> 
> Anyone seen this? Any explanation?
> 
> TIA
> 




More information about the linux mailing list