The dsmmigundelete command recreates deleted stub files for migrated files, and creates stub files for premigrated files for which an original file does not exist on your local file system. The file then becomes a migrated file.
You must have root user authority to use this command.
When a stub file or an original copy of a premigrated file is deleted from your local file system, the corresponding migrated or premigrated file is marked for expiration when reconciliation runs again.
>>-DSMMIGUNDELETE--+----------------+--+---------+------------->< '-filesystemspec-' '-options-'
Use this option only if all or most of the files in the file system are stub files and you need good performance during stub file recreation.
For performance purposes, do not use this option with the detail option.
Files that were never migrated are not recreated.
Do not use this option with the recover option.
Issue the dsmmigundelete command with the expiring option if you ran reconciliation since the files were deleted.
If you do not use the expiring option, the HSM client recreates a stub file for a migrated file if a corresponding stub file does not exist on your local file system and the migrated file was not marked for expiration. Or, it creates a stub file for a premigrated file if a corresponding original file does not exist on your local file system, and the premigrated file was not marked for expiration.
Enter the dsmmigundelete command without the expiring option if you did not run reconciliation since the files were deleted.
Specify the target server for the task. This option is valid only in a multiple-server environment. If the file system is managed by multiple servers and you do not specify server, the task is attempted with the default migration server.
If a file is coupled with a server, the value of this option must be that coupled server. If you specify another Tivoli Storage Manager server, the task fails.
Task | Command |
---|---|
Recreate stub files that were accidentally deleted from the /home file system. Recreate stub files regardless of the expiration status of the migration copies (use the expiring option). Reconciliation was run since the files were deleted. Results are logged in the log file /tmp/undeletelog. | dsmmigundelete -expiring -Logname=/tmp/undeletelog /home |
Recreate stub files for migrated files in the /home file system. Recreate stub files only for those migration copies that are not marked for expiration (do not use the expiring option). Reconciliation was not run because the files were deleted. Entries are made in the log file /tmp/undeletelog. | dsmmigundelete -L=/tmp/undeletelog /home |
Recreates stub files for migrated files that had been removed from the /trullofs file system. | dsmmigundelete -recover /trullofs |