- 论坛徽章:
- 0
|
这是整个过程
************创建卷组**************
lvm> pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created
lvm> vgcreate vg0 /dev/sdb
Volume group "vg0" successfully created
lvm> lvcreate -L12M -nlv0 vg0
Logical volume "lv0" created
lvm> vgchange -a y
1 logical volume(s) in volume group "vg0" now active
lvm> lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
lv0 vg0 -wi-a- 12.00M
lvm> vgs
VG #PV #LV #SN Attr VSize VFree
vg0 1 1 0 wz--n- 2.00G 1.98G
lvm> exit
*****创建卷组**************
[root@linux vg0]# ll
总计 0
lrwxrwxrwx 1 root root 19 09-26 14:58 lv0 -> /dev/mapper/vg0-lv0
[root@linux vg0]# chown oracle.dba /dev/mapper/vg0-lv0
[root@linux vg0]# ll
总计 0
lrwxrwxrwx 1 root root 19 09-26 14:58 lv0 -> /dev/mapper/vg0-lv0
[root@linux vg0]# cd /dev/mapper
[root@linux mapper]# ll
总计 0
crw------- 1 root root 10, 63 09-26 14:03 control
brw-rw---- 1 oracle dba 253, 0 09-26 14:58 vg0-lv0
*****************************************************
SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 9月 26 15:01:50 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn / as sysdba
Connected.
SQL> create tablespace test_tbs datafile '/dev/mapper/vg0-lv0' size 5M;
create tablespace test_tbs datafile '/dev/mapper/vg0-lv0' size 5M
*
ERROR at line 1:
ORA-01119: error in creating database file '/dev/mapper/vg0-lv0'
ORA-27094: raw volume used can damage partition table
Additional information: -2
Additional information: 12582912
**********************************************************
用raw命令映射也是不行的 |
|