4

I've added a fibrechannel disk to a RHEL 5.5 server. The disk is present and shows under /dev/sdxx - But I need to give udev a kick and have it refresh the /dev/disk/by-label/LABEL links; this is where I do my mount points.

I do not want to reboot the system.

2 Answers 2

5

Try udevtrigger. That should replay all outstanding udev-tasks.

4
  • systemctl restart systemd-udev-trigger.service for kicking things in the nuts with systemd Commented Jun 7, 2015 at 11:54
  • 1
    @lkraav RHEL5 is old init style. Commented Jun 8, 2015 at 17:06
  • 1
    I had to use udevadm trigger because my system (debian) did not have udevtrigger. Thanks for putting me on the right track. Commented Oct 16, 2022 at 22:11
  • @MironVeryanskiy same with CentOS7 or newer. Commented Oct 17, 2022 at 15:12
1

Did you label the filesystem when you created it? If not, it won't appear under /dev/disk/by-label as it doesn't have one!

You don't mention which filesystem you're using, so I'll assume ext3 as that's the default in RHEL 5. You can use tune2fs to examine the device:

$ sudo tune2fs -l /dev/sda1 | grep name
Filesystem volume name:   home

If this says <none> then you can use tune2fs again to add a label:

$ sudo tune2fs -L mylabel /dev/sda1

This should populate /dev/disk/by-label.

You can also use -L label with mkfs.ext3 when creating the filesystem.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.