[grid@asmlnx2 ~]$ uname -a Linux asmlnx22.6.39-200.24.1.el6uek.x86_64#1 SMP Sat Jun 2302:39:07 EDT 2012x86_64x86_64x86_64 GNU/Linux
[grid@asmlnx2 ~]$ cat /etc/*release* Oracle Linux Server release6.3 Red Hat Enterprise Linux Server release6.3 (Santiago) Oracle Linux Server release6.3
在您的Linux配置中识别新磁盘(例如OEL 6.3或RedHat 6.3):
1 2 3
[grid@asmlnx2 ~]$ ls -l /dev/xvdv brw-rw---- 1 root disk 202, 5376 Feb 11 21:31/dev/xvdv
[root@asmlnx2 ~]# fdisk /dev/xvdv Device contains neither a valid DOS partitiontable, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0xba335ded. Changes will remain in memory only, until you decide towrite 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) WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u').
Command (m for help): n Command action e extended p primarypartition (1-4) p Partition number (1-4): 1 First cylinder (1-261, default1): Usingdefaultvalue1 Last cylinder, +cylinders or +size{K,M,G} (1-261, default261): Usingdefaultvalue261
Command (m for help): w The partitiontable has been altered!
Calling ioctl() to re-readpartitiontable. Syncing disks. [root@asmlnx2 ~]# partprobe /dev/xvdv [root@asmlnx2 ~]# partprobe /dev/xvdv1 [root@asmlnx2 ~]# ls -l /dev/xvdv brw-rw---- 1 root disk 202, 5376 Feb 11 21:38 /dev/xvdv [root@asmlnx2 ~]# ls -l /dev/xvdv1 brw-rw---- 1 root disk 202, 5377 Feb 11 21:38 /dev/xvdv1
[root@asmlnx2~]# su - grid [grid@asmlnx2~]$ . oraenv ORACLE_SID = [grid] ? +ASM The Oracle base has been setto/u01/app/grid [grid@asmlnx2~]$ sqlplus "/as sysasm"
SQL*Plus: Release11.2.0.3.0 Production on Mon Feb 1121:56:312013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release11.2.0.3.0-64bit Production With the Automatic Storage Management option
SQL>showparameter asm_diskstring
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ asm_diskstring string