LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-22-2015, 05:23 AM   #16
rajthampi
Member
 
Registered: May 2008
Location: Kuwait
Distribution: RHEL5, Ubuntu, PSlinuxOS
Posts: 35

Original Poster
Rep: Reputation: 1

Quote:
Originally Posted by pan64 View Post
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?

regards,
 
Old 05-22-2015, 05:47 AM   #17
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
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.
 
Old 05-22-2015, 06:29 AM   #18
rajthampi
Member
 
Registered: May 2008
Location: Kuwait
Distribution: RHEL5, Ubuntu, PSlinuxOS
Posts: 35

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by pan64 View Post
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.

regards and thank you very much for the patience
 
Old 05-22-2015, 09:53 AM   #19
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,778

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by rajthampi View Post
Code:
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.
 
Old 05-24-2015, 02:30 AM   #20
rajthampi
Member
 
Registered: May 2008
Location: Kuwait
Distribution: RHEL5, Ubuntu, PSlinuxOS
Posts: 35

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by rknichols View Post
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.

regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting tar.xz nownebie Linux - Newbie 4 08-01-2012 08:21 AM
[SOLVED] extracting group of files from a tar.bz that was created with the following tar - lleb Linux - Newbie 1 06-06-2012 03:06 PM
[SOLVED] tar.gz not extracting gardenair Linux - Networking 6 02-03-2011 05:05 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
After extracting a tar...is tar useless? glenn69 Linux - Newbie 6 04-23-2004 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration