udev不能在/ dev中更改块设备名称。 man udev
告诉我们:
NAME
The name to use for a network interface. See systemd.link(5) for a higher-level mechanism for setting the
interface name. The name of a device node cannot be changed by udev, only additional symlinks can be
created.
所以我在/etc/udev/rules.d/xxx.rules中使用SYMLINK
KERNEL=="vdb",SYMLINK="xvdb"
但是当我要将I / O sheduler设置为/sys/block/vdb/queue/scheduler
时,设备名称保留为vdb
,但xvdb
除外
如何在各处更改块设备名称?