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

Gue dengan S2 gue. Sronok banget!
Sed (streaming editor) big time mnajem @zalzalah ~ $ cat ustazasri.txt >Kuliah Dr. Mohd. Asri Zainul Abidin (Julai 2005) >>Tarikh >>Tempat >>Waktu >>Tajuk >>15 Julai 2005 JUMAAT >>Surau al-Muhajirun, Taman Sri Ukay, Ampang >>Selepas Maghrib >>Riyadh al-Salihin (Kitab Perkara yang Ditegah) >>16 Julai 2005 SABTU >>Balai Budaya Tun Syed Nasir, DBP Kuala Lumpur >>8.30 pagi ¿ 1.00 tgh >>DEBAT Astora Jabat vs Dr. Mohd. Asri ¿ Gerakan Tajdid: Satu Perbincangan >>17 Julai 2005 AHAD >>Dewan Kuliah, Balai Islam Masjid al-Ghufran, Pinggiran Taman Tun Dr. Ismail >>10.00 pagi >>Riyadh al-Salihin (Kitab Perkara yang Disuruh, Bab al-Taqwa, Bab ke-6) >>17 Julai 2005 AHAD >>Masjid Jamek Abdul Aziz, Jalan Templer, Petaling Jaya >>Selepas Maghrib >>Sahih al-Bukhariy (Kitab al-Iman) >>*Kuliah Maghrib di Masjid Al-Syakirin, Bandar Utama dibatalkan.> mnajem@zalzalah ~ $ sed -i...

Tips maksimakan penjimatan cukai untuk individu dan bisnes

Salam Sejahtera! Saya baru saja beli buku penjimatan cukai tulisan kenalan saya Khairul Amal Haji Hashim (kedua-dua penulis dan arwah bapanya adalah orang yang saya kenali). Tuan Khairul Amal dikenali di laman muka buku dan di televisyen sebagai pakar cukai yang rajin mengemaskini khalayak dengan ilmu percukaian beliau. Berminat dengan buku ni? Klik  sini Berminat dengan buku ni? Klik sini