Create a zpool and ZFS filesystem
You will need 1 zpool with 1 zfs filesystem to store the backup data. You
can use any existing zpool. The backup script does not require it's own
pool. zpool creation is fairly straight-forward:
# zpool create tank devname1 [devname2 ...]
So if you have a slice at /dev/rdsk/c0t1d0s1 available, run:
# zpool create tank c0t1d0s1
You can add as many devices into the zpool as you like and by default
it will create a stripe of sorts. If you want to mirror two devices:
# zpool create tank mirror c0t1d0s1 c0t2d0s1
To view the new zpool, use the "zpool list" command:
# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
tank 2.17T 2.01T 161G 92% ONLINE -
Now create a new ZFS filesystem on your zpool and specify a mountpoint:
# zfs create tank/backup
# zfs set mountpoint=/backup tank/backup
Now you can see your filesystem using the zfs list command:
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
tank 2.01T 126G 25.5K none
tank/backup 1.84T 126G 450G /backup
If you use these default names and mountpoints, the backup script is
already set up. If you've modified anything, edit the top of the
ypass-backup file with the appropriate names.