Disk Cloning

Creating a backup boot drive from a zroot mirror

Today, using FreeBSD 14.3, I’m going to test booting from a drive which is a mirror of the boot drives. This is what I’m booting from: root@r730-04:~ # zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT zroot 923G 1.72G 921G – – 0% 0% 1.00x ONLINE – root@r730-04:~ # zpool status zroot pool: zroot state: ONLINE scan: resilvered 3.74M in 00:00:01 with 0 errors on Thu Nov 20 […]

Creating a backup boot drive from a zroot mirror Read More »

Duplicating a zpool

I have these boot drives, I want to copy them to another. They both happen to be zroot and bootable. I booted from mfsBSD and imported both new and old zroot, using the pool ID shown by zpool import -N. root@mfsbsd:~ # zpool import -N pool: data01 id: 2668514456528412656 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: data01 ONLINE mirror-0 ONLINE gpt/S59VNS0N809087J_S00 ONLINE gpt/S59VNJ0N631973D_S01 ONLINE mirror-1

Duplicating a zpool Read More »

Replacing both drives in a zpool mirror

As previously mentioned, zuul has new drives. It is now time to replace the existing drives with the new drives. I will do this one at a time. Replace. Wait for resilver. At no time will the mirror be degraded (as would be the case if we removed a drive and mirrored). In this approach, we will mirror one of the drives to a new drive, and zfs will automatically remove the old

Replacing both drives in a zpool mirror Read More »

Scroll to Top