t/5-install-lvm-swapper.sh
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 24 Jun 2014 23:16:43 +0000 (01:16 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 24 Jun 2014 23:16:57 +0000 (01:16 +0200)
t/5-install-lvm-swapper.sh [new file with mode: 0755]

diff --git a/t/5-install-lvm-swapper.sh b/t/5-install-lvm-swapper.sh
new file mode 100755 (executable)
index 0000000..95db7de
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh -xe
+
+find /usr/share/ganeti/extstorage/zfs/sbin/ -type f | xargs -i ln -v -s -f {} /sbin/
+
+pvs --noheadings --nosuffix --units=m --unbuffered '--separator=|' -opv_name,vg_name,pv_free,pv_attr,pv_size,pv_name