Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
probably there are different users (user ids) configured and the user/group who created the tar does not exist on the target host therefore it has no right to create files/dirs.
Tar handles only ids, so you may have the the same username with different ids to make such conflicts.
Hello pan64
As you could see, I posted this question to beginners area, as my exposure towards Linux is very limited. I interact with it regularly, as a developer for Oracle applications, however I don't know much about how the users, their ids are involved in certain few things.
Coming from a purely Windows environment, I understand that, the root has the highest level of privileges and tar is only extracting the files! Does tar care for which user created the tar file and who is extracting them?
How about creating the same oraprod in the target system and changing the owner of the tar.gz to oraprod?
first just check (if it was really true). You can use the command: id <username> and you will see the user ids (numbers) - on both hosts.
Next you can try to extract using tar with options --no-same-owner --no-same-permissions
But would be nice to tell us the result of that check and also explain which user was used and which commands were executed (exactly) to create and extract that tar file.
first just check (if it was really true). You can use the command: id <username> and you will see the user ids (numbers) - on both hosts.
Next you can try to extract using tar with options --no-same-owner --no-same-permissions
But would be nice to tell us the result of that check and also explain which user was used and which commands were executed (exactly) to create and extract that tar file.
Hello pan64
I created the user with same name and changed the ownership of the archive and started the extracting once again. It looks like the entire errors thrown were due to some other read+write permissions.
Once I get an output I will update it to you.
tar: u05/oraprod/PROD/db: Cannot utime: Read-only file system
tar: u05/oraprod/PROD/db: Cannot change mode to rwxr-xr-x: Read-only file system
tar: u05/oraprod/PROD/db: Cannot change ownership to uid 500, gid 300: Read-only file system
tar: u05/oraprod/PROD: Cannot utime: Read-only file system
tar: u05/oraprod/PROD: Cannot change mode to rwxr-xr-x: Read-only file system
tar: u05/oraprod/PROD: Cannot change ownership to uid 500, gid 300: Read-only file system
tar: u05/oraprod/scripts: Cannot mkdir: Read-only file system
You will have to find out why the filesystem has become read-only. Perhaps there is something in /var/log/messages that indicates what error caused that.
You will have to find out why the filesystem has become read-only. Perhaps there is something in /var/log/messages that indicates what error caused that.
Hello rknicholas
I don't have a clue, the disk was remounted and I was able to extract the files. What I observed until almost 48 hours of efforts are
if I move the tar.gz files using "cp", the md5sum are different
if I move the same files using "scp", the md5sum are same and I can extract the files without any problems using tar
It looks kinda strange, however, finally I was able to extract the files to a second server, even though the process took around 834 minutes to extract a 111gb tar file.
thanks to everyone who contributed to the question.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.