Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Even if you specify exclusion in XCP, it tries to return the atime
2022-01-25
04:24 PM
3,653 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If -preserve-atime is set even when the exclusion setting is specified, it seems that the file under ~ snapshot is also being tried, and an error is output to the console.
I want to avoid errors, but is there a way?
(I think it's best to take the source as a snapshot and not use preserve-atime.)
Solved! See The Solution
1 ACCEPTED SOLUTION
hmoubara has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The error you getting is normal, since the option -preserver-atime requires write permission to set timestamps on the source file, and since the file is a snapshot which is a read only file system. So i believe you can ignore this warning message as xcp is trying to preserve atime at source which is snapshot, at target atime is preserved. So this is not an issue.
7 REPLIES 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The -preserve-atime is to restore last accessed data on source before XCP read the file, can you provide what error are you receiving and what's the command you running trying to exclude the ~snapshot directory.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hell,
Below output messages.
XCP SMB 1.8; (c) 2022 NetApp, Inc.; Licensed toXXXXXXXXX until Sat Mar 26 17:13:12 2022
f 1.97MiB 252d2h smb02\bike.jpg
f 1.29KiB 42d21h smb02\Resource Athlete.lnk
f 2.21KiB 30d4h smb02\Google Chrome.lnk
f 8 7d6h smb02\test.txt
f 55.5KiB 92d1h smb02\opuser\teraterm-4.106\teraterm-4.106\cyglaunch.exe
f 31.7KiB 92d1h smb02\opuser\teraterm-4.106\teraterm-4.106\cygterm+.tar.gz
(omit messgaes)
error setting timestamps on "~snapshot\snap3\opuser\teraterm-4.106\teraterm-4.106\cygterm+-x86_64": errno (code: 5) Access dened。
error setting timestamps on "~snapshot\snap3\opuser\teraterm-4.106\teraterm-4.106": errno (code: 5) Access dened。
error setting timestamps on "~snapshot\snap3\opuser\teraterm-4.106": errno (code: 5) Access dened。
error setting timestamps on "~snapshot\snap3\opuser\teraterm-4.106\teraterm-4.106\lang": errno (code: 5) Access dened。
d 0 7d6h smb02\~snapshot
d 0 7d6h smb02
xcp scan -exclude path('*\~snapshot\*') -l -preserve-atime \\svm01\smb02
4,425 scanned, 3,317 excluded, 0 errors
Total Time : 50s
STATUS : PASSED
Sending statistics...
hmoubara has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The error you getting is normal, since the option -preserver-atime requires write permission to set timestamps on the source file, and since the file is a snapshot which is a read only file system. So i believe you can ignore this warning message as xcp is trying to preserve atime at source which is snapshot, at target atime is preserved. So this is not an issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
hmoubara
I understand that XCP cannot modify the atime in the snapshot area.
I have set "-exclude path ('* \ ~ snapshot \ *')", but I think the problem is that -preserve-atime targets it.
In the current XCP, atime modification of files in the excluded area works.
Is there no choice but to ignore any errors that occur?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The error should just be ignore as this is not an issue. The -exclude is for the type of command being used with xcp like scan/verify/copy etc...
You can check the below KB:
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your replay.
OK I ignore this error messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your replay.
OK I ignore this error messages.
