Skip to content

Mount fails with second pool #546

@besterino

Description

@besterino

ZFS version: zfswin-2.3.1rc14
zfs-kmod-zfswin-2.3.1rc14
Windows Server 2022(21H2 (OS Build 20348.4529)

First pool (mirror 2x NVME SSD) mounted fine with the first free driveletter (D:)

Second pool (mirror 2x HDD) failed to mount

Before trying to setup the 2nd pool, I had 3 driveletters used:

  1. C:\ (Windows OS)
  2. D: (zfs pool 1)
  3. N: (NFS share as created per other post)

Manually setting the driveletter to "on" did not help.
Manually settings the driveletter to a free one (E) worked.

PS C:\Users\Administrator> get-wmiobject win32_diskdrive


\\pool 1 (old)
Partitions : 2
DeviceID   : \\.\PHYSICALDRIVE4
Model      : ADATA SX8200PNP
Size       : 2048407280640
Caption    : ADATA SX8200PNP

Partitions : 2
DeviceID   : \\.\PHYSICALDRIVE3
Model      : ADATA SX8200PNP
Size       : 2048407280640
Caption    : ADATA SX8200PNP

\\OS
Partitions : 3
DeviceID   : \\.\PHYSICALDRIVE2
Model      : SAMSUNG MZAL4256HBJD-00BL2
Size       : 256052966400
Caption    : SAMSUNG MZAL4256HBJD-00BL2

\\pool 2 (new)
Partitions : 0
DeviceID   : \\.\PHYSICALDRIVE0
Model      : WDC WD100EFAX-68LHPN0
Size       : 10000830067200
Caption    : WDC WD100EFAX-68LHPN0

Partitions : 0
DeviceID   : \\.\PHYSICALDRIVE1
Model      : WDC WD100EFAX-68LHPN0
Size       : 10000830067200
Caption    : WDC WD100EFAX-68LHPN0

PS C:\Users\Administrator> zpool.exe create -O casesensitivity=insensitive -O normalization=formD -O compression=lz4 -O atime=off -o ashift=12 BackupOpenZFS mirror '\\?\PHYSICALDRIVE0' '\\?\PHYSICALDRIVE1'
Volume locked successfully. (So available for use)
Volume locked successfully. (So available for use)
efi_tryexclusive: fd 556
Volume \\?\Volume{2eae64dc-e1eb-11f0-b09f-00109b310ad4} is on PHYSICALDRIVE0
  Locked.
  Dismount: 1
Volume \\?\Volume{6ab70489-ebb8-11f0-b0a2-00109b310ad4} is on PHYSICALDRIVE0
  Locked.
  Dismount: 1
Volume \\?\Volume{2eae6551-e1eb-11f0-b09f-00109b310ad4} is on PHYSICALDRIVE0
  Locked.
  Dismount: 1
Volume \\?\Volume{187a1d70-e364-11f0-b0a1-00109b310acc} is on PHYSICALDRIVE0
  Locked.
  Dismount: 1
Volume \\?\Volume{2eae6536-e1eb-11f0-b09f-00109b310ad4} is on PHYSICALDRIVE0
  Locked.
  Dismount: 1
Volume \\?\Volume{187a2e9b-e364-11f0-b0a1-00109b310acc} is on PHYSICALDRIVE0
  Locked.
  Dismount: 1
Volume \\?\Volume{2eae653f-e1eb-11f0-b09f-00109b310ad4} is on PHYSICALDRIVE0
  Locked.
  Dismount: 1
Volume \\?\Volume{2eae6547-e1eb-11f0-b09f-00109b310ad4} is on PHYSICALDRIVE0
  Locked.
  Dismount: 1
efi_tryexclusive: trying to offline disk
efi_tryexclusive: trying for exclusive access
efi_tryexclusive: success. fd is 712
efi_write telling Windows about it...
EFI read OK, max partitions 128
    part 0:  offset 800:    len 48c3fb000:    tag: 4    name: 'zfs-0000577600004cdb'
    part 1:  offset 0:    len 0:    tag: 0    name: ''
    part 2:  offset 0:    len 0:    tag: 0    name: ''
    part 3:  offset 0:    len 0:    tag: 0    name: ''
    part 4:  offset 0:    len 0:    tag: 0    name: ''
    part 5:  offset 0:    len 0:    tag: 0    name: ''
    part 6:  offset 0:    len 0:    tag: 0    name: ''
    part 7:  offset 0:    len 0:    tag: 0    name: ''
    part 8:  offset 48c3fb800:    len 4000:    tag: b    name: ''
    part 9:  offset 0:    len 0:    tag: 0    name: ''
    part 10:  offset 0:    len 0:    tag: 0    name: ''
    part 11:  offset 0:    len 0:    tag: 0    name: ''
    part 12:  offset 0:    len 0:    tag: 0    name: ''
zpool_label_disk: trying to online disk
working on dev '#1048576#10000820862976#\\?\PHYSICALDRIVE0'
setting path here '/dev/physicaldrive0'
setting physpath here '#1048576#10000820862976#\\?\PHYSICALDRIVE0'
efi_tryexclusive: fd 712
efi_tryexclusive: trying to offline disk
efi_tryexclusive: trying for exclusive access
efi_tryexclusive: success. fd is 656
efi_write telling Windows about it...
EFI read OK, max partitions 128
    part 0:  offset 800:    len 48c3fb000:    tag: 4    name: 'zfs-00001c220000149b'
    part 1:  offset 0:    len 0:    tag: 0    name: ''
    part 2:  offset 0:    len 0:    tag: 0    name: ''
    part 3:  offset 0:    len 0:    tag: 0    name: ''
    part 4:  offset 0:    len 0:    tag: 0    name: ''
    part 5:  offset 0:    len 0:    tag: 0    name: ''
    part 6:  offset 0:    len 0:    tag: 0    name: ''
    part 7:  offset 0:    len 0:    tag: 0    name: ''
    part 8:  offset 48c3fb800:    len 4000:    tag: b    name: ''
    part 9:  offset 0:    len 0:    tag: 0    name: ''
    part 10:  offset 0:    len 0:    tag: 0    name: ''
    part 11:  offset 0:    len 0:    tag: 0    name: ''
    part 12:  offset 0:    len 0:    tag: 0    name: ''
zpool_label_disk: trying to online disk
working on dev '#1048576#10000820862976#\\?\PHYSICALDRIVE1'
setting path here '/dev/physicaldrive1'
setting physpath here '#1048576#10000820862976#\\?\PHYSICALDRIVE1'
sending mountpoint: '\??\?:'
cannot mount 'BackupOpenZFS': Unknown error


PS C:\Users\Administrator> zfs set driveletter=on BackupOpenZFS
PS C:\Users\Administrator> zpool export BackupOpenZFS
PS C:\Users\Administrator> zpool import BackupOpenZFS
path '\\?\scsi#disk&ven_nvme&prod_adata_sx8200pnp#5&1f75b9a7&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
 and '\\?\PhysicalDrive4'
read partitions ok 2
    gpt 0: type 620d94d980 off 0x100000 len 0x1dcee100000
    gpt 1: type 620d94d980 off 0x1dcee200000 len 0x800000
asking libefi to read primary label
EFI read OK, max partitions 128
    part 0:  offset 800:    len ee770800:    tag: 4    name: 'zfs-00005e3900000c64'
    part 8:  offset ee771000:    len 4000:    tag: b    name: ''
backup 0, efi_nparts 128, and primarynum 128
asking libefi to read backup label
EFI read OK, max partitions 128
    part 0:  offset 800:    len ee770800:    tag: 4    name: 'zfs-00005e3900000c64'
    part 8:  offset ee771000:    len 4000:    tag: b    name: ''
backup 1, efi_nparts 128, and primarynum 128
path '\\?\scsi#disk&ven_nvme&prod_samsung_mzal4256#7&9be320e&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
 and '\\?\PhysicalDrive2'
read partitions ok 4
    gpt 0: type 620d94d980 off 0x100000 len 0x6400000
    gpt 1: type 620d94d980 off 0x6500000 len 0x1000000
    gpt 2: type 620d94d980 off 0x7500000 len 0x3b76400000
    gpt 3: type 620d94d980 off 0x3b7d900000 len 0x20c00000
asking libefi to read primary label
EFI read OK, max partitions 128
    part 0:  offset 800:    len 32000:    tag: c    name: 'EFI system partition'
    part 1:  offset 32800:    len 8000:    tag: 10    name: 'Microsoft reserved partition'
    part 2:  offset 3a800:    len 1dbb2000:    tag: 11    name: 'Basic data partition'
backup 0, efi_nparts 128, and primarynum 128
asking libefi to read backup label
path '\\?\scsi#disk&ven_nvme&prod_adata_sx8200pnp#5&6d6c043&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
 and '\\?\PhysicalDrive3'
read partitions ok 2
    gpt 0: type 620d94d980 off 0x100000 len 0x1dcee100000
    gpt 1: type 620d94d980 off 0x1dcee200000 len 0x800000
asking libefi to read primary label
EFI read OK, max partitions 128
    part 0:  offset 800:    len ee770800:    tag: 4    name: 'zfs-00004969000036f5'
    part 8:  offset ee771000:    len 4000:    tag: b    name: ''
backup 0, efi_nparts 128, and primarynum 128
asking libefi to read backup label
EFI read OK, max partitions 128
    part 0:  offset 800:    len ee770800:    tag: 4    name: 'zfs-00004969000036f5'
    part 8:  offset ee771000:    len 4000:    tag: b    name: ''
backup 1, efi_nparts 128, and primarynum 128
path '\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
 and '\\?\PhysicalDrive0'
read partitions ok 0
asking libefi to read primary label
EFI read OK, max partitions 128
    part 0:  offset 800:    len 48c3fb000:    tag: 4    name: 'zfs-0000577600004cdb'
    part 8:  offset 48c3fb800:    len 4000:    tag: b    name: ''
backup 0, efi_nparts 128, and primarynum 128
asking libefi to read backup label
EFI read OK, max partitions 128
    part 0:  offset 800:    len 48c3fb000:    tag: 4    name: 'zfs-0000577600004cdb'
    part 8:  offset 48c3fb800:    len 4000:    tag: b    name: ''
backup 1, efi_nparts 128, and primarynum 128
path '\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&020000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
 and '\\?\PhysicalDrive1'
read partitions ok 0
asking libefi to read primary label
EFI read OK, max partitions 128
    part 0:  offset 800:    len 48c3fb000:    tag: 4    name: 'zfs-00001c220000149b'
    part 8:  offset 48c3fb800:    len 4000:    tag: b    name: ''
backup 0, efi_nparts 128, and primarynum 128
asking libefi to read backup label
EFI read OK, max partitions 128
    part 0:  offset 800:    len 48c3fb000:    tag: 4    name: 'zfs-00001c220000149b'
    part 8:  offset 48c3fb800:    len 4000:    tag: b    name: ''
backup 1, efi_nparts 128, and primarynum 128
working on dev '#1048576#10000820862976#\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
setting path here '/dev/physicaldrive0'
setting physpath here '#1048576#10000820862976#\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
working on dev '#1048576#10000820862976#\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&020000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
setting path here '/dev/physicaldrive1'
setting physpath here '#1048576#10000820862976#\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&020000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
sending mountpoint: '\??\?:'
cannot mount 'BackupOpenZFS': Unknown error
Import was successful, but unable to mount some datasets


PS C:\Users\Administrator> zfs set driveletter=E BackupOpenZFS
PS C:\Users\Administrator> zpool export BackupOpenZFS
PS C:\Users\Administrator> zpool import BackupOpenZFS
path '\\?\scsi#disk&ven_nvme&prod_adata_sx8200pnp#5&1f75b9a7&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
 and '\\?\PhysicalDrive4'
read partitions ok 2
    gpt 0: type d58dbbd970 off 0x100000 len 0x1dcee100000
    gpt 1: type d58dbbd970 off 0x1dcee200000 len 0x800000
asking libefi to read primary label
EFI read OK, max partitions 128
    part 0:  offset 800:    len ee770800:    tag: 4    name: 'zfs-00005e3900000c64'
    part 8:  offset ee771000:    len 4000:    tag: b    name: ''
backup 0, efi_nparts 128, and primarynum 128
asking libefi to read backup label
EFI read OK, max partitions 128
    part 0:  offset 800:    len ee770800:    tag: 4    name: 'zfs-00005e3900000c64'
    part 8:  offset ee771000:    len 4000:    tag: b    name: ''
backup 1, efi_nparts 128, and primarynum 128
path '\\?\scsi#disk&ven_nvme&prod_samsung_mzal4256#7&9be320e&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
 and '\\?\PhysicalDrive2'
read partitions ok 4
    gpt 0: type d58dbbd970 off 0x100000 len 0x6400000
    gpt 1: type d58dbbd970 off 0x6500000 len 0x1000000
    gpt 2: type d58dbbd970 off 0x7500000 len 0x3b76400000
    gpt 3: type d58dbbd970 off 0x3b7d900000 len 0x20c00000
asking libefi to read primary label
EFI read OK, max partitions 128
    part 0:  offset 800:    len 32000:    tag: c    name: 'EFI system partition'
    part 1:  offset 32800:    len 8000:    tag: 10    name: 'Microsoft reserved partition'
    part 2:  offset 3a800:    len 1dbb2000:    tag: 11    name: 'Basic data partition'
backup 0, efi_nparts 128, and primarynum 128
asking libefi to read backup label
path '\\?\scsi#disk&ven_nvme&prod_adata_sx8200pnp#5&6d6c043&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
 and '\\?\PhysicalDrive3'
read partitions ok 2
    gpt 0: type d58dbbd970 off 0x100000 len 0x1dcee100000
    gpt 1: type d58dbbd970 off 0x1dcee200000 len 0x800000
asking libefi to read primary label
EFI read OK, max partitions 128
    part 0:  offset 800:    len ee770800:    tag: 4    name: 'zfs-00004969000036f5'
    part 8:  offset ee771000:    len 4000:    tag: b    name: ''
backup 0, efi_nparts 128, and primarynum 128
asking libefi to read backup label
EFI read OK, max partitions 128
    part 0:  offset 800:    len ee770800:    tag: 4    name: 'zfs-00004969000036f5'
    part 8:  offset ee771000:    len 4000:    tag: b    name: ''
backup 1, efi_nparts 128, and primarynum 128
path '\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
 and '\\?\PhysicalDrive0'
read partitions ok 0
asking libefi to read primary label
EFI read OK, max partitions 128
    part 0:  offset 800:    len 48c3fb000:    tag: 4    name: 'zfs-0000577600004cdb'
    part 8:  offset 48c3fb800:    len 4000:    tag: b    name: ''
backup 0, efi_nparts 128, and primarynum 128
asking libefi to read backup label
EFI read OK, max partitions 128
    part 0:  offset 800:    len 48c3fb000:    tag: 4    name: 'zfs-0000577600004cdb'
    part 8:  offset 48c3fb800:    len 4000:    tag: b    name: ''
backup 1, efi_nparts 128, and primarynum 128
path '\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&020000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
 and '\\?\PhysicalDrive1'
read partitions ok 0
asking libefi to read primary label
EFI read OK, max partitions 128
    part 0:  offset 800:    len 48c3fb000:    tag: 4    name: 'zfs-00001c220000149b'
    part 8:  offset 48c3fb800:    len 4000:    tag: b    name: ''
backup 0, efi_nparts 128, and primarynum 128
asking libefi to read backup label
EFI read OK, max partitions 128
    part 0:  offset 800:    len 48c3fb000:    tag: 4    name: 'zfs-00001c220000149b'
    part 8:  offset 48c3fb800:    len 4000:    tag: b    name: ''
backup 1, efi_nparts 128, and primarynum 128
working on dev '#1048576#10000820862976#\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
setting path here '/dev/physicaldrive0'
setting physpath here '#1048576#10000820862976#\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
working on dev '#1048576#10000820862976#\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&020000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
setting path here '/dev/physicaldrive1'
setting physpath here '#1048576#10000820862976#\\?\scsi#disk&ven_wdc&prod_wd100efax-68lhpn#5&33814fd6&0&020000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'
sending mountpoint: '\??\e:'
PS C:\Users\Administrator> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions