Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a centos 5.3 server with a DAT72 tape drive. The software we use has a pre scripted CPIO command designed to backup a directory to the tape drive. This worked fine in centos 4.6, but with this new server I am getting an error: Removing leading '/' from member names. This happens when I try and verify the data on the tape.
I know this is to do with absolute or non absolute filenames. What I'd like to do is to revert the CPIO to whatever setting works from centos 4.6
Just one thing, it won't be possible to change the scripted CPIO command as this runs on 100s of servers, and changing it for one server isn't something we want to do.
I'm not sure if the above makes sense, but any help would be greatly appreciated
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
Doesn't look like you're getting any response, so I'll jump in. CPIO is such a standard old utility that I wouldn't think it should have changed. It seems to me that the more likely culprit is your environment. Are you running the script from cron or from the command line? Same user? Can you look at the complete list of environment variables and which shell you are running when it is executed (on both systems)? If that doesn't give you the answer, maybe give us some more detail and/or post the script?
Wow. 100s of servers? Every one with it's own tape drive and backup script? Who changes the tapes? I guess either the same tape stays in for a long time (indefinitely?); or you are a VAR, and it is your customers who have the servers and change their own tapes. Otherwise, the labor scalability would seem to be a major issue -- obvious situation for implementing a modern tape library and a network backup solution.
Thanks for your reply. The script is being run by cron. But we tested it at the command line as well; same result. Always as root. We didn't have time to analyse the server as you describe as we had to ship it to site (deadlines deadlines!)
Anyway, we got around the issue by putting an IF statement in the script which checked what OS is running and changed the CPIO command to suit. We tested this on a number of older servers to ensure backward compatibility (back as far as RH 6!). This seems to work ok for us, so we're going to run with it.
* * *
Yes, roughly 450 servers, but they are all deployed on customers sites, so we aren't changing tapes ;-) That would be a nightmare!
My version of cpio doesn't have an --absolute-filenames option. It does have a --no-absolute-filenames option however. Could the default have changed? Maybe you need to remove the --absolute-filenames option for CentOS 5.3. Check the manpage for cpio on both systems, and any release notes for cpio in /usr/share/doc/.
You haven't posted the parts of your cron script that indicates from which directory backups, restores & verifications are run from. Using relative addressing & modifying the CWD of your script if there are changes between versions may be more maintainable, and allow restores even if the base changes.
The message you posted sounds like a warning rather than an error. It sounds like it is verifying the files from the backup using relative directory addresses rather than absolute. If that is the case, make sure that the CWD is /, then there will be no difference.
Maybe you want to base your test on the version of cpio instead of the distro version. I.E. cpio --version.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.