我是 Google Cloud 新手。我将一些文本文件下载到虚拟机实例中。然后我突然开始收到类似的消息
\n\nbash: cannot create temp file for here-document: No space left on device\nRun Code Online (Sandbox Code Playgroud)\n\n我运行 df -h 并发现我的磁盘正在被 100% 使用
\n\n/dev/sdb 9.8G 9.3G 0 100% /\nRun Code Online (Sandbox Code Playgroud)\n\n我搜索了一下,发现我可能需要添加更多的持久存储。
\n\n我按照此处的说明进行操作 - > https://cloud.google.com/compute/docs/disks/add-persistent-disk
\n\n现在,当我运行df -h时,我看到添加了新存储(使用率为 1%)
\n\n/dev/sdc 20G 45M 20G 1% /mnt/disks/disk2\nRun Code Online (Sandbox Code Playgroud)\n\n当我运行lsblk时,我得到:
\n\nNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT\nsda 8:0 0 10G 0 disk \n\xe2\x94\x94\xe2\x94\x80sda1 8:1 0 10G 0 part /\nsdc 8:32 0 20G 0 disk …Run Code Online (Sandbox Code Playgroud)