Groups
Groups
Sign in
Groups
Groups
福建Linux用户组
Conversations
About
Send feedback
Help
[fjlug]/dev/disk/by-uuid需要手动更新吗??
66 views
Skip to first unread message
Chopin Ngo
unread,
Dec 12, 2012, 10:49:23 PM
12/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fujianlug
因为软raid中有个盘坏了,所以现在把坏掉的盘移除出raid,其中有个分区
当初
创建的是raid 0(其余的是raid 10),所以无法在线移除
,就把
它umount并
停止
ls -l /dev/disk/uuid/
xxxx...xxx
d65691be-c67b-44f2-bf29-9812fc2ba5fd -> ../../md3
xxxx...xxx
umount /
tmp
mdadm --manage /dev/md3
--stop
mdadm --
create /dev/md3 --level=0 --raid-devices=3 /dev/sd[bcd]
5
mdadm --de
tail --scan >>
/
etc/mdadm/mdadm.conf
mk
fs.ext4 /dev/md3
mount
/dev/md3 /tmp
通过
blk
id /dev/md3
/dev/md
3
: UUID="8ea7f4d8-09e9-4035-87bd-4a7268bba42c" TYPE="ext4"
可以看到uuid,
但是
ls -l /dev/disk/by-uuid/
里看不到md3
,那现在是手动创建链接,还是有什么
脚本会自动
生成呢??系统是Debian 603
2.6.32-5-amd64。
如果是手动创建的话,有哪些目录需要去创建??
/dev/disk/里就有by
-uuid、by-path、by-id,还有其他地方吗??
/etc/fstab文件里的uuid已经修改了,就是不知道如果其他地方没有这个uuid会不会导致启动出问题(被昨天那次4个多小时的开机吓到了...不敢轻易
尝试啊...
)
--
智慧子使父亲喜乐。愚昧人藐视母亲。
----箴言 十五章20节
muxueqz(张明源)
unread,
Dec 16, 2012, 12:52:14 AM
12/16/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fuji...@googlegroups.com
可以手动ln,不过这个应该是由udev来管理的,也许重启后就有这个链接了(太不负责任的回答了……)
--
--
明源
http://Linuxzh.tk
Twitter: @muxueqz
Chopin Ngo
unread,
Dec 19, 2012, 3:59:27 AM
12/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fujianlug
...Debian里可以通过重启/etc/init.d/udev来
更新
之前发邮件的时候也有试过
/etc/init.d/
udev restart
但
没效果
今天偶然
在搜索不重启修改网卡名称的时候发现
,原来不能用restart,必须
手动stop再手动start才行
http://liuyb.wordpress.com/2010/01/18/linux-%E4%B8%8D%E9%87%8D%E5%90%AF%E6%9C%BA%E5%99%A8%E4%BF%AE%E6%94%B9%E7%BD%91%E5%8D%A1%E5%90%8D%E5%AD%97/
(3) /etc/init.d/udev stop; /etc/init.d/udev/start
用 /sbin/ifconfig -a 看到网卡名字变成 eth2 了,注意这里
不能用 /etc/init.d/udev restart 代替。
--
muxueqz(张明源)
unread,
Dec 19, 2012, 4:10:25 AM
12/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fuji...@googlegroups.com
这样也许是/etc/init.d/udev 服务脚本的bug
--
--
明源
http://muxueqz.laou.me
Twitter:
@muxueqz
Reply all
Reply to author
Forward
0 new messages