LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   tar - file changed as we read it (https://www.linuxquestions.org/questions/centos-111/tar-file-changed-as-we-read-it-4175601443/)

robertkwild 03-10-2017 05:50 AM

tar - file changed as we read it
 
1 Attachment(s)
mmm... im getting errors when running this command -

cd /vol/cha-work/_ARCHIVE/to_be_archived/audio/robert_test/

tar -cf /vol/cha-archive/audio/after_louise_1606.tar after_louise_1606/

tar: after_louise_1606/renders_from/from_clipster/160922_after_louise_prores422_cont_51_clp_jd: file changed as we read it
tar: after_louise_1606/renders_from/from_clipster: file changed as we read it
tar: after_louise_1606/renders_from: file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines/161019: file changed as we read it

pan64 03-10-2017 06:28 AM

I wouldn't say it was an error. It looks like files were changes during tar, that was reported, and that's all. I think you you need to check if those file were really modified.

robertkwild 03-10-2017 06:46 AM

well thats what i thought, its just a warning not an error then it stopped creating the tar -

tar: after_louise_1606/renders_from/from_clipster/160922_after_louise_prores422_cont_51_clp_jd: file changed as we read it
tar: after_louise_1606/renders_from/from_clipster: file changed as we read it
tar: after_louise_1606/renders_from: file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines/161019: file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines/reel_5/160804/ No effects guide for SRC check : file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines/reel_5/160804: file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines/reel_5: file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines: file changed as we read it
tar: after_louise_1606/conform_materials/feature: file changed as we read it
tar: after_louise_1606/conform_materials: file changed as we read it
tar: after_louise_1606/audio/Continuous Mix: file changed as we read it
tar: after_louise_1606/audio: file changed as we read it
tar: after_louise_1606/renders_for/for_VT/160925_after_louise_prores422_cont_51_clp_iz: file changed as we read it
tar: after_louise_1606/renders_for/for_VT: file changed as we read it
tar: after_louise_1606/renders_for/for_online/161117_after_louise_reel_05_dnx36_rec709_f2l_bl_or/1920x1080: file changed as we read it
tar: after_louise_1606/renders_for/for_online/161117_after_louise_reel_05_dnx36_rec709_f2l_bl_or: file changed as we read it
tar: after_louise_1606/renders_for/for_online: file changed as we read it
tar: after_louise_1606/renders_for: file changed as we read it
tar: after_louise_1606: file changed as we read it
something went wrong with the tar, please do manually

pan64 03-10-2017 06:51 AM

how do you think tar can create a tarfile for you if the sources are continuously changing? What is the expected result?

robertkwild 03-10-2017 06:58 AM

looks like hasnt been touched -

drwxrwxrwx 12 root cha-work 307 Mar 9 12:34 .
drwxrwxrwx 3 root cha-work 35 Mar 10 09:21 ..
drwxrwxrwx 12 root cha-work 368 Mar 9 11:51 audio
drwxrwxrwx 4 root cha-work 62 Mar 9 11:53 blfx
drwxrwxrwx 4 root cha-work 102 Mar 9 11:04 conform_materials
drwxrwxrwx 4 root cha-work 100 Mar 9 10:34 DCI
-rwxrwxrwx 1 root cha-work 4.0K Mar 9 11:04 ._.DS_Store
-rwxrwxrwx 1 root cha-work 6.1K Mar 9 11:48 .DS_Store
drwxrwxrwx 7 root cha-work 185 Mar 9 11:53 gfx
drwxrwxrwx 5 root cha-work 104 Mar 9 11:52 media
drwxrwxrwx 10 root cha-work 285 Mar 9 12:34 renders_for
drwxrwxrwx 8 root cha-work 182 Mar 9 11:04 renders_from
drwxrwxrwx 2 root cha-work 0 Mar 9 11:53 _temp
drwxrwxrwx 5 root cha-work 168 Mar 9 12:35 _tests

pan64 03-10-2017 07:01 AM

sorry, but I do not understand. if it was the directory /vol/cha-work/_ARCHIVE/to_be_archived the times here are irrelevant.

robertkwild 03-10-2017 07:03 AM

sorry that ls-lah is for the after_louise_1606/ directory

pan64 03-10-2017 10:50 AM

still unclear, that output has no real meaning if we do not know anything else about that issue.

robertkwild 03-10-2017 11:39 AM

mmm...

looks like its working as i have created a 10gig file using the dd comand and its located in untitledfolder/

tar -cf /vol/cha-archive/audio/untitledfolder.tar untitledfolder/

and that works without any warnings about file changed as we read it

but i cant work it out because the folder after_louise_1606 i know 100% def it is not being written/read to at all so i dont know why its giving me these warnings and then failing on the tar

oh well

hydrurga 03-10-2017 11:45 AM

You have no background processes, perhaps anti-malware scanners, filesystem checkers or similar, that could be touching files?

If you want to investigate further, you could take a look at inotify.

robertkwild 03-10-2017 12:48 PM

what about if i use any of these option with the tar command

--ignore-failed-read

--ignore-command-error

hydrurga 03-10-2017 12:54 PM

--warning=no-file-changed might be more relevant. However, I imagine that it would be better, although possibly non-critical, to find out what's actually causing the problem.

robertkwild 03-10-2017 12:56 PM

yes exactly work out the real problem why it doesnt do it in the first place but you think if i use that option you provided it will not fail the tar command?

hydrurga 03-10-2017 01:04 PM

Quote:

Originally Posted by robertkwild (Post 5681685)
yes exactly work out the real problem why it doesnt do it in the first place but you think if i use that option you provided it will not fail the tar command?

If those are the only warnings that are being generated then tar should work ok (unless, for example, tar decides that it has surpassed a warning limit or that some combination of events is deemed a critical failure).

Give it a go.

robertkwild 03-11-2017 08:42 AM

You think its still tarring up those individual files its producing the warning for or it just gives up altogether and fails the whole tar as its producing loads of warnings for individual files?


All times are GMT -5. The time now is 04:37 AM.