Skip to content

Instantly share code, notes, and snippets.

@npwolf
Last active September 16, 2020 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npwolf/67743994eff89e18f7b82e89bb557cc0 to your computer and use it in GitHub Desktop.
Save npwolf/67743994eff89e18f7b82e89bb557cc0 to your computer and use it in GitHub Desktop.
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