summaryrefslogtreecommitdiffstats
path: root/server/setup/01-zfs_linux_bringup/zfs01-create_config-pool.sh
blob: eab7aa783854e27b98a08e72e3f4532b9b4e8778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh

zpool create -f -o ashift=12 jogamp07 mirror /dev/disk/by-id/ata-WDC_WD15EADS-00P8B0_WD-WMAVU0880750 /dev/disk/by-id/ata-WDC_WD20EARS-00S8B1_WD-WCAVY4733652

zpool autoexpand=on jogamp07
zpool autoreplace=on jogamp07
zpool listsnapshots=off jogamp07

zfs set dedup=off jogamp07
zfs set compression=off jogamp07
zfs set atime=off jogamp07
zfs set mountpoint=none jogamp07

# Swap ZVOL
zfs create jogamp07/swap -V 33G -b 4K
zfs set checksum=off jogamp07/swap
mkswap -f /dev/zvol/jogamp07/swap