Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 517 Bytes

ZFS.md

File metadata and controls

38 lines (25 loc) · 517 Bytes

ADD ZFS/ZPOOL

wipefs -a /dev/sdb /dev/sdc 
zpool create local-zfs mirror /dev/sdb /dev/sdc

Export the pool

zpool export local-zfs

Import back with by-id

zpool import -d /dev/disk/by-id local-zfs
pvesm add zfspool local-zfs -pool local-zfs

To delete zpool

zpool destroy <poolname>

then fdisk and delete all partition for each drive

LINUX GET DISK TREE

lsblk -o +MODEL,SERIAL,WWN

LINUX GET DISK ID

ls -l /dev/disk/by-id/