Integration of RMAN with virtual tape library

OS: Oracle Linux 5.5 UEK (Virtualbox)
Oracle: 11gR2 11.2.0.1 Enterprise + ASM (Virtualbox)
Hello,
I would like to test something about RMAN and writing directly to tape. For this I installed mhvtl, a virtual tape library. The installation was pretty easy. http://sites.google.com/site/linuxvtl2/
RMAN does not recognize any tape in the system.
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
What I found out is that in order to make backups to a media manager, RMAN must communicate with a media management library, which is a 3rd party library that is not supplied by Oracle. So I guess unless there is a Oracle MML library available for mtx I' out of luck here.
Any ideas? Thanks!
rpm -ivh mhvtl-0.18-13.x86_64.rpm
rpm -ivh mhvtl-0.18-13.src.rpm
cd /usr/src/redhat/SOURCES/
tar zxvf ../SOURCES/mhvtl-2011-01-11.tgz
cd mhvtl-0.18/kernel
make
make install
/etc/init.d/mhvtl start
yum install mtx
The tape library and using it for backup from system seems to work fine:
# mtx status
Storage Changer /dev/changer:4 Drives, 43 Slots ( 4 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = E03001L4
etc.
# mtx load 1
Drive 0 Full (Storage Element 1 loaded)
# tar cf /dev/ntape ./
# tar tvf /dev/ntape
Edited by: Dude on Jan 20, 2011 5:22 PM

Thanks for the tip!
I installed Oracle Secure Backup Express and spend all afternoon with this strange product, mainly to troubleshoot the installation and setup. I'm not really sure everything works - it's quite a piece of software, as usual.
I ran into a couple of issues that were not mentioned in the installation documentation:
- install sg3_utils
- use obtool to register the server as mediaserver
# sg_map -i -x
/dev/sg9 3 0 1 0 1 /dev/nst0 IBM ULT3580-TD5 550V
/dev/sg10 3 0 2 0 1 /dev/nst1 IBM ULT3580-TD5 550V
/dev/sg11 3 0 3 0 1 /dev/nst2 IBM ULT3580-TD4 550V
/dev/sg12 3 0 4 0 1 /dev/nst3 IBM ULT3580-TD4 550V
/dev/sg13 3 0 9 0 1 /dev/nst4 IBM ULT3580-TD4 550V
/dev/sg14 3 0 10 0 1 /dev/nst5 IBM ULT3580-TD4 550V
/dev/sg15 3 0 11 0 1 /dev/nst6 IBM ULT3580-TD4 550V
/dev/sg16 3 0 12 0 1 /dev/nst7 IBM ULT3580-TD4 550V
/dev/sg17 3 0 0 0 8 STK L700 550V
/dev/sg18 3 0 8 0 8 SPECTRA PYTHON 550V
# obtool
ob> chhost --addrole mediaserver ol55
ob> mkdev -t library -o -a ol55:/dev/sg18 library1
ob> mkdev -t tape -o -a ol55:/dev/sg9 -l library1 -d 1 tape1
RMAN was not happy with it:
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27023: skgfqsbi: media manager protocol error
ORA-19511: Error received from media manager layer, error text:
sbt__rpc_connect: Internal error - could not connect to obproxyd (Oracle Secure Backup error: 'bad port name specified (OB SBT proxy manager)').
# cat /usr/tmp/obproxyd.log
2011/01/23.02:11:10 [5431] can't set root privileges; continuing anyway - program isn't stamped setuid-root (OB utilities)
2011/01/23.02:11:10 [5431] can't listen for connections - Operation not permitted
Document ID 396046.1 solution outlines to correct the hostname or mediaserver name. However, this was not the problem. I finally figured that /etc/obproxyd is a symlink to a .wrapper script which points to the actual proxy application. The fix was:
#chmod +s /usr/local/oracle/backup/.etc.linux86_64obproxyd
After this the error changed:
RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 01/23/2011 02:43:36
ORA-19506: failed to create sequential file, name="3cm2q2an_1_1", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
sbt__rpc_cat_query: Query for piece 3cm2q2an_1_1 failed.
(Oracle Secure Backup error: 'no preauth config found for OS user (OB tools) oracle').
The fix for this error:
https://10.0.0.6, login as 'admin'
Configure->Users->Select Admin->Edit->Preauthorized Access->Add user 'Oracle' (select host and rman)
RMAN> backup database;
Starting backup at 23-JAN-11
using channel ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: starting full datafile backup set
channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/scratch/oradata/test/system01.dbf
input datafile file number=00002 name=/scratch/oradata/test/sysaux01.dbf
input datafile file number=00003 name=/scratch/oradata/test/undotbs01.dbf
input datafile file number=00005 name=/scratch/oradata/test/users02.dbf
input datafile file number=00004 name=/scratch/oradata/test/users01.dbf
channel ORA_SBT_TAPE_1: starting piece 1 at 23-JAN-11
Now it just sits there forever and the log just keeps adding the following lines:
# cat obproxyd.log
2011/01/23.03:00:31 [5662] handle_qsp_msg: received get job state request
2011/01/23.03:00:31 [5662] job id 'admin/5.1'
Strange, backup to tape with 'mtx' and 'tar' works, so the problem might be OSB.
Edited by: Dude on Jan 22, 2011 8:32 PM
I finally got it running. I deleted the current library and drive configuration and used the webtool to configure the other library at /dev/sg17. it was also necessary to use the webtool to load a volume into the drive. Unfortunately I did not note down the steps in details. Maybe next time.
channel ORA_SBT_TAPE_1: starting piece 1 at 23-JAN-11
channel ORA_SBT_TAPE_1: finished piece 1 at 23-JAN-11
piece handle=3im2qc42_1_1 tag=TAG20110123T053042 comment=API Version 2.0,MMS Version 10.2.0.3
channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:03:26
Finished backup at 23-JAN-11
Starting Control File and SPFILE Autobackup at 23-JAN-11
piece handle=c-2036659790-20110123-00 comment=API Version 2.0,MMS Version 10.2.0.3
Finished Control File and SPFILE Autobackup at 23-JAN-11

Similar Messages

  • Running rman with virtual tape speed too low(500KB/s approx)

    Hey guys, I run rman with mhvtl. but the backup speed is too low(500kB/s).
    the mhvtl debugging prints indicate that the block size is 64kB and the scsi command is running synchronous.
    does any one know how to speed up this backup operation?<smiley image='anim_crazy.gif'/>
    Thanks.
    <b>my system:</b>
    linux kernel 2.6.18
    mhvtl 0.18.17
    oracle10
    obtool 10.2
    <b>rman configure:</b>
    RMAN> show all;
    using target database control file instead of recovery catalog
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup1/ctl_%F';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DEVICE TYPE 'SBT_TAPE' BACKUP TYPE TO BACKUPSET PARALLELISM 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/backup1/backup_%U';
    CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/backup2/backup_%U';
    CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' MAXOPENFILES 1 PARMS '';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/home/oracle/oracle/product/10.2.0/db_1/dbs/snapcf_orcl.f'; # default

    skoczo wrote:What services could i disable?
    anything you don't need at startup.
    If you disable systemd service from startup, you will lose some kind of functionality, and you should try to figure out yourself whether you need that functionality of not.
    If you use pulseaudio (I assume you do, since it looks like you're using gnome), you can safely disable alsa-restore.service and alsa-store.service, as pulseaudio will restore audio levels by itself.
    I've masked systemd-vconsole-setup.service myself (disabling isn't enought), since I rarely use virtual console on ttys. I don't have correct keymap on ttys but that's not a big deal for me.
    I don't think you need all those @backlight services either. I've personally masked all but one on my system.
    e4rat will most likely reduce your start up time greatly, although it's a bit of a hassle to set up.
    systemd-readahead might also help, but you should test it for yourself.
    I'm also thinking you could probably optimize your initramfs a bit, as 11s is quite long for loading kernel. At least make sure you have 'autodetect' hook enabled in mkinitcpio.conf.
    Also you can use lz4hc for compressing initramfs (COMPRESSION="lz4" and COMPRESSION_OPTIONS="-9" in mkinitcpio.conf), which should be faster on decompression than other algorithms.
    There are some more tips in arch wiki, if you didn't check it out already

  • How to Create Virtual Tape Library for RHEL 5.4

    Hi,
    We are planning to use a tape library (well, as our team proposed) so we are trying to create a Virtual Tape Library as a proof of concept on this project. Can you help us create virtual tape libraries using raw devices.
    We will be using Virtual Box as our virtualization environment which will run RHEL 5.4. Will this be possible?
    Thanks and hope you can give us some ideas.

    I tried the exact same setup and it is possible. What you will need is mhvtl and Oracle OSB to get a Oracle Media Management Library (MML).
    Please see Integration of RMAN with virtual tape library
    The link above should provide the setup info you will need. There were some initial problems, but according to follow up posts later versions of the products seem to have fixed the issues with tape handling.

  • OSB with a (non-supported) virtual tape library

    For testing and learning purposes, I have installed OSB 10.3 and the virtual tape management system mhvtl (http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/MHVTL-Linux-Virtual-Tape-Library-Getting-Started-td1663811.html). It seems to work quite well apart from one serious shortcoming. If a virtual tape which is already labeled and used as part of a media family is unmounted from the drive, a subsequent re-mount leads to a relabel of the volume whereupon all pieces and any reference to the volume are lost. If the virtual tape is left in the drive, there is no issue - new backups are appended to the end of the volume as one would expect.
    Somewhat perversely, when I mount a used tape, OSB correctly identifies it. As soon as I start writing to it though, the volume is re-labeled.
    I can overcome the issue by using obtar -z to advance the tape to the end of the volume.
    % obtar -zf VDAT72
    Volume label:
    Volume UUID: d4c93502-15a0-102e-b7f5-00163e319d06
    Volume ID: RMAN-DENVER-000025
    Volume sequence: 1
    Volume set owner: root
    Volume set created: Tue Feb 08 13:02:21 2011
    Media family: RMAN-DENVER
    Volume set expires: never; content manages reuse
    Original UUID: d4c93502-15a0-102e-b7f5-00163e319d06
    Archive label:
    File number: 4
    File section: 1
    Owner: root
    Client host: node1
    Backup level: 0
    S/w compression: no
    Archive created: Tue Feb 08 13:09:26 2011
    Backup piece name: c-3970187662-20110208-03
    Backup db name: denver
    Backup db id: 3970187662
    Backup copy number: not applicable
    Backup content: autobackup
    $ obtar -zf VDAT72
    Error: no backup image at current position -- end of volume set.
    At this point, any new backup starts writing to the virtual tape at the current position, and existing files on the volume are preserved - no re-label is carried out.
    I'd like to debug OSB but when I try to set up debugging on the volume, I get:
    $ obtool labelvol obtaropt J  drive VDAT72
    Error: Label/reuse operation requires that you specify no names or BDFs.
    If anyone has some clues, I would be grateful.
    Edited by: Graeme Lawton on Feb 8, 2011 2:12 PM
    Edited by: Graeme Lawton on Feb 8, 2011 2:13 PM

    For testing and learning purposes, I have installed OSB 10.3 and the virtual tape management system mhvtl (http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/MHVTL-Linux-Virtual-Tape-Library-Getting-Started-td1663811.html). It seems to work quite well apart from one serious shortcoming. If a virtual tape which is already labeled and used as part of a media family is unmounted from the drive, a subsequent re-mount leads to a relabel of the volume whereupon all pieces and any reference to the volume are lost. If the virtual tape is left in the drive, there is no issue - new backups are appended to the end of the volume as one would expect.
    Somewhat perversely, when I mount a used tape, OSB correctly identifies it. As soon as I start writing to it though, the volume is re-labeled.
    I can overcome the issue by using obtar -z to advance the tape to the end of the volume.
    % obtar -zf VDAT72
    Volume label:
    Volume UUID: d4c93502-15a0-102e-b7f5-00163e319d06
    Volume ID: RMAN-DENVER-000025
    Volume sequence: 1
    Volume set owner: root
    Volume set created: Tue Feb 08 13:02:21 2011
    Media family: RMAN-DENVER
    Volume set expires: never; content manages reuse
    Original UUID: d4c93502-15a0-102e-b7f5-00163e319d06
    Archive label:
    File number: 4
    File section: 1
    Owner: root
    Client host: node1
    Backup level: 0
    S/w compression: no
    Archive created: Tue Feb 08 13:09:26 2011
    Backup piece name: c-3970187662-20110208-03
    Backup db name: denver
    Backup db id: 3970187662
    Backup copy number: not applicable
    Backup content: autobackup
    $ obtar -zf VDAT72
    Error: no backup image at current position -- end of volume set.
    At this point, any new backup starts writing to the virtual tape at the current position, and existing files on the volume are preserved - no re-label is carried out.
    I'd like to debug OSB but when I try to set up debugging on the volume, I get:
    $ obtool labelvol obtaropt J  drive VDAT72
    Error: Label/reuse operation requires that you specify no names or BDFs.
    If anyone has some clues, I would be grateful.
    Edited by: Graeme Lawton on Feb 8, 2011 2:12 PM
    Edited by: Graeme Lawton on Feb 8, 2011 2:13 PM

  • RMAN Backup to tape using Oracle Secure Backup

    I am trying to take 11g R2 (11.2.0.3) database backup using RMAN. I am using Oracle Secure Backup for configuring virtual tape library and virtual tape drive.
    Whenever, I am running the RMAN backup script it simply hangs. While checking the backup job status from Oracle Secure Backup web interface, the job status are displaying 'pending resource availability'.
    On, furthur investigating the job, the following error message are displayed,
    " Dispatching job to run on oradb. Drive or volume on which mount attempted is unusable".
    Library and Tape Creation:
    mkdev -t library -o -S 4 -a oradb:/vlib -v vlib
    mkdev -t tape -o -a ora11:/vt -v -l vlib -d 1 vt
    Not able to fix this error. Need help
    Message was edited by: 799814

    There is a VTL: http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/
      really work well with OSB 10.3.0.3 64bit, the version of it, fully tested by me , is 1.2
    The installation guide of it here:
    mh virtual tape & library system.
    Instructions assume reader is familiar with the kernel build process.
    There are two sections of code to build.
    - The kernel module
    - The user-space daemons.
    Kernel module mhvtl:
    ==================
    1) Make sure the kernel-devel package to match your running kernel is installed.
    e.g.
    RedHat AS 4 & 5:
    # rpm -qa|grep kernel
    kernel-2.6.9-34.0.1.EL
    kernel-devel-2.6.9-34.0.1.EL
    kernel-2.6.9-5.EL
    kernel-devel-2.6.9-5.EL
    kernel-utils-2.4-13.1.80
    SLES 9 & 10:
    # rpm -qa|grep kernel
    2) Extract the mhvtl source code.
    # tar xvfz mhvtl-2012-04-04.tgz
    3) Change directory into the kernel driver source.
    # cd mhvtl-1.2/kernel/
    # make
    # make install
    User space daemons:
    ===================
    Pre-req for a running mhvtl
    - sg3_utils (http://sg.danny.cz/sg/sg3_utils.html)
    Pre-req to build/compile userspace:
    - zlib-devel
    * To build an RPM
      ===============
    cp mhvtl-YYYY-MM-DD.tar.gz /usr/src/packages/SOURCE/
    cd /usr/src/packages/SOURCE
    rpmbuild -tb mhvtl-YYYY-MM-DD.tar.gz
    <wait for rpm build to complete>
    rpm -Uvh /usr/src/packages/RPMS/<cpu type>/mhvtl-1.2-z.<cpu type>.rpm
    (The rpm install will create system group & accounts vtl)
    - Note: For RedHat, replace 'packages' with 'redhat'
    * To build from tar archive (Debian / Ubuntu):
      ============================================
    apt-get install lsscsi
    apt-get install sg3_utils
    To limit damage that may occur by wayward daemons, I highly recommend creating
    a group and user called 'vtl'
    # /usr/sbin/groupadd --system vtl
    # /usr/sbin/useradd --system -c "Vitrual Tape Library" -d /opt/vtl -g vtl -m vtl
    Now build user space daemons:
    From the parent directory where you extracted the source.
    # cd mhvtl-1.2
    Build the binaries
    # make
    Install the rc script into /etc/init.d/ and binaries to /usr/local/bin/
    # make install
    Start daemons:
    /etc/init.d/mhvtl start
    Test:
    Note: Make sure the 'mtx' & 'lsscsi' utilities are installed
    The virtual devices are attached to HBA #5 in this example.
    e.g.
    # lsscsi -g
    [0:0:0:0]    disk    ATA      WDC WD1200BEVS-0 02.0  /dev/sda  /dev/sg0
    [3:0:0:0]    cd/dvd  Optiarc  DVD RW AD-7910A  1.D1  /dev/sr0  /dev/sg1
    [5:0:0:0]    mediumx SPECTRA  PYTHON           5500  /dev/sch0  /dev/sg6
    [5:0:1:0]    tape    QUANTUM  SDLT600          5500  /dev/st0  /dev/sg2
    [5:0:2:0]    tape    QUANTUM  SDLT600          5500  /dev/st1  /dev/sg3
    [5:0:3:0]    tape    IBM      ULT3580-TD4      5500  /dev/st2  /dev/sg4
    [5:0:4:0]    tape    IBM      ULT3580-TD4      5500  /dev/st3  /dev/sg5
    # mtx -f /dev/sg6 status
      Storage Changer /dev/sg6:4 Drives, 37 Slots ( 4 Import/Export )
    Data Transfer Element 0:Empty
    Data Transfer Element 1:Empty
    Data Transfer Element 2:Empty
    Data Transfer Element 3:Empty
          Storage Element 1:Full :VolumeTag=SDLT01S3                           
          Storage Element 2:Full :VolumeTag=SDLT02S3                           
          Storage Element 3:Full :VolumeTag=SDLT03S3                           
          Storage Element 4:Full :VolumeTag=SDLT04S3                           
          Storage Element 5:Full :VolumeTag=SDLT05S3                           
          Storage Element 6:Full :VolumeTag=SDLT06S3                           
          Storage Element 7:Full :VolumeTag=SDLT07S3                           
          Storage Element 8:Full :VolumeTag=SDLT08S3                           
          Storage Element 9:Full :VolumeTag=SDLT09S3                           
          Storage Element 10:Empty
          Storage Element 11:Full :VolumeTag=ULT001L1                           
          Storage Element 12:Full :VolumeTag=ULT002L2                           
          Storage Element 13:Full :VolumeTag=ULT003L3                           
          Storage Element 14:Full :VolumeTag=ULT004L4                           
          Storage Element 15:Full :VolumeTag=ULT005L1                           
          Storage Element 16:Full :VolumeTag=ULT006L2                           
          Storage Element 17:Full :VolumeTag=ULT007L3                           
          Storage Element 18:Full :VolumeTag=ULT008L4                           
          Storage Element 19:Full :VolumeTag=ULT009L1                           
          Storage Element 20:Empty
          Storage Element 21:Full :VolumeTag=8MM001X4                           
          Storage Element 22:Full :VolumeTag=8MM002X4                           
          Storage Element 23:Full :VolumeTag=8MM003X4                           
          Storage Element 24:Full :VolumeTag=8MM004X4                           
          Storage Element 25:Empty
          Storage Element 26:Empty
          Storage Element 27:Empty
          Storage Element 28:Empty
          Storage Element 29:Empty
          Storage Element 30:Empty
          Storage Element 31:Full :VolumeTag=CLN001L1                           
          Storage Element 32:Full :VolumeTag=CLN002L1                           
          Storage Element 33:Full :VolumeTag=CLN003L1                           
          Storage Element 34 IMPORT/EXPORT:Empty
          Storage Element 35 IMPORT/EXPORT:Empty
          Storage Element 36 IMPORT/EXPORT:Empty
          Storage Element 37 IMPORT/EXPORT:Empty
    Enjoy.
    Please feel free in letting me know if this works for you.
    Bug fixes and suggestions always welcome.
    [email protected]
    [email protected]

  • Converting Microsoft dpm Replica and RP volumes into Virtual Tape Format

    Hello All, 
    We need to migrate protected data-source that is from P3000 to D
    We purchased a HP Storeonce 2700  backup device and it does not support iSCSI disk. It support iSCSI tape, that is iscsi connection to Virtual Tape library. 
    The problem is how can I migrate my replica and recovery-point-volumes to Tape Drives (VTL).
    Can I convert disk data to tape format.

    Hi,
    The best you can do it add long term tape backup goal in each protection group - then you can use the below DPM power shell script to make a backup for all PG's to tape.  That will only backup to tape the "last" successful disk based recovery
    point.
    # prompts Shortterm or longterm backup type.
    # prompts for protection group name or ALLPG to backup.
    # Will backup PG's to tape and if verify is set on the PG the verify will run.
    # Tested on DPM 2012 R2
    # Last Modified 3-5-2014
    # CHANGE LOG
    # ==========
    # Ver 2.1 - listed PG's for goal selected
    # Ver 2.0 - Added shorthand for longterm shortterm, allowed to select ALL PG's, verified choices and added error checking
    # Ver 1.0 - Basic choices and only allowed a single PG.
    cls
    write-host
    write-host "version 2.1"
    $DPMservername= (&hostname)
    disconnect-dpmserver (&hostname)
    connect-dpmserver (&hostname)
    write-host
    write-host
    write-host
    if(!$protectiontype)
    $protectiontype = read-host "Select Tape Protection type L or S to run (L)ongterm or (S)hortterm) tape jobs"
    If ($Protectiontype -eq 'L')
    $protectiontype = 'Longterm'
    write-host "$protectiontype Selected"
    Write-host ""
    $protectedgroups = get-protectiongroup $dpmservername | where { $_.ProtectionMethod -like "*Long-term using tape*"}
    $protectedgroups.FriendlyName
    else
    If ($Protectiontype -eq 'S')
    $protectiontype = 'Shortterm'
    write-host "$protectiontype Selected"
    Write-host ""
    $protectedgroups = get-protectiongroup $dpmservername | where { $_.ProtectionMethod -like "*Short-term using tape*"}
    $protectedgroups.FriendlyName
    else
    write-host "Incorrect goal type selected - type L or S `n" -foregroundcolor yellow
    exit 0
    #check for PG with ST goals
    If ($Protectiontype -eq 'Shortterm')
    if(!$pgname)
    $pgname = read-host "Enter a Protection Group Name or ALLPG "
    if ($pgname -eq 'ALLPG')
    $protectedgroups = get-protectiongroup $dpmservername | where { $_.ProtectionMethod -like "*Short-term using tape*"}
    else
    $protectedgroups = Get-ProtectionGroup $DPMservername | where { $_.FriendlyName -eq $pgname} | where { $_.ProtectionMethod -like "*Short-term using tape*"}
    else
    #check for PG with LT goals
    if(!$pgname)
    $pgname = read-host "Enter a Protection Group Name or ALLPG "
    if ($pgname -eq 'ALLPG')
    $protectedgroups = get-protectiongroup $dpmservername | where { $_.ProtectionMethod -like "*Long-term using tape*"}
    else
    $protectedgroups = Get-ProtectionGroup $DPMservername | where { $_.FriendlyName -eq $pgname} | where { $_.ProtectionMethod -like "*Long-term using tape*"}
    if(!$protectedgroups)
    write-host "NO PG with goal" $protectiontype "type selected`n" -foregroundcolor yellow
    exit 0
    foreach ($pgname in $protectedgroups)
    write-host "`nGetting protection group" $pgname.friendlyname "in" $DPMservername "..."
    $clipg = Get-ProtectionGroup $DPMservername | where { $_.FriendlyName -eq $pgname.friendlyname}
    if($clipg -eq $abc)
    Throw "No PG found"
    write-Output "Getting DS from PG" $pgname.friendlyname "..."
    $backupds = @(Get-Datasource $clipg)
    foreach ($ds in $backupds)
    write-host
    write-host "Creating Recovery point for $ds" -foreground yellow
    $j = New-RecoveryPoint -Datasource $ds -Tape -ProtectionType $protectiontype
    $jobtype = $j.jobtype
    Write-Output "$jobtype Job has been triggerred..."
    # To serialize, wait for completion, and get final status, uncomment the below lines.
    #write-host "Waiting for $jobtype job to complete" -nonewline
    #while (! $j.hascompleted ){ write-host "." -nonewline; start-sleep 5}
    #write-host
    #if ($j.status -eq "Succeeded")
    # Write-host "Job $Jobtype completed successfully..."
    # $rp = @(get-recoverypoint $ds | ? { $_.datalocation -eq 'Media'})
    # $rpl = get-recoverypointlocation $rp[$rp.count-1]
    # $gt = get-tape -recoverypointlocation $rpl
    # $gtt += $gt
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.

  • Virtual tape drive

    Is there any software for Virtual tape drive, so I can simulate RMAN tape backups at home server, without acutally buying the tape drive?
    thanks

    There are lots of Virtual Tape Library (VTL) providers on the market. Review the OSB hardware support matrix to see which ones are supported. http://www.oracle.com/technology/products/secure-backup/pdf/Tape_Devices10.3.pdf
    OSB itself does not provide a VTL function.
    Thanks
    Rich

  • New SCDPM 2012 Deployment Scenario and tape Library Sharing.

    Folks
    I am having one SCDPM 2012 SP1 on Server 2008 R2 with one tape library. I am going to build another second DPM on Server 2012 and I want to share the same library which is on first DPM.
    Before I build second DPM server I want to make some doubts clear so it does't create issues later.
    Both DPM will be physical.
    I am reading technet link to share tape ibrary : http://technet.microsoft.com/en-us/library/hh758124.aspx
    And My queries are:
    1) The tape library must be in a storage area network (SAN) environment.
     >The tape Hewlett Packard LTO Ultrium-5 drive I have is attched to first DPM server through SCSI array.Dont know if it is SAN supported.
    2) We recommend that the system configuration of the library server computer and all library client computers be as similar as possible, and that you do not configure any protection groups on the library server.
       >As I have attached library to my first DPM server which is having 22 Protection groups with 562 datasources. Can it be promoted as a Library server? If not then what is solution for this.
    3)All DPM servers using a shared library must use a similar SQL Server setup for hosting DPM databases.You cannot have some DPM servers using local instance and others using a remote instance.
       >My first DPM is hosting its Database on its own (local) So should I setup SQL on second DPM localy?
    4)SQL accounts should be DOMAIN accounts? On the technet link it is showing SQL failover cluster, where does it require? As image showing it is required between library clients but I will have one library server and one library client, will I needed SQL CLuster?
    This was related to Tape, now other queries I have if second DPM and tape sharing deployed successfully.
    1) First DPM has reached LDM records occupancy 79% and I have identified non-colocated datasources/Protection groups which are occupying larger amount of LDM. I will move/recreate these protected groups on 2nd DPM with COLOCATION so they cant use much LDMs.
       a)Should I stop protection on 1st DPM and add these protection groups on 2nd DPM. Will it allow me to add since Inactive replica there would be on 1st DPM for 30days
       b) Or should I Migrate these PGs?
       c) What is best practice for this?

    Figured it out.  Since I'm on a preconfigured RDS server, the RDS Session Host role is already installed.  So technically Session-based desktop deployment is already set up.  It's the difference between the session host role and the Virtualization
    Host roles...slightly confusing when you walk into the middle of the deployment.
    It would also explain my second part of the question since the session host role is installed....

  • SL500 Tape library Issue

    Hi Every one here
    I need some help with the SL500 Tape library
    I need to connect to the Library through the CLI port so I need to know the connection pin configuration
    I'll tell u what I do & any one who knows the connection tells me if it's wrong or what ?
    1)I'm using RJ-45 straight cable to connect to the CLI port
    2)from my lap top side I use usb-to-serial converter
    3)between both of them there is a converter which have DB-9 female from a side & RJ-45 interface from the other side which is the one that comes along with most of the sparc servers
    is this right ? or there is some special converters that comes along with the Tape library which may be had been lost in the customer site ? & if so can any one tell me the pin configuration of this converter & I will made up one ? if not may be the problem in the Straight RJ-45 cable which I use may be it's the wrong one knowing that I tried also cross-over & roll-over cables ?
    I tried to login using the admin username from the cross-over connection between me labtop & the library
    I use the Putty tool to ssh the IP address of the library when I type thw admin it prompts me the password & as sson as I type the password & press enter it logs me off
    why Can't I login to the CLI using ssh throught the ethernet cable or must I login to the library from the CLI port ???
    Regards

    Hi,
    There is a special DB9-RJ45 connector that comes with each STK/Sun libraries. You'll need it to establish a CLI connection. Server adapters does not function in libraries.
    Regards

  • Robotics error and issue within SL24 Tape library with Solaris 10

    Dear All,
    Kindly may any one help me with this issue or at least give me a hint about where to begin thinking about the solution from
    I have a tape library SL24 which is attached to the server V240 my backup server on which the robotics is not seen by the veritas net backup and when I try some commands like
    #sgscan
    the robotics isn't discovered
    the Veritas docs says that this is issue is related to the Solaris OS
    so can any one give me what are the possible causes to that error ?
    knowing that there is no zoning in this datacenter

    Did this configuration of your V240 and the SL24 ever work?
    Here's the documentation for the SL24:
    http://docs.oracle.com/cd/E25510_01/index.html
    Here's the documentation for the V240:
    http://docs.oracle.com/cd/E19088-01/v240.srvr/index.html
    I have a tape library SL24 which is attached to the server V240 ,,, attached to what? I don't think the integrated SCSI port is compatible and therefore you'll need to buy and install an appropriate HBA for the computer.
    Start with the documentation.

  • Download issue with 1 file in 11.5.10+ virtual Documentation Library

    I am unable to download the following document from the 11.5.10+ virtual Documentation Library.
    Title:          Using Oracle Workflow in Oracle Order Management
    Part Number:     A96689-02
    URL:          http://download-uk.oracle.com/docs/cd/B16981_03/current/acrobat/115omwf.pdf
    It seems that whether I try to open it or save the document to disk, it makes no difference. Please can you check whether there is a problem with the file as I am able to download all the other documents on this web site. Please can you correct this issue.
    I would also like to suggest that a single zip file (containing all the documents revised or released since the creation of the original 11.5.10 documentation library CD) be made available so that customers can download all new documents with a single click, without having to download the entire CD.
    Regards
    Mark

    Try replacing download-uk.oracle.com with one of the below:
    download-east.oracle.com
    download-west.oracle.com
    Cheers, OTN

  • Failed Tape Library (now replaced with alternate) - Tapes inside still included in tape report as Ready for Offsite

    Our tape library failed and we ended up replacing the library without it ever coming back online. We removed the tapes still loaded inside it when it failed and sent the tapes offsite.
    In order to clear the failed tape library from DPM Management, we removed all disk based replicas that were copied to the failed tape library and updated the Protection Groups to reference the new library. There is no longer any reference to the failed tape
    library in the DPM Management window.
    However, our tape report still shows the tapes in the failed library as Ready for Offsite.
    I am recalling the tapes that were in the old library to load them into the new library in the hope that DPM will see the tapes are now present in a different library and clear the Ready for Offsite from the report when I remove them.
    Is this correct or do I need to do something nitty gritty?

    Hi,
    That should work - once the tapes are loaded in the new library and an inventory is completed, then DPM should recognize them as the original tapes and show them offsite ready. Now when you remove them from the new library, the tapes should no longer show
    on the tape report.
    NOTE: You may need to wait until summary manager job runs at midnight before the tape report is updated.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Disaster Recovery from tape library!

    Hi,
    I am using oracle 10g and Backup Exec 12 as the media management software. How do i perform the disaster recovery. My entire scenario is like this:
    Server A has the DB (Database).
    Configured Backup Exec with RMAN and took full DB backup along with autobackup of controlfile to the tape.
    Server A crashes and is unusable.
    Installs Oracle on server B and needs to restore the DB on this new server.
    I know the DBID of the DB but how to configure RMAN to work with Backup Exec, so that I can restore the db from the tape library?
    When you configure the RMAN integration with Backup Exec, it finds the database running on the server and will perform the integration. But in my case, since the database does not exist, how will the Backup Exec agent configure the integration?
    How do we go about the restoration to Server B in this case?
    Thanks!

    Hi!
    I am still not able to restore the db. The scenario is like:
    Took a full database backup to tape from server A with controlfile autoconfig
    Trying to restore the db on server B. The following is the script used to restore.
    connect target /
    set dbid=152417844;
    startup nomount;
    run
    +{+
    allocate channel sbt1 type 'sbt_tape';
    SEND 'BSA_SERVICE_HOST=ipaddress,NBBSA_TOTAL_STREAMS=1';
    set controlfile autobackup format for device type 'sbt_tape' to 'cf_%F';
    restore spfile from autobackup;
    restore controlfile from autobackup;
    alter database mount;
    restore database;
    recover database;
    release channel sbt1;
    +}+
    alter database open resetlogs;
    When i try to restore, the output is:
    channel sbt1: looking for autobackup on day: 20090624
    channel sbt1: looking for autobackup on day: 20090623
    channel sbt1: looking for autobackup on day: 20090622
    channel sbt1: looking for autobackup on day: 20090621
    channel sbt1: looking for autobackup on day: 20090620
    channel sbt1: looking for autobackup on day: 20090619
    channel sbt1: looking for autobackup on day: 20090618
    channel sbt1: no autobackup in 7 days found
    released channel: sbt1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 06/24/2009 11:19:28
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    Please advice!
    Edited by: Libra DBA on Jun 24, 2009 1:39 PM

  • How to setup and Configure the SCDPM 2012 R2 on Hyper- v VM to take the Backup in Tape Library

    Hi
    I have to configured a SCDPM 202 R2 on one Hyper-V VM to take the Backup in Tape.
    Can any one suggest that we can take the Backup through SCDPM  hosted on VM in to tape Library..?
    Shailendra Dev

    Hi,
    Currently, Windows Hyper-v does not support tape libraries on the Vfc - this is covered in the following TechNet article.
    Hyper-V Virtual Fibre Channel Overview
    Tape library support
    Tape libraries are not supported on virtual machines configured with a Virtual Fibre Channel adapter.
    Consequently, DPM cannot support something that Windows does not support, so we have documented that Fvc tape is not supported in a VM
    Preparing for installation in a virtual environment
    So your current options are to use Iscsi attached tape library, or use a Physical DPM Server.
    Good news is both the Windows and DPM teams are working with tape library vendors to get their tape libraries certified to work in a Hyper-V VM using Vfc - expect more news about that in a future release of DPM.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Rman WIth Large_pool

    Hi ALL,
    I read, Oracle suggest to use Large_pool for Rman BAckups, so we configured the Database with Large Pool and its working Fine.
    BUt My question is, if we are not configure the large Pool, then with memory oracle will use for RMAN.
    If its shared_pool, then kindly tell me which memory part in shared Pool will use by RMAN.
    Regards
    S.Senthil Kumar

    where are you backup going ?? disk or tape ??
    here is some more info...if going to tape
    Allocation of Tape Buffers
    If you backup to or restore from an sbt device, then by default the database allocates four buffers for each channel for the tape writers (or reads if doing a restore). The size of these buffers is platform dependent, but is typically 256K. This value can be changed using the ALLOCATE or SEND command using the PARMS and the BLKSIZE option.
    RMAN allocates the tape buffers in the SGA if I/O slaves are being used, or the PGA otherwise.
    If you use I/O slaves, then set the LARGE_POOL_SIZE initialization parameter to set aside SGA memory dedicated to holding these large memory allocations. This prevents RMAN I/O buffers from competing with the library cache for SGA memory. If I/O slaves for tape I/O were requested but there is not enough space in the SGA for them, slaves are not used, and a message appears in the alert log.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmtunin.htm#BRADV170

Maybe you are looking for

  • CS5 Photoshop Printing - Unable to change paper settings

    I am trying to set the size of the print, but unable to do so. If I try to select the print settings button under the Copies number, the only thing that happens is that the print button in the lower right flashes. I am unable to set page sizes, basic

  • DspControlConfig.properties

    We're using ODSI 10.3.0 and utilizing the dspControlConfig.properties file to override the endpoints for the data service controls. We've noticed that occasionally this file gets updated by the server at runtime. It adds these lines to the file even

  • Cancelling phone services because account holder m...

    hi wondering if anyone can tell me how i would cancel all phone services on account holders account as account holder has been placed in a hospice tried cancelling the phone line and features at start of this month  didn't appear to acknowledge after

  • Is there anyway to export ...Impl.jcs from Web project type?

    Hi, I am using WLI 8.4, sp6. In BEA workshop, at one Web porject, someone already defined TestCodeImpl.jcs and TestCode.java, which uses many data models in this project. From another web project, I would like to use the same jcs. is there a way to e

  • Sorting Columns in Number 09

    Hi, i found no way to sort columns in Numbers 09 - i can only sort rows. I can only rearrange columns with dragging but not automatically sort. I think this should be a standard funktion like in other Programs like Open Office - but i'm searching and