FlexAsm is cool, but understand the differences

[code language="sql"]
[/code]
Hi there,
I was about to copy some backups done in my FRA under ASM on my 12c 8 node stretched cluster.
Three mouth ago, with some colleagues, we migrate the stuff under flexasm (count 3).
I had to copy a file from asm to a local filesystem on node1: so I just connect to node1 and the su grid, set the environment, connect to asm using asmcmd and issue my copy command...
Here is what I am getting: of course the path exist locally
[code language="sql"]
ASMCMD> cp annnf0_TAG20140301T190708_0.282.841088951 '/media/Backup/annnf0_TAG20140301T190708_0.282.841088951';
copying +fra/pmu/BACKUPSET/2014_03_01/annnf0_TAG20140301T190708_0.282.841088951 -> /media/Backup/annnf0_TAG20140301T190708_0.282.841088951;
ASMCMD-8016: copy source '+fra/pmu/BACKUPSET/2014_03_01/annnf0_TAG20140301T190708_0.282.841088951' and target '/media/Backup/annnf0_TAG20140301T190708_0.282.841088951;' failed
ORA-19505: failed to identify file "/media/Backup/annnf0_TAG20140301T190708_0.282.841088951;"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
Additional information: 1
ORA-06512: at "SYS.X$DBMS_DISKGROUP", line 467
ORA-06512: at line 3 (DBD ERROR: OCIStmtExecute)
[/code]
I just realize that potentially, no asm instance was running on my node1.
[code language="sql"]
-bash-4.1$ srvctl status asm
ASM is running on node4,node3,node8
[/code]
I was connected to asm but probably on one the three available instance and no /media/Backup path exist on that nodes. That's why!
I solve my problem doing:
[code language="sql"]
srvctl modify asm -count 4
srvctl start asm -n node1
[/code]
Then connect to asmcmd and the retry my file copy:
[code language="sql"]
ASMCMD> cp annnf0_TAG20140301T190708_0.282.841088951 '/media/Backup/annnf0_TAG20140301T190708_0.282.841088951';
copying +fra/pmu/BACKUPSET/2014_03_01/annnf0_TAG20140301T190708_0.282.841088951 -> /media/Backup/annnf0_TAG20140301T190708_0.282.841088951;
ASMCMD>
[/code]
At the end:
[code language="sql"]
srvctl modify asm -count 3
[/code]
Now it works!
Just keep that in mind.
Cheers
jko


     

Leave a Reply

Your email address will not be published.