- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar cannot create
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 05:15 AM
01-20-2003 05:15 AM
tar cannot create
I have a small issue while trying to untar a tar file. On some
particular files the tar is complaining cannot create the file. But i
am able to touch a file in the same director if i try to do it form
command line. I am able to untar the same archive on another mahcine
which is 10.20 at the same patch level. I have tired to set
the umask as the working machine umask and also i have tired to untar
the archinve under /tmp directory which is also giving the same
error.
Thanks and regards
Shaji Nair
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 05:48 AM
01-20-2003 05:48 AM
Re: tar cannot create
Could you provide some output off the tar command ?
Robert-jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 05:57 AM
01-20-2003 05:57 AM
Re: tar cannot create
Please see the example output
#tar xvf os.tar
x repository/bin/sysman, 1693 bytes, 4 tape blocks
x repository/bin/dzl_verify, 9645 bytes, 19 tape blocks
x repository/bin/dzl_version, 1157 bytes, 3 tape blocks
x repository/bin/gs, 2451876 bytes, 4789 tape blocks
tar: repository/bin/config_device - cannot create
x repository/bin/config_host, 566520 bytes, 1107 tape blocks
x repository/bin/config_server, 558376 bytes, 1091 tape blocks
x repository/bin/device_status, 530024 bytes, 1036 tape blocks
x repository/bin/list_host, 564912 bytes, 1104 tape blocks
x repository/bin/list_server, 558352 bytes, 1091 tape blocks
x repository/bin/probe, 510424 bytes, 997 tape blocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 05:58 AM
01-20-2003 05:58 AM
Re: tar cannot create
Have you tried restoring as root?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 06:00 AM
01-20-2003 06:00 AM
Re: tar cannot create
Yes, i am doing everything as root.
Regards
Shaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 06:04 AM
01-20-2003 06:04 AM
Re: tar cannot create
I can restore the same file individually from the archive. say tar xvf os.tar repository/bin/config_device is working. The problem is not happening for random files, it is the same files which is giving the error.
Regards
Shaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 06:25 AM
01-20-2003 06:25 AM
Re: tar cannot create
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 06:55 AM
01-20-2003 06:55 AM
Re: tar cannot create
It is also not working, giving the same error.
--Shaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 07:02 AM
01-20-2003 07:02 AM
Re: tar cannot create
IS that file already exisitng and in use , do a ls -l repository/bin/config and checkf or the existence of the file , it amy be possible that the file is in use , so even tar doenst overwirte it becasue it cannot be deleted as it is in use . You can use fuser filenem to know the process controlling it .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 03:08 AM
01-21-2003 03:08 AM
Re: tar cannot create
If the first file extracted has permission which do not permit overwriting, then second extraction of the same file will fail.
Do a tar tvf listing and look for two entries of your config_device listing.
tar tvf os.tar | grep config_device.
This will demonstrate the problem.
$ touch mtr
$ chmod 400 mtr
$ tar cf tar.tar mtr
$ tar rf tar.tar mtr
$ rm mtr
$ tar xvf tar.tar
x mtr, 0 bytes
tar: mtr - cannot create.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 03:29 AM
01-21-2003 03:29 AM
Re: tar cannot create
-- Shaj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 03:49 AM
01-21-2003 03:49 AM
Re: tar cannot create
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 07:21 AM
01-21-2003 07:21 AM
Re: tar cannot create
---Shaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 08:19 AM
01-21-2003 08:19 AM
Re: tar cannot create
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 08:44 AM
01-21-2003 08:44 AM
Re: tar cannot create
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 08:59 AM
01-21-2003 08:59 AM
Re: tar cannot create
If you have access to te original do "ls -l" on the file IF the perms begin with an s it is a socket. e.g.
srw-rw-rw- root sys .....etc....
tar cannot create it. Most programs create socket files by themselves if they are not present and so it's "non-existance" may be OK
Tim