I had proxmox on my WS, moved to FreeBSD as hypervisor and now i have a pickle.
Device i want to destroy to make a new pool:
fstab
Im guessing my ada0 device is being used ?
P.s. My ada0 device was direct pcie passtrough to Proxmox VM so i used my 2 devices ada0 and ada1 as physical devices in FreeBSD VM and created zfs mirror.
ada1 got destroyed by gpart command but ada0 - not.
Code:
# zpool status
pool: zroot
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada2p3 ONLINE 0 0 0
ada3p3 ONLINE 0 0 0
nda4p3 ONLINE 0 0 0
errors: No known data errors
Code:
# lsblk
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
ada0 0:190 447G GPT - -
ada0p1 0:191 260M efi gpt/efiboot0 /boot/efi
<FREE> -:- 1.0M - - -
ada0p2 0:192 12G freebsd-swap gpt/swap0 -
ada0p3 0:193 435G freebsd-zfs gpt/zfs0 <ZFS>
<FREE> -:- 836K - - -
ada1 0:197 466G - - -
gpart destory -F ada0
gives me error: Device is busy.fstab
Code:
/dev/gpt/efiboot0 /boot/efi msdosfs rw 2 2
/dev/ada2p2 none swap sw 0 0
/dev/ada3p2 none swap sw 0 0
/dev/nda4p2 none swap sw 0 0
gpart show ada0
Code:
# gpart show ada0
=> 40 937703008 ada0 GPT (447G)
40 532480 1 efi (260M)
532520 2008 - free - (1.0M)
534528 25165824 2 freebsd-swap (12G)
25700352 912001024 3 freebsd-zfs (435G)
937701376 1672 - free - (836K)
P.s. My ada0 device was direct pcie passtrough to Proxmox VM so i used my 2 devices ada0 and ada1 as physical devices in FreeBSD VM and created zfs mirror.
ada1 got destroyed by gpart command but ada0 - not.