gcloud compute scp can't find filestore instance

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



gcloud compute scp can't find filestore instance



Trying to copy some data into a newly created GCP Filestore with the gcloud CLI.



gcloud compute scp --recurse /somedirectore/somefile somefilestore-1:/somemount



gcloud seems unable to find the instance:



ERROR: (gcloud.compute.scp) Could not fetch resource:
- The resource 'projects/k8-spark/zones/us-central1-a/instances/somefilestore-1' was not found



The filestore instance does exist. Wondering if compute scp actually works with filestores? The documentation seems to think so:



https://cloud.google.com/filestore/docs/copying-data



Any help much appreciated!




1 Answer
1



The error indicates that "somefilestore-1" is not a name for a Compute Engine (GCE) instance, not a Filestore instance. You can find the instance name in Compute Engine [1]. If your instances were created by the Kubernetes Engine, it will likely start with "gke-< your_K8_cluster_name >".



Some section of the documentation refers to GCE instances as "VM instance", note that the Cloud Filestore fileshare is mounted on a Compute Engine Windows VM instance.



[1] https://console.cloud.google.com/compute/instances





cloud.google.com/filestore/docs/copying-data seems to think I can use this and refer directly to a filestore "instance". There is no compute engine instance involved. Basically just trying to copy some data into filestore
– Paul Wolfe
Aug 12 at 23:16





As you can read there, "Cloud Filestore fileshare [is] mounted on a Compute Engine Windows VM instance."
– Neri
Aug 13 at 14:04






The command is gcloud compute scp [LOCAL_DATA_PATH] [INSTANCE_NAME]:/[MOUNT_DIRECTORY] --project [PROJECT_ID] --zone [LOCATION] Where: "[INSTANCE_NAME] is the name of the client VM instance that the Cloud Filestore fileshare is mounted on." So you have to provide the GCE Instance name to the command.
– Neri
Aug 13 at 14:04



gcloud compute scp [LOCAL_DATA_PATH] [INSTANCE_NAME]:/[MOUNT_DIRECTORY] --project [PROJECT_ID] --zone [LOCATION]





Yup, got this far myself, but I wasn't able to see the "instance" on which the fileshare was running anywhere in the console or using the api to list GCE instances.
– Paul Wolfe
Aug 14 at 2:13





Did you mount your fileshare on GCE clients as described here? or access the fileshare from a Kubernetes Engine cluster as described here? If you have a GCE instance or a Kubernetes cluster dedicated to have fileshare, you can mount the fileshare on the instance you want to use. For your filestore, do you want to mount your fileshare on a GCE instance or on a GKE cluster?
– Neri
Aug 14 at 14:14






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS