ImageVerifierCode 换一换
格式:DOCX , 页数:24 ,大小:21.83KB ,
资源ID:5729289      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/5729289.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(ASM安装和配置.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

ASM安装和配置.docx

1、ASM安装和配置ASM安装和配置1. 软件准备1.1 ASM driverAsmlib oracleasm-support-version.arch.rpm oracleasm-kernel-version.arch.rpm oracleasmlib-version.arch.rpmEnter the following command to determine the kernel version and architecture of the system:# uname -rmDownload the required ASMLIB packages from the Oracle Te

2、chnology Network (OTN) Web site:Note:You must install oracleasm-support package version 2.0.1 or later to use ASMLIB on Red Hat Enterprise Linux Advanced Server, or SUSE Linux Enterprise Server.You must install the following packages, where version is the version of the ASMLIB driver, arch is the sy

3、stem architecture, and kernel is the version of the kernel that you are using.1.2 Grid Infrastructurehtml2. 安装驱动-Asmlib2.1 安装ASM DriverSwitch user to the root user:$ su -Enter a command similar to the following to install the packages:# rpm -Uvh oracleasm-support-version.arch.rpm oracleasm-kernel-ve

4、rsion.arch.rpm oracleasmlib-version.arch.rpmFor example, if you are using the Red Hat Enterprise Linux AS 4 enterprise kernel on an AMD64 system, then enter a command similar to the following:# rpm -Uvh oracleasm-support-2.0.1.x86_64.rpm oracleasmlib-2.0.1.x86_64.rpm oracleasm-2.6.9-11.EL-2.0.1.x86_

5、64.rpmrootrac1 rpm# ls | grep asmoracleasm-2.6.9-89.ELsmp-2.0.5-1.el4.i686.rpmoracleasmlib-2.0.4-1.el4.i386.rpmoracleasm-support-2.1.7-1.el4.i386.rpmrpm -Uvh oracleasm-support-2.1.7-1.el4.i386.rpm oracleasmlib-2.0.4-1.el4.i386.rpm oracleasm-2.6.9-89.ELsmp-2.0.5-1.el4.i686.rpmrootrac1 rpm# rpm -qa |g

6、rep asmrootrac1 rpm# rpm -Uvh oracleasm-support-2.1.7-1.el4.i386.rpm oracleasmlib-2.0.4-1.el4.i386.rpm oracleasm-2.6.9-89.ELsmp-2.0.5-1.el4.i686.rpmwarning: oracleasm-support-2.1.7-1.el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516Preparing. # 100% 1:oracleasm-support # 33% 2:oracleasm-2.6.9-8

7、9.ELsm# 67% 3:oracleasmlib # 100%rootrac1 rpm# 2.2 配置驱动Enter the following command to run the oracleasm initialization script with the configure option:# /usr/sbin/oracleasm configure -ior#/etc/init.d/oracleasm configurerootrac1 rpm# /etc/init.d/oracleasm configureConfiguring the Oracle ASM library

8、driver.This will configure the on-boot properties of the Oracle ASM librarydriver. The following questions will determine whether the driver isloaded on boot and what permissions it will have. The current valueswill be shown in brackets (). Hitting without typing ananswer will keep that current valu

9、e. Ctrl-C will abort.Default user to own the driver interface grid: Default group to own the driver interface dba: Start Oracle ASM library driver on boot (y/n) y: Scan for Oracle ASM disks on boot (y/n) y: Writing Oracle ASM library driver configuration: doneInitializing the Oracle ASMLib driver: O

10、K Scanning the system for Oracle ASMLib disks: OK rootrac1 rpm# 2.3 创建ASM磁盘If you intend to use IDE, SCSI, or RAID devices in the Oracle ASM disk group, then follow these steps:If necessary, install or configure the shared disk devices that you intend to use for the disk group and restart the system

11、.To identify the device name for the disks to use, enter the following command:Depending on the type of disk, the device name can vary:Disk TypeDevice Name FormatDescriptionIDE disk/dev/hdxnIn this example, x is a letter that identifies the IDE disk and n is the partition number. For example, /dev/h

12、da is the first disk on the first IDE bus.SCSI disk/dev/sdxnIn this example, x is a letter that identifies the SCSI disk and n is the partition number. For example, /dev/sda is the first disk on the first SCSI bus.To include devices in a disk group, you can specify either whole-drive device names or

13、 partition device names.Note:Oracle recommends that you create a single whole-disk partition on each disk.Use either fdisk or parted to create a single whole-disk partition on the disk devices.Enter a command similar to the following to mark a disk as an Oracle ASM disk:# /usr/sbin/oracleasm created

14、isk DISK1 /dev/sdb1In this example, DISK1 is the name you assign to the disk.Note:The disk names that you specify can contain uppercase letters, numbers, and the underscore character. They must start with an uppercase letter. If you are using a multi-pathing disk driver with Oracle ASM, then make su

15、re that you specify the correct logical device name for the disk.To make the disk available on the other nodes in the cluster, enter the following command as root on each node:# /usr/sbin/oracleasm scandisksThis command identifies shared disks attached to the node that are marked as Oracle ASM disks

16、.rootrac1 rpm# fdisk -lDisk /dev/sda: 107.3 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sda1 * 1 12662 101707483+ 83 Linux/dev/sda2 12663 13054 3148740 82 Linux swapDisk /dev/sdb: 1073 M

17、B, 1073741824 bytes255 heads, 63 sectors/track, 130 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sdb doesnt contain a valid partition tableDisk /dev/sdc: 1073 MB, 1073741824 bytes255 heads, 63 sectors/track, 130 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev

18、/sdc doesnt contain a valid partition tableDisk /dev/sdd: 1073 MB, 1073741824 bytes255 heads, 63 sectors/track, 130 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sdd doesnt contain a valid partition tableDisk /dev/sde: 1073 MB, 1073741824 bytes255 heads, 63 sectors/track, 130 cy

19、lindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sde doesnt contain a valid partition tablerootrac1 rpm# fdisk /dev/sdbDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain in memory only,until you decide t

20、o write them. After that, of course, the previouscontent wont be recoverable.Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)Command (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-130, default 1): Using defa

21、ult value 1Last cylinder or +size or +sizeM or +sizeK (1-130, default 130): Using default value 130Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.rootrac1 rpm# fdisk /dev/sdcDevice contains neither a valid DOS partition table, nor

22、 Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain in memory only,until you decide to write them. After that, of course, the previouscontent wont be recoverable.Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)Command (m for help): nCommand actio

23、n e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-130, default 1): Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-130, default 130): Using default value 130Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read parti

24、tion table.Syncing disks.rootrac1 rpm# fdisk /dev/sddDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain in memory only,until you decide to write them. After that, of course, the previouscontent wont be recoverable.Warni

25、ng: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)Command (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-130, default 1): Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-130, default 130): Using

26、default value 130Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.rootrac1 rpm# fdisk /dev/sdeDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain in mem

27、ory only,until you decide to write them. After that, of course, the previouscontent wont be recoverable.Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)Command (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-

28、130, default 1): Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-130, default 130): Using default value 130Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.Create asm disk/etc/init.d/oracleasm createdisk ASMDISK1

29、/dev/sdb1/etc/init.d/oracleasm createdisk ASMDISK2 /dev/sdc1/etc/init.d/oracleasm createdisk ASMDISK3 /dev/sdd1/etc/init.d/oracleasm createdisk ASMDISK4 /dev/sde1/etc/init.d/oracleasm scandisks/etc/init.d/oracleasm listdisksrootrac1 rpm# /etc/init.d/oracleasm createdisk ASMDISK1 /dev/sdb1Marking dis

30、k ASMDISK1 as an ASM disk: OK rootrac1 rpm# /etc/init.d/oracleasm createdisk ASMDISK2 /dev/sdc1Marking disk ASMDISK2 as an ASM disk: OK rootrac1 rpm# /etc/init.d/oracleasm createdisk ASMDISK3 /dev/sdd1Marking disk ASMDISK3 as an ASM disk: OK rootrac1 rpm# /etc/init.d/oracleasm createdisk ASMDISK4 /dev/sde1Marking disk ASMDISK4 as an ASM disk: OK rootra

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1