I'm facing an issue with creating ZFS pool with dm-mappers (clean 6.3 PVE)
I have HP gen8 server with dual port HBA connected with two SAS cables to HP D3700 and dual port SAS SSD disks SAMSUNG 1649a
I've installed multipath-tools and changed multiapth.conf accordantly .
Multipath daemon started and created dm devices and mappers correctly
I've also changed lvm.conf to filter that devices on LVS scan.
However, when I try to create ZFS pool with any dm- mappers names I get the following error:
What did I miss? It drives me crazy(
Any suggestions would be very appreciated!
I have HP gen8 server with dual port HBA connected with two SAS cables to HP D3700 and dual port SAS SSD disks SAMSUNG 1649a
I've installed multipath-tools and changed multiapth.conf accordantly .
Code:
root@254-pve-03345:/dev/mapper# cat /etc/multipath.conf
defaults {
find_multipaths no
polling_interval 5
path_selector "round-robin 0"
path_grouping_policy multibus
rr_min_io 100
failback immediate
no_path_retry 0
user_friendly_names no
uid_attribute "ID_SERIAL"
}
devices {
device {
vendor "SAMSUNG"
product "MZILT3T8HBLS/007"
uid_attribute "ID_WWN"
path_grouping_policy group_by_serial
prio const
path_checker directio
}
}
blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|nvme)[0-9]*"
devnode "^(td|hd)[a-z]"
devnode "^dcssblk[0-9]*"
devnode "^cciss!c[0-9]d[0-9]*"
wwid .*
}
blacklist_exceptions {
wwid "5002538b*"
}
multipaths {
multipath {
wwid "5002538b*"
}
}
Multipath daemon started and created dm devices and mappers correctly
Code:
root@254-pve-03345:/dev/mapper# multipath -ll
0x5002538b111bfc20 dm-27 SAMSUNG,MZILT3T8HBLS/007
size=3.5T features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 2:0:38:0 sdao 66:128 active ready running
`- 2:0:39:0 sdap 66:144 active ready running
0x5002538b111bfbc0 dm-18 SAMSUNG,MZILT3T8HBLS/007
size=3.5T features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 2:0:32:0 sdai 66:32 active ready running
`- 2:0:33:0 sdaj 66:48 active ready running
I've also changed lvm.conf to filter that devices on LVS scan.
Code:
...
global_filter = [ "r|/dev/dm-.*|", "r|/dev/sd.*|", "r|/dev/zd.*|", "r|/dev/mapper/.*|", "r|/dev/mapper/.*-(vm|base)--[0-9]+--disk--[0-9]+|"]
filter = [ "r/block/", "r/disk/", "r/sd./" ]
...
However, when I try to create ZFS pool with any dm- mappers names I get the following error:
Code:
root@254-pve-03345:/dev/mapper# zpool create -o ashift=13 test mirror /dev/mapper/0x5002538b111bfbc0 /dev/mapper/0x5002538b111bfc20
cannot open '/dev/mapper/0x5002538b111bfbc0': Device or resource busy
cannot open '/dev/mapper/0x5002538b111bfc20': Device or resource busy
cannot create 'test': one or more vdevs refer to the same device, or one of
the devices is part of an active md or lvm device
What did I miss? It drives me crazy(
Any suggestions would be very appreciated!