Persistent device names

6 posts / 0 new
Last post
#1 Sun, 2016-02-21 16:59
215n
  • 215n's picture
  • Offline
  • Last seen: 1 year 1 month ago
  • Joined: 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!

Sun, 2016-06-12 19:23
B1r0
  • B1r0's picture
  • Offline
  • Last seen: 1 year 1 month ago
  • Joined: 2016-06-12

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

Sun, 2016-06-12 23:43 (Reply to #2)
AmatCoder
  • AmatCoder's picture
  • Offline
  • Last seen: 8 months 2 weeks ago
  • Joined: 2013-10-18

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 )

Mon, 2016-06-13 11:58
Ianux
  • Ianux's picture
  • Offline
  • Last seen: 6 months 3 weeks ago
  • Joined: 2016-06-05

after I run
udevadm trigger
I have the symlinks in /dev/disk/*

Sat, 2016-06-18 10:56
B1r0
  • B1r0's picture
  • Offline
  • Last seen: 1 year 1 month ago
  • Joined: 2016-06-12

@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

Tue, 2016-07-05 20:23
Ianux
  • Ianux's picture
  • Offline
  • Last seen: 6 months 3 weeks ago
  • Joined: 2016-06-05

@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!

Log in or register to post comments