Gcloud persistent bucket

Hi all,

We have the use case of operating two instances in redundant (Linux). To achieve this, we use GCS buckets to keep the homedirectory shared (/home).

The issue is that when restarting the server, the bucket has to be remounted because it is not persistent.

My question now is, how can the bucket be made persistent?
(Like e.g. in an /etc/fstab)

 

Have not found anything so far in documentation, many thanks for any feedback!

2 2 119
2 REPLIES 2

You may also be better off just using a regional persistent disk, since persistent disks can survive VMs: https://cloud.google.com/compute/docs/disks/regional-persistent-disk .
 

Hello @nikramer ,

Another option would be to use a startup script to mount the bucket after the VM boots. Please see the documentation at https://cloud.google.com/compute/docs/instances/startup-scripts/linux. I hope this helps.