[16] | 1 | #!/bin/ksh |
---|
| 2 | # @(#)49 1.11 src/avs/fs/mmfs/ts/config/gpfsready.sample, mmfs, avs_rgpfs24, rgpfs240610b 10/31/05 10:18:04 |
---|
| 3 | ############################################################################## |
---|
| 4 | # |
---|
| 5 | # When properly installed, this script is invoked by the GPFS daemon during |
---|
| 6 | # initialization, before it runs recovery for any VFS mount points that were |
---|
| 7 | # already mounted, perhaps because GPFS is recovering from crash. |
---|
| 8 | # |
---|
| 9 | # This script can be used to initialize DMAPI applications before any mount |
---|
| 10 | # is started. Upon return from this script, DMAPI applications should have |
---|
| 11 | # a session and a disposition for the mount event. |
---|
| 12 | # |
---|
| 13 | # If SANergy is used to access files controlled by GPFS, sanergyd can be |
---|
| 14 | # started from this script. |
---|
| 15 | # |
---|
| 16 | # |
---|
| 17 | # IMPORTANT: The GPFS daemon will wait until this script returns. Do not |
---|
| 18 | # invoke long-running commands synchronously, and do not mount |
---|
| 19 | # GPFS file systems from this script. Use the mmfsup script |
---|
| 20 | # for this purpose. |
---|
| 21 | # |
---|
| 22 | # |
---|
| 23 | # To activate the code: |
---|
| 24 | # |
---|
| 25 | # a) edit this script and make the appropriate changes |
---|
| 26 | # b) copy this script to /var/mmfs/etc/gpfsready |
---|
| 27 | # c) ensure this script is executable (chmod +x /var/mmfs/etc/gpfsready) |
---|
| 28 | # |
---|
| 29 | ############################################################################## |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | # Uncomment the following to start sanergyd on MDC after GPFS comes up. |
---|
| 33 | |
---|
| 34 | # sanergyd_cmd=/usr/SANergy/sanergyd32 |
---|
| 35 | # if [ -x $sanergyd_cmd ] |
---|
| 36 | # then |
---|
| 37 | # print "$(date) $0 $sanergyd_cmd started" |
---|
| 38 | # $sanergyd_cmd & |
---|
| 39 | # else |
---|
| 40 | # print "$(date) $0 can't execute $sanergyd_cmd" |
---|
| 41 | # fi |
---|
| 42 | |
---|
| 43 | return 0 |
---|