启动后,after.local中设置的mount语句不能执行?

quiettown 2009-08-27 08:04:54
SUSE10sp1的环境下,在after.local的加载,启动时

sleep 10
echo "" >> /tmp/after.log
echo "mount" >> /tmp/after.log
mount /dev/utilvg00/bills_lv_00 /home/prestat 2>&1 >> /tmp/after.log
mount /dev/utilvg00/db_lv_00 /opt/oracle/redodata 2>&1 >> /tmp/after.log

只能成功一个,请教下,有什么原因可能会引出,多谢!
df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 20972152 2728172 18243980 14% /
udev 4091824 296 4091528 1% /dev
/dev/sda6 25172984 421684 24751300 2% /home
/dev/sda5 15735128 11531204 4203924 74% /opt
/dev/mapper/utilvg00-db_lv_00
113533600 105091368 2675064 98% /opt/oracle/redodata

rpm -qi  util-linux 的版本是对的,
rpm -qi util-linux
Name : util-linux Relocations: (not relocatable)
Version : 2.12r Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release : 35.27.4 Build Date: Wed Dec 3 23:00:29 2008
Install Date: Tue Jun 23 14:53:13 2009 Build Host: baur.suse.de
Group : System/Base Source RPM: util-linux-2.12r-35.27.4.src.rpm
Size : 5421119 License: BSD 3-Clause; GPL v2 or later
Signature : DSA/SHA1, Wed Dec 3 23:03:15 2008, Key ID a84edae89c800aca
Packager : http://bugs.opensuse.org
URL : http://kernel.org/pub/linux/utils/util-linux
Summary : A collection of basic system utilities
Description :
This package contains a large variety of low-level system utilities
that are necessary for a Linux system to function. It contains the
mount program, the fdisk configuration tool, and more.



Authors:
--------
Adrian Bunk <bunk at stusta dot de>
Distribution: SUSE Linux Enterprise 10 (X86-64)
不需要升级。
...全文
579 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
bourbaki 2009-09-01
  • 打赏
  • 举报
回复
是不是因为sleep的过程中,别的进程做了什么工作?我觉得肯定不是sleep本身的问题
quiettown 2009-08-31
  • 打赏
  • 举报
回复
删除SLEEP,并重复MOUNT后问题解决,但是谁能告诉我SLEEP的机制,有什么影响?
Joan201401 2009-08-31
  • 打赏
  • 举报
回复
关注。。。。
quiettown 2009-08-28
  • 打赏
  • 举报
回复
总是后面一个可以启动时自动MOUNT上。
  • 打赏
  • 举报
回复
手动mount /dev/utilvg00/db_lv_00 /opt/oracle/redodata
可以成功??
那你先手动mount /dev/utilvg00/bills_lv_00 /home/prestat
再手动mount /dev/utilvg00/db_lv_00 /opt/oracle/redodata
可以不?
bourbaki 2009-08-28
  • 打赏
  • 举报
回复
我想你系统这个时候有没有把/home挂载上去
quiettown 2009-08-28
  • 打赏
  • 举报
回复
盯着屏幕看,最后执行时,爆了一个错?
Master Resource control:Running /etc/init.d/after.local
can't lock lock file /etc/mtab~:timed out done
Master Resource Control:runlevel 5 has been reached
Failed services in runlevel 5: network
skipped services in runlevel 5:smbfs nfs splash xend xendomains suseRegister

接着就欢迎,下面就要求输入用户名密码了。
这里不能锁定mtab文件,有没有关系呢?
quiettown 2009-08-27
  • 打赏
  • 举报
回复
启动以后可以自动挂载
/opt/oracle/redodata

/home/prestat
不能成功。
手动执行MOUNT命令是可以成功的。并且这次是/opt/oracle/redodata成功,而下次是另一个目录成功,很见鬼的说。。。
ShowMan 2009-08-27
  • 打赏
  • 举报
回复
看设备列表里好像只有一个utilvg00-db_lv_00挂载, 另一个应该不会mount成功的吧。

19,613

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧