Invalid argument
将文件从本地磁盘移动到 NFS 挂载磁盘时出现警告。尽管出现错误消息,但文件已成功移动:
Warning: rename(/tmp/image.jpg,/mnt/remote.server-disk1/image.jpg): Invalid argument
挂载的磁盘:
$ df
remote.server:/disk1 917G 269M 871G 1% /mnt/remote.server-disk1
远程服务器上导出的磁盘:
$ cat /etc/exports
/disk1 remote.server(rw,sync,root_squash,secure,crossmnt,anonuid=504,anongid=504)
rename()之前本地磁盘上的文件:
$ stat /tmp/image.jpg
File: `image.jpg'
Size: 2105 Blocks: 8 IO Block: 4096 regular file
Device: 803h/2051d Inode: 33556339 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 501/ apache) Gid: ( 501/ apache)
...
rename() 后远程磁盘上的文件:
$ stat /disk1/image.jpg
File: `image.jpg'
Size: 2105 Blocks: 8 IO Block: 4096 regular file
Device: 821h/2081d Inode: 34603214 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 501/ apache) Gid: ( 501/ apache)
...
有任何想法吗?谢谢