It would help if you were more specific about what you want to do. Eg, what OS are you using, are you using any volume managers and what SAN or NAS you have.
Eg, HDS have a special scripting language to do shadow image and true copy. Snapshotting and/or various other storage commands are all included in SVM and Veratis, etc. Netapps also have something similiar for command line.
Key point is that these commands are not generic so what good would it do to give you a shadow image command if you have SVM running?
Stephen
Hi Stephen
Thanks for the mail and apologizes for being vague. The below are my requirement details (in brief)
1. Working on solaris 10 OS with Sun StorageTek 5320 NAS/SAN,
2. Do not have any volume manager like Veritas
3. Some of the application directories are defined and stored and mirrored in the SAN/NAS
4. running a real-time system with multiple nodes of which couple of nodes will act as active/standby and the NAS filesystems will be mounted on these.
5. In the event the active fails, standby takes over and continues to read-write the NAS directories as they are mirrored.
6. If the Primary NAS goes kaput, the secondary will take over seamlessly.
What I have is a requirement where in I keep monitoring the health and accessibility of the FS defined in NAS. In the event of a primary NAS failure, I should be able to mount, using commands, the secondary NAS FS seamlessly. That is should umount these and mount those to continue to be able to give unbroken access to the applicaitons. In case the primary NAS is back, need to promote those disks and directories so that they become accessible again for the applications and start mirroring again. To do all this, I need to write a script which will connect to the NAS device is able to run scirpts or such to achieve the above.
Hope I am clear. Else please feel free to shoot back the query here.
Regards