www.mass.dk

Sharing what I know...

  • Increase font size
  • Default font size
  • Decrease font size
Welcome to the Frontpage

bpimagelist -pt

Print PDF

 

There is a typo error in the manual and man pages for bpimagelist -pt {policy_type} . The manual say policy type for Windows is MS-Windows but it is  MS-Windows-NT.  However bpimagelist accept the syntax but never return any output.

This is a correct list: 

Informix-On-BAR
MS-Exchange-Server
MS-SQL-Server
MS-SharePoint
MS-Windows-NT
NetWare
Oracle
OS/2
Standard
Sybase
NDMP
AFS
DataTools-SQL-BackTrack
DB2
FlashBackup
SAP
Split-Mirror

The bug is now official, Symantec bug id 1667765. No fix before 6.5.5 or 7.x as it is a cosmetic one.

Last Updated on Wednesday, 27 May 2009 09:49
 

Decommision a Netbackup 6.5 media server with media sharing enabled

Print PDF

 

This article is now obsolete, Symantec  has released the Netbackup decommission tool. It included in Netbackup 6.5.6. For 6.5.5 and earlier.  Take a  look at this Symantec Connect thread.

 

Stumped into a small challenge today. I needed to remove a test media server from my Netbackup environment, no problem I know the procedure, did that may time before, I have even written a script that does the job of assigning media to another media server. So did the script work ...... Well you guessed it - It did NOT work. I had media sharing enabled - and that broke the script AND the procedure Symantec has published on their support site (Technote 266270)

The root case showed to be the command:

bpmedialist -mlist -l -h media_server

That command did not return any tapes at all. So I logged a quick call to the Netbackup UK support staff - and the answer was to use nbemmcmd -lismedia and look for the filed "Last Write Host".

====================================================================
Media GUID:                     f214b9fe-a11a-11dd-8000-a9302bb46368
Media ID:                       500000
Partner:                        -
Media Type:                     HCART3
Volume Group:                   001_00000_ACS
Application:                    Netbackup
Media Flags:                    1
Description:                    Added by Media Manager
Barcode:                        500000
Partner Barcode:                --------
Last Write Host:                darwin
Created:                        10/23/2008 13:54
Time Assigned:                  10/23/2008 00:53
First Mount:                    10/23/2008 14:45
Last Mount:                     10/23/2008 14:45
Volume Expiration:              -
Data Expiration:                01/23/2009 23:53
Last Written:                   10/23/2008 00:53
Last Read:                      -
Robot Type:                     ACS
Robot Control Host:             NONE
Robot Number:                   0
AcsAcs:                         0
AcsLsm:                         0
Cleanings Remaining:            -
Number of Mounts:               1
Maximum Mounts Allowed:         0
Media Status:                   FULL MPX
Kilobytes:                      683351040
Images:                         173
Valid Images:                   173
Retention Period:               4
Number of Restores:             0
Optical Header Size Bytes:      1024
Optical Sector Size Bytes:      0
Optical Partition Size Bytes:   0
Last Header Offset:             0
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE
Master Host:                    main
Server Group:                   UNRESTRICTED_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number:                    4
Volume Pool:                    nn_scheduled
Previous Pool Name:             scratch
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -

I then wrote a new small Perl script that changes media assignment with UNSTRICTED_MEDIA_SHARING enabled.You can find it in the file section of this site or use the link HERE

Last Updated on Thursday, 24 June 2010 08:31
 

Deleting a ApplicationRollback shadow image

Print PDF

 

The normal vssadmin command can't delete shadow copy's of type "ApplicationRollback". To delete the shadow image get the Volume Shadow Copy Service SDK from Microsoft. That SDK contain the vshadow command which can delete the shadow copy. The vshadow command can do very powerfull stuff - indeed a very interesting command.

 N:\>vssadmin list shadows
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001 Microsoft Corp.

Contents of shadow copy set ID: {047a3cb0-04fe-4298-bfe9-0124ec79410b}
   Contained 1 shadow copies at creation time: 8/27/2008 2:51:14 PM
      Shadow Copy ID: {0d456a73-e8f4-4695-b0dd-59e55c190753}
         Original Volume: (D:)\\?\Volume{8a9334e5-c416-11dc-95ba-806e6f6e6963}\
         Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1
         Originating Machine: appdkba795.corp.novocorp.net
         Service Machine: appdkba795.corp.novocorp.net
         Provider: 'Microsoft Software Shadow Copy provider 1.0'
         Type: ApplicationRollback
         Attributes: Persistent, No auto release, Differential

D:\vss_tools>vshadow -da

VSHADOW.EXE 2.2 - Volume Shadow Copy sample client
Copyright (C) 2005 Microsoft Corporation. All rights reserved.

(Option: Delete all shadow copies)
This will delete all shadow copies in the system. Are you sure? [Y/N] y

- Setting the VSS context to: 0xffffffff
- Deleting shadow copy {0d456a73-e8f4-4695-b0dd-59e55c190753} on \\?\Volume{8a93
34e5-c416-11dc-95ba-806e6f6e6963}\ from provider {b5946137-7b9f-4925-af80-51abd6
0b20d5} [0x00020009]...

 

Last Updated on Thursday, 14 May 2009 13:36
 


Page 4 of 5