Getting ERROR: dk_write: dm_write_invis failed for offset 0, length 31095714 when caching file from CDL virtual tape

Article:TECH157364  |  Created: 2011-04-04  |  Updated: 2011-04-04  |  Article URL http://www.symantec.com/docs/TECH157364
Article Type
Technical Solution


Environment

Issue



Error dk_write: dm_write_invis failed  for offset 0, length  xxxxxx may be seen in the managed filesystem <hsmname> log if migrc -R is running while user tries to gzip a migrated file.

 


Error



Here are example of errors seen in the log.

03/24 13:00:42 [12640]migin[16438]: proc_start /usr/openv/hsm/bin/admincmd/migcopy

03/24 13:00:43 [16438]migcopy[16439]: Starting -M -s 201 -t 184142 fatigue /tmp/migina16438

03/24 13:00:43 [16438]migcopy[16439]: INFO: Mount 512200 READ ONLY on /usr/var/openv/hsm/workdir/fatigue.156E.R

03/24 13:00:44 [12640]Tmigunlink[16441]: fh=FE5F40M117CDEE archive_date=4C45CD01 (all vols) exit code 0

03/24 13:00:56 [16438]migcopy[16439]: ERROR: ensure_rights: dm_request_right failed.

03/24 13:00:56 [16438]migcopy[16439]: perror 9: Bad file number

03/24 13:00:56 [16438]migcopy[16439]: ERROR: dk_write: dm_write_invis failed for offset 0, length 31095714

03/24 13:00:56 [16438]migcopy[16439]: perror 13: Permission denied

03/24 13:00:56 [16438]migcopy[16439]: ERROR: ensure_rights: dm_request_right failed.

03/24 13:00:56 [16438]migcopy[16439]: perror 9: Bad file number

03/24 13:00:56 [16438]migcopy[16439]: ERROR: dk_write: dm_write_invis failed for offset 0, length 31095714

03/24 13:00:56 [16438]migcopy[16439]: perror 13: Permission denied

03/24 13:00:56 [16438]migcopy[16439]: REPORT: FE5F40M117CDF1 1 179611611 7000 0 0 13 31095714

03/24 13:00:56 [16438]migcopy[16439]: ERROR: Failed to copy 0x117CDF1; tret = 7000
03/24 13:00:56 [16438]migcopy[16439]: ERROR: copy_for_method() ret=7000

03/24 13:00:56 [16438]migcopy[16439]: ERROR: write on destination volume failed, will not try next file

03/24 13:00:56 [16438]migcopy[16439]: INFO: Unmount vol=156E, delay=180, force=0, mount point=/usr/var/openv/hsm/workdir/fatigue.156E.R

03/24 13:00:56 [16438]migcopy[16439]: Finished 7000

03/24 13:00:56 [12640]migin[16438]: mig_i_perror ensure_rights

03/24 13:00:56 [12640]migin[16438]: ERROR: ensure_rights: dm_request_right failed.

03/24 13:00:56 [12640]migin[16438]: perror 9: Bad file number

03/24 13:00:56 [12640]migin[16438]: ERROR reload of FE5F40M117CDF1 failed
 


Environment



HP-UX 11i running Veritas Storage Migrator 6.0MP5


Cause



The error will be logged in the log and the migrated file will be become a regular file if gzip command is used to gzip the migrated file.


Solution



Operational notes:

There is no way to prevent user from running a command such gzip on a migrated file. When user tries to gzip a migrated file, the above error may be shown in the  <hsmname> log.

When user runs command gzip to zip the migrated file, the file is then cached back to disk and will become a regular file because the file handle is then removed for this file. Veritas Storage Migrator will remigrate the file in question with a new file handle. The old file handle should be obsolete and will get cleanup if migdbclean runs.

 




Article URL http://www.symantec.com/docs/TECH157364


Terms of use for this information are found in Legal Notices