Skip to content

Instantly share code, notes, and snippets.

@mjudeikis
Last active September 11, 2017 10:27
Show Gist options
  • Save mjudeikis/d0212cd450dfe30739359d740cec86fc to your computer and use it in GitHub Desktop.
Save mjudeikis/d0212cd450dfe30739359d740cec86fc to your computer and use it in GitHub Desktop.
systemctl stop glusterd
rm -rf /var/lib/glusterd/*
remove fstab records adn reboot server to remove busy mounts (easier than to find them)
#get list of vgs
vgs
vgremove vg_something
#wide disk
pvremove /dev/sdb --force --force -y
systemctl start glusterd
systemctl stop heketi
rm -rf /var/lib/heketi/heketi.db
systemctl start heketi
#### IN ACTION:
rm -rf /var/lib/glusterd/*
#clean fstab
vi /etc/fstab
reboot
vgs
vgremove vg_af6da8defe6e2696dfb650a1262de3e8
pvremove /dev/sdb
systemctl status glusterd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment