create zfs mirror with zfs marked disk

vikozo

Renowned Member
May 4, 2014
783
31
93
suisse
www.wombat.ch
Hello
i set up a new Proxmox over a old freeNAS.
i wish to add two disk, and create a Mirror with this, but the disk will not show up because they are still marked as zfs disk from the installation bevor, is there a trick to still create a mirror-0?

have a nice day
vinc
 
have you tried zpool import?
then if the pool can be imported you can use it or you can destroy / recreate

otherwise you could try zpool labelclear <device name>
 
@bobmc i could not find zpool import option in the GUI!

zpool status shows only on rpool

and
# zpool labelclear /dev/sda
failed to clear label for /dev/sda
 
Last edited:
The GUI only works if the disks are available. Open a shell on the Proxmox host and type

zpool import

if it returns a name like pool or tank, then type

zpool import pool
or
zpool import tank
 
Code:
# zpool import
   pool: NAS-04vol
     id: 10910952516968627858
  state: UNAVAIL
 status: The pool was last accessed by another system.
 action: The pool cannot be imported due to damaged devices or data.
   see: http://zfsonlinux.org/msg/ZFS-8000-EY
 config:

        NAS-04vol                                 UNAVAIL  insufficient replicas
          raidz2-0                                UNAVAIL  insufficient replicas
            732dc3fb-dc5b-11e7-9959-0cc47a86a2f0  UNAVAIL
            748fa88e-dc5b-11e7-9959-0cc47a86a2f0  UNAVAIL
            03b3480f-e541-11e9-9b3e-0cc47a86a2f0  UNAVAIL
            763d68bb-dc5b-11e7-9959-0cc47a86a2f0  UNAVAIL
            sdf                                   ONLINE
            787d356e-dc5b-11e7-9959-0cc47a86a2f0  UNAVAIL

   pool: freenas-boot
     id: 11832918400994200344
  state: ONLINE
 status: Some supported features are not enabled on the pool.
 action: The pool can be imported using its name or numeric identifier, though
        some features will not be available without an explicit 'zpool upgrade'.
 config:

        freenas-boot  ONLINE
          mirror-0    ONLINE
            sda       ONLINE
            sdb       ONLINE
 
zpool import -f freenas-boot
worked and now the pool is there in the GUI

and now destroy it for a new use in pve

this will clear the Disk - after they will be visible to Proxmox Gui
fdisk /dev/sdf
fdisk /dev/sdb
 
Last edited: