LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-24-2011, 04:54 AM   #1
fahedakhter
LQ Newbie
 
Registered: Jun 2010
Posts: 8

Rep: Reputation: 0
tar: File shrank,padding with zeros


I am using RED HAT linux AS-4.

I have written a script which execute on job. This script takes the cold backup of oracle database files.

The script is

Script:

SQL> !tar cvf /4hd/backup/temp_backup/full_offline_backup_`date +%d-%m-%Y+%H-%M-%S`.ora /home/oracle/oradata/orcl /2hd/oracle /3hd/oracle /backup_ide/oracle --gzip --exclude-from=/home/oracle/backup_scripts/exdtime

Output:

tar: Removing leading `/' from member names
/home/oracle/oradata/orcl/
/home/oracle/oradata/orcl/PFACC.DBF
/home/oracle/oradata/orcl/FDACC.dbf
/home/oracle/oradata/orcl/xdb01.dbf
/home/oracle/oradata/orcl/DB_TOOLS.dbf
/home/oracle/oradata/orcl/TIME01.dbf
/home/oracle/oradata/orcl/LTXACC.DBF
/home/oracle/oradata/orcl/redo03.log
/home/oracle/oradata/orcl/cont1.ctl_old
/home/oracle/oradata/orcl/ALWACC.dbf
/home/oracle/oradata/orcl/users01.dbf
/home/oracle/oradata/orcl/indx01.dbf
/home/oracle/oradata/orcl/index02.dbf
/home/oracle/oradata/orcl/system01.dbf
/home/oracle/oradata/orcl/YARN_GODOWN01.dbf
/home/oracle/oradata/orcl/cont1.ctl_old1
/home/oracle/oradata/orcl/undotbs01.dbf
/home/oracle/oradata/orcl/system02.dbf
/home/oracle/oradata/orcl/cont1.ctl
/home/oracle/oradata/orcl/redo02.log
/home/oracle/oradata/orcl/afiedt.buf
/home/oracle/oradata/orcl/temp03.dbf
/home/oracle/oradata/orcl/tools01.dbf
/home/oracle/oradata/orcl/users02.dbf
/home/oracle/oradata/orcl/redo01.log
/home/oracle/oradata/orcl/HELP_ERP.dbf
/home/oracle/oradata/orcl/drsys01.dbf
/home/oracle/oradata/orcl/afiedt.buf~
/2hd/oracle/
/2hd/oracle/temp01.dbf
/2hd/oracle/UNDOTBS2_1.dbf
/2hd/oracle/PAYROLL01.dbf
/2hd/oracle/redo02_3.rdo
/2hd/oracle/redo01_2.rdo
/2hd/oracle/LUCKYTEX01.dbf
/2hd/oracle/EXPORT01.dbf
/2hd/oracle/TREPORT01.dbf
/2hd/oracle/PROCESS01.dbf
/2hd/oracle/GEN01.dbf
/2hd/oracle/TEL01.dbf
/2hd/oracle/system03.dbf
/2hd/oracle/redo03_2.rdo
/2hd/oracle/cont2.ctl_old
/2hd/oracle/cont2.ctl
tar: /2hd/oracle/cont2.ctl: File shrank by 2990080 bytes; padding with zeros
/2hd/oracle/MRP01.dbf
/2hd/oracle/MRP_INDX01.dbf
/2hd/oracle/cont2.ctl_old1
/3hd/oracle/
/3hd/oracle/ACC0304.dbf
/3hd/oracle/temp02.dbf
/3hd/oracle/PNS_ERP.dbf
/3hd/oracle/ACC0607.dbf
/3hd/oracle/redo03_3.rdo
/3hd/oracle/export02.dbf
/3hd/oracle/redo01_3.rdo
/3hd/oracle/redo02_2.rdo
/3hd/oracle/HR_ERP.dbf
/3hd/oracle/MASTER_ERP.dbf
/3hd/oracle/gen02.dbf
/3hd/oracle/undotbs2_2.dbf
/3hd/oracle/treport02.dbf
/3hd/oracle/FINANCE_ERP.dbf
/3hd/oracle/ACC0405.dbf
/3hd/oracle/cont2a.ctl
/backup_ide/oracle/
/backup_ide/oracle/cont3.ctl
/backup_ide/oracle/cont3.ctl_old
/backup_ide/oracle/redo01_3.rdo
/backup_ide/oracle/redo02_2.rdo
/backup_ide/oracle/redo03_3.rdo
/backup_ide/oracle/cont3.ctl_old1
/backup_ide/oracle/cont3.ctl_old2

Error:
tar: Error exit delayed from previous errors

Due to this error the backup cannot be restore to standby server.

Regards
 
Old 06-24-2011, 05:10 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Take a look at the '--sparse' option in 'man tar'.
 
Old 06-24-2011, 05:59 AM   #3
abdul kadir
LQ Newbie
 
Registered: Aug 2010
Posts: 12
Blog Entries: 1

Rep: Reputation: 0
Hi Dear


I have dual booting(Fedora 13 or Windows xp) in my computer. and my linux file system uses 100% or there is not space in my linux file system.


[root@localhost smita]# uname -a
Linux localhost.localdomain 2.6.33.3-85.fc13.i686 #1 SMP Thu May 6 18:44:12 UTC 2010 i686 i686 i386 GNU/Linux


i have to delete my document from my computer for the free space. or there are 34GB free space in my system.

Plz Help.

I had gone through gpated bootable cd but gparted not support the LVM file system. so that i an unable to resize my file system. i don't want to reinstall fedora 13 again.


[root@localhost smita]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc345c345

Device Boot Start End Blocks Id System
/dev/sda1 1 3187 25599546 7 HPFS/NTFS
/dev/sda2 * 3188 3251 512000 83 Linux
/dev/sda3 3251 5763 20171776 8e Linux LVM

Disk /dev/dm-0: 18.6 GB, 18555600896 bytes
255 heads, 63 sectors/track, 2255 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table


These are the information

Plez Help it's urgent

Regards
Abdul Kadir
 
Old 06-24-2011, 01:29 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Please start a different thread for new questions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
Script to find tar archives, read tar file contents, output content to an index file. bluesword1969 Linux - General 4 02-07-2011 12:15 PM
"Invalid tar magic" error msg. when I try to tar ldmud *.tar file in DSL pixxi451 Linux - Newbie 4 07-04-2010 08:32 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM


All times are GMT -5. The time now is 04:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration