DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: OPS raw device backup

  1. #1
    Join Date
    Aug 2000
    Location
    Jolo, Sulu
    Posts
    639

    OPS raw device backup

    Hi Friends,

    OS - AIX 4.3.2
    DB - 8.1.5 OPS

    Our Oracle Consultant have created backup scripts for OPS raw
    devices, and i'm trying to study and understand it. We have a large
    DB (around 600Gb) so he is compressing the file before transferring
    to DLT tapes. A line in the script that backup the raw device looked
    this this:

    dd if=/dev/rlvlg001p01 bs=4k skip=1 | compress > lg001p01.Z

    I understand that "dd" command syntax has "if" for input and "of"
    for output. So I assumed that the "of" was substituted by the
    "| compress ". Unfortunately, I can't find his scripts for restoring
    the backup files. And I was tasked by my boss to check, test
    our backup by restoring it to development server.

    I tried restoring the files by reverting the command like:

    uncompress lg001p01.Z > | dd of=/dev/rlvg001p01 seek=1 bs=4k

    but it did not work. Has anybody made similar procedure in
    backing up raw devices?

    Thanks.

  2. #2
    Join Date
    May 2002
    Posts
    42
    uncompress needs to go to std out. (">" is used to redirect std out, uncompress does not write to std out by default, use -c)

    try

    uncompress -c lg001p01.Z | dd of=/dev/rlvg001p01 seek=1 bs=4k

    Andrew
    OCP, EMC

  3. #3
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    dd command for hot backup is very slow.

    BMC's SQLBACKTRACK is really very fast. Buy it, Use it. Your life will be smooth.

    Thanks
    Tamil

  4. #4
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187
    try rman, it backups up our 70gb db in 8 minutes to disk, we keeo a copy on disk for 24 hours and then archive it to tape
    I'm stmontgo and I approve of this message

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width