6-18 Sun StorEdge 5310 NAS Troubleshooting Guide December 2004
the "-c" option, the checkpointed file source will be restored to the destination. If the
destination is omitted then system will try to restore to the original (non-
checkpointed) path.
For example:
cp -c /v6.chkpnt/ckpt1/docs/sample.doc
will restore to:
/v6/docs/sample.doc
The cp command is also available as part of the chkpnt command line operation.
The syntax is identical except that the command is prefaced with chkpnt, and the "-
c" option is not required:
chkpnt cp source [destination]
The "-c" option is not required when cp is part of the chkpnt command because the
chkpnt prefix conveys the operation's context: to restore a checkpointed object to the
live filesystem.
While a checkpoint file restore operation is underway, the file is locked for the
duration of the operation and clients can perform no other action against that file.
Any attempt to access the file during the restore operation will result in an error. For
example, when trying to access the file from a UNIX client, users may see the
following:
$ cat sample.doc > /dev/null
cat: sample.doc: Input/Output error
Similarly, a Windows NT user may see one of the errors shown in Figure6-12 or
Figure6-13 when attempting to access a file when a checkpoint restore operation is
underway against that same file.