A production database virtual machine on Google Compute Engine has an ext4-formatted persistent disk for data files. The database is about to run out of storage space. How can you remediate the problem with the least amount of downtime?
A.
In the Cloud Platform Console, increase the size of the persistent disk and use the resize2fs command in Linux.
B.
Shut down the virtual machine, use the Cloud Platform Console to increase the persistent disk size, then restart the virtual machine
C.
In the Cloud Platform Console, increase the size of the persistent disk and verify the new space is ready to use with the fdisk command in Linux
D.
In the Cloud Platform Console, create a new persistent disk attached to the virtual machine, format and mount it, and configure the database service to move the files to the new disk
E.
In the Cloud Platform Console, create a snapshot of the persistent disk restore the snapshot to a new larger disk, unmount the old disk, mount the new disk and restart the database service
least amount of downtime? is the sugar word. You miss that you miss all. Everything there is correct but I believe its only A that fits that requirement
1. Online Resizing: Google Cloud Platform allows you to increase the size of a persistent disk while it's attached to a running VM. This means you don't need to shut down the database server.
2. resize2fs: This Linux command extends the file system to utilize the newly added space on the disk. It can be run while the file system is mounted, minimizing downtime.
A) can not work becouse you must extend partition and after than you can extend filesystem
C) ok becouse you can use fdisk in linux to extend partition and after than you can resize ext4 filesystem
Unlike Azure, in google you can dynamically resize the persistent disk while VM is running. This narrows down the option to A or C. Since the question says "ext4-formatted persistent disk", we need to choose correct command (resize2fs or fdisk ) for Linux for resizing ext4 file format disk. To resize an ext4 file system in Linux, you can use the resize2fs command. FDISK to manipulate partition tables in Linux.
A: Increasing the size of the persistent disk in the Cloud Platform Console and using the resize2fs command in Linux.
Increasing the size of the persistent disk can be done without requiring the virtual machine to be shut down, and the resize2fs command can be used to resize the ext4 filesystem on the disk to take advantage of the additional space. This will allow you to add more storage space to the virtual machine without disrupting the database service.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
TosO
Highly Voted 5 years agopassnow
Highly Voted 4 years, 11 months agoraj117
3 years, 7 months agomonkeym
3 years, 4 months agoEkramy_Elnaggar
Most Recent 1 week, 5 days agoSerGCP
3 weeks, 1 day agoNora9
1 year agoAdityaGupta
1 year, 1 month agoblackhawk86
1 year, 2 months agoblackhawk86
1 year, 2 months agoheretolearnazure
1 year, 3 months agojalberto
1 year, 3 months agojalberto
1 year, 3 months agoalekonko
1 year, 8 months agoomermahgoub
1 year, 11 months agomegumin
2 years agoMahmoud_E
2 years, 1 month agominmin2020
2 years, 1 month agoAzureDP900
2 years, 1 month agoholerina
2 years, 2 months ago