linux下新增ASM磁碟
1、 1. 在磁碟上建立分割槽
[root@rac1 disks]# fdisk /dev/sde
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
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
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-261, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-261, default 261):
Using default value 261
Command (m for help): p
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
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
2、使用oracleasm標識磁碟
[root@rac1 disks]# /etc/init.d/oracleasm createdisk VOL2 /dev/sde1
Marking disk "/dev/sde1" as an ASM disk: [ OK ]
[root@rac1 disks]# oracleasm querdisk VOL2
-bash: oracleasm: command not found
3、驗證標識結果
[root@rac1 disks]# /etc/init.d/oracleasm querydisk VOL2
Disk "VOL2" is a valid ASM disk on device [8, 65]
[root@rac1 disks]# /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]
3、在Oracle中新增磁碟到DATA磁碟組
[root@rac1 disks]# su - oracle
[oracle@rac1 ~]$ sqlplus /nolog
[oracle@rac1 ~]$ export ORACLE_SID=+ASM1
[oracle@rac1 ~]$ sqlplus /nolog
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Jul 9 12:11:44 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL> connect / as sysdba;
Connected.
SQL> select path from v$asm_disk;
PATH
--------------------------------------------------------------------------------
/dev/oracleasm/disks/VOL2
/dev/oracleasm/disks/VOL1
SQL> alter diskgroup data add disk '/dev/oracleasm/disks/VOL2' name data02;
Diskgroup altered.
SQL> select group_number,disk_number ,path from v$asm_disk;
GROUP_NUMBER DISK_NUMBER PATH
------------ ----------- ------------------------------
1 0 /dev/oracleasm/disks/VOL1
1 1 /dev/oracleasm/disks/VOL2
SQL>
[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7839206/viewspace-1007029/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 一次ASM新增新的磁碟組ASM
- ASM磁碟簡單維護,新增,刪除ASM
- ASM磁碟組限制ASM
- Oracle RAC環境下ASM磁碟組擴容OracleASM
- linux 新增磁碟 分割槽掛載Linux
- 【ASM】Oracle asm磁碟被格式化,如何掛載該磁碟組ASMOracle
- 遷移ASM磁碟組ASM
- 【ASM】Oracle asm刪除磁碟組注意事項ASMOracle
- 【ASM】ASM磁碟頭被重寫,如何修復ASM
- linux新增新磁碟和建立分割槽Linux
- 從定位資料塊所在ASM磁碟到ASM strippingASM
- ASM磁碟組更換磁碟的操作方法ASM
- 在linux下合併磁碟Linux
- Virtualbox中Linux新增新磁碟並建立分割槽Linux
- VM虛擬機器 linux系統新增磁碟虛擬機Linux
- Linux下磁碟I/O測試Linux
- linux下修復磁碟損壞Linux
- ASM磁碟組擴容操作文件ASM
- ASM 磁碟組的建立及擴容ASM
- ORACLE ASM磁碟組空間溢位OracleASM
- 使用udev擴充套件ASM磁碟組dev套件ASM
- Oracle asm磁碟損壞異常恢復OracleASM
- ORACLE ASM的SSD磁碟空間回收分析OracleASM
- Oracle RAC日常運維-ASM磁碟擴容Oracle運維ASM
- Oracle ASM磁碟組擴容(AIX7.1)OracleASMAI
- ASM磁碟組ORA-15042 ORA-15096ASM
- 【BUILD_ORACLE】使用ASMLib包搭建ASM磁碟UIOracleASM
- Oracle資料庫 ASM磁碟線上擴容Oracle資料庫ASM
- Linux下磁碟分割槽工具cfdisk的使用Linux
- Linux下檢視、新增及配置Linux
- Linux 磁碟與磁碟分割槽Linux
- 關於Oracle 10g ASM磁碟大小的限制Oracle 10gASM
- RAC之grid叢集安裝及ASM磁碟組配置ASM
- ASM重新命名包含OCR/vote file的磁碟組ASM
- linux下玩轉磁碟管理與掛載硬碟Linux硬碟
- Linux下RAID磁碟陣列的原理與搭建LinuxAI陣列
- 學習下Linux 如何檢視磁碟空間Linux
- Linux下的磁碟分割槽和邏輯卷Linux
- ASM下遷移spfileASM