How to clear and bring a disk into ASM on IBM AIX ?

Today we will see how to clear and bring a disk into ASM on an IBM AIX server.

Lets have a look step by step how to do this task.

1. Check out the RAC cluster status if its running fine.

ngeaix001 --> crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ACFS.ACFSSHARE1.advm
ONLINE ONLINE ngeaix001 Volume device /dev/a
sm/acfsshare1-34 is
online,STABLE
ONLINE ONLINE ngeaix058 Volume device /dev/a
sm/acfsshare1-34 is
online,STABLE
ONLINE ONLINE ngeaix059 Volume device /dev/a
sm/acfsshare1-34 is
online,STABLE
ora.ACFS.ACFSSHARE12.advm
ONLINE ONLINE ngeaix001 Volume device /dev/a
sm/acfsshare12-34 is
online,STABLE
ONLINE ONLINE ngeaix058 Volume device /dev/a
sm/acfsshare12-34 is
online,STABLE
ONLINE ONLINE ngeaix059 Volume device /dev/a
sm/acfsshare12-34 is
online,STABLE
ora.ACFS.ACFSSHARE13.advm
ONLINE ONLINE ngeaix001 Volume device /dev/a
sm/acfsshare13-34 is
online,STABLE
ONLINE ONLINE ngeaix058 Volume device /dev/a
sm/acfsshare13-34 is
online,STABLE
ONLINE ONLINE ngeaix059 Volume device /dev/a
sm/acfsshare13-34 is
online,STABLE
ora.ACFS.dg
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
ora.DATAINT.dg
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
ora.DATANGE.dg
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
ora.FRAINT.dg
OFFLINE OFFLINE ngeaix001 STABLE
OFFLINE OFFLINE ngeaix058 STABLE
OFFLINE OFFLINE ngeaix059 STABLE
ora.FRANGE.dg
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
ora.LGANGE.dg
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
ora.LGBNGE.dg
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
ora.OCR.dg
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
ora.OGG.ACFSSHARE14.advm
ONLINE ONLINE ngeaix001 Volume device /dev/a
sm/acfsshare14-122 i
s online,STABLE
ONLINE ONLINE ngeaix058 Volume device /dev/a
sm/acfsshare14-122 i
s online,STABLE
ONLINE ONLINE ngeaix059 Volume device /dev/a
sm/acfsshare14-122 i
s online,STABLE
ora.OGG.dg
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
ora.acfs.acfsshare1.acfs
ONLINE ONLINE ngeaix001 mounted on /orainst,
STABLE
ONLINE ONLINE ngeaix058 mounted on /orainst,
STABLE
ONLINE ONLINE ngeaix059 mounted on /orainst,
STABLE
ora.acfs.acfsshare12.acfs
ONLINE ONLINE ngeaix001 mounted on /usr/ssvt
ws/TWS/stdlist,STABL
E
ONLINE ONLINE ngeaix058 mounted on /usr/ssvt
ws/TWS/stdlist,STABL
E
ONLINE ONLINE ngeaix059 mounted on /usr/ssvt
ws/TWS/stdlist,STABL
E
ora.acfs.acfsshare13.acfs
ONLINE ONLINE ngeaix001 mounted on /usr/ssvt
ws,STABLE
ONLINE ONLINE ngeaix058 mounted on /usr/ssvt
ws,STABLE
ONLINE ONLINE ngeaix059 mounted on /usr/ssvt
ws,STABLE
ora.asm
ONLINE ONLINE ngeaix001 Started,STABLE
ONLINE ONLINE ngeaix058 Started,STABLE
ONLINE ONLINE ngeaix059 Started,STABLE
ora.net1.network
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
ora.ogg.acfsshare14.acfs
ONLINE ONLINE ngeaix001 mounted on /dccexl5m
/ngenewres,STABLE
ONLINE ONLINE ngeaix058 mounted on /dccexl5m
/ngenewres,STABLE
ONLINE ONLINE ngeaix059 mounted on /dccexl5m
/ngenewres,STABLE
ora.ons
ONLINE ONLINE ngeaix001 STABLE
ONLINE ONLINE ngeaix058 STABLE
ONLINE ONLINE ngeaix059 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
clsut006-g
1 ONLINE ONLINE ngeaix058 STABLE
clsut006-t
1 ONLINE ONLINE ngeaix058 STABLE
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE ngeaix001 STABLE
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE ngeaix059 STABLE
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE ngeaix058 STABLE
ora.MGMTLSNR
1 ONLINE ONLINE ngeaix058 169.254.72.1,STABLE
ora.cvu
1 ONLINE ONLINE ngeaix058 STABLE
ora.dccexl5i.db
1 OFFLINE OFFLINE STABLE
2 OFFLINE OFFLINE STABLE
3 OFFLINE OFFLINE STABLE
4 OFFLINE OFFLINE STABLE
ora.dccexl5m.db
1 ONLINE ONLINE ngeaix001 Open,STABLE
2 ONLINE ONLINE ngeaix058 Open,STABLE
3 ONLINE OFFLINE Instance Shutdown,ST
ABLE
4 ONLINE ONLINE ngeaix059 Open,STABLE
ora.ngeaix001.vip
1 ONLINE ONLINE ngeaix001 STABLE
ora.ngeaix059.vip
1 ONLINE INTERMEDIATE ngeaix058 FAILED OVER,STABLE
ora.mgmtdb
1 ONLINE ONLINE ngeaix058 Open,STABLE
ora.oc4j
1 ONLINE ONLINE ngeaix058 STABLE
ora.ngeaix058.vip
1 ONLINE ONLINE ngeaix058 STABLE
ora.ngeaix059.vip
1 ONLINE ONLINE ngeaix059 STABLE
ora.scan1.vip
1 ONLINE ONLINE ngeaix001 STABLE
ora.scan2.vip
1 ONLINE ONLINE ngeaix059 STABLE
ora.scan3.vip
1 ONLINE ONLINE ngeaix058 STABLE
ssvtwssrv
1 ONLINE ONLINE ngeaix058 STABLE
xag.ogg_NGE.ngenewres
1 OFFLINE OFFLINE STABLE
--------------------------------------------------------------------------------
ngeaix001 -->

 

2. Get new LUNs from storage team and now check on the server.

 

3. Run cfgmgr to scan for new LUNs.

ngeaix001 --> cfgmgr

 

4. Now check out the disks on the server.

ngeaix001 --> lsdev -Cc disk
asmafs1h Available 21-T1-01 3PAR InServ Virtual Volume
asmidat1p Available 20-T1-01 3PAR InServ Virtual Volume
asmidat2p Available 20-T1-01 3PAR InServ Virtual Volume
asmidat3p Available 20-T1-01 3PAR InServ Virtual Volume
asmidat4p Available 20-T1-01 3PAR InServ Virtual Volume
asmifra1p Available 20-T1-01 3PAR InServ Virtual Volume
asmifra2p Available 20-T1-01 3PAR InServ Virtual Volume
asmifra3p Available 20-T1-01 3PAR InServ Virtual Volume
asmifra4p Available 21-T1-01 3PAR InServ Virtual Volume
asmmdat10p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat11p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat12p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat13p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat14p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat15p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat1p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat2p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat3p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat4p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat5p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat6p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat7p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat8p Available 20-T1-01 3PAR InServ Virtual Volume
asmmdat9p Available 20-T1-01 3PAR InServ Virtual Volume
asmmfra1p Available 20-T1-01 3PAR InServ Virtual Volume
asmmfra2p Available 20-T1-01 3PAR InServ Virtual Volume
asmmfra3p Available 20-T1-01 3PAR InServ Virtual Volume
asmmfra4p Available 21-T1-01 3PAR InServ Virtual Volume
asmmfra5p Available 21-T1-01 3PAR InServ Virtual Volume
asmmfra6p Available 21-T1-01 3PAR InServ Virtual Volume
asmmlga1 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga2 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga3 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga4 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga5 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga6 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga7 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga8 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga9 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga10 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga11 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga12 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga13 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga14 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlga15 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb1 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb2 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb3 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb4 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb5 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb6 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb7 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb8 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb9 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb10 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb11 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb12 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb13 Available 20-T1-01 3PAR InServ Virtual Volume
asmmlgb14 Available 21-T1-01 3PAR InServ Virtual Volume
asmmlgb15 Available 21-T1-01 3PAR InServ Virtual Volume
asmocr2h Available 21-T1-01 3PAR InServ Virtual Volume
asmocr2p Available 20-T1-01 3PAR InServ Virtual Volume
asmogg1p Available 20-T1-01 3PAR InServ Virtual Volume
asmogg2p Available 20-T1-01 3PAR InServ Virtual Volume
asmogg3p Available 20-T1-01 3PAR InServ Virtual Volume
asmogg4p Available 20-T1-01 3PAR InServ Virtual Volume
asmogg5p Available 20-T1-01 3PAR InServ Virtual Volume
hdisk0 Available 21-T1-01 3PAR InServ Virtual Volume
hdisk1 Available 20-T1-01 3PAR InServ Virtual Volume
hdisk2 Available 20-T1-01 3PAR InServ Virtual Volume
hdisk3 Available 20-T1-01 3PAR InServ Virtual Volume
hdisk4 Available 20-T1-01 3PAR InServ Virtual Volume
hdisk5 Available 20-T1-01 3PAR InServ Virtual Volume
hdisk6 Available 20-T1-01 3PAR InServ Virtual Volume
hdisk7 Available 20-T1-01 3PAR InServ Virtual Volume
hdisk8 Available 20-T1-01 3PAR InServ Virtual Volume
hdisk9 Available 20-T1-01 3PAR InServ Virtual Volume
hdisk12 Available 21-T1-01 3PAR InServ Virtual Volume

 

5. Check out the physical volumes to identify which disks are still not under VG.

ngeaix001 --> lspv
asmafs1h none None locked
hdisk12 00c302e75cfc9348 productsvg active
asmmfra1p none None locked
asmmfra2p none None locked
asmmfra3p none None locked
asmidat1p none None locked
asmidat2p none None locked
asmidat3p none None locked
asmifra1p none None locked
asmifra2p none None locked
asmifra3p none None locked
asmocr2p none None locked
asmocr2h none None locked
asmmlga1 none None locked
asmmlga2 none None locked
asmmlga3 none None locked
asmmlga4 none None locked
asmmlga5 none None locked
asmmlga6 none None locked
asmmlga7 none None locked
asmmlga8 none None locked
asmmlga9 none None locked
asmmlga10 none None locked
asmmlga11 none None locked
asmmlga12 none None locked
asmmlga13 none None locked
asmmlga14 none None locked
asmmlga15 none None locked
asmmlgb1 none None locked
asmmlgb2 none None locked
asmmlgb3 none None locked
asmmlgb4 none None locked
asmmlgb5 none None locked
asmmlgb6 none None locked
asmmlgb7 none None locked
asmmlgb8 none None locked
asmmlgb9 none None locked
asmmlgb10 none None locked
asmmlgb11 none None locked
asmmlgb12 none None locked
asmmlgb13 none None locked
asmmlgb14 none None locked
asmmlgb15 none None locked
asmmfra4p none None locked
asmmfra5p none None locked
asmmfra6p none None locked
asmidat4p none None locked
asmifra4p none None locked
hdisk0 00c302e75cd923a8 rootvg active
asmmdat1p none None locked
asmmdat2p none None locked
asmmdat3p none None locked
asmmdat4p none None locked
asmmdat5p none None locked
asmmdat6p none None locked
asmmdat7p none None locked
asmmdat8p none None locked
asmmdat9p none None locked
asmmdat10p none None locked
asmmdat11p none None locked
asmmdat12p none None locked
asmmdat13p none None locked
asmmdat14p none None locked
asmmdat15p none None locked
asmogg1p none None locked
asmogg2p none None locked
asmogg3p none None locked
asmogg4p none None locked
asmogg5p none None locked
hdisk1 none None
hdisk2 none None
hdisk3 none None
hdisk4 none None
hdisk5 none None
hdisk6 none None
hdisk7 none None
hdisk8 none None
hdisk9 none None

 

6. Grep none to sort the output.

ngeaix001 --> lsvg -L
rootvg
productsvg

ngeaix001 --> lspv | grep -i none
asmafs1h none None locked
asmmfra1p none None locked
asmmfra2p none None locked
asmmfra3p none None locked
asmidat1p none None locked
asmidat2p none None locked
asmidat3p none None locked
asmifra1p none None locked
asmifra2p none None locked
asmifra3p none None locked
asmocr2p none None locked
asmocr2h none None locked
asmmlga1 none None locked
asmmlga2 none None locked
asmmlga3 none None locked
asmmlga4 none None locked
asmmlga5 none None locked
asmmlga6 none None locked
asmmlga7 none None locked
asmmlga8 none None locked
asmmlga9 none None locked
asmmlga10 none None locked
asmmlga11 none None locked
asmmlga12 none None locked
asmmlga13 none None locked
asmmlga14 none None locked
asmmlga15 none None locked
asmmlgb1 none None locked
asmmlgb2 none None locked
asmmlgb3 none None locked
asmmlgb4 none None locked
asmmlgb5 none None locked
asmmlgb6 none None locked
asmmlgb7 none None locked
asmmlgb8 none None locked
asmmlgb9 none None locked
asmmlgb10 none None locked
asmmlgb11 none None locked
asmmlgb12 none None locked
asmmlgb13 none None locked
asmmlgb14 none None locked
asmmlgb15 none None locked
asmmfra4p none None locked
asmmfra5p none None locked
asmmfra6p none None locked
asmidat4p none None locked
asmifra4p none None locked
asmmdat1p none None locked
asmmdat2p none None locked
asmmdat3p none None locked
asmmdat4p none None locked
asmmdat5p none None locked
asmmdat6p none None locked
asmmdat7p none None locked
asmmdat8p none None locked
asmmdat9p none None locked
asmmdat10p none None locked
asmmdat11p none None locked
asmmdat12p none None locked
asmmdat13p none None locked
asmmdat14p none None locked
asmmdat15p none None locked
asmogg1p none None locked
asmogg2p none None locked
asmogg3p none None locked
asmogg4p none None locked
asmogg5p none None locked
hdisk1 none None
hdisk2 none None
hdisk3 none None
hdisk4 none None
hdisk5 none None
hdisk6 none None
hdisk7 none None
hdisk8 none None
hdisk9 none None

 

7. Clear the PV for the new LUN.

ngeaix001 --> chdev -l hdisk1 -a pv=clear
hdisk1 changed

 

8. Now bring the disk into ASM control.

ngeaix001 --> chown oracle:dba /dev/rhdisk1

ngeaix001 --> chmod 660 /dev/rhdisk1

ngeaix001 --> ls -alF /dev/*hdisk1
brw------- 1 root system 18, 70 01 Dec 12:55 /dev/hdisk1
crw-rw---- 1 oracle dba 18, 70 01 Dec 12:55 /dev/rhdisk1

ngeaix001 --> mknod /dev/asmdat16p c 18 70
ngeaix001 --> ls -l /dev/asmdat16p
crw-r----- 1 root system 18, 70 01 Dec 14:15 /dev/asmdat16p

ngeaix001 --> ls -alF /dev/*hdisk1
brw------- 1 root system 18, 70 01 Dec 12:55 /dev/hdisk1
crw-rw---- 1 oracle dba 18, 70 01 Dec 12:55 /dev/rhdisk1

ngeaix001 --> ls -l /dev/asmdat16p
crw-r----- 1 root system 18, 70 01 Dec 14:15 /dev/asmdat16p

ngeaix001 -->

Now ask for your Oracle DBA team to scan the new ASM luns and configure the DG and LVs.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments