Because local SSDs are located on the physical machine where your virtual machine instance is running, they can be created only during the instance creation process. Local SSDs cannot be used as boot devices.
After creating a local SSD, you must format and mount the device before you can use it.
You can create an instance with a local SSD using the Google Cloud Platform Console, the gcloud tool, or the Compute Engine API.
Here's how you can do it using console:
-
In the GCP Console, go to the VM Instances page.
-
Click Create instance.
-
On the Create a new instance page, fill in the properties for your instance.
-
Expand Management, security, disks, networking, sole tenancy.
-
Click Disks and under Additional disks , click Add new disk.
-
Under the Name field, enter a name for the new disk.
-
Under Type, choose Local SSD scratch disk (maximum 8).
-
Click Done.
-
Click Create to create the instance.
-
After creating a local SSD, you must format and mount the device before you can use it.