If you’ve been using the public cloud you know that leveraging its managed services can bring you some incredible advantages. When using Google Cloud Storage services, understanding how to properly configure different services can make a big difference by providing greater flexibility while at the same time reducing your engineering footprint and monthly costs. The same is true with Google Cloud Persistent Disks.
Taking advantage of Google Cloud Persistent Disk’s built-in features and ability to do online resizing can ensure your business continuity and a smooth sailing.
In this post we’ll take a closer look at Google Cloud Persistent Disks and show how to resize them. For Google Cloud users, this process will provide added flexibility over your deployment, something that you can expand even further with NetApp® Cloud Volumes ONTAP for Google Cloud.
Google Cloud Persistent Disks provide Google Compute Engine virtual machine instances with reliable and high-performance block storage.
In the context of a cloud instance, a persistent disk is seen as the default root disk of the virtual machine. This concept differs greatly from a virtual machine in your workstation (with local disk) but it is fairly similar to an on-premises SAN storage system.
There are very interesting out-of-the-box functionalities in Google Cloud Persistent Disks that are worth exploring. These built-in features reduce your operational overhead and also provide you with much greater flexibility. One of the main characteristics of Persistent Disks in Google Cloud is the excellent performance, default built-in encryption, and durability that ensures both redundancy and data integrity.
Each Persistent Disk can grow up to the impressive size of 64 TB. By having the disk volumes located independently from the virtual machine instances, they can be easily detached and retain all the data even after the instance is deleted. In addition, custom virtual images can be created from Persistent Disks to speed up the bootstrap process in applications running in Google Cloud Compute.
Another very popular feature is the ability to resize disks without the need to restart virtual instances, which can help ensure continuous operation without disruption. Let’s take a look at this function in more detail.
Since Persistent Disks are directly associated with Google Cloud Compute Engine, in order to properly explore the resize functionality we will start by creating a Google Cloud instance. For this example, we will cover the most common real-world use case for resizing disks: extending the Persistent Disk of a running instance without incurring any downtime.
Compute Engine section where you initiate the instance creation process.
Configure the instance settings.
The VM Instance list provides the details of your instances.
From within the Google Cloud Linux instance, you can use the command df -h to visualize the current space usage of the Google Cloud mount disk.
Browser SSH functionality in Compute Engine and instance disk space usage.
Resizing the Google Cloud Persistent Disk can be done fully online, i.e., with the instance running and without downtime. Below we’ll go through the steps to carry this out.
Compute Engine section with the existing Persistent Disks
Details of the Google Cloud Persistent Disk.
Changing the Persistent Disk size via the editing option.
The change to the Persistent Disk size happens immediately after you save. However, this will not be visible and usable in the Linux file system until you resize the file system.
Linux instance cfdisk command view.
Growing the partition plus online resizing of the Linux file system.
The ability to resize Persistent Disks on-demand is an incredibly powerful functionality that enables customers to take advantage of the elasticity in public cloud.
Now that you’ve seen step-by-step how Persistent Disks can be resized in Google Cloud, you have a solution for a very common real-world scenario that customers often face using cloud instances: the need to increase and expand the size of a Linux file system without any downtime. This functionality will be important to know for any deployment of Cloud Volumes ONTAP on Google Cloud.
What do Google Cloud users gain by using Cloud Volumes ONTAP for data management? The same storage efficiency, data protection and cloning features that have made Cloud Volumes ONTAP essential for enterprise deployments on AWS and Azure.