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

Christ Schlacta aarcane at aarcane.org
Tue May 31 01:00:10 EDT 2011


On 5/30/2011 21:55, Fajar A. Nugraha wrote:
> On Tue, May 31, 2011 at 8:19 AM, Christ Schlacta<aarcane at aarcane.org>  wrote:
>> I added a single line to zdev.conf for my only drive,
>>
>> a1      pci-0000:00:1f.2-scsi-0:0:0:0
>>
>> When I reboot my computer, I get no /dev/disk/zpool but it looks like udev
>> rules are in place.  I'm not sure if I'm doing something wrong, or if it's
>> somehow broken, but I'm getting no love from zdev.conf.
>> I'm using the ubuntu PPA version.
> try this:
> - ls -la /dev/disk/by-path
> - /lib/udev/path_id /block/sdb (or whatever your disk device name is)
> - zpool_id -d /block/sdb
> - partprobe
>
> Then finally ls -la /dev/disk/zpool
>
exactly as requested:

aarcane at ichigo:~$ ls -la 
/dev/disk/by-path/pci-0000\:00\:1f.2-scsi-0\:0\:0\:0
lrwxrwxrwx 1 root root 9 2011-05-30 18:04 
/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sda
aarcane at ichigo:~$ /lib/udev/path_id /dev/sda
unable to access '/dev/sda'
aarcane at ichigo:~$ sudo /lib/udev/path_id /dev/sda
unable to access '/dev/sda'
aarcane at ichigo:~$ zpool_id -d /dev/sda
unable to access '/dev/sda'
Error: Missing ID_PATH for /dev/sda
aarcane at ichigo:~$ sudo zpool_id -d /dev/sda
unable to access '/dev/sda'
Error: Missing ID_PATH for /dev/sda
aarcane at ichigo:~$ sudo partprobe
aarcane at ichigo:~$ ls -la /dev/disk/zpool
ls: cannot access /dev/disk/zpool: No such file or directory
aarcane at ichigo:~$


It looks like the problem is with path_id.  not sure where to go from here.



More information about the zfs-discuss mailing list