zdev.conf broken, or am I doing it wrong?

Christ Schlacta aarcane at aarcane.org
Tue May 31 01:13:22 EDT 2011


On 5/30/2011 22:10, Fajar A. Nugraha wrote:
> On Tue, May 31, 2011 at 12:00 PM, Christ Schlacta<aarcane at aarcane.org>  wrote:
>> On 5/30/2011 21:55, Fajar A. Nugraha wrote:
>>> try this:
>>> - /lib/udev/path_id /block/sdb (or whatever your disk device name is)
>> exactly as requested:
>> aarcane at ichigo:~$ /lib/udev/path_id /dev/sda
> Notice the difference? (/block vs /dev)
>
> While you're at it, also run this command:
>
> udevadm test /block/sda
>
>

aarcane at ichigo:~$ sudo udevadm test /block/sda
run_command: calling: test
udevadm_test: version 167
This program is for debugging only, it does not run any program,
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

parse_file: reading '/lib/udev/rules.d/40-fuse-utils.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-gnupg.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-ia64.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-ppc.rules' as rules file
parse_file: reading '/lib/udev/rules.d/42-qemu-usb.rules' as rules file
parse_file: reading '/lib/udev/rules.d/45-fuse.rules' as rules file
parse_file: reading '/lib/udev/rules.d/50-firmware.rules' as rules file
parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file
parse_file: reading '/lib/udev/rules.d/55-dm.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-cdrom_id.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-floppy.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-alsa.rules' as 
rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-input.rules' as 
rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-serial.rules' as 
rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage-dm.rules' 
as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage-tape.rules' 
as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage.rules' as 
rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-v4l.rules' as rules 
file
parse_file: reading '/lib/udev/rules.d/60-zpool.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-zvol.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-mobile-action.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-persistent-storage-edd.rules' 
as rules file
parse_file: reading '/lib/udev/rules.d/70-acl.rules' as rules file
parse_file: reading '/lib/udev/rules.d/70-hid2hci.rules' as rules file
parse_file: reading '/etc/udev/rules.d/70-persistent-cd.rules' as rules file
parse_file: reading '/etc/udev/rules.d/70-persistent-net.rules' as rules 
file
parse_file: reading '/lib/udev/rules.d/75-cd-aliases-generator.rules' as 
rules file
parse_file: reading '/lib/udev/rules.d/75-net-description.rules' as 
rules file
parse_file: reading 
'/lib/udev/rules.d/75-persistent-net-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-probe_mtd.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-tty-description.rules' as 
rules file
parse_file: reading '/lib/udev/rules.d/78-graphics-card.rules' as rules file
parse_file: reading '/lib/udev/rules.d/78-sound-card.rules' as rules file
parse_file: reading '/lib/udev/rules.d/80-drivers.rules' as rules file
parse_file: reading '/lib/udev/rules.d/85-hdparm.rules' as rules file
parse_file: reading '/lib/udev/rules.d/85-keyboard-configuration.rules' 
as rules file
parse_file: reading '/lib/udev/rules.d/85-regulatory.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-keyboard-force-release.rules' 
as rules file
parse_file: reading '/lib/udev/rules.d/95-keymap.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-udev-late.rules' as rules file
parse_file: reading '/dev/.udev/rules.d/root.rules' as rules file
udev_rules_new: rules use 23364 bytes tokens (1947 * 12 bytes), 15822 
bytes buffer
udev_rules_new: temporary index used 15620 bytes (781 * 20 bytes)
udev_device_new_from_syspath: device 0x7f753f490f80 has devpath 
'/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda'
udev_device_new_from_syspath: device 0x7f753f491190 has devpath 
'/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda'
udev_device_read_db: device 0x7f753f491190 filled with db file data
udev_rules_apply_to_event: GROUP 6 
/lib/udev/rules.d/50-udev-default.rules:68
udev_device_new_from_syspath: device 0x7f753f49d010 has devpath 
'/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0'
udev_device_new_from_syspath: device 0x7f753f49dad0 has devpath 
'/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0'
udev_device_new_from_syspath: device 0x7f753f49de20 has devpath 
'/devices/pci0000:00/0000:00:1f.2/host2'
udev_device_new_from_syspath: device 0x7f753f49e160 has devpath 
'/devices/pci0000:00/0000:00:1f.2'
udev_device_new_from_syspath: device 0x7f753f49e490 has devpath 
'/devices/pci0000:00'
udev_rules_apply_to_event: IMPORT 'ata_id --export /dev/sda' 
/lib/udev/rules.d/60-persistent-storage.rules:30
util_run_program: 'ata_id --export /dev/sda' started
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_ATA=1'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_TYPE=disk'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_BUS=ata'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_MODEL=TOSHIBA_MK1637GSX'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_MODEL_ENC=TOSHIBA\x20MK1637GSX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_REVISION=DL030M'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_SERIAL=TOSHIBA_MK1637GSX_X7LOW9U1T'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_SERIAL_SHORT=X7LOW9U1T'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_ATA_WRITE_CACHE=1'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_ATA_WRITE_CACHE_ENABLED=1'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_ATA_FEATURE_SET_HPA=1'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_ATA_FEATURE_SET_HPA_ENABLED=1'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_ATA_FEATURE_SET_PM=1'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_ATA_FEATURE_SET_PM_ENABLED=1'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_ATA_FEATURE_SET_SECURITY=1'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_ATA_FEATURE_SET_SECURITY_ENABLED=0'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=88'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_ATA_FEATURE_SET_SECURITY_FROZEN=1'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_ATA_FEATURE_SET_SMART=1'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_ATA_FEATURE_SET_SMART_ENABLED=1'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_ATA_FEATURE_SET_APM=1'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_ATA_FEATURE_SET_APM_ENABLED=1'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_ATA_FEATURE_SET_APM_CURRENT_VALUE=254'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_ATA_DOWNLOAD_MICROCODE=1'
util_run_program: '/lib/udev/ata_id' (stdout) 'ID_ATA_SATA=1'
util_run_program: '/lib/udev/ata_id' (stdout) 
'ID_ATA_SATA_SIGNAL_RATE_GEN1=1'
util_run_program: 'ata_id --export /dev/sda' returned with exitcode 0
udev_rules_apply_to_event: LINK 
'disk/by-id/ata-TOSHIBA_MK1637GSX_X7LOW9U1T' 
/lib/udev/rules.d/60-persistent-storage.rules:36
udev_rules_apply_to_event: PROGRAM 'scsi_id --whitelisted 
--replace-whitespace -p0x80 -d/dev/sda' 
/lib/udev/rules.d/60-persistent-storage.rules:44
util_run_program: 'scsi_id --whitelisted --replace-whitespace -p0x80 
-d/dev/sda' started
util_run_program: '/lib/udev/scsi_id' (stdout) 
'SATA_TOSHIBA_MK1637G_X7LOW9U1T'
util_run_program: 'scsi_id --whitelisted --replace-whitespace -p0x80 
-d/dev/sda' returned with exitcode 0
udev_rules_apply_to_event: LINK 
'disk/by-id/scsi-SATA_TOSHIBA_MK1637G_X7LOW9U1T' 
/lib/udev/rules.d/60-persistent-storage.rules:44
udev_rules_apply_to_event: IMPORT 'path_id 
/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda' 
/lib/udev/rules.d/60-persistent-storage.rules:53
util_run_program: 'path_id 
/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda' 
started
util_run_program: '/lib/udev/path_id' (stdout) 
'ID_PATH=pci-0000:00:1f.2-scsi-0:0:0:0'
util_run_program: 'path_id 
/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda' 
returned with exitcode 0
udev_rules_apply_to_event: LINK 
'disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0' 
/lib/udev/rules.d/60-persistent-storage.rules:54
udev_rules_apply_to_event: IMPORT '/sbin/blkid -o udev -p /dev/sda' 
/lib/udev/rules.d/60-persistent-storage.rules:66
util_run_program: '/sbin/blkid -o udev -p /dev/sda' started
util_run_program: '/sbin/blkid' (stdout) 'ID_PART_TABLE_TYPE=gpt'
util_run_program: '/sbin/blkid -o udev -p /dev/sda' returned with exitcode 0
udev_rules_apply_to_event: IMPORT '/usr/bin/zpool_id -d 
/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda' 
/lib/udev/rules.d/60-zpool.rules:5
util_run_program: '/usr/bin/zpool_id -d 
/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda' 
started
util_run_program: '/usr/bin/zpool_id' (stdout) 'Error: Missing ID_ZPOOL 
for ID_PATH: pci-0000:00:1f.2-scsi-0:0:0:0'
util_run_program: '/usr/bin/zpool_id -d 
/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda' 
returned with exitcode 1
udev_rules_apply_to_event: IMPORT 'edd_id --export /dev/sda' 
/lib/udev/rules.d/61-persistent-storage-edd.rules:8
util_run_program: 'edd_id --export /dev/sda' started
util_run_program: '/lib/udev/edd_id' (stderr) 'no kernel EDD support'
util_run_program: 'edd_id --export /dev/sda' returned with exitcode 2
udev_rules_apply_to_event: RUN '/lib/udev/hdparm' 
/lib/udev/rules.d/85-hdparm.rules:2
udev_event_execute_rules: no node name set, will use kernel supplied 
name 'sda'
udev_node_add: creating device node '/dev/sda', devnum=8:0, mode=0660, 
uid=0, gid=6
udev_node_mknod: preserve file '/dev/sda', because it has correct dev_t
udev_node_mknod: preserve permissions /dev/sda, 060660, uid=0, gid=6
node_symlink: preserve already existing symlink '/dev/block/8:0' to '../sda'
link_find_prioritized: found 'b8:0' claiming 
'/dev/.udev/links/disk\x2fby-id\x2fata-TOSHIBA_MK1637GSX_X7LOW9U1T'
link_update: creating link 
'/dev/disk/by-id/ata-TOSHIBA_MK1637GSX_X7LOW9U1T' to '/dev/sda'
node_symlink: preserve already existing symlink 
'/dev/disk/by-id/ata-TOSHIBA_MK1637GSX_X7LOW9U1T' to '../../sda'
link_find_prioritized: found 'b8:0' claiming 
'/dev/.udev/links/disk\x2fby-id\x2fscsi-SATA_TOSHIBA_MK1637G_X7LOW9U1T'
link_update: creating link 
'/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1637G_X7LOW9U1T' to '/dev/sda'
node_symlink: preserve already existing symlink 
'/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1637G_X7LOW9U1T' to '../../sda'
link_find_prioritized: found 'b8:0' claiming 
'/dev/.udev/links/disk\x2fby-path\x2fpci-0000:00:1f.2-scsi-0:0:0:0'
link_update: creating link 
'/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0' to '/dev/sda'
node_symlink: preserve already existing symlink 
'/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0' to '../../sda'
udev_device_update_db: created db file '/dev/.udev/data/b8:0' for 
'/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda'
udevadm_test: UDEV_LOG=6
udevadm_test: 
DEVPATH=/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda
udevadm_test: MAJOR=8
udevadm_test: MINOR=0
udevadm_test: DEVNAME=/dev/sda
udevadm_test: DEVTYPE=disk
udevadm_test: ACTION=add
udevadm_test: SUBSYSTEM=block
udevadm_test: ID_ATA=1
udevadm_test: ID_TYPE=disk
udevadm_test: ID_BUS=ata
udevadm_test: ID_MODEL=TOSHIBA_MK1637GSX
udevadm_test: 
ID_MODEL_ENC=TOSHIBA\x20MK1637GSX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
udevadm_test: ID_REVISION=DL030M
udevadm_test: ID_SERIAL=TOSHIBA_MK1637GSX_X7LOW9U1T
udevadm_test: ID_SERIAL_SHORT=X7LOW9U1T
udevadm_test: ID_ATA_WRITE_CACHE=1
udevadm_test: ID_ATA_WRITE_CACHE_ENABLED=1
udevadm_test: ID_ATA_FEATURE_SET_HPA=1
udevadm_test: ID_ATA_FEATURE_SET_HPA_ENABLED=1
udevadm_test: ID_ATA_FEATURE_SET_PM=1
udevadm_test: ID_ATA_FEATURE_SET_PM_ENABLED=1
udevadm_test: ID_ATA_FEATURE_SET_SECURITY=1
udevadm_test: ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
udevadm_test: ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=88
udevadm_test: ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
udevadm_test: ID_ATA_FEATURE_SET_SMART=1
udevadm_test: ID_ATA_FEATURE_SET_SMART_ENABLED=1
udevadm_test: ID_ATA_FEATURE_SET_APM=1
udevadm_test: ID_ATA_FEATURE_SET_APM_ENABLED=1
udevadm_test: ID_ATA_FEATURE_SET_APM_CURRENT_VALUE=254
udevadm_test: ID_ATA_DOWNLOAD_MICROCODE=1
udevadm_test: ID_ATA_SATA=1
udevadm_test: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
udevadm_test: DEVLINKS=/dev/disk/by-id/ata-TOSHIBA_MK1637GSX_X7LOW9U1T 
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1637G_X7LOW9U1T 
/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0
udevadm_test: ID_SCSI_COMPAT=SATA_TOSHIBA_MK1637G_X7LOW9U1T
udevadm_test: ID_PATH=pci-0000:00:1f.2-scsi-0:0:0:0
udevadm_test: ID_PART_TABLE_TYPE=gpt
udevadm_test: run: '/lib/udev/hdparm'



More information about the zfs-discuss mailing list