Hi,
While trying to restore an Oracle data base file after a disk crash I discovered that the datafile (>2GB) was not written by GNU cpio.
We moved to GNU cpio because from HP cpio we got the message:
echo ts_2.dbf | cpio -ovB >/backup/dbf2.cpio
"ts_2.dbf": Value too large to be stored in data type
cpio: Size of ts_2.dbf > 2GB. Not dumped.
10 blocks
After implementing GNU cpio we did not get an error message anymore.
Now we need to restore the data base file because the disk crashed and the attributes are restored but the file size is 0 bytes.
Investigation into the cpio file showed that the file data is not written, this was confirmed with test done with a large (>2GB) file.
[EMAIL PROTECTED] v1050> echo /u01/ORACLE/rados1/ts2/rados_ts_2.dbf | /bin/cpio_hp_org -ovB >/backup/dbf2.cpio
"/u01/ORACLE/rados1/ts2/rados_ts_2.dbf": Value too large to be stored in data type
cpio: Size of /u01/ORACLE/rados1/ts2/rados_ts_2.dbf > 2GB. Not dumped.
10 blocks
[EMAIL PROTECTED] v1050> _ts_2.dbf | cpio -ovB >/backup/dbf2.cpio <
/u01/ORACLE/rados1/ts2/rados_ts_2.dbf
1 block
[EMAIL PROTECTED] v1050> cpio -itvB </backup/dbf2.cpio
-rw-r----- 1 oracle dba 2284593152 Aug 22 18:56 /u01/ORACLE/rados1/ts2/rados_ts_2.dbf
1 block
[EMAIL PROTECTED] v1050> ll
total 9368040
-rw-r--r-- 1 root sys 5120 Aug 30 13:53 dbf2.cpio
drwxr-xr-x 2 rados dba 4096 Jun 21 15:19 rados
-rw-r--r-- 1 root sys 5120 Aug 30 10:36 tape_block1
-rw-r--r-- 1 root sys 4796405760 Aug 30 12:14 tape_cpio_block2
[EMAIL PROTECTED] v1050> cpio -ivB --to-stdout </backup/dbf2.cpio >/backup/dbf2
/u01/ORACLE/rados1/ts2/rados_ts_2.dbf
1 block
[EMAIL PROTECTED] v1050> ll
total 9368040
-rw-r--r-- 1 root sys 0 Aug 30 14:01 dbf2
-rw-r--r-- 1 root sys 5120 Aug 30 13:53 dbf2.cpio
drwxr-xr-x 2 rados dba 4096 Jun 21 15:19 rados
-rw-r--r-- 1 root sys 5120 Aug 30 10:36 tape_block1
-rw-r--r-- 1 root sys 4796405760 Aug 30 12:14 tape_cpio_block2
[EMAIL PROTECTED] v1050> echo /u01/ORACLE/rados1/rb/rados_ts_rb.dbf | cpio -ovB >/backup/dbfrb.cpio <
/u01/ORACLE/rados1/rb/rados_ts_rb.dbf
61442 blocks
[EMAIL PROTECTED] v1050> ll
total 9982464
-rw-r--r-- 1 root sys 0 Aug 30 14:01 dbf2
-rw-r--r-- 1 root sys 5120 Aug 30 13:53 dbf2.cpio
-rw-r--r-- 1 root sys 314583040 Aug 30 14:06 dbfrb.cpio
drwxr-xr-x 2 rados dba 4096 Jun 21 15:19 rados
-rw-r--r-- 1 root sys 5120 Aug 30 10:36 tape_block1
-rw-r--r-- 1 root sys 4796405760 Aug 30 12:14 tape_cpio_block2
[EMAIL PROTECTED] v1050> cpio -itvB </backup/dbfrb.cpio
-rw-r----- 1 oracle dba 314580992 Aug 19 03:05 /u01/ORACLE/rados1/rb/rados_ts_rb.dbf
61442 blocks
[EMAIL PROTECTED] v1050> cpio -ivB --to-stdout </backup/dbfrb.cpio >/backup/rb
/u01/ORACLE/rados1/rb/rados_ts_rb.dbf
61442 blocks
[EMAIL PROTECTED] v1050> ll
total 10596880
-rw-r--r-- 1 root sys 0 Aug 30 14:01 dbf2
-rw-r--r-- 1 root sys 5120 Aug 30 13:53 dbf2.cpio
-rw-r--r-- 1 root sys 314583040 Aug 30 14:06 dbfrb.cpio
drwxr-xr-x 2 rados dba 4096 Jun 21 15:19 rados
-rw-r--r-- 1 root sys 314580992 Aug 30 14:10 rb
-rw-r--r-- 1 root sys 5120 Aug 30 10:36 tape_block1
-rw-r--r-- 1 root sys 4796405760 Aug 30 12:14 tape_cpio_block2
background info:
hp-ux 11.00
cpio v 2.6
(from http://www.hpux.ws/merijn/downloads.html)
Regards,
Andre
Office: +31 (0)4027 82633
mobex: 97809
Mobile: +31 (0)6 10559313
_______________________________________________ Bug-cpio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-cpio
