User Tools

Site Tools


freebsd_zfs_daily

This is an old revision of the document!


Freebsd and Zfs commands

New drive using lable

Recently i had to add new drive but it doesn't had any glable.
Since drives are same size best bet is to use same partition size for new drive.
Using gpart backup / restore one add new partition on new disk and good to go for zfs.

gpart backup da11 > da11.bkup
gpart restore -l da34 < da11.bkup
glabel status
gpart show /dev/da34
gpart show /dev/da11
 
zpool add nas spare gptid/<New lable>
freebsd_zfs_daily.1570634432.txt.gz · Last modified: 2020/08/10 02:30 (external edit)