Linux udev 动态管理Oracle ASM磁盘-实验

发布时间:2025-03-17 点击:30
建站服务器
1 概述
在red hat enterprise linux (rhel) 6以前,oracle都是采用asmlib包来管理asm磁盘。但是2011年5月甲骨文发表了一份声明,声明中称oracle将不再提供red hat enterprise linux (rhel) 6的asmlib包和相关更新。
甲骨文在这份声明中表示,asmlib更新将通过unbreakable linux network(uln)来发布,并仅对oracle linux客户开放。uln虽然为甲骨文和红帽的客户服务,但如果客户想要使用asmlib,就必须使用oracle的kernel来替换掉红帽的kernel。
本实验部署oracle asm,不再采用asmlib,而是采用udev动态管理asm磁盘。
注意:linux 内核 2.6以上才支持udev。
虚拟机:vmware workstation 9
操作系统:red hat enterprise linux server release 5.6
系统内核:2.6.18-238.el5
数据库:oracle database 11.2.0.1
2 实验步骤
之前已经基于udev的方式创建过asm磁盘,而且已经安装好oracle grid 、oracle database,并创建好了数据库,接下来将添加4块1g磁盘,分别扩展现有asm磁盘组dg_data,新建asm磁盘组dg_new_data。
查看新添加的磁盘,分别为/dev/sdb、/dev/sdg、/dev/sdh、/dev/sdi。
[root@ora32 dev]# fdisk -l
disk /dev/sda: 23.6 gb, 23622320128 bytes
255 heads, 63 sectors/track, 2871 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
device boot start end blocks id system
/dev/sda1 * 1 65 522081 83 linux
/dev/sda2 66 457 3148740 82 linux swap / solaris
/dev/sda3 458 2871 19390455 8e linux lvm
disk /dev/sdb: 1073 mb, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
disk /dev/sdb doesn\\\’t contain a valid partition table
disk /dev/sdc: 2147 mb, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
device boot start end blocks id system
/dev/sdc1 1 261 2096451 83 linux
disk /dev/sdd: 2147 mb, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
device boot start end blocks id system
/dev/sdd1 1 261 2096451 83 linux
disk /dev/sde: 2147 mb, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
device boot start end blocks id system
/dev/sde1 1 261 2096451 83 linux
disk /dev/sdf: 2147 mb, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
device boot start end blocks id system
/dev/sdf1 1 261 2096451 83 linux
disk /dev/sdg: 1073 mb, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
disk /dev/sdg doesn\\\’t contain a valid partition table
disk /dev/sdh: 1073 mb, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
disk /dev/sdh doesn\\\’t contain a valid partition table
disk /dev/sdi: 1073 mb, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
disk /dev/sdi doesn\\\’t contain a valid partition table
分别对4块磁盘进行分区,每块磁盘分1个区即可。
[root@ora32 dev]# fdisk -l
disk /dev/sda: 23.6 gb, 23622320128 bytes
255 heads, 63 sectors/track, 2871 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
device boot start end blocks id system
/dev/sda1 * 1 65 522081 83 linux
/dev/sda2 66 457 3148740 82 linux swap / solaris
/dev/sda3 458 2871 19390455 8e linux lvm
disk /dev/sdb: 1073 mb, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
device boot start end blocks id system
/dev/sdb1 1 130 1044193 83 linux
disk /dev/sdc: 2147 mb, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
device boot start end blocks id system
/dev/sdc1 1 261 2096451 83 linux
disk /dev/sdd: 2147 mb, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
device boot start end blocks id system
/dev/sdd1 1 261 2096451 83 linux
disk /dev/sde: 2147 mb, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
device boot start end bl

的-备案平台问:您好,您好!
云服务器和主机的区别是什么 云服务器具有哪些优势
阿里云ecs服务器怎么导入镜像
云服务器挂店铺会有影响吗
腾讯云服务器怎么发给别人邮箱
微软或面临欧盟反垄断调查:Slack投诉其不正当竞争
谷歌云服务器怎么运行程序的
那么学好seo的基础需要多久?