3
votes

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

1 Answers

0
votes

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