Questions tagged [udev]

111 questions
1
vote
1 answer

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 starting/stopping osd's in ceph-docker. 1) Firstly, CoreOS uses…
hookenz
  • 14,472
  • 23
  • 88
  • 143
1
vote
1 answer

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 can be extracted with vol_id. The problem is that…
user300811
  • 183
  • 2
  • 10
1
vote
1 answer

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 trying to pass the exact name of the device that…
Andrew
  • 142
  • 2
  • 9
1
vote
0 answers

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 many different logical volumes, one of them is…
qdii
  • 335
  • 2
  • 8
1
vote
1 answer

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 system is running a CentOS 5.2 64 bits, HAL and udev…
1
vote
4 answers

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 services such as nfs fail hard. This is because…
Banjer
  • 3,974
  • 12
  • 41
  • 47
1
vote
0 answers

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 system mounted in /dev/sda1 but the swap was not…
stefcud
  • 185
  • 1
  • 10
1
vote
1 answer

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 plugging them in or unplugging them from the…
wim
  • 165
  • 2
  • 18
1
vote
4 answers

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: Gave up waiting for root device. ALERT!…
overlord_tm
  • 133
  • 1
  • 6
1
vote
4 answers

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 NFS mounts are done. Simply putting the value in…
David142
  • 353
  • 1
  • 2
  • 9
1
vote
3 answers

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 making it unwritable. Server configuration is…
Kazimieras Aliulis
  • 2,324
  • 2
  • 26
  • 46
1
vote
1 answer

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 firepod which uses /dev/raw1394 via jackd and…
boatcoder
  • 548
  • 2
  • 5
  • 19
1
vote
0 answers

Swap disk devices in RHEL 8

I need to swap a couple of disk devices around on a RHEL 8 server because it's unfortunately going to be problematic to rebuild it and I need the devices in a specific order. I think the following udev rules used to work in RHEL 6, but then that…
DirkG
  • 11
  • 2
0
votes
0 answers

X-Org Server - Identify USB Unplug event

In our X-Org server setup, if the server is running and we unplug the USB Mouse then the server doesn't really do anything (no errors or warnings.) If we replug the device, even then the server doesn't recognize that device is there now, since it…
Beenish Khan
  • 101
  • 4
0
votes
1 answer

How to findout if haldaemon is being used or udev in RHEL server?

I am quite confused if hal is really in use or just udev. What I understood: In general, HAL is an abstraction layer that allows an operating system to interact with a hardware device. And daemon hald is different from HAL. It is a service which…
GP92
  • 681
  • 2
  • 9
  • 27