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

Christ Schlacta aarcane at aarcane.org
Tue May 31 01:09:35 EDT 2011


On 5/30/2011 22:00, Christ Schlacta wrote:
> 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.

I realized when I googled the new helpful error that you literally meant 
/block/whatever, not /whatever, so I re-ran to get more useful output:

aarcane at ichigo:~$ sudo /lib/udev/path_id /block/sda
ID_PATH=pci-0000:00:1f.2-scsi-0:0:0:0
aarcane at ichigo:~$ sudo zpool_id -d /block/sda
Error: Missing ID_ZPOOL for ID_PATH: pci-0000:00:1f.2-scsi-0:0:0:0
aarcane at ichigo:~$ sudo partprobe
aarcane at ichigo:~$ ls /dev/disk/zpool
ls: cannot access /dev/disk/zpool: No such file or directory

and for reference, I ran the following:

aarcane at ichigo:~$ sudo zpool export test
aarcane at ichigo:~$ sudo zpool import -d /dev/ test
aarcane at ichigo:~$ sudo zpool status
   pool: test
  state: ONLINE
  scan: scrub repaired 0 in 0h33m with 0 errors on Mon May 30 18:39:52 2011
config:

         NAME        STATE     READ WRITE CKSUM
         test        ONLINE       0     0     0
           sda       ONLINE       0     0     0

errors: No known data errors
aarcane at ichigo:~$



More information about the zfs-discuss mailing list