User Tools

Site Tools


freebsd_zfs_daily

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

freebsd_zfs_daily [2020/08/10 02:35] (current)
Line 1: Line 1:
 +====== 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.\\
 +<code bash>
 +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>
 +</​code>​
freebsd_zfs_daily.txt ยท Last modified: 2020/08/10 02:35 (external edit)