Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve expand_root_partition.yaml #191

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Conversation

huaqing1994
Copy link
Contributor

@huaqing1994 huaqing1994 commented Dec 31, 2024

ticket

[SKS-3327] 原地更新 - ARM的集群,磁盘扩容,原地更新失败 - Jira
根因: openEuler 的根目录分区是 vda3,playbook 中写死了 vda2 导致失败:
image

changes

  • 优化 expand_root_partition.yaml
    • 从 ansible facts 中提取根目录的挂载设备和分区
    • 调整 shell 语法,兼容 sh

test

  • rocky 集群磁盘热扩容成功
    image

  • openEuler 磁盘热扩容成功
    image

  • 手动在 Kylin 系统中测试 playbook 扩容成功

  • 手动在 ubuntu 系统中测试 playbook 扩容成功

@haijianyang haijianyang merged commit 656241c into master Jan 2, 2025
1 check passed
@haijianyang haijianyang deleted the huaqing/expand-disk-oe branch January 2, 2025 09:18
huaqing1994 added a commit that referenced this pull request Jan 3, 2025
…ands (#192)

ticket
-
[\[SKS-3327\] 原地更新 - ARM的集群,磁盘扩容,原地更新失败 -
Jira](http://jira.smartx.com/browse/SKS-3327)
#191 只修改了
playbook,在创建节点时指定大于模板大小的磁盘还需执行 preKubeadmCommands 中的命令。

changes
-
- 优化 templates/cluster-template.yaml 中 preKubeadmCommands
提示的扩容分区命令,适配更多不同的操作系统

test
-
- 手动测试命令:

![image](https://github.com/user-attachments/assets/a973c9b5-d753-4369-842b-de02badcb38a)
- 创建磁盘大于模板的节点成功:
<img width="1762" alt="image"
src="https://github.com/user-attachments/assets/a3ec348f-c373-429e-82b8-27a88491fc0f"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants