rawdevice database:
安装iscsi服务端rpm包:
yum install scsi-target-utils
安装iscsi客户端rpm包:
yum install iscsi-initiator-utils
校验iscsi所需服务启动否:
service iscsi status
service iscsid status
service tgtd status
配置脚本:
vi /etc/tgt/targets.conf
----------------------------------------
<target iqn.2011-01.com.oracle.blues:luns1>
backing-store /dev/sda12
initiator-address 10.1.1.0/24
</target>
----------------------------------------
vi /etc/udev/scripts/iscsidev.sh
----------------------------------------
#!/bin/bash
BUS=${1}
HOST=${BUS%%:*}
[ -e /sys/class/iscsi_host ] || exit 1
file="/sys/class/iscsi_host/host${HOST}/device/session*/iscsi_session*/targetname"
target_name=$(cat ${file})
if [ -z "${target_name}" ] ; then
exit 1
fi
echo "${target_name##*:}"
----------------------------------------
chmod +x /etc/udev/scripts/iscsidev.sh
vi /etc/udev/rules.d/55-openiscsi.rules
-----------------------------------------------
KERNEL=="sd*",BUS=="scsi",PROGRAM="/etc/udev/scripts/iscsidev.sh %b",SYMLINK+="iscsi/%c"
-----------------------------------------------
在服务端发布设备:
service tgtd restart
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
service iscsi start
扫描iscsi服务器:
iscsiadm -m discovery -t sendtargets -p 10.1.1.xx -l
(关闭扫描错误的设备
iscsiadm -m session -u
iscsiadm -m discovery -t sendtargets -p 10.1.1.xx -l)
对iscsi共享盘分区:
dd if=/dev/zero of=/u01/spfile bs=1M count=10
dd if=/dev/zero of=/u01/ctl1 bs=1M count=10
dd if=/dev/zero of=/u01/ctl2 bs=1M count=10
dd if=/dev/zero of=/u01/ctl3 bs=1M count=10
dd if=/dev/zero of=/u01/redo1 bs=1M count=101
dd if=/dev/zero of=/u01/redo2 bs=1M count=101
dd if=/dev/zero of=/u01/redo3 bs=1M count=101
dd if=/dev/zero of=/u01/system bs=1M count=550
dd if=/dev/zero of=/u01/sysaux bs=1M count=300
dd if=/dev/zero of=/u01/undo bs=1M count=50
dd if=/dev/zero of=/u01/temp bs=1M count=50
dd if=/dev/zero of=/u01/users bs=1M count=50
dd if=/dev/zero of=/u01/example bs=1M count=150
将新建的分区加入rawdevice:
vi /etc/udev/rules.d/60-raw.rules
------------------------------------------------
ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="sdb2", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdb3", RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="sdb5", RUN+="/bin/raw /dev/raw/raw5 %N"
ACTION=="add", KERNEL=="sdb6", RUN+="/bin/raw /dev/raw/raw6 %N"
ACTION=="add", KERNEL=="sdb7", RUN+="/bin/raw /dev/raw/raw7 %N"
ACTION=="add", KERNEL=="sdb8", RUN+="/bin/raw /dev/raw/raw8 %N"
ACTION=="add", KERNEL=="sdb9", RUN+="/bin/raw /dev/raw/raw9 %N"
ACTION=="add", KERNEL=="sdb10", RUN+="/bin/raw /dev/raw/raw10 %N"
ACTION=="add", KERNEL=="sdb11", RUN+="/bin/raw /dev/raw/raw11 %N"
ACTION=="add", KERNEL=="sdb12", RUN+="/bin/raw /dev/raw/raw12 %N"
ACTION=="add", KERNEL=="sdb13", RUN+="/bin/raw /dev/raw/raw13 %N"
ACTION=="add", KERNEL=="sdb14", RUN+="/bin/raw /dev/raw/raw14 %N"
KERNEL=="raw[1-3]", MODE="0660", GROUP="oinstall", OWNER="oracle"
KERNEL=="raw[5-9]", MODE="0660", GROUP="oinstall", OWNER="oracle"
KERNEL=="raw[10]", MODE="0660", GROUP="oinstall", OWNER="oracle"
KERNEL=="raw[11]", MODE="0660", GROUP="oinstall", OWNER="oracle"
KERNEL=="raw[12]", MODE="0660", GROUP="oinstall", OWNER="oracle"
KERNEL=="raw[13]", MODE="0660", GROUP="oinstall", OWNER="oracle"
KERNEL=="raw[14]", MODE="0660", GROUP="oinstall", OWNER="oracle"
启动udev:
start_udev
为dbca准备裸设备配置文件:
--vi /home/oracle/dbca_raw_config.txt--
spfile=/dev/raw/raw1
control1=/dev/raw/raw2
control2=/dev/raw/raw3
control3=/dev/raw/raw5
redo1_1=/dev/raw/raw6
redo1_2=/dev/raw/raw7
redo1_3=/dev/raw/raw8
system=/dev/raw/raw9
sysaux=/dev/raw/raw10
undotbs1=/dev/raw/raw11
temp=/dev/raw/raw12
users=/dev/raw/raw13
example=/dev/raw/raw14
具体操作:
[root@b95 ~]# rpm -qa | grep scsi-target-utils
[root@b95 ~]# rpm -qa | grep scsi
iscsi-initiator-utils-6.2.0.871-0.16.el5
[root@b95 ~]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 514048+ 83 Linux
/dev/sda2 65 8988 71682030 83 Linux
/dev/sda3 8989 15362 51199155 83 Linux
/dev/sda4 15363 60801 364988767+ 5 Extended
/dev/sda5 15363 20461 40957686 83 Linux
/dev/sda6 20462 25560 40957686 83 Linux
/dev/sda7 25561 30022 35840983+ 83 Linux
/dev/sda8 30023 34484 35840983+ 83 Linux
/dev/sda9 34485 38946 35840983+ 83 Linux
/dev/sda10 38947 42133 25599546 83 Linux
/dev/sda11 42134 42655 4192933+ 82 Linux swap / Solaris
/dev/sda12 42656 42668 104391 83 Linux
/dev/sda13 42669 42681 104391 83 Linux
[root@b95 ~]# mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda10 on /home type ext3 (rw)
/dev/sda9 on /var type ext3 (rw)
/dev/sda8 on /usr type ext3 (rw)
/dev/sda7 on /vmware type ext3 (rw)
/dev/sda6 on /tmp type ext3 (rw)
/dev/sda5 on /opt type ext3 (rw)
/dev/sda3 on /u1 type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
[root@b95 ~]# yum install scsi-target-utils
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Cluster | 1.3 kB 00:00
ClusterStorage | 1.3 kB 00:00
Server | 1.3 kB 00:00
VT | 1.3 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package scsi-target-utils.i386 0:0.0-6.20091205snap.el5_4.1 set to be updated
--> Processing Dependency: perl(Config::General) for package: scsi-target-utils
--> Processing Dependency: librdmacm.so.1 for package: scsi-target-utils
--> Processing Dependency: libibverbs.so.1 for package: scsi-target-utils
--> Running transaction check
---> Package libibverbs.i386 0:1.1.3-2.el5 set to be updated
--> Processing Dependency: openib >= 1.0 for package: libibverbs
--> Processing Dependency: libibverbs-driver for package: libibverbs
---> Package librdmacm.i386 0:1.0.10-1.el5 set to be updated
---> Package perl-Config-General.noarch 0:2.40-1.el5 set to be updated
--> Running transaction check
---> Package libnes.i386 0:0.9.0-2.el5 set to be updated
---> Package openib.noarch 0:1.4.1-5.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================
Package Arch Version Repository Size
====================================================================================================
Installing:
scsi-target-utils i386 0.0-6.20091205snap.el5_4.1 ClusterStorage 142 k
Installing for dependencies:
libibverbs i386 1.1.3-2.el5 Server 45 k
libnes i386 0.9.0-2.el5 Server 13 k
librdmacm i386 1.0.10-1.el5 Server 23 k
openib noarch 1.4.1-5.el5 Server 20 k
perl-Config-General noarch 2.40-1.el5 ClusterStorage 69 k
Transaction Summary
====================================================================================================
Install 6 Package(s)
Upgrade 0 Package(s)
Total download size: 311 k
Is this ok [y/N]: y
Downloading Packages:
----------------------------------------------------------------------------------------------------
Total 6.2 MB/s | 311 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-Config-General 1/6
Installing : openib 2/6
Installing : libibverbs 3/6
Installing : librdmacm 4/6
Installing : scsi-target-utils 5/6
Installing : libnes 6/6
Installed:
scsi-target-utils.i386 0:0.0-6.20091205snap.el5_4.1
Dependency Installed:
libibverbs.i386 0:1.1.3-2.el5 libnes.i386 0:0.9.0-2.el5
librdmacm.i386 0:1.0.10-1.el5 openib.noarch 0:1.4.1-5.el5
perl-Config-General.noarch 0:2.40-1.el5
Complete!
[root@b95 ~]# service iscsi status
iscsid is stopped
[root@b95 ~]# service iscsi start
iscsid is stopped
Starting iSCSI daemon: [ OK ]
[ OK ]
Setting up iSCSI targets: iscsiadm: No records found!
[ OK ]
[root@b95 ~]# service iscsid status
iscsid (pid 3555) is running...
[root@b95 ~]# service tgtd status
tgtd is stopped
[root@b95 ~]# service tgtd start
Starting SCSI target daemon: Starting target framework daemon
[root@b95 ~]# service tgtd start
Starting SCSI target daemon: [ OK ]
[root@b95 ~]#
[root@b95 ~]#
[root@b95 ~]#
[root@b95 ~]# service tgtd status
tgtd (pid 3592 3591) is running...
[root@b95 ~]# chkconfig iscsi --list
iscsi 0:off 1:off 2:off 3:on 4:on 5:off 6:off
[root@b95 ~]# chkconfig iscsid --list
iscsid 0:off 1:off 2:off 3:on 4:on 5:off 6:off
[root@b95 ~]# chkconfig tgtd --list
tgtd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@b95 ~]#
[root@b95 ~]#
[root@b95 ~]#
[root@b95 ~]#
[root@b95 ~]#
[root@b95 ~]#
[root@b95 ~]# fdisk /dev/sda
The number of cylinders for this disk is set to 60801.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 514048+ 83 Linux
/dev/sda2 65 8988 71682030 83 Linux
/dev/sda3 8989 15362 51199155 83 Linux
/dev/sda4 15363 60801 364988767+ 5 Extended
/dev/sda5 15363 20461 40957686 83 Linux
/dev/sda6 20462 25560 40957686 83 Linux
/dev/sda7 25561 30022 35840983+ 83 Linux
/dev/sda8 30023 34484 35840983+ 83 Linux
/dev/sda9 34485 38946 35840983+ 83 Linux
/dev/sda10 38947 42133 25599546 83 Linux
/dev/sda11 42134 42655 4192933+ 82 Linux swap / Solaris
/dev/sda12 42656 42668 104391 83 Linux
/dev/sda13 42669 42681 104391 83 Linux
Command (m for help): d
Partition number (1-13): 13
Command (m for help): d
Partition number (1-12): 12
Command (m for help): p
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 514048+ 83 Linux
/dev/sda2 65 8988 71682030 83 Linux
/dev/sda3 8989 15362 51199155 83 Linux
/dev/sda4 15363 60801 364988767+ 5 Extended
/dev/sda5 15363 20461 40957686 83 Linux
/dev/sda6 20462 25560 40957686 83 Linux
/dev/sda7 25561 30022 35840983+ 83 Linux
/dev/sda8 30023 34484 35840983+ 83 Linux
/dev/sda9 34485 38946 35840983+ 83 Linux
/dev/sda10 38947 42133 25599546 83 Linux
/dev/sda11 42134 42655 4192933+ 82 Linux swap / Solaris
Command (m for help): n
First cylinder (42656-60801, default 42656):
Using default value 42656
Last cylinder or +size or +sizeM or +sizeK (42656-60801, default 60801): +20G
Command (m for help): p
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 514048+ 83 Linux
/dev/sda2 65 8988 71682030 83 Linux
/dev/sda3 8989 15362 51199155 83 Linux
/dev/sda4 15363 60801 364988767+ 5 Extended
/dev/sda5 15363 20461 40957686 83 Linux
/dev/sda6 20462 25560 40957686 83 Linux
/dev/sda7 25561 30022 35840983+ 83 Linux
/dev/sda8 30023 34484 35840983+ 83 Linux
/dev/sda9 34485 38946 35840983+ 83 Linux
/dev/sda10 38947 42133 25599546 83 Linux
/dev/sda11 42134 42655 4192933+ 82 Linux swap / Solaris
/dev/sda12 42656 45088 19543041 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@b95 ~]# partprobe /dev/sda
[root@b95 ~]# vi /etc/tgt/targets.conf
[root@b95 ~]# vi /etc/udev/scripts/iscsidev.sh
[root@b95 ~]# chmod +x /etc/udev/scripts/iscsidev.sh
[root@b95 ~]# vi /etc/udev/rules.d/55-openiscsi.rules
[root@b95 ~]# tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
tgtadm: can't find the target
[root@b95 ~]# service iscsi start
iscsid (pid 3555) is running...
Setting up iSCSI targets: iscsiadm: No records found!
[ OK ]
[root@b95 ~]# tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
tgtadm: can't find the target
[root@b95 ~]# service tgtd restart
Stopping SCSI target daemon: Stopping target framework daemon
[ OK ]
Starting SCSI target daemon: Starting target framework daemon
[root@b95 ~]# tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
[root@b95 ~]# tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
tgtadm: this access control rule already exists
[root@b95 ~]# iscsiadm -m discovery -t sendtargets -p 10.1.1.95 -l
10.1.1.95:3260,1 iqn.2011-01.com.oracle.blues:luns1
Logging in to [iface: default, target: iqn.2011-01.com.oracle.blues:luns1, portal: 10.1.1.95,3260]
Login to [iface: default, target: iqn.2011-01.com.oracle.blues:luns1, portal: 10.1.1.95,3260]: successful
[root@b95 ~]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 514048+ 83 Linux
/dev/sda2 65 8988 71682030 83 Linux
/dev/sda3 8989 15362 51199155 83 Linux
/dev/sda4 15363 60801 364988767+ 5 Extended
/dev/sda5 15363 20461 40957686 83 Linux
/dev/sda6 20462 25560 40957686 83 Linux
/dev/sda7 25561 30022 35840983+ 83 Linux
/dev/sda8 30023 34484 35840983+ 83 Linux
/dev/sda9 34485 38946 35840983+ 83 Linux
/dev/sda10 38947 42133 25599546 83 Linux
/dev/sda11 42134 42655 4192933+ 82 Linux swap / Solaris
/dev/sda12 42656 45088 19543041 83 Linux
Disk /dev/sdb: 20.0 GB, 20012073984 bytes
64 heads, 32 sectors/track, 19085 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk /dev/sdb doesn't contain a valid partition table
[root@b95 ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 19085.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-19085, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-19085, default 19085): +10M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (12-19085, default 12):
Using default value 12
Last cylinder or +size or +sizeM or +sizeK (12-19085, default 19085): +20M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (32-19085, default 32):
Using default value 32
Last cylinder or +size or +sizeM or +sizeK (32-19085, default 19085): +20M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Selected partition 4
First cylinder (52-19085, default 52):
Using default value 52
Last cylinder or +size or +sizeM or +sizeK (52-19085, default 19085):
Using default value 19085
Command (m for help): n
First cylinder (52-19085, default 52):
Using default value 52
Last cylinder or +size or +sizeM or +sizeK (52-19085, default 19085): +20M
Command (m for help): n
First cylinder (72-19085, default 72):
Using default value 72
Last cylinder or +size or +sizeM or +sizeK (72-19085, default 19085): +51M
Command (m for help): n
First cylinder (122-19085, default 122):
Using default value 122
Last cylinder or +size or +sizeM or +sizeK (122-19085, default 19085): +51M
Command (m for help): n
First cylinder (172-19085, default 172):
Using default value 172
Last cylinder or +size or +sizeM or +sizeK (172-19085, default 19085): +51M
Command (m for help): n
First cylinder (222-19085, default 222):
Using default value 222
Last cylinder or +size or +sizeM or +sizeK (222-19085, default 19085): +600M
Command (m for help): n
First cylinder (795-19085, default 795):
Using default value 795
Last cylinder or +size or +sizeM or +sizeK (795-19085, default 19085): +400M
Command (m for help): n
First cylinder (1177-19085, default 1177):
Using default value 1177
Last cylinder or +size or +sizeM or +sizeK (1177-19085, default 19085): +100M
Command (m for help): n
First cylinder (1273-19085, default 1273):
Using default value 1273
Last cylinder or +size or +sizeM or +sizeK (1273-19085, default 19085): +100M
Command (m for help): n
First cylinder (1369-19085, default 1369):
Using default value 1369
Last cylinder or +size or +sizeM or +sizeK (1369-19085, default 19085): +100M
Command (m for help): n
First cylinder (1465-19085, default 1465):
Using default value 1465
Last cylinder or +size or +sizeM or +sizeK (1465-19085, default 19085): +200M
Command (m for help): p
Disk /dev/sdb: 20.0 GB, 20012073984 bytes
64 heads, 32 sectors/track, 19085 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 11 11248 83 Linux
/dev/sdb2 12 31 20480 83 Linux
/dev/sdb3 32 51 20480 83 Linux
/dev/sdb4 52 19085 19490816 5 Extended
/dev/sdb5 52 71 20464 83 Linux
/dev/sdb6 72 121 51184 83 Linux
/dev/sdb7 122 171 51184 83 Linux
/dev/sdb8 172 221 51184 83 Linux
/dev/sdb9 222 794 586736 83 Linux
/dev/sdb10 795 1176 391152 83 Linux
/dev/sdb11 1177 1272 98288 83 Linux
/dev/sdb12 1273 1368 98288 83 Linux
/dev/sdb13 1369 1464 98288 83 Linux
/dev/sdb14 1465 1656 196592 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@b95 ~]# partprobe /dev/sdb
[root@b95 ~]# vi /etc/udev/rules.d/60-raw.rules
[root@b95 ~]# start_udev
Starting udev: [ OK ]
[root@b95 ~]# ll /dev/raw/
total 0
crw-rw---- 1 oracle oinstall 162, 1 Jul 14 22:41 raw1
crw------- 1 root root 162, 10 Jul 14 22:41 raw10
crw------- 1 root root 162, 11 Jul 14 22:41 raw11
crw------- 1 root root 162, 12 Jul 14 22:41 raw12
crw------- 1 root root 162, 13 Jul 14 22:41 raw13
crw------- 1 root root 162, 14 Jul 14 22:41 raw14
crw-rw---- 1 oracle oinstall 162, 2 Jul 14 22:41 raw2
crw-rw---- 1 oracle oinstall 162, 3 Jul 14 22:41 raw3
crw-rw---- 1 oracle oinstall 162, 5 Jul 14 22:41 raw5
crw-rw---- 1 oracle oinstall 162, 6 Jul 14 22:41 raw6
crw-rw---- 1 oracle oinstall 162, 7 Jul 14 22:41 raw7
crw-rw---- 1 oracle oinstall 162, 8 Jul 14 22:41 raw8
crw-rw---- 1 oracle oinstall 162, 9 Jul 14 22:41 raw9
[root@b95 ~]# vi /etc/udev/rules.d/60-raw.rules
[root@b95 ~]# start_udev
Starting udev: [ OK ]
[root@b95 ~]# ll /dev/raw/
total 0
crw-rw---- 1 oracle oinstall 162, 1 Jul 14 22:42 raw1
crw------- 1 root root 162, 10 Jul 14 22:42 raw10
crw------- 1 root root 162, 11 Jul 14 22:42 raw11
crw------- 1 root root 162, 12 Jul 14 22:42 raw12
crw------- 1 root root 162, 13 Jul 14 22:42 raw13
crw------- 1 root root 162, 14 Jul 14 22:42 raw14
crw-rw---- 1 oracle oinstall 162, 2 Jul 14 22:42 raw2
crw-rw---- 1 oracle oinstall 162, 3 Jul 14 22:42 raw3
crw-rw---- 1 oracle oinstall 162, 5 Jul 14 22:42 raw5
crw-rw---- 1 oracle oinstall 162, 6 Jul 14 22:42 raw6
crw-rw---- 1 oracle oinstall 162, 7 Jul 14 22:42 raw7
crw-rw---- 1 oracle oinstall 162, 8 Jul 14 22:42 raw8
crw-rw---- 1 oracle oinstall 162, 9 Jul 14 22:42 raw9
[root@b95 ~]# chown oracle.oinstall /dev/raw/
[root@b95 ~]# ll /dev/raw
total 0
crw-rw---- 1 oracle oinstall 162, 1 Jul 14 22:42 raw1
crw------- 1 root root 162, 10 Jul 14 22:42 raw10
crw------- 1 root root 162, 11 Jul 14 22:42 raw11
crw------- 1 root root 162, 12 Jul 14 22:42 raw12
crw------- 1 root root 162, 13 Jul 14 22:42 raw13
crw------- 1 root root 162, 14 Jul 14 22:42 raw14
crw-rw---- 1 oracle oinstall 162, 2 Jul 14 22:42 raw2
crw-rw---- 1 oracle oinstall 162, 3 Jul 14 22:42 raw3
crw-rw---- 1 oracle oinstall 162, 5 Jul 14 22:42 raw5
crw-rw---- 1 oracle oinstall 162, 6 Jul 14 22:42 raw6
crw-rw---- 1 oracle oinstall 162, 7 Jul 14 22:42 raw7
crw-rw---- 1 oracle oinstall 162, 8 Jul 14 22:42 raw8
crw-rw---- 1 oracle oinstall 162, 9 Jul 14 22:42 raw9
[root@b95 ~]# chown oracle.oinstall /dev/raw/*
[root@b95 ~]# ll /dev/raw
total 0
crw-rw---- 1 oracle oinstall 162, 1 Jul 14 22:42 raw1
crw------- 1 oracle oinstall 162, 10 Jul 14 22:42 raw10
crw------- 1 oracle oinstall 162, 11 Jul 14 22:42 raw11
crw------- 1 oracle oinstall 162, 12 Jul 14 22:42 raw12
crw------- 1 oracle oinstall 162, 13 Jul 14 22:42 raw13
crw------- 1 oracle oinstall 162, 14 Jul 14 22:42 raw14
crw-rw---- 1 oracle oinstall 162, 2 Jul 14 22:42 raw2
crw-rw---- 1 oracle oinstall 162, 3 Jul 14 22:42 raw3
crw-rw---- 1 oracle oinstall 162, 5 Jul 14 22:42 raw5
crw-rw---- 1 oracle oinstall 162, 6 Jul 14 22:42 raw6
crw-rw---- 1 oracle oinstall 162, 7 Jul 14 22:42 raw7
crw-rw---- 1 oracle oinstall 162, 8 Jul 14 22:42 raw8
crw-rw---- 1 oracle oinstall 162, 9 Jul 14 22:42 raw9
[root@b95 ~]# chmod 660 /dev/raw/*
[root@b95 ~]# ll /dev/raw
total 0
crw-rw---- 1 oracle oinstall 162, 1 Jul 14 22:42 raw1
crw-rw---- 1 oracle oinstall 162, 10 Jul 14 22:42 raw10
crw-rw---- 1 oracle oinstall 162, 11 Jul 14 22:42 raw11
crw-rw---- 1 oracle oinstall 162, 12 Jul 14 22:42 raw12
crw-rw---- 1 oracle oinstall 162, 13 Jul 14 22:42 raw13
crw-rw---- 1 oracle oinstall 162, 14 Jul 14 22:42 raw14
crw-rw---- 1 oracle oinstall 162, 2 Jul 14 22:42 raw2
crw-rw---- 1 oracle oinstall 162, 3 Jul 14 22:42 raw3
crw-rw---- 1 oracle oinstall 162, 5 Jul 14 22:42 raw5
crw-rw---- 1 oracle oinstall 162, 6 Jul 14 22:42 raw6
crw-rw---- 1 oracle oinstall 162, 7 Jul 14 22:42 raw7
crw-rw---- 1 oracle oinstall 162, 8 Jul 14 22:42 raw8
crw-rw---- 1 oracle oinstall 162, 9 Jul 14 22:42 raw9
[root@b95 ~]# su - roacle
su: user roacle does not exist
[root@b95 ~]# su - oracle
[oracle@b95 ~]$ vi /home/oracle/dbca_raw_config.txt
[oracle@b95 ~]$ dbca