- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: problem about tar
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
Discussions
Discussions
Forums
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
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
тАО07-03-2007 07:03 PM
тАО07-03-2007 07:03 PM
problem about tar
I backup some files to DDS3 tape by tar.
The command is tar cvfp /dev/rmt/0m /sc_var /sc_opt /sc_etc.
On server1, three tapes are used, but on server2, only one tape is used.
The file type is the same on two server.
Files On Server1:
/sc_etc (/dev/vg01/lvol2 ) : 968311 total allocated Kb
959172 free allocated Kb
9139 used allocated Kb
0 % allocation used
/sc_opt (/dev/vg01/lvol1 ) : 982578 total allocated Kb
744712 free allocated Kb
237866 used allocated Kb
24 % allocation used
/sc_var (/dev/vg01/lvol3 ) : 244029392 total allocated Kb
219795544 free allocated Kb
24233848 used allocated Kb
9 % allocation used
Files On server2:
/sc_etc (/dev/vg01/lvol2 ) : 968077 total allocated Kb
961867 free allocated Kb
6210 used allocated Kb
0 % allocation used
/sc_opt (/dev/vg01/lvol1 ) : 980288 total allocated Kb
779267 free allocated Kb
201021 used allocated Kb
20 % allocation used
/sc_var (/dev/vg01/lvol3 ) : 244019824 total allocated Kb
221010696 free allocated Kb
23009128 used allocated Kb
9 % allocation used
What's the problem?
- Tags:
- tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 07:11 PM
тАО07-03-2007 07:11 PM
Re: problem about tar
tar cvf /dev/rmt/0m .....
p is required for restoration to preserve the permissions and ownership, and also after the option f you should have specified the name of device onto which you want to tar so p should not have followed f.
If what you have written is just a typo, and you have followed the above suggestion, then the next step would be infact check on the tapes if it has really backed up everything from both the servers by
tar tvf /dev/rmt/0m | wc -l
on both servers
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 07:57 PM
тАО07-03-2007 07:57 PM
Re: problem about tar
are the two server identically in hardware and software?
Seems like one server is compressing the files. Newer configurations do this.
So check /dev/rmt if '0m' is identical to DDS or to BEST.
Can you give us the listing of /dev/rmt of both servers?
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 08:44 PM
тАО07-03-2007 08:44 PM
Re: problem about tar
Yes, the two servers are identical in hardware and software.
server 1:/dev/rmt $ ll
total 0
crw-rw-rw- 2 bin bin 205 0x051000 Jul 4 16:38 0m
crw-rw-rw- 2 bin bin 205 0x051080 Dec 21 2006 0mb
crw-rw-rw- 2 bin bin 205 0x051040 Jul 2 20:05 0mn
crw-rw-rw- 2 bin bin 205 0x0510c0 Dec 21 2006 0mnb
crw-rw-rw- 2 bin bin 205 0x051000 Jul 4 16:38 c5t1d0BEST
crw-rw-rw- 2 bin bin 205 0x051080 Dec 21 2006 c5t1d0BESTb
crw-rw-rw- 2 bin bin 205 0x051040 Jul 2 20:05 c5t1d0BESTn
crw-rw-rw- 2 bin bin 205 0x0510c0 Dec 21 2006 c5t1d0BESTnb
crw-rw-rw- 1 bin bin 205 0x051001 Dec 21 2006 c5t1d0DDS
crw-rw-rw- 1 bin bin 205 0x051081 Dec 21 2006 c5t1d0DDSb
crw-rw-rw- 1 bin bin 205 0x051041 Dec 21 2006 c5t1d0DDSn
crw-rw-rw- 1 bin bin 205 0x0510c1 Dec 21 2006 c5t1d0DDSnb
crw-r--r-- 1 bin bin 205 0xfffffe Dec 21 2006 stape_config
server 2:/dev/rmt $ ll
total 0
crw-rw-rw- 2 bin bin 205 0x051000 May 30 12:15 0m
crw-rw-rw- 2 bin bin 205 0x051080 Dec 21 2005 0mb
crw-rw-rw- 2 bin bin 205 0x051040 Jul 2 20:06 0mn
crw-rw-rw- 2 bin bin 205 0x0510c0 Dec 21 2005 0mnb
crw-rw-rw- 2 bin bin 205 0x051000 May 30 12:15 c5t1d0BEST
crw-rw-rw- 2 bin bin 205 0x051080 Dec 21 2005 c5t1d0BESTb
crw-rw-rw- 2 bin bin 205 0x051040 Jul 2 20:06 c5t1d0BESTn
crw-rw-rw- 2 bin bin 205 0x0510c0 Dec 21 2005 c5t1d0BESTnb
crw-rw-rw- 1 bin bin 205 0x051001 Dec 21 2005 c5t1d0DDS
crw-rw-rw- 1 bin bin 205 0x051081 Dec 21 2005 c5t1d0DDSb
crw-rw-rw- 1 bin bin 205 0x051041 Dec 21 2005 c5t1d0DDSn
crw-rw-rw- 1 bin bin 205 0x0510c1 Dec 21 2005 c5t1d0DDSnb
crw-r--r-- 1 bin bin 205 0xfffffe Dec 21 2005 stape_config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 09:27 PM
тАО07-03-2007 09:27 PM
Re: problem about tar
DDS-3 has a capability of 12 GB (or 24 GB if files are uncompressed).
At server1 you have to backup >24 GB, so you have to use more than one tape.
At server2 it's <24 GB.
First it seems like the directories are not equal - can this be? Are there different files?
Are the files at server1 already compressed?
You're sure you're using DDS-3 for both servers? :-)
I think the next step would be like Ninad said - check the content of the tapes - either like he said with wc - or create a listing with 'tar tvf ... > server?.txt'.
I would add a line for every tape change you have to do ('echo tape.change>>server?.txt') and look what's different between 1 and 2.
HTH
Volkmar