3

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.

4

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

  • systemctl restart systemd-udev-trigger.service for kicking things in the nuts with systemd – lkraav Jun 7 '15 at 11:54
  • 1
    @lkraav RHEL5 is old init style. – Nils Jun 8 '15 at 17:06
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.