Scratch Drive Visibility on Google Compute Engine VM

I ran an instance that had -d on the back (it should be a disk from scratch).

But when loading the specified disk space is not visible.

It should be:

8 vCPUs, 52 GB RAM, 2 scratch disks (1770 GB, 1770 GB) 

But df -h outputs:

 Filesystem Size Used Avail Use% Mounted on rootfs 10G 644M 8.9G 7% / /dev/root 10G 644M 8.9G 7% / none 1.9G 0 1.9G 0% /dev tmpfs 377M 116K 377M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 753M 0 753M 0% /run/shm 

so how can you run a boot instance that is a permanent disk and accessible to a scratched disk?

The fact is that I need a high processor and a lot of space for scratches.

+4
source share
1 answer

df does not show scratches because they are not formatted or mounted. Run the following command:

 ls -l /dev/disk/by-id/ 

The output will be something like:

 lrwxrwxrwx 1 root root ... scsi-0Google_EphemeralDisk_ephemeral-disk-0 -> ../../sdb lrwxrwxrwx 1 root root ... scsi-0Google_EphemeralDisk_ephemeral-disk-1 -> ../../sdc 

Then you can use mkfs and mount appropriate drives.

See more details.

+7
source

Source: https://habr.com/ru/post/1502191/


All Articles