User Tools

Site Tools


computing:zfsreminders

This is an old revision of the document!


Create a pool on a single drive and specify a mountpoint for it. Note: use id, not uuid.

zpool create -m /mnt/Pool Pool -f /dev/disk/by-id/b592...

If you have more than one drive to begin with, you can make mirrors as follows:

zpool create -m /mnt/Pool Pool -f mirror /dev/disy/by-id/2323... /dev/disy/by-id/3232...

If you accidentally used short names, then export and import to change it asap like this:

zpool export vms 
zpool import -d /dev/disk/by-id vms

If you messed up and picked a wrong name and/or mountpoint, adjust later as follows. To rename:

zpool export [pool_name]
zpool import [original_pool_name] [new_pool_name]

To change mountpoint:

zfs set mountpoint=/myspecialfolder mypool

If you now have more than one drive, add another drive as a mirror as follows:

zpool attach nameofpool /dev/disk/by-id/currentdisk /dev/disk/by-id/newdisk
computing/zfsreminders.1659659376.txt.gz · Last modified: 2022/08/05 00:29 by oemb1905