暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

【YashanDB】卸载数据库

yang 2025-11-10
115

【数据库信息

[yashan@node01 ~]$ yasboot cluster status -c yashandb
host_id | node_type | nodeid | pid
---------------------------------------
host0001 | db | 1-1:1 | 10809
----------+-----------+--------+-------


【进程信息】

[yashan@node01 log]$ ps -ef | grep yashan
yashan 10345 1 0 21:48 ? 00:00:00 /yashan/yasdb_home/yashandb/23.1.1.100/bin/yasom -c yashandb -l 192.168.162.141:1675 -d
yashan 10372 1 0 21:48 ? 00:00:00 /yashan/yasdb_home/yashandb/23.1.1.100/bin/yasagent -c yashandb -l 192.168.162.141:1676 -d
yashan 10389 1 22 21:49 ? 00:00:43 /yashan/yasdb_home/yashandb/23.1.1.100/bin/yasdb open -D /yashan/yasdb_data/db-1-1


【卸载数据库

1.卸载数据库

[yashan@node01 ~]$ yasboot cluster clean -c yashandb --purge
Are you sure you want to CLEAN cluster: [yashandb], AND ALL DATA WILL BE DELETED (-p/--purge is given)?
[yes/no]: yes
type | uuid | name | hostid | index | status | return_code | progress | cost
-----------------------------------------------------------------------------------------------------------
task | 35827ccfbe14bbb7 | CleanYasdbCluster | - | yashandb | SUCCESS | 0 | 100 | 2
------+------------------+-------------------+--------+----------+---------+-------------+----------+------
task completed, status: SUCCESS


2.检查数据库和进程信息

[yashan@node01 ~]$ yasboot cluster status -c yashandb
request resource should not found in yasom
please check, is it clean or destory?


[yashan@node01 ~]$ ps -ef | grep yashan
yashan 10345 1 0 00:39 ? 00:00:16 /yashan/yasdb_home/yashandb/23.1.1.100/bin/yasom -c yashandb -l 192.168.162.141:1675 -d
yashan 10372 1 0 00:39 ? 00:00:03 /yashan/yasdb_home/yashandb/23.1.1.100/bin/yasagent -c yashandb -l 192.168.162.141:1676 -d

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论