• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

cloud

GCP CLI Start Stop Instances

March 12, 2019

Here’s the CLI commands to start and stop Google Cloud instances.

gcloud compute instances start server-name --zone=us-central1-c
gcloud compute instances stop server-name --zone=us-central1-c
gcloud compute instances reset server-name --zone=us-central1-c

gcloud compute instances start server-name --zone=us-central1-c gcloud compute instances stop server-name --zone=us-central1-c gcloud compute instances reset server-name --zone=us-central1-c

Filed Under: Cloud Tagged With: cloud, google, instances, start, stop

Cloud Filestore

January 10, 2019

Cloud Filestore is a managed file service by Google Cloud. It’s a shared file system similar to Amazon’s Elastic File System offering. Users of Cloud Filestore will experience something similar to when using a NAS drive (network attached storage). Filestore is used for both Compute and Kubernetes Engine instances. Unlike EFS where storage is unlimited, you have to specify a storage size when creating a new Filestore.

Create a Filestore:

gcloud beta filestore instances create nfs-server \
    --project=your-project-id \
    --location=your-region \
    --tier=STANDARD \
    --file-share=name="vol1",capacity=1TB \
    --network=name="default",reserved-ip-range="10.0.0.0/29"

gcloud beta filestore instances create nfs-server \ --project=your-project-id \ --location=your-region \ --tier=STANDARD \ --file-share=name="vol1",capacity=1TB \ --network=name="default",reserved-ip-range="10.0.0.0/29"

Delete a Filestore:

gcloud beta filestore instances delete nfs-server --project=your-project-id --location=your-region

gcloud beta filestore instances delete nfs-server --project=your-project-id --location=your-region

Instance clients can connect to the Filestore using a NFS client.

sudo apt-get -y update
sudo apt-get -y install nfs-common
sudo mkdir /mnt/test
sudo mount 10.0.0.59:/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.59:/vol1 /mnt/test sudo chmod go+rw /mnt/test

Filed Under: Cloud Tagged With: aws, cloud, efs, filestore, gcp, google, nas

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

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Home
  • About
  • Search

Copyright © 2023