We don't restart cell services too much often if cell works fine :-). But if we want to restart cell services and you don't expect ASM instance to be affected, or you don't want vm node eviction (in the worst case) , we must do it properly.
[root@cell01 ~]# cellcli -e LIST GRIDDISK ATTRIBUTES name,asmmodestatus,asmdeactivationoutcome .... DAT2_CD_01_cell01 ONLINE Yes DAT2_CD_02_cell01 ONLINE Yes <==== must be YES DAT2_CD_03_cell01 ONLINE Yes …… [root@cell01 ~]# cellcli -e ALTER GRIDDISK ALL INACTIVE GridDisk ACFSIHBHA2_CD_00_cell01 successfully altered ….. [root@cell01 ~]# cellcli -e LIST GRIDDISK ATTRIBUTES name, asmmodestatus, asmdeactivationoutcome ... DAT2_CD_03_cell01 OFFLINE Yes <==== must be OFFLINE/UNUSED and YES DAT2_CD_04_cell01 OFFLINE Yes ... [root@cell01 ~]# cellcli -e LIST GRIDDISK DATA_CD_00_cell01 inactive <==== must be inactive ... [root@cell01 ~]# cellcli -e ALTER CELL SHUTDOWN SERVICES ALL Stopping the RS, CELLSRV, and MS services... The SHUTDOWN of services was successful. #check service [root@cell01 ~]# cellcli -e list cell attributes rsStatus, msStatus, cellsrvStatus detail rsStatus: stopped msStatus: unknown cellsrvStatus: unknown
Start cell services
[root@cell01 ~]# cellcli -e ALTER CELL STARTUP SERVICES ALL Starting the RS, CELLSRV, and MS services... Getting the state of RS services... running Starting CELLSRV services... The STARTUP of CELLSRV services was successful. Starting MS services... The STARTUP of MS services was successful. [root@cell01 ~]# cellcli -e ALTER GRIDDISK ALL ACTIVE … GridDisk DAT2_CD_00_cell01 successfully altered ... [root@cell01 ~]# cellcli -e LIST GRIDDISK DAT2_CD_01_cell01 active DAT2_CD_02_cell01 active [root@cell01 ~]# cellcli -e LIST GRIDDISK ATTRIBUTES name, asmmodestatus ... DATA_CD_02_cel01 ONLINE ....
2 thoughts on “Exadata, how to restart cell services properly”