01.03. creation of diskgroup // volumes // filesystems

               <<< Back   Next >>>
1. Creation new diskgroup
[oracle]$ 
export ORACLE_HOME=/u01/app/19.0/grid
export ORACLE_HOME=+ASM
$ORACLE_HOME/bin/sqlplus -s /nolog << EOF
connect /as sysasm
create diskgroup DATA external redundancy disk 'AFD:DATA01'  ATTRIBUTE 'compatible.asm' = '19.0','compatible.rdbms' = '19.0','compatible.advm' = '19.0','au_size' = '1M';
exit;
EOF
-- checking disks
[oracle]$ asmcmd lsdsk
-- note
ALTER DISKGROUP DATA SET ATTRIBUTE 'compatible.asm' = '19.0';
ALTER DISKGROUP DATA SET ATTRIBUTE 'compatible.rdbms' = '19.0';
ALTER DISKGROUP DATA SET ATTRIBUTE 'compatible.advm' = '19.0';

2. Creation new volumes
[oracle]$ 
export ORACLE_HOME=/u01/app/19.0/grid
export ORACLE_HOME=+ASM
asmcmd volcreate -G DATA -s 80g --column 8 oradata
asmcmd volcreate -G DATA -s 10g --column 8 oralog

3. Enable volumes
[oracle]$ 
asmcmd volenable --all
-- info about
asmcmd volinfo --all

4. Creation file system
[root]# 
mkfs -t acfs /dev/asm/oradata-360
mkfs -t acfs /dev/asm/oralog-360

5. Mounting new path
[root]# 
mkdir -p /u02/oradata/bank /u02/fra
mount -t acfs /dev/asm/oradata-360 /u02/oradata/bank
mount -t acfs /dev/asm/oralog-360 /u02/fra
chown -R oracle:oinstall /u02/

               <<< Back   Next >>>

No comments:

Post a Comment