go-lvm
go-lvm copied to clipboard
WIP: go-lvm is a go library to call liblvm API based on python-lvm
go-lvm
Overview
go-lvm is a go library to call liblvm API based on python-lvm developed in LVM2.
Usage
Please refer to go-doc.
Test run
Let's create a available volume group and create and delete a LV.
step-1. set up a free VG
sudo dd if=/dev/zero of=disk.img bs=1G count=1
export LOOP=`sudo losetup -f`
sudo losetup $LOOP disk.img
sudo vgcreate vg-targetd $LOOP
step-2. Run an example script
go run cmd/example.go