ubuntu@VM-0-2-ubuntu:/var/lib/docker/containers$sudofdisk-l Disk /dev/vda:100GiB,107374182400bytes,209715200sectors Units:sectorsof1*512=512bytes Sectorsize(logical/physical):512bytes/512bytes I/Osize(minimum/optimal):512bytes/512bytes Disklabel type:dos Disk identifier:0x3fa1d255
Disk /dev/vdb:200GiB,214748364800bytes,419430400sectors Units:sectorsof1*512=512bytes Sectorsize(logical/physical):512bytes/512bytes I/Osize(minimum/optimal):512bytes/512bytes
这是因为之前的数据被格式化为了 ext4,但是新扩容的部分并没有。
问了腾讯云的工程师,这时候必须要重新格式化才能用上新的容量,没有好的解决方法。
最后的解决方案:
将当前节点所有 Pod 驱逐到其他的节点。
当前节点退出集群然后配置磁盘,重新操作 mount 和格式化。(但是这里劝别折腾了,终究还是要格式化的。
把节点再加回来,这时候可以选重新格式化数据盘,mount 到 /var/lib/docker。
再把之前的 Pod 收回到本节点就好了。
完毕。
感觉还是不完善啊,像 Azure Kubernetes 的扩容就方便多了,不用整这么多麻烦事。
来源:https://cuiqingcai.com/23858.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_11491.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57