• bclinux aarch64 ceph 14.2.10 彻底删除ceph集群及数据


    ceph-deploy purge ceph-3

    1. [root@ceph-0 ~]# ceph-deploy purge ceph-3
    2. [ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
    3. [ceph_deploy.cli][INFO ] Invoked (2.0.1): /usr/bin/ceph-deploy purge ceph-3
    4. [ceph_deploy.cli][INFO ] ceph-deploy options:
    5. [ceph_deploy.cli][INFO ] username : None
    6. [ceph_deploy.cli][INFO ] verbose : False
    7. [ceph_deploy.cli][INFO ] overwrite_conf : False
    8. [ceph_deploy.cli][INFO ] quiet : False
    9. [ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0xffff8e6cb2d0>
    10. [ceph_deploy.cli][INFO ] cluster : ceph
    11. [ceph_deploy.cli][INFO ] host : ['ceph-3']
    12. [ceph_deploy.cli][INFO ] func : <function purge at 0xffff8e858ad0>
    13. [ceph_deploy.cli][INFO ] ceph_conf : None
    14. [ceph_deploy.cli][INFO ] default_release : False
    15. [ceph_deploy.install][INFO ] note that some dependencies *will not* be removed because they can cause issues with qemu-kvm
    16. [ceph_deploy.install][INFO ] like: librbd1 and librados2
    17. [ceph_deploy.install][DEBUG ] Purging on cluster ceph hosts ceph-3
    18. [ceph_deploy.install][DEBUG ] Detecting platform for host ceph-3 ...
    19. dhclient(1723) is already running - exiting.
    20. This version of ISC DHCP is based on the release available
    21. on ftp.isc.org. Features have been added and other changes
    22. have been made to the base software release in order to make
    23. it work better with this distribution.
    24. Please report issues with this software via:
    25. https://gitee.com/src-openeuler/dhcp/issues
    26. exiting.
    27. dhclient(1723) is already running - exiting.
    28. This version of ISC DHCP is based on the release available
    29. on ftp.isc.org. Features have been added and other changes
    30. have been made to the base software release in order to make
    31. it work better with this distribution.
    32. Please report issues with this software via:
    33. https://gitee.com/src-openeuler/dhcp/issues
    34. exiting.
    35. [ceph-3][DEBUG ] connected to host: ceph-3
    36. [ceph-3][DEBUG ] detect platform information from remote host
    37. 21.10U3 LTS
    38. bclinux
    39. [ceph-3][DEBUG ] detect machine type
    40. [ceph_deploy.install][INFO ] Distro info: bclinux 21.10U3 21.10U3 LTS
    41. [ceph-3][INFO ] Purging Ceph on ceph-3
    42. [ceph-3][INFO ] Running command: yum -y -q remove ceph ceph-release ceph-common ceph-radosgw
    43. [ceph-3][WARNIN] Unable to connect to Registration Management Service
    44. [ceph-3][INFO ] Running command: yum clean all
    45. [ceph-3][WARNIN] Unable to connect to Registration Management Service
    46. [ceph-3][DEBUG ] 12 files removed

    ceph-deploy purgedata ceph-3

    1. [root@ceph-0 ~]# ceph-deploy purgedata ceph-3
    2. [ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
    3. [ceph_deploy.cli][INFO ] Invoked (2.0.1): /usr/bin/ceph-deploy purgedata ceph-3
    4. [ceph_deploy.cli][INFO ] ceph-deploy options:
    5. [ceph_deploy.cli][INFO ] username : None
    6. [ceph_deploy.cli][INFO ] verbose : False
    7. [ceph_deploy.cli][INFO ] overwrite_conf : False
    8. [ceph_deploy.cli][INFO ] quiet : False
    9. [ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0xffffbc70ba00>
    10. [ceph_deploy.cli][INFO ] cluster : ceph
    11. [ceph_deploy.cli][INFO ] host : ['ceph-3']
    12. [ceph_deploy.cli][INFO ] func : <function purgedata at 0xffffbc898b50>
    13. [ceph_deploy.cli][INFO ] ceph_conf : None
    14. [ceph_deploy.cli][INFO ] default_release : False
    15. [ceph_deploy.install][DEBUG ] Purging data from cluster ceph hosts ceph-3
    16. dhclient(1723) is already running - exiting.
    17. This version of ISC DHCP is based on the release available
    18. on ftp.isc.org. Features have been added and other changes
    19. have been made to the base software release in order to make
    20. it work better with this distribution.
    21. Please report issues with this software via:
    22. https://gitee.com/src-openeuler/dhcp/issues
    23. exiting.
    24. dhclient(1723) is already running - exiting.
    25. This version of ISC DHCP is based on the release available
    26. on ftp.isc.org. Features have been added and other changes
    27. have been made to the base software release in order to make
    28. it work better with this distribution.
    29. Please report issues with this software via:
    30. https://gitee.com/src-openeuler/dhcp/issues
    31. exiting.
    32. [ceph-3][DEBUG ] connected to host: ceph-3
    33. [ceph-3][DEBUG ] detect platform information from remote host
    34. 21.10U3 LTS
    35. bclinux
    36. [ceph-3][DEBUG ] detect machine type
    37. [ceph-3][DEBUG ] find the location of an executable
    38. dhclient(1723) is already running - exiting.
    39. This version of ISC DHCP is based on the release available
    40. on ftp.isc.org. Features have been added and other changes
    41. have been made to the base software release in order to make
    42. it work better with this distribution.
    43. Please report issues with this software via:
    44. https://gitee.com/src-openeuler/dhcp/issues
    45. exiting.
    46. dhclient(1723) is already running - exiting.
    47. This version of ISC DHCP is based on the release available
    48. on ftp.isc.org. Features have been added and other changes
    49. have been made to the base software release in order to make
    50. it work better with this distribution.
    51. Please report issues with this software via:
    52. https://gitee.com/src-openeuler/dhcp/issues
    53. exiting.
    54. [ceph-3][DEBUG ] connected to host: ceph-3
    55. [ceph-3][DEBUG ] detect platform information from remote host
    56. 21.10U3 LTS
    57. bclinux
    58. [ceph-3][DEBUG ] detect machine type
    59. [ceph_deploy.install][INFO ] Distro info: bclinux 21.10U3 21.10U3 LTS
    60. [ceph-3][INFO ] purging data on ceph-3
    61. [ceph-3][INFO ] Running command: rm -rf --one-file-system -- /var/lib/ceph
    62. [ceph-3][WARNIN] OSDs may still be mounted, trying to unmount them
    63. [ceph-3][INFO ] Running command: find /var/lib/ceph -mindepth 1 -maxdepth 2 -type d -exec umount {} ;
    64. [ceph-3][WARNIN] umount: /var/lib/ceph/osd: not mounted.
    65. [ceph-3][INFO ] Running command: rm -rf --one-file-system -- /var/lib/ceph
    66. [ceph-3][INFO ] Running command: rm -rf --one-file-system -- /etc/ceph/

    ceph-deploy forgetkeys

    1. [root@ceph-0 ~]# ceph-deploy forgetkeys
    2. [ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
    3. [ceph_deploy.cli][INFO ] Invoked (2.0.1): /usr/bin/ceph-deploy forgetkeys
    4. [ceph_deploy.cli][INFO ] ceph-deploy options:
    5. [ceph_deploy.cli][INFO ] username : None
    6. [ceph_deploy.cli][INFO ] verbose : False
    7. [ceph_deploy.cli][INFO ] overwrite_conf : False
    8. [ceph_deploy.cli][INFO ] quiet : False
    9. [ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0xffffba1f3f00>
    10. [ceph_deploy.cli][INFO ] cluster : ceph
    11. [ceph_deploy.cli][INFO ] func : <function forgetkeys at 0xffffba3a5750>
    12. [ceph_deploy.cli][INFO ] ceph_conf : None
    13. [ceph_deploy.cli][INFO ] default_release : False

     cleanlvm.sh

    1. result_VG=`vgdisplay | grep "ceph" |awk '{print $3}'`
    2. for vg in ${result_VG}
    3. do
    4. vgremove -f ${vg}
    5. done

    [root@ceph-0 ~]# bash  cleanlvm.sh

    测试环境没做缓存盘(跳过)

    略。。

    reboot

    重启ceph-3节点

    wipefs -a /dev/vdb

    [root@ceph-3 ~]# wipefs -a /dev/vdb 
    

    清理ceph数据目录

    1. sudo rm -rf /var/lib/ceph/osd/*
    2. sudo rm -rf /var/lib/ceph/mon/*
    3. sudo rm -rf /var/lib/ceph/mds/*
    4. sudo rm -rf /var/lib/ceph/bootstrap-mds/*
    5. sudo rm -rf /var/lib/ceph/bootstrap-osd/*
    6. sudo rm -rf /var/lib/ceph/bootstrap-mon/*
    7. sudo rm -rf /var/lib/ceph/tmp/*
    8. sudo rm -rf /etc/ceph/*
    9. sudo rm -rf /var/run/ceph/*
    10. rm -rf /etc/ceph/*
    11. rm -rf /root/ceph/*
    12. rm -rf /var/lib/ceph/*/*
    13. rm -rf /var/log/ceph/*
    14. rm -rf /var/run/ceph/*
    15. userdel -r ceph # 清除ceph用户

    重复ceph-2 ceph-1 ceph-0

    重装

    参考

    ceph-deploy bclinux aarch64 ceph 14.2.10-CSDN博客

    故障

    purge多结点后,purgedata报错

    参考

    ceph环境清理_ceph purge-CSDN博客

  • 相关阅读:
    RIP小实验配置及缺省路由下发
    解决Python执行命令时路径空格引发的困扰
    Chapter5.2:频率响应法
    图像超分经典网络 SRGAN 解析 ~ 如何把 GAN 运用在其他视觉任务上
    Revit建模中如何快速画好幕墙?
    Java8新特性Lambda表达式详解
    FLStudio水果软件最新版本V21.2.0汉化版下载
    JavaScript 中 数组(Array)的 pop/push, shift/unshift 方法以及性能比较
    二分算法(超详细)
    常见的行为型设计模式
  • 原文地址:https://blog.csdn.net/hknaruto/article/details/134443312