Resizing a Linode Volume Disk on Debian 12: A Step-by-Step Tutorial

If you’re using Linode Volume Disk, the name is “/mnt/disk-rdbms-slave-x51n61-data”,config as “/dev/sdc” and need to resize it from 20GB to 30GB without transferring data to another disk, this guide will walk you through the entire process.

It covers resizing the volume, checking and repairing the filesystem, and ensuring everything works seamlessly after the operation.

Step 1: Resize the Volume in Linode Cloud Manager

  1. Log in to the Linode Cloud Manager.
  2. Navigate to the Volumes section.
  3. Select the volume you wish to resize.
  4. Use the Resize Volume option to increase its size from 20GB to 30GB.
  5. Wait for the resizing operation to complete. This step increases the allocated space for the volume but does not automatically resize the filesystem on the server.

Step 2: Verify the New Size

After resizing the volume, check the updated size on your server:

The output should reflect the updated size of 30GB. For example:

Step 3: Unmount the Volume

Before resizing the filesystem, unmount the volume:

This ensures no processes are accessing the volume during the operation.

Step 4: Check and Repair the Filesystem

Run a filesystem check to ensure its integrity and repair any issues:

Example output:

If any issues are found, they will be repaired automatically when you confirm.

Step 5: Resize the Filesystem

Resize the filesystem to utilize the full 30GB of space:

Example output:

This extends the filesystem to match the new size of the volume.

Step 6: Remount the Volume

After resizing, remount the volume:

Step 7: Verify the Resizing

To confirm the volume now uses the full 30GB, check its size:

Example output:

Step 8: Test Data Integrity

Finally, verify that all your files and data are intact:

Conclusion

Resizing a Linode Volume Disk on Debian 12 is straightforward when following these steps. By ensuring the volume is properly resized and the filesystem is extended, you can expand storage without losing any data. Always remember to back up critical data before making changes to disk volumes or filesystems.

Let us know in the comments if this guide was helpful or if you encountered any issues!

Leave A Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.