Linux运维奇葩报错问题解决
此贴为日常工作联系中碰到的一些关于Linux各种版本的问题,以及解决方法。会进行持续更新。问题不进行相应的具体分类,碰见一个添加一个。
1.Centos 7 版本UDEV生效
- 问题
配置共享磁盘,start_udev 提示未找到命令
[root@centos7 ~]# start_udev
bash: start_udev: 未找到命令...
版本为centos 7
Linux centos7 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
- 解决:
linux 7.x 中已经没有start_udev命令,在配置完UDEV 后,需要执行
[root@centos7 ~]# /sbin/udevadm trigger --type=devices --action=change
或者
[root@centos7 rules.d]# /sbin/udevadm control --reload
- 结果
探查一下,查看结果
[root@centos7 rules.d]# partprobe /dev/sdc
[root@centos7 rules.d]# ll /dev/raw*
总用量 0
crw-rw---- 1 root root 162, 1 10月 21 22:38 raw1
crw-rw---- 1 root root 162, 2 10月 21 22:38 raw2
crw-rw---- 1 root root 162, 3 10月 21 22:38 raw3
crw-rw---- 1 root root 162, 4 10月 21 22:38 raw4
crw-rw---- 1 root disk 162, 0 10月 21 22:38 rawctl