Create a gist now

Instantly share code, notes, and snippets.

Recreate LVM snapshot
#!/bin/bash
# Stop crashplan temporarily
/etc/init.d/crashplan stop
# Unmount the datasnapshot
umount /mnt/datasnapshot
# Destroy snapshot and recreate it
lvremove -f /dev/example-vg/datasnapshot
lvcreate -L 250G -s -n datasnapshot /dev/riven-vg/data
# Mount it
mount /dev/example-vg/datasnapshot /mnt/datasnapshot
# Start up CrashPlan
/etc/init.d/crashplan start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment