I can use scp to copy from the esxi 3.5 box to the 5.0 box, but it is too slooow. I wanted to try sftp. So, here what is happening. Note, I can sftp, get authenticated, and copy to any folder other than /vmfs/volumes. I can create a new folder at root such as /sftproot and I can copy to that. I am guessing that this is something to do with mounted "volumes". I guess I can sftp copy to /sftproot and then mv these local files to my datastore.
I also show the permissions and mounts at the end of this post.
1) I cannot copy to /vmfs/volumes/Virtual Client Datastore/ProviderPool/truckerlink/
[root@Provider Trucker]# sftp root@172.18.0.224
Connecting to 172.18.0.224...
Password:
sftp> put /vmfs/volumes/Provider:storage1/Trucker/Trucker.vmx /vmfs/volumes/Virtual Client Datastore/ProviderPool/truckerlink/
Couldn't get handle: Permission denied
2) But, I can copy to /vmfs or to /sftproot or any other similar directory.
sftp> put /vmfs/volumes/Provider:storage1/Trucker/Trucker.vmx /vmfs/
Trucker.vmx 100% 2498 398.0KB/s 00:00
3) Similarily, I cannot copy to /vmfs/volumes
sftp> put /vmfs/volumes/Provider:storage1/Trucker/Trucker.vmx /vmfs/volumes
Couldn't get handle: Permission denied
sftp>
/etc # cat /etc/fstab
none /proc procfs defaults 0 0
none /vmfs/volumes vcfs defaults 0 0
none /tmp visorfs 2,192,01777,tmp 0 0
/etc #
/sbin # cd /
~ # ls -la | grep vmfs
lrwxrwxrwx 1 root root 49 Jun 27 21:44 altbootbank -> /vmfs/volumes/c4394e72-b6c97a28-b3ac-d2c1373f6db2
lrwxrwxrwx 1 root root 49 Jun 27 21:44 bootbank -> /vmfs/volumes/0af90a7b-5bf0e83b-f361-f284375bddad
lrwxrwxrwx 1 root root 49 Jun 25 22:39 scratch -> /vmfs/volumes/4f901de7-016db525-ac81-00145e5a2150
lrwxrwxrwx 1 root root 49 Jun 27 21:44 store -> /vmfs/volumes/4f901dda-c29c3d44-c2e9-00145e5a2150
drwxr-xr-x 1 root root 512 Jun 28 22:21 vmfs
~ # ls -la /vmfs/volumes
drwxr-xr-x 1 root root 512 Jun 28 22:25 .
drwxr-xr-x 1 root root 512 Jun 28 22:21 ..
drwxr-xr-x 1 root root 8 Jan 1 1970 0af90a7b-5bf0e83b-f361-f284375bddad
drwxr-xr-x 1 root root 8 Jan 1 1970 4f901dda-c29c3d44-c2e9-00145e5a2150
drwxr-xr-t 1 root root 1680 Jun 25 22:09 4f901de3-ce44517d-2ab7-00145e5a2150
drwxr-xr-x 1 root root 8 Jan 1 1970 4f901de7-016db525-ac81-00145e5a2150
drwxr-xr-t 1 root root 1540 Jun 28 21:12 4fe88dc6-29aa614d-3af2-001517688416
lrwxr-xr-x 1 root root 35 Jun 28 22:25 Virtual Client Datastore -> 4fe88dc6-29aa614d-3af2-001517688416
drwxr-xr-x 1 root root 8 Jan 1 1970 c4394e72-b6c97a28-b3ac-d2c1373f6db2
lrwxr-xr-x 1 root root 35 Jun 28 22:25 datastore1 -> 4f901de3-ce44517d-2ab7-00145e5a2150
~ #