6

Is there a way to mount a storage bucket to an instance so it can be used by the webserver as storage? If not, how can I add more storage to the instance without adding another persistent disk with an OS?

user3035181
  • 101
  • 3
  • 10
  • In GCE there is no more ephemeral disks. All disk is persistent disk. Secondly, Google Cloud Storage..even if its mounted to disk would not give you any reliable performance in comparison to persistent disk. Cloud Storage is object storage and not block device. You are better of using persistent disk they only cost $0.04/GB – Hareem Haque Mar 29 '14 at 14:57

2 Answers2

2

Aside from attaching a new persistent disk, you could also use a number of FUSE based utilities to mount either a Google Cloud Storage or AWS S3 bucket as a local disk.

s3fs: *Can work with Google Cloud or AWS *Bucket can be mounted on multiple systems at same time *Files are stored as objects on the bucket, so the files can be manipulated externally *A con is that it can be a little bit slow if you have a lot of files

S3QL: *Can work with Google Cloud or AWS *Bucket can be mounted on one system *Files are stored in a proprietary format, can't be manipulated outside of the mounted filesystem *Much faster than s3fs for many files *Doesn't handle network connectivity issues so well (manual fsck and remount if you lose network).

Hope this helps.

j k
  • 36
  • 1
-1

You can certainly create a new (larger) Persistent Disk and attach it to your instance as a data disk. This is a very good option, since it keeps your website data separate from your operating system. See the Persistent Disk docs for details on all the options.

In your case:

Ami Tavory
  • 74,578
  • 11
  • 141
  • 185
Brian Dorsey
  • 4,588
  • 24
  • 27
  • 1
    This doesn't explain how to mount a storage bucket, just how to add a persistent disk to a server. –  Oct 29 '14 at 17:53
  • This is an answer to the second question: "How can I add more storage to the instance wihtout adding another persistent disk with an OS?" – Brian Dorsey Oct 30 '14 at 05:47