none
Get the amount of data written to tape RRS feed

  • Question

  • I understand DPM 2010 now provides a field for how much uncompressed data is written to the tape right in the library area however when hardware tape compression I need to know how well my tapes are being utilized.  That number does not tell me how much data was written to a tape.  I saw another thread where it stated if I seeked to the end of the tape and read the number of blocks I could compute it but so far I have been unable to find a utility that does that.

    Is there a utility that can report the number of blocks written to tape?

    Can this information be obtained from powershell if the tape is restored?

     

    Sunday, September 26, 2010 9:47 PM

Answers

  • HI,

    Download the DPMerasetape.zip file from the following link and extract to c:\temp folder.


    http://cid-b03306b628ab886f.office.live.com/self.aspx/.Public/DPMeraseTape.zip?wa=wsignin1.0&sa=801749705#resId/B03306B628AB886F!822


    The utilities are not that user friendly, but here are the basics to see how much data was written on a tape.

    Always Stop DPMLA Service prior to running MCT.EXE Commands.

      NET STOP DPMLA

    For MCT utility we have the  -m [MOVE] command to move media around inside the library.

    -m [ElemType-T] Transport# [ElemType-Source] S_lot#/D_rive# [ElemType-Destination] S_lot#/D_rive#

    Get / view command syntax for –m (move) command for changer 0

    C:\>mct-x64 0 -m

    Opening changer \\.\Changer0
    MoveMedium : mct -m t N s\d N s\d N   [Where s/d means Slot or Drive and N is ZERO based].

     

    Some Examples:

    mct-x64 -m t 0 s 0 d 0    (Using transport-0, move media from slot-0  to drive-0)
    mct-x64 -m t 0 d 0 s 0    (Using transport-0, move media from drive-0 to slot-0)
    mct-x64 -m t 0 s 0 s 100  (Using transport-0, move media from slot-0  to slot-100)
    mct-x64 -m t 0 d 0 d 1    (Using transport-0, move media from drive-0 to drive-1)
    mct-x64 -m t 0 s 0 ie 0   (Using transport-0, move media from slot-0  to IEPort 0)

     

    Once you move a tape into a slot, use mytape to fast forward the tape to end of data, then see what the bock number is.


    You need the symbolic name for the tape drive you loaded media into - look in the DPM console by clicking the tape drive and look at the details for \\.\tape########.  use that in the following command.

    --------------------  GET LAST BLOCK WRITTEN -----------------------------

    C:|>Mytape.exe \\.\Tape2147483646

    Status: Getting the handle for \\.\Tape2147483646...Success

    \\.\Tape2147483646>TapeConsole_1.0>loadtape

    Status: Loading the tape...Success

    \\.\Tape2147483646>TapeConsole_1.0>taperewind

    Status: Rewinding Tape ...Success


    \\.\Tape2147483646>TapeConsole_1.0>TapeFfd


    Partition :0
    Status: Forwarding Tape ...Success

    \\.\Tape2147483646>TapeConsole_1.0>gettapeposition

    Status: Getting Tape Position...Success
    ------------------------------------------------------------------
                          Tape Position
    ------------------------------------------------------------------
    Absolute Position:
    Current tape partition: 0
    Current tape position: 0,1558917  <--- Where 1558917*65536=102,165,184,512
    Logical Position:
    Current tape partition: 1
    Current tape position: 0,1558917


    \\.\Tape2147483646>TapeConsole_1.0>quit

    Status: Closing the handle for \\.\Tape2147483646...Success



    c:\>mct-x64.exe -m t 0 d 0 s 0

    Opening changer \\.\Changer0
    Source is a Drive
    Destination is a Slot
    Move : Transport - 0, Src - 0, Dest - 0

     


    Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, October 4, 2010 11:18 PM
    Moderator

All replies

  • HI,

    Download the DPMerasetape.zip file from the following link and extract to c:\temp folder.


    http://cid-b03306b628ab886f.office.live.com/self.aspx/.Public/DPMeraseTape.zip?wa=wsignin1.0&sa=801749705#resId/B03306B628AB886F!822


    The utilities are not that user friendly, but here are the basics to see how much data was written on a tape.

    Always Stop DPMLA Service prior to running MCT.EXE Commands.

      NET STOP DPMLA

    For MCT utility we have the  -m [MOVE] command to move media around inside the library.

    -m [ElemType-T] Transport# [ElemType-Source] S_lot#/D_rive# [ElemType-Destination] S_lot#/D_rive#

    Get / view command syntax for –m (move) command for changer 0

    C:\>mct-x64 0 -m

    Opening changer \\.\Changer0
    MoveMedium : mct -m t N s\d N s\d N   [Where s/d means Slot or Drive and N is ZERO based].

     

    Some Examples:

    mct-x64 -m t 0 s 0 d 0    (Using transport-0, move media from slot-0  to drive-0)
    mct-x64 -m t 0 d 0 s 0    (Using transport-0, move media from drive-0 to slot-0)
    mct-x64 -m t 0 s 0 s 100  (Using transport-0, move media from slot-0  to slot-100)
    mct-x64 -m t 0 d 0 d 1    (Using transport-0, move media from drive-0 to drive-1)
    mct-x64 -m t 0 s 0 ie 0   (Using transport-0, move media from slot-0  to IEPort 0)

     

    Once you move a tape into a slot, use mytape to fast forward the tape to end of data, then see what the bock number is.


    You need the symbolic name for the tape drive you loaded media into - look in the DPM console by clicking the tape drive and look at the details for \\.\tape########.  use that in the following command.

    --------------------  GET LAST BLOCK WRITTEN -----------------------------

    C:|>Mytape.exe \\.\Tape2147483646

    Status: Getting the handle for \\.\Tape2147483646...Success

    \\.\Tape2147483646>TapeConsole_1.0>loadtape

    Status: Loading the tape...Success

    \\.\Tape2147483646>TapeConsole_1.0>taperewind

    Status: Rewinding Tape ...Success


    \\.\Tape2147483646>TapeConsole_1.0>TapeFfd


    Partition :0
    Status: Forwarding Tape ...Success

    \\.\Tape2147483646>TapeConsole_1.0>gettapeposition

    Status: Getting Tape Position...Success
    ------------------------------------------------------------------
                          Tape Position
    ------------------------------------------------------------------
    Absolute Position:
    Current tape partition: 0
    Current tape position: 0,1558917  <--- Where 1558917*65536=102,165,184,512
    Logical Position:
    Current tape partition: 1
    Current tape position: 0,1558917


    \\.\Tape2147483646>TapeConsole_1.0>quit

    Status: Closing the handle for \\.\Tape2147483646...Success



    c:\>mct-x64.exe -m t 0 d 0 s 0

    Opening changer \\.\Changer0
    Source is a Drive
    Destination is a Slot
    Move : Transport - 0, Src - 0, Dest - 0

     


    Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, October 4, 2010 11:18 PM
    Moderator
  • This is valuable information for planning purposes.

    My only issue is I am using HP Ultrium LTO2 tape drive that I use the above method to extract 1522424 which computes to 92 GB. 

    The DPM PG has compression turned on and the DPM library tab shows I wrote 95151 MB to tape.

    Shouldn't the block number I read be about half of what I am indicating because I should be getting pretty good compression on the data I am writing.  Another way to explain this is using he method above I expect to read about half the number of blocks that I am really reading becasue compresssion is turned on.  

    Also how can I find out how many "Blocks" my tape drive supports?  http://eclipsed.net/~gr/Ultrium460_WP_F.pdf

    Wednesday, October 6, 2010 3:45 PM
  • You can use mytape writeforspanning command to fill the tape, then get the block number. Ignore the bytes written, I don't believe that's accurate.

     

    \\.\Tape2147483639>TapeConsole_1.0>loadtape

    Status: Loading the tape...Success

    \\.\Tape2147483639>TapeConsole_1.0>taperewind

    Status: Rewinding Tape ...Success

    \\.\Tape2147483639>TapeConsole_1.0>settapeinfo 65536

    Enter BlockSize: Status: Setting Tape Information...Success

    \\.\Tape2147483639>TapeConsole_1.0>writeforspanning

    Status: Writing onto tape...Failed !!!
    Error_ID reported: 1100   <---------- means  The physical end of the tape has been reached.
    Number of bytes written: 983040
    Giving up
    Time taken: 15772ms
    \\.\Tape2147483639>TapeConsole_1.0>gettapeposition

    Status: Getting Tape Position...Success
    ------------------------------------------------------------------
                          Tape Position
    ------------------------------------------------------------------
    Absolute Position:
    Current tape partition: 0
    Current tape position: 0,1558917
    Logical Position:
    Current tape partition: 0
    Current tape position: 0,1558917

     


    Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Wednesday, October 6, 2010 7:06 PM
    Moderator