05-28-2015 05:27 AM
Hi,
I need to delete some image on a diskpool (who will be deleted after) so i list image contains with this command :
bpimmedia -L -stype DiskPool -dp "mydispoolname"
From here i have a complete list of image on this pool (example below) :
Backup-ID Policy On Hold Indexing ScheduleType
Copy Frag Expires DiskType DiskPoolName DiskVolume StorageServerName On Hold
-------------------------------------------------------------------------------------------------------------------------------------------
mutdag001.hebergemen CFI-EXCH-MBX 0 0 FULL
1 1 1432918241 DiskPool DCRCVXNAS003POL002 O:\ dcrcvxsrpbck003.shd. 0
1 2 1432918241 DiskPool DCRCVXNAS003POL002 O:\ dcrcvxsrpbck003.shd. 0
1 3 1432918241 DiskPool DCRCVXNAS003POL002 O:\ dcrcvxsrpbck003.shd. 0
1 4 1432918241 DiskPool DCRCVXNAS003POL002 O:\ dcrcvxsrpbck003.shd. 0
But when i try to delete those image (command below), the command returns this :
bpexpdate -M dcrsrvbck001 -notimmediate -force -d 0 -copy 1 -backupid ‘mutdag001.hebergemen’
an invalid entry was encountered
I tried with the full backupid (whos my client name) same result.
Any help would be appreciate.
Solved! Go to Solution.
05-28-2015 07:56 PM
Try again but post up the admin log (directory must exist first under netbackup\logs\).
Also try the command with out the quotes ' ' around the image name.
05-28-2015 08:56 PM
05-29-2015 12:17 AM
Backupid does not look right : bpexpdate -M dcrsrvbck001 -notimmediate -force -d 0 -copy 1 -backupid ‘mutdag001.hebergemen’
The -L flag causes NBU to truncate the backup id
bpimmedia -L -stype PureDisk
Backup-ID Policy On Hold Indexing ScheduleType Copy Frag Expires DiskType DiskPoolName DiskVolume StorageServerName On Hold ------------------------------------------------------------------------------------------------------------------------------------------- nnitbcktest04.ad.my WFS_AC_SILVER 0 0 FULL 1 -1 1428911031 PureDisk stu_msdp_ural PureDiskVolume ural 0 1 1 1428911031 PureDisk stu_msdp_ural PureDiskVolume ural 0 bpimmedia -stype PureDisk IMAGE nnitbcktest04.ad.nss.nnit.com nnitbcktest04.ad.my.company.com_1427096631 WFS_AC_SILVER 13 0 0 0 FRAG 1 -1 1428911031 6 stu_msdp_ural PureDiskVolume ural 0
The right format for backup id is "hostname_{backup time}". The backup time is in EPOCH value.
05-28-2015 07:56 PM
Try again but post up the admin log (directory must exist first under netbackup\logs\).
Also try the command with out the quotes ' ' around the image name.
05-28-2015 08:56 PM
05-29-2015 12:17 AM
Backupid does not look right : bpexpdate -M dcrsrvbck001 -notimmediate -force -d 0 -copy 1 -backupid ‘mutdag001.hebergemen’
The -L flag causes NBU to truncate the backup id
bpimmedia -L -stype PureDisk
Backup-ID Policy On Hold Indexing ScheduleType Copy Frag Expires DiskType DiskPoolName DiskVolume StorageServerName On Hold ------------------------------------------------------------------------------------------------------------------------------------------- nnitbcktest04.ad.my WFS_AC_SILVER 0 0 FULL 1 -1 1428911031 PureDisk stu_msdp_ural PureDiskVolume ural 0 1 1 1428911031 PureDisk stu_msdp_ural PureDiskVolume ural 0 bpimmedia -stype PureDisk IMAGE nnitbcktest04.ad.nss.nnit.com nnitbcktest04.ad.my.company.com_1427096631 WFS_AC_SILVER 13 0 0 0 FRAG 1 -1 1428911031 6 stu_msdp_ural PureDiskVolume ural 0
The right format for backup id is "hostname_{backup time}". The backup time is in EPOCH value.
05-29-2015 12:55 AM
Also, do not surround the backup ID with single quotes.