第一点:SUSE Linux 主机名修改
方法1. 通过yast2管理工具进行配置
在console中运行yast2工具修改主机名(hostname)
# yast2 network
对于配置未经配置的网卡
"Network cards configuration"中"Networkcards configuration"中“Configure...”
对于修改已配置网卡的设置
"Network cards configuration"中"Networkcards configuration"中“Changev...”
“Network address setup”中“Detailedsettings”单击“Host name and name server”
在“Host name”输入框中输入主机名,在“Domainname”中数入域名,如果没有域名,接受缺省的
“local”
方法2. 通过修改配置文件的方式并运行命令修改主机名
修改/etc/HOSTNAME文件,在此文件中保存主机名,例如:
linuxserv1
然后运行命令设置主机名
# /etc/rc.d/boot.localnet start
方法3. 运行 sysctl 动态改变主机名
# sysctl -w kernel.hostname=rac1
第二点:suse 默认关闭SElinux
第三点:创建用户
useradd -u 1201 -g oinstall -G asmadmin,asmdba,asmoper,dbagrid -m
useradd -u 1202 -g oinstall -G dba,asmdba,oper oracle -m
-m:自动建立用户的登入目录。
第四点:修改环境变量
vi .profile
第五点:启用裸设备
rac1:~ # vi /etc/udev/rules.d/
40-alsa.rules 79-yast2-drivers.rules
51-packagekit-firmware.rules 81-mount.rules
70-kdump.rules 81-mptctl.rules
70-kpartx.rules 85-usb_autosuspend_devices.rules
70-persistent-cd.rules 85-usb_elotouch_wakeup.rules
70-persistent-net.rules 99-iwlwifi-led.rules
71-multipath.rules 99-pcsc_lite.rules
77-network.rules 99-vmware-scsi-udev.rules
rac1:~ # vi /etc/raw
raw1:sdc1 raw2:sdd1 raw3:sdd1
修改权限:
vi /lib/udev/rudes.d/50-udev-default.rules
KERNEL=="rawctl", NAME="raw/%k",GROUP="oinstall", MODE="0660"
SUBSYSTEM=="raw", NAME="raw/%k",KERNEL=="raw[0-9]*",GROUP="oinstall",OWNER="grid", MODE="0660"
rac1:~ # start_udev
If 'start_udev' is not a typo you can run the followingcommand to lookup the package that contains the binary:
command-not-foundstart_udev
-bash: start_udev: command not found
rac1:~ # rcraw start
bind /dev/raw/raw1 to /dev/sdb1... done
bind /dev/raw/raw2 to /dev/sdc1... done
bind /dev/raw/raw3 to /dev/sdd1... done
rac1:~ # ll /dev/raw/
total 0
crw-rw---- 1 root disk 162, 1 Dec 2 21:01 raw1
crw-rw---- 1 root disk 162, 2 Dec 2 21:01 raw2
crw-rw---- 1 root disk 162, 3 Dec 2 21:01 raw3
crw-rw---- 1 root disk 162, 0 Dec 2 21:01 rawctl
rac1:~ # chkconfig raw on
rac2:/u01 # /etc/init.d/raw start
|