Persistent device names
#1
Sun, 2016-02-21 16:59
215n
-
- Offline
- 1 year 9 months ago
- 2016-02-21
Hi all,
I've been digging through Alpine the last few days and I'm already sold on the concept. To my delight, there is also a ZFS package in the testing repos.
I'd very much like to use ZFS with persistent devices names (e.g using UUIDs, etc.). Most Linux distros use udev to create some links in /dev/ (e.g. "/dev/disk/by-id/") to address block devices in a consistent manner across changes/reboots.
To this point, I'm not entirely sure, what device manager is used in Alpine. Can someone point me in the right direction on how to uniquely access devices on Alpine?
Many Thanks!
Hi 215n
+1
did you ever find out?
I'm having the same problem here... I map encrypted devices by UUID and i won't risk a potential reordering of the devices...
What I discovered is that /lib/udev/rules.d was missing some rules so I installed the missing package eudev
http://pkgs.alpinelinux.org/package/v3.4/main/armhf/eudev
but no luck.
still no UUIDs /dev/disk/*
I installed the latest 3.4.0
Linux nas 4.4.11-0-grsec #1-Alpine SMP Fri May 20 08:35:18 GMT 2016 x86_64 GNU/Linux
Any help would be greatly appreciated
Thanks
B1r0
Have you added
udev
service to the init ?Try:
rc-update add udev
( If you are running Alpine from RAM then save the changes with:
lbu ci
)after I run
udevadm trigger
I have the symlinks in /dev/disk/*
@AmatCoder: Terrific, thank you! I I didn't know of rc-update. I would have expected the package install would have done it for me.
@Ianux: your suggestion was good too, to make it permanent at boot I had to run "rc-update add udev sysinit"
Thank you both for helping me solving this issue.
Cheers,
1r0
@B1r0
rc-update add udev sysinit
wasn't even enough for me, afer a reboot /dev/disk/* still missing.rc-update add udev-trigger sysinit
did it!