寻觅生命中的那一片浅草......

RHEL5下的RAID1

在vmware server 1.0.6下做的,安装好系统后,添加两个scsi硬盘,大小随意,本例中两个硬盘的大小均为512M,因为对RAID不熟悉,所以错漏在所难免,切勿在生产环境中应用。

1、为两块硬盘分区,修改分区类型
# fdisk /dev/sdb
输入以上命令后,输入n,再输入p,1,因为使用整个硬盘,所以后面的默认,直接回车。然后输入t,命令默认选择了第1个,也是这里唯一的一个分区,输入L,可以查看分区的类型,这里输入fd,然后输入w存盘,据RHCE课程,修改分区类型是为了autodetection。

按照以上方法对sdc进行操作。

阅读全文»

Create Logical Volume

是RHCE里面的内容,今天在rhel5上试过,修改了下
The Logical Volume Manager (LVM) enables you to set up one filesystem on
multiple partitions. For example, assume you’re adding more users and are running
out of room in your /home directory. You don’t have any unpartitioned space available
on your current hard disk.
With the LVM, all you need to do is add another hard disk, configure some
partitions, back up /home, and use the LVM tools to combine the new partition and
the one used by /home into a volume set. You may need to install the LVMrpm. Once it
is installed, the steps are fairly straightforward:

阅读全文»

运行bat文件时不弹出CMD窗口的方法

在网上找的,有错不要怪我,因为我不懂vbs

1、单次运行请用这个,修改auto.bat为你要运行的批处理文件的名字,并将以下内容保存为vbs格式,放到auto.bat文件所在目录,名字随便,例如run.vbs

Set shell = Wscript.createobject(“wscript.shell”)
a = shell.run (“auto.bat”,0)

2、循环运行请用这个,示例为每60秒运行一次,保存格式和所放置的目录同1所述

dim a
set a=CreateObject(“Wscript.Shell”)
Do
a.run “auto.bat”
Wscript.Sleep 60000
Loop

参考文章:

http://tieba.baidu.com/f?kz=298805494
http://hi.baidu.com/goodzhj/blog/item/2f52878baf8239d3fc1f1020.html

关于rpm包搜索

前天装Oracle,提示缺少一个文件,在网上找了下,有篇文章说,把缺少的文件名放到http://rpmfind.net搜索下,就可以找到你所需要的包了。才知道,做个备忘而已

还有一个:

http://rpm.pbone.net/index.php3/stat/2/simple/2

Oracle 9i on RHEL5的./runInstaller出错

昨天晚上阿树说要用racle9i,可怜我那个在虚拟机上的9i装好后就没动过,结果不能用,而且对Oracle如此复杂的DB实在不懂怎么启动,登陆,安装时记下来的密码好像都派不上用场,结果昨天开监控程序不可以,提示什么创建LOG没有权限,最后决定重装!
用Oracle登陆进系统,系统自动挂载光盘,cd到光盘根目录,执行./runInstaller,报如下错误,

./runInstaller: /bin/sh: bad interpreter: Permission denied

阅读全文»

2025年八月
« 5月    
 123
45678910
11121314151617
18192021222324
25262728293031