Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

mounted disk seem to occupy original disk space

Hello I had mounted additional persistent dist to virtual machine (vm) as in instructions [1]. Now I ran out of memory on main vm boot disk . When invoking

```

du -a | sort -n -r | head -n 20

``` 

biggest files are  in /mnt directory - where mounted disk is  - so if I am not mistaken this data that I intended to be only on additional disk is also on boot one?

Am I right? f yes How to change it?

 

[1] https://cloud.google.com/compute/docs/disks/add-persistent-disk 

Solved Solved
0 1 324
1 ACCEPTED SOLUTION

The answer is yes, the data still is on the current boot disk. The guide that you followed was to create a blank persistent disk and add it to your VM. Based on your question, I believe you will need to create a disk from your current boot disk data source, and then you will be able to resize the disk. To perform this operation, you need to follow this guide; then, if the new additional disk is working well, you can start to delete the duplicated data. Furthermore, this guide would help you to recover your VM if the disk is corrupted or full.

 

View solution in original post

1 REPLY 1

The answer is yes, the data still is on the current boot disk. The guide that you followed was to create a blank persistent disk and add it to your VM. Based on your question, I believe you will need to create a disk from your current boot disk data source, and then you will be able to resize the disk. To perform this operation, you need to follow this guide; then, if the new additional disk is working well, you can start to delete the duplicated data. Furthermore, this guide would help you to recover your VM if the disk is corrupted or full.