사이트 내 전체검색
검색목록
우분투 nfs 마운트 chown: changing ownership of `xyz': Invalid argument
로빈아빠
https://cmd.kr/server/643 URL이 복사되었습니다.

본문

#touch /srv/cloud/xyz 
#chown oneadmin:oneadmin /srv/cloud/xyz chown: changing ownership of `xyz': Invalid argument

Cannot chown target file "/nfs////" 부적절한 인수 (22)


1. 이렇게해도 안됨.
/mnt/storage-pools *(rw,insecure,sync,no_subtree_check,no_root_squash)

2. 이렇게하면됨 (마운트시  -o vers=3 옵션넣기)
When using nfs-shares and trying a chown you can get the following error: 
chown: changing ownership of myfile.ext : Invalid argument 
Note that this error is different to "Operation not permitted" that will occure if you didnt specify the no_root_squash - option in /etc/exports on the nfs-server. 
This error is different and seems to occure at least in ubuntu from 10.10 upwards. It seems that its a flaw in nfsv4 cause if you mount the same share as nfsv3 you will not have this problem. And this is the solution. use nfs3 instead of nfs4. 

mount -t nfs -o vers=3 server:/share /mnt 

댓글목록

등록된 댓글이 없습니다.

47 (1/1P)

Search

Copyright © Cmd 명령어 3.129.42.198