Created
April 10, 2015 19:51
-
-
Save tachang/99c1a020044c00f67d81 to your computer and use it in GitHub Desktop.
Recreate LVM snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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