0% found this document useful (0 votes)
10 views3 pages

Asm Disk Creation

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Asm Disk Creation

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Creating ASM disk group with External Redundancy

/
Check my profile

om
Partitioning new added disk to OS readable disk and formatting it to ASM disk

.c
##checking previously added diskgroup
[oracle@oraclelab2 ~]$ . oraenv

ot
ORACLE_SID = [oracle] ? +ASM

sp
The Oracle base has been set to /u01/app/oracle
[oracle@oraclelab2 ~]$ asmcmd -p

og
ASMCMD [+] > lsdg
State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB Usable_file_MB Offline_disks Voting_files Name

bl
MOUNTED EXTERN N 512 512 4096 4194304 20476 16360 16360 0 N DATA/
MOUNTED EXTERN N 512 512 4096 4194304 1020 920 920 0 N OCR/

a.
MOUNTED EXTERN N 512 512 4096 4194304 10236 9228 9228 0 N RECO/
ASMCMD [+] >

db
##checking ASM disks at OS level
[oracle@oraclelab2 ~]$ oracleasm listdisks
DISK1
q-
ha
DISK2
DISK3
is

##Checking newly added disks here sde is newly added disk.


//

[oracle@oraclelab2 dev]$ ll sd*


brw-rw----. 1 root disk 8, 64 Aug 31 10:57 sde
s:
tp

##Partitioning new disk to OS readable disk


[root@oraclelab2 dev]# fdisk /dev/sde
ht

Welcome to fdisk (util-linux 2.23.2).


Changes will remain in memory only, until you decide to write them.
1
Be careful before using the write command.

/
Device does not contain a recognized partition table

om
Building a new DOS disklabel with disk identifier 0xff245787.

.c
Command (m for help): n
Partition type:

ot
p primary (0 primary, 0 extended, 4 free)
e extended

sp
Select (default p): p

og
Partition number (1-4, default 1):
First sector (2048-2097151, default 2048):

bl
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-2097151, default 2097151):

a.
Using default value 2097151
Partition 1 of type Linux and of size 1023 MiB is set

db
Command (m for help): w
The partition table has been altered! q-
ha
Calling ioctl() to re-read partition table.
Syncing disks.
is

[root@oraclelab2 dev]# ll sd*


//

brw-rw----. 1 root disk 8, 64 Aug 31 11:01 sde


brw-rw----. 1 root disk 8, 65 Aug 31 11:01 sde1 // its partitioned
s:
tp

##Creating partitioned disk to oracle asm disk


[root@oraclelab2 dev]# oracleasm createdisk D1 /dev/sde1
ht

Writing disk header: done


Instantiating disk: done

2
##Checking newly created asm disk
[root@oraclelab2 dev]# oracleasm listdisks

/
D1

om
DISK1
DISK2

.c
DISK3

ot
##Connect to ASM instance and create disk group
SQL> create diskgroup DgrpA external redundancy disk '/dev/oracleasm/disks/D1';

sp
og
Diskgroup created.

bl
SQL> select GROUP_NUMBER,NAME,FAILGROUP,LABEL, total_mb,path from v$asm_disk;

a.
GROUP_NUMBER NAME FAILGROUP LABEL TOTAL_MB PATH
------------------------ -------------------- ------------------------------ -------------------- ---------- -----------------------------------------------------

db
2 OCR_0000 OCR_0000 DISK1 1020 /dev/oracleasm/disks/DISK1
1 DATA_0000 DATA_0000 DISK2 20476 /dev/oracleasm/disks/DISK2
3
4
RECO_0000
D1
RECO_0000
D1
q- DISK3
D1
10236
1023
/dev/oracleasm/disks/DISK3
/dev/oracleasm/disks/D1
ha
is

[oracle@oraclelab2 dev]$ asmcmd -p


ASMCMD [+] > lsdg
//

State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 512 4096 4194304 20476 16360 16360 0 N DATA/
s:

MOUNTED EXTERN N 512 512 4096 1048576 1023 971 971 0 N DGRPA/
tp

MOUNTED EXTERN N 512 512 4096 4194304 1020 920 920 0 N OCR/
MOUNTED EXTERN N 512 512 4096 4194304 10236 9228 9228 0 N RECO/
ht

Check my profile

You might also like