#!/bin/bash
#
# Create lvm snapshots
#

### prepare filesystem as good as possible ###

/usr/bin/sync

### create snapshots ###

/usr/sbin/lvcreate -L1G -n snap-root -s ssd/root || exit 255
/usr/sbin/lvcreate -L4G -n snap-var  -s ssd/var  || exit 255
/usr/sbin/lvcreate -L2G -n snap-opt  -s ssd/opt  || exit 255
/usr/sbin/lvcreate -L2G -n snap-home -s ssd/home || exit 255

exit 0
