Questions tagged [udev]
106 questions
27
votes
2 answers
Why is my eth0 called eno16777736?
I've seen http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/, which describes the rationale for consistent/predictable device naming, and then the rules by which device names are generated:
* Two character prefixes…
Dmitry Minkovsky
- 547
- 2
- 9
- 22
14
votes
1 answer
Why did rebooting cause one side of my ZFS mirror to become UNAVAIL?
I just recently migrated a bulk data storage pool (ZFS On Linux 0.6.2, Debian Wheezy) from a single-device vdev configuration to a two-way mirror vdev configuration.
The previous pool configuration was:
NAME STATE READ…
user
- 4,267
- 4
- 32
- 70
7
votes
3 answers
How to determine "Predictable Name" of network interface
I am setting up a new server and installed Ubuntu Bionic, which uses Predictable Network Interface Names.
The installer is running on a rescue system, which still uses old interface names like eth0, eth1, but the newly installed system has…
pymkin
- 225
- 3
- 8
7
votes
4 answers
mdadm software RAID isn't assembled at boot during initramfs stage
First, I prefer to mention I've found and read this.
I'm running Debian Jessie with a standard 3.16 kernel.
I've manually defined a RAID1 array. But it is not assembled automatically at boot time. And thus, systemd falls back to some degraded shell…
Sun Wukong
- 69
- 1
- 1
- 4
6
votes
1 answer
udev rule not applied on boot for mounted disk
I'm trying to persist a readahead rule on a mounted drive to use with mongodb.
The mount is persisted using /etc/fstab and that works as expected.
I have added a udev rule ACTION=="add", KERNEL=="sdb", ATTR{bdi/read_ahead_kb}="16"in…
datacarl
- 161
- 2
6
votes
4 answers
location of 70-persistent-net.rules in Centos 7
Please, give me a clue, where it's located?
it's not under /etc/udev/rules.d anymore
# find / -name "*persistent-net.rules" didn't find anything...
Shirker
- 579
- 1
- 5
- 18
6
votes
3 answers
Ubuntu: disable udev's persistent-net-generator.rules
I'm using Ubuntu 12.04 LTS server edition and I am modifying /etc/udev/rules.d/70-persistent-net.rules to define my own mappings of ethernet interfaces to MAC addresses; that file is initially generated by rules in…
Luke404
- 5,708
- 3
- 44
- 58
6
votes
2 answers
Ubuntu Hardy : Testing for environment variables in udev rules doesn't seem to work
I have a Ubuntu 8.04 LTS (server edition), and I need to write a udev rule for it to act upon plugging a USB thumb drive. However, I need a different action depending on the filesystem of the drive. I know I can use the ID_FS_TYPE environment…
Fred
- 303
- 1
- 4
- 7
6
votes
4 answers
How do you specify static mount points for removable usb drives?
I have a bunch of usb ports and hubs. When you attach usb thumb drives, Linux assigns them to virtual block devices on a first-come first-serve basis. It creates sdd, sde, sdf, and so on, regardless of which port I plug the drives into. We copy…
Nick
- 81
- 1
- 2
5
votes
1 answer
Calling lvcreate from inside the container hangs
I run a container. It has all the capabilities and mounts all the directories from root (except /proc). When I call lvcreate from inside of it I get:
# lvcreate -v -L104857600B -n vol1 default
Finding volume group "default"
Archiving volume group…
zefciu
- 135
- 1
- 9
5
votes
0 answers
udev attribute cannot be set on boot
I'm setting up SR-IOV for my Intel I350 igb on CentOS 6.6 (2.6.32-504.el6.x86_64, udev 147) using udev. I have modified a rule I used in CentOS 7 (3.10.0-123.el7.x86_64, udev 208). When I do "udevadm test" on CentOS 6.6, the rule is matched…
Angelos
- 151
- 4
5
votes
2 answers
How to write rules for persistent net names?
I know that a process generates persistent network card names based on rules found in /lib/udev/rules.d/75-persistent-net-generator.rules. I also know how to completely disable this process with a simple
echo '#' >…
ndemou
- 1,215
- 2
- 16
- 27
5
votes
2 answers
Boot failure with root on MD (RAID1) + LVM: udev event timing
A fresh install of Ubuntu Server 13.10 (x64) is having problems booting from its root volume located in md+lvm. I've kludged a solution for now, but I'd like to understand more about what's going on and what better solutions there might be.
Since…
strix
- 109
- 5
5
votes
1 answer
Change owner of LVM LV's device node in RHEL5
First time using serverfault, please excuse any breaches of etiquette.
I've created several LVM2 logical volumes in local storage on a server, and would like one of the device nodes - not the filesystem or mount point - to be owned by a user/group…
user16002
5
votes
1 answer
How to force mdadm to use udev device names rather than /dev/sdX
The question is mostly in the title already.
mdadm and /proc/mdstat insist on listing md members by their "traditional" /dev/sdX names.
What I want is for them to use the newer udev device names (e.g. /dev/disk/by-path and by-id).
I already changed…
UloPe
- 175
- 5