summaryrefslogtreecommitdiffstats
path: root/server/setup/zfs_linux_bringup/zfs03-export_import.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-06-04 04:51:26 +0200
committerSven Gothel <[email protected]>2013-06-04 04:51:26 +0200
commit3d29685ac14d29b0f0e49a8401028c74c3e26d7a (patch)
treed12b8fb1f5f4de55000e9c69d20375bffb8c34e7 /server/setup/zfs_linux_bringup/zfs03-export_import.sh
parentedc22ed546513910e87a93acebece75882be951d (diff)
Add initial Debian 7.00 Server Setup w/ ZFS
Diffstat (limited to 'server/setup/zfs_linux_bringup/zfs03-export_import.sh')
-rw-r--r--server/setup/zfs_linux_bringup/zfs03-export_import.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/setup/zfs_linux_bringup/zfs03-export_import.sh b/server/setup/zfs_linux_bringup/zfs03-export_import.sh
new file mode 100644
index 0000000..9af520a
--- /dev/null
+++ b/server/setup/zfs_linux_bringup/zfs03-export_import.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+zpool set bootfs=jogamp07/system/debian7_01 jogamp07
+
+zpool set cachefile=/etc/zfs/zpool.cache jogamp07
+
+zpool export jogamp07
+zpool import -R /mnt/new jogamp07
+
+mkdir -p /mnt/new/etc/zfs
+cp -a /etc/zfs/zpool.cache /mnt/new/etc/zfs