|
查看vg信息:
[oracle@aix211 ~]$lsvg datavg
VOLUME GROUP: datavg VG IDENTIFIER: 00040f8a00004c000000014862af71b0
VG STATE: active PP SIZE: 64 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 480 (30720 megabytes)
MAX LVs: 256 FREE PPs: 372 (23808 megabytes)
LVs: 19 USED PPs: 108 (6912 megabytes)
OPEN LVs: 14 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: no
Concurrent: Enhanced-Capable Auto-Concurrent: Disabled
VG Mode: Concurrent
Node ID: - Active Nodes:
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
创建lv大小为128M(2个pp)
[root@aix211 /]#mklv -y 'tbs1' -t 'raw' datavg 2
tbs1
[root@aix211 /]#lsvg -l datavg
datavg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
tbs1 raw 2 2 1 closed/syncd N/A
修改设备属性
[root@aix211 /]#chown oracle:dba /dev/tbs1
[root@aix211 /]#chown oracle:dba /dev/rtbs1
[root@aix211 /]#chmod 660 /dev/tbs1
[root@aix211 /]#chmod 660 /dev/rtbs1
[root@aix211 /]#ls -l /dev |grep tbs1
crw-rw---- 1 oracle dba 88, 19 Sep 15 16:55 rtbs1
brw-rw---- 1 oracle dba 88, 19 Sep 15 16:55 tbs1
创建表空间tbs1
[oracle@aix211 ~]$ln -s /dev/rtbs1 /u01/app/oracle/oradata/prod/tbs1.dbf
[oracle@aix212@ ~]$sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 15 17:44:10 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> create tablespace tbs1
2 datafile '/u01/app/oracle/oradata/prod/tbs1.dbf' size 128m;
create tablespace tbs1
*
ERROR at line 1:
ORA-01119: error in creating database file
'/u01/app/oracle/oradata/prod/tbs1.dbf'
ORA-27042: not enough space on raw partition to fullfill request
IBM AIX RISC System/6000 Error: 6: No such device or address
Additional information: 1
Additional information: 1
Additional information: -1
由于/dev/rtbs1大小为128m,不能全部用来创建表空间(最少要留有2X8k)
|
|
|