AFS
From FarmShare
(Difference between revisions)
Line 2: | Line 2: | ||
To obtain and cache Kerberos ticket-granting ticket: | To obtain and cache Kerberos ticket-granting ticket: | ||
- | <pre style="margin-left: 40px; ">kinit</pre> | + | <pre style="margin-left: 40px;">kinit</pre> |
To list cached Kerberos tickets: | To list cached Kerberos tickets: | ||
- | <pre style="margin-left: 40px; ">klist</pre> | + | <pre style="margin-left: 40px;">klist</pre> |
Next, you'll want to ensure you have a valid AFS token. | Next, you'll want to ensure you have a valid AFS token. | ||
To obtain tokens for authentication to AFS: | To obtain tokens for authentication to AFS: | ||
- | <pre style="margin-left: 40px; ">aklog</pre> | + | <pre style="margin-left: 40px;">aklog</pre> |
To display the issuer's tokens: | To display the issuer's tokens: | ||
- | <pre style="margin-left: 40px; ">tokens</pre> | + | <pre style="margin-left: 40px;">tokens</pre> |
Then you can just submit jobs to the resource manager, and the jobs will be able to read/write to/from your AFS directories. | Then you can just submit jobs to the resource manager, and the jobs will be able to read/write to/from your AFS directories. | ||
- | To submit a job: | + | To submit a batch job to Grid Engine: |
- | <pre style="margin-left: 40px; ">echo "sleep 3600" | qsub</pre> | + | <pre style="margin-left: 40px;">echo "sleep 3600" | qsub</pre> |
A simple, complete example: | A simple, complete example: | ||
- | <pre style="margin-left: 40px; ">ssh corn-image-new | + | <pre style="margin-left: 40px;">ssh corn-image-new |
kinit | kinit | ||
aklog | aklog | ||
echo "sleep 3600" | qsub</pre> | echo "sleep 3600" | qsub</pre> |
Revision as of 17:42, 27 October 2011
AFS is now available on the barley machines. You'll want to ensure you have your Kerberos ticket on corn-image-new first.
To obtain and cache Kerberos ticket-granting ticket:
kinit
To list cached Kerberos tickets:
klist
Next, you'll want to ensure you have a valid AFS token.
To obtain tokens for authentication to AFS:
aklog
To display the issuer's tokens:
tokens
Then you can just submit jobs to the resource manager, and the jobs will be able to read/write to/from your AFS directories.
To submit a batch job to Grid Engine:
echo "sleep 3600" | qsub
A simple, complete example:
ssh corn-image-new kinit aklog echo "sleep 3600" | qsub