summaryrefslogtreecommitdiff
path: root/hosts/iroha/scripts/prepare-mounts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/iroha/scripts/prepare-mounts')
-rwxr-xr-xhosts/iroha/scripts/prepare-mounts5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/iroha/scripts/prepare-mounts b/hosts/iroha/scripts/prepare-mounts
new file mode 100755
index 0000000..0c7ceb4
--- /dev/null
+++ b/hosts/iroha/scripts/prepare-mounts
@@ -0,0 +1,5 @@
+#! /usr/bin/env sh
+
+sudo kpartx -a /dev/iroha-vg1/iroha-store0-raid1
+sudo cryptsetup open /dev/mapper/iroha--vg1-iroha--store0--raid1p1 store
+sudo mount /dev/mapper/store /mnt/store