Skip to main content

How to attach persistent disk on running instance at Google Compute

So I have this USD300 credit for two months period to play around with Google compute.

I had created an instance, but with very small storage, 10GB. Then I decide nothing much can be done with that, so I created a persistent disk.

Google compute's documentation is incomplete and terrible, so we need to do try and error. So this is the confirmed workable solution that I tested:

Let say we created a project name "blah-1234"
and a persistent disk name "disk-for-blah"
to be attached to a VM instance named "vm-blah"

Please replace the --zone

~$ gcloud compute instances attach-disk --project "blah-1234" vm-blah  --disk disk-for-blah --zone asia-east1-c

If everything is fine (it'll take few seconds for the disk to be attached. You'll be prompted with the following output) :

Updated [https://www.googleapis.com/compute/v1/projects/blah-1234/zones/asia-east1-c/instances/vm-blah].



Comments

Popular posts from this blog

Danga Bay, Chevrolet Optra and bio...(eh?) I thought it was Debian(haha). My colleague point me to the AirAsia flight turbin and he told me, "Macam debian punya logo" I saw a spiral on top the turbin blades. Pretty much like Debian Logo That's spark me to shoot for a pix. And I was warned by the airport staff. Uh,uh. Flash lamp will spark burst,eh? I was presented my "mock" research proposal. Suggested "Profiling Bioinformatics Application Behavior on Distributed Computing Architecture". Eh, will this gonna be bioinformatics specific or hardware optimization specific.or? Flashback: I spent almost a week at the office. When it's Subh azan,went back to my house for bath and pray. Reading all the journals and papers was not funny,really. Tough eye balls. No world cup. Ewh. And have some VCD lure. Uh,uh. you gonna be kidding. Anyway, I learned a lot and UTM SLAB Research Course is no joke. Really. My proposal has been corrected with comments so I have
Gue dengan S2 gue. Sronok banget!