The tag has no usage guidance.

learn more… | top users | synonyms

20
votes
2answers
3k views

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 ...
12
votes
1answer
1k views

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 ...
6
votes
4answers
4k views

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 ...
5
votes
3answers
6k views

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 ...
5
votes
1answer
759 views

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 ...
5
votes
1answer
4k views

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 ...
4
votes
2answers
2k views

Can udev be 'restarted' without a reboot?

For the general case let's say that the virtual adapter for eth0 has been removed and replaced with another one. Either due to cloning or, more recently, a rash of MAC address conflicts. [Yes, a rash ...
4
votes
4answers
1k views

Linux console - programmatical detection of which device a USB storage is assigned to

Every morning 9am we plug an external HD to our office server (always to the same USB port). Every day the HD is new, but all of them are made by the same manufacturer (Freecom). Everyday at 12am, a ...
4
votes
1answer
233 views

tape changers on Centos 6 enter flurry of activity upon boot, at udev start

I have two tape-changer robots (Quantum Superloader 3), one with parallel SCSI connectivity, the other with SAS. They were connected to a Centos 5 server, and boot would proceed normally. They are ...
4
votes
2answers
1k views

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 ...
3
votes
2answers
5k views

Execute a command when a device is connected via USB

I currently have a system that backs up my Linux server onto a USB storage device on /media/usb. This all works correctly. However, I actually have 2 drives which we try to swap on a daily basis. Is ...
3
votes
2answers
903 views

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 ...
3
votes
1answer
364 views

udev rules in ubuntu

I was setting up some udev rules in Ubuntu 12.04 for my APC UPSs and I was using the included *-net.rules as reference. When I used ATTR{}=="" matching in my -ups.rules though it didn't work, I had ...
3
votes
1answer
130 views

How can I have Linux execute a bash script when a specific disk is hotswapped in?

I have a set of hard drives which are rotated for offsite backup. There are several steps that need to be performed when one of the disks is reinserted which I've rolled into a simple bash script. ...
3
votes
1answer
989 views

Linux udev persistent net rule

I have a Linux system (Slackware Linux 13.0) with two network interfaces. Let's call them NIC0 and NIC1 My goal is to make NIC0 to appear as eth0 in the system. I know this can be achieved via udev ...
3
votes
1answer
312 views

Udev is creating too many devices

I have built a kernel and root file system for a vortexS86 processor using OpenEmbedded. When it comes up I have hundreds of device entries in the /dev directory. This include such items as: ...
3
votes
1answer
3k views

How to change device permissions via udev in RHEL5?

I'm attempting to make the device permissions on a hard drive(/dev/sdb) persistent for a particular group in RHEL5. Can anyone point me to to a proper KERNEL line in /etc/udev/rules that would work ...
2
votes
4answers
3k views

How to change persistent-net-generator.rules to be PCI bus dependent and not MAC based?

I am using CentOS 6.2 with VMware. I often have to clone my systems. Every time I clone it is adds a new rule to 70-persistent-net.rules file like so. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ...
2
votes
4answers
3k views

How to make RHEL have persistent local hdd name?

I have 2 identical Dell R720 servers running identical Oracle Enterprise Linux(RHEL)6.4. Both servers (supposedly) configured in exactly the same way. However, one of the servers is behaving ...
2
votes
2answers
232 views

Consistent Naming of 10gbps Interfaces on Dell Host

I have some Dell hosts in our environment. I would like to be able to provide consistent network interface naming across platforms. I know that biosdevname attempts to make the interfaces consistent ...
2
votes
2answers
3k views

/lib/udev/net.agent causing high CPU usage

We have a number of Soekris boxes running Debian Squeeze. They were installed through an automated process consisting of using deboostrap and copying it unto a Compact Flash card. We use puppet to ...
2
votes
2answers
3k views

LVM: Duplicate VG name VolGroup00

I'm on a server that shows a duplicate VG name. How can I rename one of these VolGroups to get rid of this conflict? [root@dev-server dev]# lvs WARNING: Duplicate VG name VolGroup00: ...
2
votes
2answers
9k views

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...
2
votes
2answers
550 views

udev rule execute 2 times

I've written a udev rule like this: SUBSYSTEM=="usb", ACTION=="add", RUN+="//root/usbmon/usb add %b" SUBSYSTEM=="usb", ACTION=="remove", RUN+="//root/usbmon/usb remove %b" now this usb script sends ...
2
votes
4answers
3k views

Understanding the Linux boot process, subsystem initialization, & udev rules?

I'm creating UDEV rules for automounting external drives on a headless server, much in the same way as Gnome-VFS does automounting during a user session. I'm concerned with the rule's behavior at ...
2
votes
1answer
275 views

udev rule running setserial low_latency don't work

My server runs Ubuntu 14.04.1. I created udev rules in /etc/udev/rules.d/09-pps.rules to get GPS with PPS support work. KERNEL=="ttyS0", SYMLINK+="gps0", MODE="0666" KERNEL=="ttyS0", ...
2
votes
2answers
1k views

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 ...
2
votes
4answers
4k views

Remapping Linux serial port device names

I have a server running Debian Linux which has a built in serial port which is coming up as ttyS0. I have a plug in PCI card with two serial ports that are being registered with Linux as ttyS2 and ...
2
votes
0answers
684 views

udisks-daemon eating up all my memory

I'm operating a little storage server on debian, over the past months I've noticed the process udisks-daemon eating up almost all available memory. Is this just really aggressive caching or a memory ...
1
vote
4answers
5k views

eth0 and eth1 both assigned same IP on boot

I have a physical SLES 11 SP2 server on a Sun Fire x4140 that is giving me problems with networking upon reboot. The NICs are onboard. The networking appears successful during boot, but network ...
1
vote
1answer
724 views

How to get the permissions right for /dev/raw1394

I recently upgraded one of my ubuntu machines to Karmic and I'm having trouble getting the permissions of /dev/raw1394 set to 0666. They only thing this machine is used for is recording audio from a ...
1
vote
1answer
4k views

How to restart udevd on RH/CentOS system?

For udevd there is no init.d script and manual page is not indicating how to restart it either. The process is holding a deleted file (lsof shows) and I need to release it by restarting udevd. How to ...
1
vote
1answer
4k views

Creating Persistent Drive Labels With UDEV Using /dev/disk/by-path

I have a new BackBlaze Pod (BackBlaze Pod 2.0). It has 45 3TB drives and they when I first set it up they were labeled /dev/sda through /dev/sdz and /dev/sdaa through /dev/sdas. I used mdadm to ...
1
vote
4answers
6k views

Persistent changes to /proc/sys/sunrpc/tcp_slot_table_entries

I'm trying to make a persistent change to sunrpc.tcp_slot_table_entries on a Linux CentOS 5.5. This value has been found important for the performance of our NFS clients, and must be set before the ...
1
vote
1answer
85 views

Script triggered by udev to examine partition tables and test if it's a ceph disk

I'm wanting to trigger using udev under CoreOS a script on disk add/remove. The purpose/goal is to automatically mount ceph data partitions to a specific directory in preparation for ...
1
vote
1answer
1k views

how can i control where pci devices are mounted?

I have a machine with multiple capture cards in PCI express slots. For ease of trouble shooting stuff, I would like for the devices to appear on the OS in order of their physical position when I'm ...
1
vote
4answers
1k views

Slow logical volume detection

I am experiencing some issues with test server lately. It was installed few days ago and worked OK until yesterday, when it did not wake up after reboot. Bootloader did not find root device. Error: ...
1
vote
0answers
14 views

Can 'or' logic be used in UDEV for mounting drive with unique UUIDs?

We do a back-up to a LaCie external rugged drive. The drive is then swapped with it's twin in the safe deposit box. While the drives have different serial numbers, for the servers purposes they are ...
1
vote
0answers
72 views

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 ...
1
vote
0answers
147 views

Force libvirt to pass always the same device number to the guest on USB device reconnection

I have a HP plotter connected with a USB cable to a debian server through a USB hub. On the server there is a virtualized Windows XP. Everytime I reboot the plotter a different device number is ...
1
vote
0answers
166 views

Are /dev/disk/by-id symlinks unreliable?

I am provisioning a Nova server and Cinder volumes using a Heat template. In order to identify the Cinder volumes attached to my OpenStack server I would like to use the /dev/disk/by-id/... symlinks ...
1
vote
1answer
115 views

ID_FS_LABEL empty for luks volume

I have an LUKS encrypted partition on a disk. I would like to label it and have it available at /dev/disk/by-label. The value used is ID_FS_LABEL to create the link in /dev/disk/by-label. That value ...
1
vote
0answers
182 views

udev rule for disconnection and hibernate/suspend

I have an external hard drive which contains different GPT partitions. One of them is a LVM partition. This partition is contained in a LVM volume group (called "volga"), which in turns splits into ...
1
vote
1answer
347 views

MegaCli newly created disk doesn't appear under /dev/sdX

After having successfully added 2 new disks in a new RAID virtual drive (background initialization done), I would have exepected it to appear under /dev/sdh but it's not there (so, unusable). The ...
1
vote
0answers
122 views

lenny to squeeze upgrade, partitions disapper

I have an RealPrivateServer on OVH provider, I have completes the upgrade, but after all packages were upgraded, the system for some reason don't generate the disk devices in /dev properly. I had the ...
1
vote
3answers
556 views

udev makes /dev/null unwritable?

Had two Debian stable (as of 2009-05-28) servers suddenly broken, when /dev/null became unwritable. It appeared that when I restart udev it sometimes (randomly) changes /dev/null permissions sometimes ...
0
votes
1answer
107 views

Device names on hotswap server. (Name by port rather than insert order?)

Is there a way to name devices such that any drive plugged into slot 1 is always named /dev/sda? Rather than just first drive inserted sda even though it's plugged into the last slot, second sdb ...
0
votes
1answer
70 views

How to find device in /dev

I have added a new virtual pci device to my debian6 VM (Virtual Machine). I can see the device via "lspci" command, but I cannot find it in /dev. Is it because it's not installed properly or it needs ...
0
votes
2answers
408 views

Dbus or Udev command to locate connected hardware

It's a dumb question. Once I knew this command, I used it two or three months ago but now it seems I can't recall it. I tried to look for it using Google but nothing happened :( It's a dbus command ...
0
votes
1answer
368 views

How can I inform a script called from a udev rule of the device that triggered the rule?

I've got a udev rule ACTION=="add", SUBSYSTEM=="block", KERNEL=="vd[c-z]", ENV{DEVICE_NAME}="KERNEL" RUN+="/usr/local/bin/udevtest" where devices vd[c-z] trigger the rule and call my script. I am ...