Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing /dev/zvol and /dev/zd* at all(udev related) #766

Closed
doubledr opened this issue Jun 1, 2012 · 2 comments
Closed

missing /dev/zvol and /dev/zd* at all(udev related) #766

doubledr opened this issue Jun 1, 2012 · 2 comments
Milestone

Comments

@doubledr
Copy link

doubledr commented Jun 1, 2012

I think this is different than the issue #599 so I create a new issue. I believe this is udev related or kernel config related.

My system is running gentoo-3.3.5 and udev package version is udev182-r3, and using git build for zfs.I can normally create pool and volume. But there is not /dev/zvol/* or /dev/zd* at all. Nothing even shows in /dev/disk/by-id. So I run "udevadmin monitor" to see what happen. When I start zfs, the udev events show:

KERNEL[2418.363575] add /devices/virtual/bdi/zfs-11 (bdi)
ACTION=add
DEVPATH=/devices/virtual/bdi/zfs-11
SEQNUM=2697
SUBSYSTEM=bdi

UDEV [2418.363895] add /devices/virtual/bdi/zfs-11 (bdi)
ACTION=add
DEVPATH=/devices/virtual/bdi/zfs-11
SEQNUM=2697
SUBSYSTEM=bdi
USEC_INITIALIZED=2418363830

KERNEL[2418.380939] add /devices/virtual/bdi/zfs-12 (bdi)
ACTION=add
DEVPATH=/devices/virtual/bdi/zfs-12
SEQNUM=2698
SUBSYSTEM=bdi

UDEV [2418.381255] add /devices/virtual/bdi/zfs-12 (bdi)
ACTION=add
DEVPATH=/devices/virtual/bdi/zfs-12
SEQNUM=2698
SUBSYSTEM=bdi
USEC_INITIALIZED=2418381189

That is it... Nothing else.

If I check the udev rules for zpool in /lib/udev/rules.d/60-zpool.rules, I read:
ENV{DEVTYPE}=="disk", IMPORT{program}="/lib/udev/zpool_id -d %p"

KERNEL=="[!0-9]", ENV{SUBSYSTEM}=="block", ENV{ID_ZPOOL}=="?", SYMLINK+="$env{ID_ZPOOL_PATH}"
KERNEL=="[0-9]", ENV{SUBSYSTEM}=="block", ENV{DEVTYPE}=="partition", ENV{ID_ZPOOL}=="?", SYMLINK+="$env{ID_ZPOOL_PATH}-part%n"
KERNEL=="dm-[0-9]", ENV{SUBSYSTEM}=="block", ENV{ID_ZPOOL}=="?", SYMLINK+="$env{ID_ZPOOL_PATH}"

So the subsystem should be "block", but my udev only shows subsystem as "bdi". So obviously nothing shows up in /dev.
Do I miss something or actually udev rules need some update?

@doubledr
Copy link
Author

doubledr commented Jun 2, 2012

Ok, more coming now. The top post is for a raidz2 case. So I want to know what happen to a single hard drive case.

Command: "zpool create storage /dev/hdd"
"udevadm monitor --property" outputs:

KERNEL[1222.952148] change /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd (block)
ACTION=change
DEVNAME=/dev/sdd
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd
DEVTYPE=disk
MAJOR=8
MINOR=48
SEQNUM=2597
SUBSYSTEM=block

UDEV [1223.536281] change /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd (block)
ACTION=change
DEVLINKS=/dev/disk/by-id/ata-WDC_WD20EARX-00PASB0_WD-WMAZA6357605 /dev/disk/by-id/wwn-0x50014ee25c17e2e8
DEVNAME=/dev/sdd
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd
DEVTYPE=disk
ID_ATA=1
ID_ATA_DOWNLOAD_MICROCODE=1
ID_ATA_FEATURE_SET_HPA=1
ID_ATA_FEATURE_SET_HPA_ENABLED=1
ID_ATA_FEATURE_SET_PM=1
ID_ATA_FEATURE_SET_PM_ENABLED=1
ID_ATA_FEATURE_SET_PUIS=1
ID_ATA_FEATURE_SET_PUIS_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY=1
ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
ID_ATA_FEATURE_SET_SMART=1
ID_ATA_FEATURE_SET_SMART_ENABLED=1
ID_ATA_SATA=1
ID_ATA_SATA_SIGNAL_RATE_GEN1=1
ID_ATA_SATA_SIGNAL_RATE_GEN2=1
ID_ATA_WRITE_CACHE=1
ID_ATA_WRITE_CACHE_ENABLED=1
ID_BUS=ata
ID_MODEL=WDC_WD20EARX-00PASB0
ID_MODEL_ENC=WDC\x20WD20EARX-00PASB0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_PART_TABLE_TYPE=gpt
ID_REVISION=51.0AB15
ID_SERIAL=WDC_WD20EARX-00PASB0_WD-WMAZA6357605
ID_SERIAL_SHORT=WD-WMAZA6357605
ID_TYPE=disk
ID_WWN=0x50014ee25c17e2e8
ID_WWN_WITH_EXTENSION=0x50014ee25c17e2e8
LVM_SBIN_PATH=/sbin
MAJOR=8
MINOR=48
SEQNUM=2597
SUBSYSTEM=block
TAGS=:systemd:
UDISKS_ATA_SMART_IS_AVAILABLE=1
UDISKS_PARTITION_TABLE=1
UDISKS_PARTITION_TABLE_COUNT=2
UDISKS_PARTITION_TABLE_SCHEME=gpt
UDISKS_PRESENTATION_NOPOLICY=0
USEC_INITIALIZED=5865502

KERNEL[1223.536449] change /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd (block)
ACTION=change
DEVNAME=/dev/sdd
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd
DEVTYPE=disk
MAJOR=8
MINOR=48
SEQNUM=2598
SUBSYSTEM=block

KERNEL[1223.721741] remove /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd1 (block)
ACTION=remove
DEVNAME=/dev/sdd1
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd1
DEVTYPE=partition
MAJOR=8
MINOR=49
SEQNUM=2599
SUBSYSTEM=block

KERNEL[1223.721813] remove /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd9 (block)
ACTION=remove
DEVNAME=/dev/sdd9
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd9
DEVTYPE=partition
MAJOR=8
MINOR=57
SEQNUM=2600
SUBSYSTEM=block

KERNEL[1223.779616] change /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd (block)
ACTION=change
DEVNAME=/dev/sdd
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd
DEVTYPE=disk
MAJOR=8
MINOR=48
SEQNUM=2601
SUBSYSTEM=block

KERNEL[1223.779666] add /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd1 (block)
ACTION=add
DEVNAME=/dev/sdd1
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd1
DEVTYPE=partition
MAJOR=8
MINOR=49
SEQNUM=2602
SUBSYSTEM=block

KERNEL[1223.779724] add /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd9 (block)
ACTION=add
DEVNAME=/dev/sdd9
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd9
DEVTYPE=partition
MAJOR=8
MINOR=57
SEQNUM=2603
SUBSYSTEM=block

UDEV [1223.822621] change /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd (block)
ACTION=change
DEVLINKS=/dev/disk/by-id/ata-WDC_WD20EARX-00PASB0_WD-WMAZA6357605 /dev/disk/by-id/wwn-0x50014ee25c17e2e8
DEVNAME=/dev/sdd
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd
DEVTYPE=disk
ID_ATA=1
ID_ATA_DOWNLOAD_MICROCODE=1
ID_ATA_FEATURE_SET_HPA=1
ID_ATA_FEATURE_SET_HPA_ENABLED=1
ID_ATA_FEATURE_SET_PM=1
ID_ATA_FEATURE_SET_PM_ENABLED=1
ID_ATA_FEATURE_SET_PUIS=1
ID_ATA_FEATURE_SET_PUIS_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY=1
ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
ID_ATA_FEATURE_SET_SMART=1
ID_ATA_FEATURE_SET_SMART_ENABLED=1
ID_ATA_SATA=1
ID_ATA_SATA_SIGNAL_RATE_GEN1=1
ID_ATA_SATA_SIGNAL_RATE_GEN2=1
ID_ATA_WRITE_CACHE=1
ID_ATA_WRITE_CACHE_ENABLED=1
ID_BUS=ata
ID_MODEL=WDC_WD20EARX-00PASB0
ID_MODEL_ENC=WDC\x20WD20EARX-00PASB0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_PART_TABLE_TYPE=gpt
ID_REVISION=51.0AB15
ID_SERIAL=WDC_WD20EARX-00PASB0_WD-WMAZA6357605
ID_SERIAL_SHORT=WD-WMAZA6357605
ID_TYPE=disk
ID_WWN=0x50014ee25c17e2e8
ID_WWN_WITH_EXTENSION=0x50014ee25c17e2e8
LVM_SBIN_PATH=/sbin
MAJOR=8
MINOR=48
SEQNUM=2598
SUBSYSTEM=block
TAGS=:systemd:
UDISKS_ATA_SMART_IS_AVAILABLE=1
UDISKS_PARTITION_TABLE=1
UDISKS_PARTITION_TABLE_COUNT=2
UDISKS_PARTITION_TABLE_SCHEME=gpt
UDISKS_PRESENTATION_NOPOLICY=0
USEC_INITIALIZED=5865502

UDEV [1223.823303] remove /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd9 (block)
ACTION=remove
DEVLINKS=/dev/disk/by-id/ata-WDC_WD20EARX-00PASB0_WD-WMAZA6357605-part9 /dev/disk/by-id/wwn-0x50014ee25c17e2e8-part9 /dev/disk/by-partuuid/c666aae6-5ee0-8549-88ad-646efa1ab01c
DEVNAME=/dev/sdd9
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd9
DEVTYPE=partition
ID_ATA=1
ID_ATA_DOWNLOAD_MICROCODE=1
ID_ATA_FEATURE_SET_HPA=1
ID_ATA_FEATURE_SET_HPA_ENABLED=1
ID_ATA_FEATURE_SET_PM=1
ID_ATA_FEATURE_SET_PM_ENABLED=1
ID_ATA_FEATURE_SET_PUIS=1
ID_ATA_FEATURE_SET_PUIS_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY=1
ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
ID_ATA_FEATURE_SET_SMART=1
ID_ATA_FEATURE_SET_SMART_ENABLED=1
ID_ATA_SATA=1
ID_ATA_SATA_SIGNAL_RATE_GEN1=1
ID_ATA_SATA_SIGNAL_RATE_GEN2=1
ID_ATA_WRITE_CACHE=1
ID_ATA_WRITE_CACHE_ENABLED=1
ID_BUS=ata
ID_MODEL=WDC_WD20EARX-00PASB0
ID_MODEL_ENC=WDC\x20WD20EARX-00PASB0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_PART_ENTRY_DISK=8:48
ID_PART_ENTRY_NUMBER=9
ID_PART_ENTRY_OFFSET=3907012608
ID_PART_ENTRY_SCHEME=gpt
ID_PART_ENTRY_SIZE=16384
ID_PART_ENTRY_TYPE=6a945a3b-1dd2-11b2-99a6-080020736631
ID_PART_ENTRY_UUID=c666aae6-5ee0-8549-88ad-646efa1ab01c
ID_PART_TABLE_TYPE=gpt
ID_REVISION=51.0AB15
ID_SERIAL=WDC_WD20EARX-00PASB0_WD-WMAZA6357605
ID_SERIAL_SHORT=WD-WMAZA6357605
ID_TYPE=disk
ID_WWN=0x50014ee25c17e2e8
ID_WWN_WITH_EXTENSION=0x50014ee25c17e2e8
LVM_SBIN_PATH=/sbin
MAJOR=8
MINOR=57
SEQNUM=2600
SUBSYSTEM=block
TAGS=:systemd:
UDISKS_PARTITION=1
UDISKS_PARTITION_ALIGNMENT_OFFSET=0
UDISKS_PARTITION_NUMBER=9
UDISKS_PARTITION_OFFSET=2000390455296
UDISKS_PARTITION_SCHEME=gpt
UDISKS_PARTITION_SIZE=8388608
UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd
UDISKS_PARTITION_TYPE=6A945A3B-1DD2-11B2-99A6-080020736631
UDISKS_PARTITION_UUID=C666AAE6-5EE0-8549-88AD-646EFA1AB01C
UDISKS_PRESENTATION_NOPOLICY=0
USEC_INITIALIZED=5918708

UDEV [1223.823469] remove /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd1 (block)
ACTION=remove
DEVLINKS=/dev/disk/by-id/ata-WDC_WD20EARX-00PASB0_WD-WMAZA6357605-part1 /dev/disk/by-id/wwn-0x50014ee25c17e2e8-part1 /dev/disk/by-partlabel/zfs /dev/disk/by-partuuid/28e02a41-e57f-0845-85c0-832967fa04ad
DEVNAME=/dev/sdd1
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd1
DEVTYPE=partition
ID_ATA=1
ID_ATA_DOWNLOAD_MICROCODE=1
ID_ATA_FEATURE_SET_HPA=1
ID_ATA_FEATURE_SET_HPA_ENABLED=1
ID_ATA_FEATURE_SET_PM=1
ID_ATA_FEATURE_SET_PM_ENABLED=1
ID_ATA_FEATURE_SET_PUIS=1
ID_ATA_FEATURE_SET_PUIS_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY=1
ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
ID_ATA_FEATURE_SET_SMART=1
ID_ATA_FEATURE_SET_SMART_ENABLED=1
ID_ATA_SATA=1
ID_ATA_SATA_SIGNAL_RATE_GEN1=1
ID_ATA_SATA_SIGNAL_RATE_GEN2=1
ID_ATA_WRITE_CACHE=1
ID_ATA_WRITE_CACHE_ENABLED=1
ID_BUS=ata
ID_FS_LABEL=storage
ID_FS_LABEL_ENC=storage
ID_FS_TYPE=zfs_member
ID_FS_USAGE=raid
ID_FS_UUID=18424483223824045555
ID_FS_UUID_ENC=18424483223824045555
ID_FS_UUID_SUB=13298178356746232496
ID_FS_UUID_SUB_ENC=13298178356746232496
ID_FS_VERSION=28
ID_MODEL=WDC_WD20EARX-00PASB0
ID_MODEL_ENC=WDC\x20WD20EARX-00PASB0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_PART_ENTRY_DISK=8:48
ID_PART_ENTRY_NAME=zfs
ID_PART_ENTRY_NUMBER=1
ID_PART_ENTRY_OFFSET=2048
ID_PART_ENTRY_SCHEME=gpt
ID_PART_ENTRY_SIZE=3907010560
ID_PART_ENTRY_TYPE=6a898cc3-1dd2-11b2-99a6-080020736631
ID_PART_ENTRY_UUID=28e02a41-e57f-0845-85c0-832967fa04ad
ID_PART_TABLE_TYPE=gpt
ID_REVISION=51.0AB15
ID_SERIAL=WDC_WD20EARX-00PASB0_WD-WMAZA6357605
ID_SERIAL_SHORT=WD-WMAZA6357605
ID_TYPE=disk
ID_WWN=0x50014ee25c17e2e8
ID_WWN_WITH_EXTENSION=0x50014ee25c17e2e8
LVM_SBIN_PATH=/sbin
MAJOR=8
MINOR=49
SEQNUM=2599
SUBSYSTEM=block
TAGS=:systemd:
UDISKS_PARTITION=1
UDISKS_PARTITION_ALIGNMENT_OFFSET=0
UDISKS_PARTITION_LABEL=zfs
UDISKS_PARTITION_NUMBER=1
UDISKS_PARTITION_OFFSET=1048576
UDISKS_PARTITION_SCHEME=gpt
UDISKS_PARTITION_SIZE=2000389406720
UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd
UDISKS_PARTITION_TYPE=6A898CC3-1DD2-11B2-99A6-080020736631
UDISKS_PARTITION_UUID=28E02A41-E57F-0845-85C0-832967FA04AD
UDISKS_PRESENTATION_NOPOLICY=0
USEC_INITIALIZED=5918850

UDEV [1223.900173] change /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd (block)
ACTION=change
DEVLINKS=/dev/disk/by-id/ata-WDC_WD20EARX-00PASB0_WD-WMAZA6357605 /dev/disk/by-id/wwn-0x50014ee25c17e2e8
DEVNAME=/dev/sdd
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd
DEVTYPE=disk
ID_ATA=1
ID_ATA_DOWNLOAD_MICROCODE=1
ID_ATA_FEATURE_SET_HPA=1
ID_ATA_FEATURE_SET_HPA_ENABLED=1
ID_ATA_FEATURE_SET_PM=1
ID_ATA_FEATURE_SET_PM_ENABLED=1
ID_ATA_FEATURE_SET_PUIS=1
ID_ATA_FEATURE_SET_PUIS_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY=1
ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
ID_ATA_FEATURE_SET_SMART=1
ID_ATA_FEATURE_SET_SMART_ENABLED=1
ID_ATA_SATA=1
ID_ATA_SATA_SIGNAL_RATE_GEN1=1
ID_ATA_SATA_SIGNAL_RATE_GEN2=1
ID_ATA_WRITE_CACHE=1
ID_ATA_WRITE_CACHE_ENABLED=1
ID_BUS=ata
ID_MODEL=WDC_WD20EARX-00PASB0
ID_MODEL_ENC=WDC\x20WD20EARX-00PASB0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_PART_TABLE_TYPE=gpt
ID_REVISION=51.0AB15
ID_SERIAL=WDC_WD20EARX-00PASB0_WD-WMAZA6357605
ID_SERIAL_SHORT=WD-WMAZA6357605
ID_TYPE=disk
ID_WWN=0x50014ee25c17e2e8
ID_WWN_WITH_EXTENSION=0x50014ee25c17e2e8
LVM_SBIN_PATH=/sbin
MAJOR=8
MINOR=48
SEQNUM=2601
SUBSYSTEM=block
TAGS=:systemd:
UDISKS_ATA_SMART_IS_AVAILABLE=1
UDISKS_PARTITION_TABLE=1
UDISKS_PARTITION_TABLE_COUNT=2
UDISKS_PARTITION_TABLE_SCHEME=gpt
UDISKS_PRESENTATION_NOPOLICY=0
USEC_INITIALIZED=5865502

UDEV [1223.907980] add /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd9 (block)
ACTION=add
DEVLINKS=/dev/disk/by-id/ata-WDC_WD20EARX-00PASB0_WD-WMAZA6357605-part9 /dev/disk/by-id/wwn-0x50014ee25c17e2e8-part9 /dev/disk/by-partuuid/10abff71-d30d-2547-b052-90796bfaa778
DEVNAME=/dev/sdd9
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd9
DEVTYPE=partition
ID_ATA=1
ID_ATA_DOWNLOAD_MICROCODE=1
ID_ATA_FEATURE_SET_HPA=1
ID_ATA_FEATURE_SET_HPA_ENABLED=1
ID_ATA_FEATURE_SET_PM=1
ID_ATA_FEATURE_SET_PM_ENABLED=1
ID_ATA_FEATURE_SET_PUIS=1
ID_ATA_FEATURE_SET_PUIS_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY=1
ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
ID_ATA_FEATURE_SET_SMART=1
ID_ATA_FEATURE_SET_SMART_ENABLED=1
ID_ATA_SATA=1
ID_ATA_SATA_SIGNAL_RATE_GEN1=1
ID_ATA_SATA_SIGNAL_RATE_GEN2=1
ID_ATA_WRITE_CACHE=1
ID_ATA_WRITE_CACHE_ENABLED=1
ID_BUS=ata
ID_MODEL=WDC_WD20EARX-00PASB0
ID_MODEL_ENC=WDC\x20WD20EARX-00PASB0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_PART_ENTRY_DISK=8:48
ID_PART_ENTRY_NUMBER=9
ID_PART_ENTRY_OFFSET=3907012608
ID_PART_ENTRY_SCHEME=gpt
ID_PART_ENTRY_SIZE=16384
ID_PART_ENTRY_TYPE=6a945a3b-1dd2-11b2-99a6-080020736631
ID_PART_ENTRY_UUID=10abff71-d30d-2547-b052-90796bfaa778
ID_PART_TABLE_TYPE=gpt
ID_REVISION=51.0AB15
ID_SERIAL=WDC_WD20EARX-00PASB0_WD-WMAZA6357605
ID_SERIAL_SHORT=WD-WMAZA6357605
ID_TYPE=disk
ID_WWN=0x50014ee25c17e2e8
ID_WWN_WITH_EXTENSION=0x50014ee25c17e2e8
LVM_SBIN_PATH=/sbin
MAJOR=8
MINOR=57
SEQNUM=2603
SUBSYSTEM=block
TAGS=:systemd:
UDISKS_PARTITION=1
UDISKS_PARTITION_ALIGNMENT_OFFSET=0
UDISKS_PARTITION_NUMBER=9
UDISKS_PARTITION_OFFSET=2000390455296
UDISKS_PARTITION_SCHEME=gpt
UDISKS_PARTITION_SIZE=8388608
UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd
UDISKS_PARTITION_TYPE=6A945A3B-1DD2-11B2-99A6-080020736631
UDISKS_PARTITION_UUID=10ABFF71-D30D-2547-B052-90796BFAA778
UDISKS_PRESENTATION_NOPOLICY=0
USEC_INITIALIZED=1223907748

UDEV [1223.981067] add /devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd1 (block)
ACTION=add
DEVLINKS=/dev/disk/by-id/ata-WDC_WD20EARX-00PASB0_WD-WMAZA6357605-part1 /dev/disk/by-id/wwn-0x50014ee25c17e2e8-part1 /dev/disk/by-partlabel/zfs /dev/disk/by-partuuid/02cb1c18-dd0e-7743-859d-2c101c9023dd
DEVNAME=/dev/sdd1
DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd/sdd1
DEVTYPE=partition
ID_ATA=1
ID_ATA_DOWNLOAD_MICROCODE=1
ID_ATA_FEATURE_SET_HPA=1
ID_ATA_FEATURE_SET_HPA_ENABLED=1
ID_ATA_FEATURE_SET_PM=1
ID_ATA_FEATURE_SET_PM_ENABLED=1
ID_ATA_FEATURE_SET_PUIS=1
ID_ATA_FEATURE_SET_PUIS_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY=1
ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=406
ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
ID_ATA_FEATURE_SET_SMART=1
ID_ATA_FEATURE_SET_SMART_ENABLED=1
ID_ATA_SATA=1
ID_ATA_SATA_SIGNAL_RATE_GEN1=1
ID_ATA_SATA_SIGNAL_RATE_GEN2=1
ID_ATA_WRITE_CACHE=1
ID_ATA_WRITE_CACHE_ENABLED=1
ID_BUS=ata
ID_MODEL=WDC_WD20EARX-00PASB0
ID_MODEL_ENC=WDC\x20WD20EARX-00PASB0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_PART_ENTRY_DISK=8:48
ID_PART_ENTRY_NAME=zfs
ID_PART_ENTRY_NUMBER=1
ID_PART_ENTRY_OFFSET=2048
ID_PART_ENTRY_SCHEME=gpt
ID_PART_ENTRY_SIZE=3907010560
ID_PART_ENTRY_TYPE=6a898cc3-1dd2-11b2-99a6-080020736631
ID_PART_ENTRY_UUID=02cb1c18-dd0e-7743-859d-2c101c9023dd
ID_PART_TABLE_TYPE=gpt
ID_REVISION=51.0AB15
ID_SERIAL=WDC_WD20EARX-00PASB0_WD-WMAZA6357605
ID_SERIAL_SHORT=WD-WMAZA6357605
ID_TYPE=disk
ID_WWN=0x50014ee25c17e2e8
ID_WWN_WITH_EXTENSION=0x50014ee25c17e2e8
LVM_SBIN_PATH=/sbin
MAJOR=8
MINOR=49
SEQNUM=2602
SUBSYSTEM=block
TAGS=:systemd:
UDISKS_PARTITION=1
UDISKS_PARTITION_ALIGNMENT_OFFSET=0
UDISKS_PARTITION_LABEL=zfs
UDISKS_PARTITION_NUMBER=1
UDISKS_PARTITION_OFFSET=1048576
UDISKS_PARTITION_SCHEME=gpt
UDISKS_PARTITION_SIZE=2000389406720
UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdd
UDISKS_PARTITION_TYPE=6A898CC3-1DD2-11B2-99A6-080020736631
UDISKS_PARTITION_UUID=02CB1C18-DD0E-7743-859D-2C101C9023DD
UDISKS_PRESENTATION_NOPOLICY=0
USEC_INITIALIZED=1223980839

KERNEL[1224.136826] add /devices/virtual/bdi/zfs-4 (bdi)
ACTION=add
DEVPATH=/devices/virtual/bdi/zfs-4
SEQNUM=2604
SUBSYSTEM=bdi

UDEV [1224.137084] add /devices/virtual/bdi/zfs-4 (bdi)
ACTION=add
DEVPATH=/devices/virtual/bdi/zfs-4
SEQNUM=2604
SUBSYSTEM=bdi
USEC_INITIALIZED=1224136999

From zpool rules, I think we need ID_ZPOOL (please correct me if I am wrong). But we can see there is nothing named ID_ZPOOL in the udev events

instead, there are some related message(ironically, they are in the remove action!):
ID_FS_LABEL=storage
ID_FS_LABEL_ENC=storage
ID_FS_TYPE=zfs_member
ID_FS_USAGE=raid
ID_FS_UUID=18424483223824045555
ID_FS_UUID_ENC=18424483223824045555
ID_FS_UUID_SUB=13298178356746232496
ID_FS_UUID_SUB_ENC=13298178356746232496
ID_FS_VERSION=28

I really think that the udev rules are broken for udev-182 and kernel 3.3. Please correct me if I make any mistake

@doubledr
Copy link
Author

doubledr commented Jun 3, 2012

Ok, now I know what happens. I have to use "zfs create -V size volume" to make zvol avaliable. The zvol won't be created until "-V" switch is specific. This behavior should be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant