裸设备,也叫裸分区(原始分区),是一种没有经过格式化,不被Linux通过文件系统来读取的特殊字符设备.它由应用程序负责对它进行读写操作,不经过文件系统的缓冲.
1.裸设备的创建
裸设备的分区可以是没有格式化的普通分区,也可以是LVM中没有格式化的LV
#vi /etc/sysconfig/rawdevices
/dev/raw/raw1 /dev/vg01/lv02
其中/dev/raw/raw1为裸设备,/dev/vg01/lv02为对应分区
2.激活裸设备
#service rawdevices restart
3.裸设备在 oracle 中的使用
1).更改权限
如果是供 oracle 使用,则需修改/dev/raw/*的权限:
#chown root:dba /dev/raw/*
#chmod g+w /dev/raw/*
2).在裸设备上创建数据文件
create tablespace raw_ts
datafile ‘/dev/raw/raw1’ size 100m,
‘/dev/raw/raw2’ size 100m;
No Comments
Be the first to comment on this entry.
Leave a comment
Fields in bold are required. Email addresses are never published or distributed.
Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>URLs must be fully qualified (eg: http://www.dbifan.com),and all tags must be properly closed.
Line breaks and paragraphs are automatically converted.
Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.