I have seen some configurations using udev rule
to insure the disk name and permissions in the disk. But recently I've find out a command called mknod
, where it works like an alias to the block device, by specify the major:minor
of the disk, we can "create an alias", something like it:
[root@dbnode1 disks]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdd 8:48 0 160M 0 disk
mknod /disks/QUORUML b 8 48
Now I'd like to know why to use udev rules
instead of mknod
, since mknod
is very simple to use. My main point is insure persistent naming and permission.