You are not logged in.

#1 2015-08-17 13:51:25

zheglov
Member
Registered: 2015-08-17
Posts: 2

[SOLVED] Root ZFS not using /dev/disk/by-id

I've finally got Arch installed onto a ZFS filesystem following the wiki. The system works well, however when I do 'zpool status' I get all the disks showing as /dev/sd* instead of /dev/disk/by-id/*.

I have tried copying a good zpool.cache (which I get from importing the pool in the arch iso livecd with the "-d /dev/disk/by-id" argument) to my system and running 'mkinitcpio -p linux' but this doesn't work. I've also tried setting the 'cachefile' option on the pool to a different location, but this get changed back to the default value on reboot.

If it helps, I am using whole disks for ZFS and UEFI motherboard.

Last edited by zheglov (2015-08-17 15:22:03)

Offline

#2 2015-08-17 15:20:18

zheglov
Member
Registered: 2015-08-17
Posts: 2

Re: [SOLVED] Root ZFS not using /dev/disk/by-id

Not ideal, but in the end this worked for me as described in

/usr/lib/initcpio/install/zfs

I just had to add

zfs_import_dir=/dev/disk/by-id

to my kernel parameters, in my case (UEFI) into the file

/boot/loader/entries/arch.conf

Offline

Board footer

Powered by FluxBB