diff options
Diffstat (limited to 'server/setup/zfs_linux_bringup/zfs03-export_import.sh')
-rw-r--r-- | server/setup/zfs_linux_bringup/zfs03-export_import.sh | 11 |
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 |