Here’s how to extend an ext4 boot volume.
gcloud compute disks resize DISK_NAME --size DISK_SIZE --zone ZONE --project PROJECTID |
Resize the file system. Example / is on sda3.
growpart /dev/sda 3 resize2fs /dev/sda3 |
cloud engineer
Here’s how to extend an ext4 boot volume.
gcloud compute disks resize DISK_NAME --size DISK_SIZE --zone ZONE --project PROJECTID |
gcloud compute disks resize DISK_NAME --size DISK_SIZE --zone ZONE --project PROJECTID
Resize the file system. Example / is on sda3.
growpart /dev/sda 3 resize2fs /dev/sda3 |
growpart /dev/sda 3 resize2fs /dev/sda3
File system command differences between ext3 and xfs.
Task | ext4 | xfs |
Creating a file system | mkfs.ext4 | mkfs.xfs |
Mounting a file system | mount | mount |
Resizing a file system | resize2fs | xfs_growfs |
Repairing a file system | e2fsck | xfs_repair |
Changing the label on a file system | e2label | xfs_admin -L |
Reporting on disk space and file usage | quota | quota |
Debugging a file system | debugfs | xfs_db |
Saving critical file system metadata to a file | e2image | xfs_metadump |