当前位置: 技术问答>linux和unix
启动后,after.local中设置的mount语句不能执行?
来源: 互联网 发布时间:2016-06-28
本文导语: SUSE10sp1的环境下,在after.local的加载,启动时 sleep 10 echo "" >> /tmp/after.log echo "mount" ...
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
Distribution: SUSE Linux Enterprise 10 (X86-64)
不需要升级。
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
Distribution: SUSE Linux Enterprise 10 (X86-64)
不需要升级。
|
关注。。。。
|
手动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
可以不?
可以成功??
那你先手动mount /dev/utilvg00/bills_lv_00 /home/prestat
再手动mount /dev/utilvg00/db_lv_00 /opt/oracle/redodata
可以不?
|
是不是因为sleep的过程中,别的进程做了什么工作?我觉得肯定不是sleep本身的问题
|
看设备列表里好像只有一个utilvg00-db_lv_00挂载, 另一个应该不会mount成功的吧。
|
我想你系统这个时候有没有把/home挂载上去