Skip to content

Instantly share code, notes, and snippets.

Last active September 16, 2020 23:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Reformat btrfs
# Recreate cowdata
systemctl stop docker
umount -f /fastdata
umount -f /cowdata
# Above umount needs to succeed
# verify cowdata and fastdata are unmounted
df -h
# Reformat btrfs
wipefs -f -a /dev/md125
dd if=/dev/zero of=/dev/md125 bs=4M count=1
mkfs.btrfs -L cowdata /dev/md125
# Re-mount everything
mount -a
# Restart docker service
systemctl start docker
# Verify containers come up along with jenkins
docker ps
# Check dva-ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment