• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

storage

GCP Create Filestore

December 7, 2019

GCP Cloud Filestore is a managed file storage service for applications that require a filesystem interface and a shared filesystem for data. Filestore gives users a simple, native experience for standing up managed Network Attached Storage (NAS) with their Google Compute Engine and Kubernetes Engine instances.

With that said, let’s build one.

gcloud filestore instances create nfs-server \
  --project=[PROJECT_ID] \
  --zone=us-central1-c \
  --tier=STANDARD \
  --file-share=name="vol1",capacity=1TB \
  --network=name="default"

gcloud filestore instances create nfs-server \ --project=[PROJECT_ID] \ --zone=us-central1-c \ --tier=STANDARD \ --file-share=name="vol1",capacity=1TB \ --network=name="default"

How to mount the filestore on clients.

sudo apt-get -y update
sudo apt-get -y install nfs-common
sudo mkdir /mnt/test
sudo mount 10.0.0.2:/vol1 /mnt/test
sudo chmod go+rw /mnt/test

sudo apt-get -y update sudo apt-get -y install nfs-common sudo mkdir /mnt/test sudo mount 10.0.0.2:/vol1 /mnt/test sudo chmod go+rw /mnt/test

Increase capacity to 3TB.

gcloud filestore instances update nfs-server 
  --project=myproject 
  --zone=us-central1-c 
  --file-share=name="vol1",capacity=3TB

gcloud filestore instances update nfs-server --project=myproject --zone=us-central1-c --file-share=name="vol1",capacity=3TB

Filed Under: Cloud Tagged With: add, create, filestore, gcp, nas, storage

Install S3cmd on Ubuntu

December 22, 2014

If you want to backup your Linux server to Amazon S3 (Simple Storage Service), you need to install a utility called S3cmd which allows you to interact with Amazon’s cloud storage service. You’ll be able to create s3 buckets, upload and retrieve files from your Linux server to the S3.

You can install S3cmd from Ubuntu.

sudo apt-get install s3cmd

sudo apt-get install s3cmd

Next, you need to configure S3cmd using your S3 credentials. You’ll need an Access key and a Secret key from Amazon’s Security Credentials page which you can access from Amazon’s IAM Management Console.

sudo s3cmd --configure

sudo s3cmd --configure

For details on how to fully implement S3cmd, please take a look at this article.

Filed Under: Cloud, Linux Tagged With: amazon, cloud, s3, storage

  • Home
  • About
  • Archives

Copyright © 2023