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

将mysql8.0的版本降低到5.7的版本之后,状态一直为Initializing #638

Closed
anan1310 opened this issue Aug 8, 2022 · 14 comments
Closed
Labels
question Further information is requested

Comments

@anan1310
Copy link

anan1310 commented Aug 8, 2022

image

@anan1310 anan1310 added the question Further information is requested label Aug 8, 2022
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

Hi! thanks for your contribution! great first issue!

@runkecheng
Copy link
Collaborator

你好,目前不支持直接从8.0直接降级到5.7。

@anan1310
Copy link
Author

anan1310 commented Aug 8, 2022

你好,目前不支持直接从8.0直接降级到5.7。

那我想问一下 那删除了8.0的版本 然后重新部署也是这样的 有没有什么解决办法

@runkecheng
Copy link
Collaborator

你好,目前不支持直接从8.0直接降级到5.7。

那我想问一下 那删除了8.0的版本 然后重新部署也是这样的 有没有什么解决办法

请问你是怎么删除的,卸载集群要通过删除 mysqlcluster cr来卸载,否则不会删除pvc;如果pv使用mysql8初始化过,再绑定到mysql57就可能会无法启动。

@KID-G
Copy link
Contributor

KID-G commented Aug 8, 2022

你好,目前不支持直接从8.0直接降级到5.7。

那我想问一下 那删除了8.0的版本 然后重新部署也是这样的 有没有什么解决办法

可以参考公众号“RadonDB 开源社区”最新一期文章关于卸载时的注意事项部分。

@anan1310
Copy link
Author

anan1310 commented Aug 8, 2022

image

我先通过这样的方式删除,删除了mysqlcluster 然后在部署5.7版本的 我觉着这样的步骤完全是可行的 至于PVC我使用的storeClass ,如果PVC删除了之后 对应的pv也会自动删除

image

@runkecheng
Copy link
Collaborator

image

我先通过这样的方式删除,删除了mysqlcluster 然后在部署5.7版本的 我觉着这样的步骤完全是可行的 至于PVC我使用的storeClass ,如果PVC删除了之后 对应的pv也会自动删除
image

这个步骤是对的,可以看看init-sidecar和init-mysql是否有报错。

@anan1310
Copy link
Author

anan1310 commented Aug 8, 2022

image

我这里已经PVC和pv已经进行了绑定

image

错误信息提示

image

@runkecheng
Copy link
Collaborator

image

我这里已经PVC和pv已经进行了绑定
image

错误信息提示
image

看截图显示已经调度成功了,pod启动时短暂出现调度失败是正常的。

@anan1310
Copy link
Author

anan1310 commented Aug 8, 2022

image 我这里已经PVC和pv已经进行了绑定 image 错误信息提示 image

看截图显示已经调度成功了,pod启动时短暂出现调度失败是正常的。
然后进行了日志的查看

image

等待了很长时间都是这样的

image

@runkecheng
Copy link
Collaborator

runkecheng commented Aug 8, 2022

你需要指定容器 @anan1310

kubectl logs sample-mysql-0 -c init-sidecar
kubectl logs sample-mysql-0 -c init-mysql

@anan1310
Copy link
Author

anan1310 commented Aug 8, 2022

你需要指定容器 @anan1310

kubectl logs sample-mysql-0 -c init-sidecar
kubectl logs sample-mysql-0 -c init-mysql

可行了 就是等待的时间比较长 等待了大约20分钟之后它初始化成功了 这块是正常的吗

@runkecheng
Copy link
Collaborator

一般不会这么久,要看具体环境配置。

@anan1310
Copy link
Author

anan1310 commented Aug 8, 2022

好的 麻烦您了呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants