Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

IMAGE RESTORE TO A SHADOW DISK

 
SOLVED
Go to solution
gunners
Frequent Advisor

IMAGE RESTORE TO A SHADOW DISK

HI ,

CAN I JUST SAY (FIRST TIME DOING THIS TYPE OF RESTORE)

 

I AM TRYING TO DO AN IMAGE RESTORE OF A DISK FROM TAPE (IN THIS CASE DSA1200)

I WANT TO MOUNT THE DISK FOREIGN IN ORDER TO RESTORE THE IMAGE BUT AM GETTING  'CONFLICTING QUALIFIERS' ERRORS

 

THE DISK NAME IS 'DSA1200' BUT IT IS SHADOWED TO $1$DGA250'

 

SO IN OTHER WORDS WHEN YOU 'SHOW DEV D'

 

$1$DGA250 IS A SHADOWSETMEMBER (member of DSA1200)

 

So Im confused as regards how I actually dismount it and remount / foreign in order to do this image restore.

 

Many thanks in advance

 

 

 

 

 

 

8 REPLIES 8
Volker Halle
Honored Contributor

Re: IMAGE RESTORE TO A SHADOW DISK

To restore the image backup of a shadowed disk, you need to restore it to a non-shadowed disk first and then form a shadowset from that restored member, e.g.

 

$ MOUNT/FOR $1$DGAxxx:

$ BACKUP/IMAGE tape:saveset/SAVE $1$DGAxxx:

$ DISM/NOUNL $1$DGAxxx:

$ MOUNT/SYS DSAnnn:/SHADOW=$1$DGAxxx: label

 

Make sure that DSAnn: does not yet exist and that $1$DGAxxx: is not a member on an existing shadowset, when you run the restore.

 

Volker.

gunners
Frequent Advisor

Re: IMAGE RESTORE TO A SHADOW DISK

Hi again Volker , you are helping me loads today (thanks so much) - ok tried that but got the following :

 

$ BACKUP/REW/IMAGE $2$MGA0:DSA1200.SAV/SAVE_SET $1$DGA250:

IBID91::_TNA12: 17:48:09 BACKUP CPU=00:00:01.38 PF=18826 IO=25842 MEM=382

%BACKUP-I-ODS2COMPAT, output volume $1$DGA250: structure [ODS-2] is not compatib

le with OpenVMS versions prior to 7.2

%BACKUP-F-WRITEERR, error writing $1$DGA250:

-SYSTEM-F-WRITLCK, write lock error

$

 

gunners
Frequent Advisor

Re: IMAGE RESTORE TO A SHADOW DISK

By the way Volker - if it was initialised wrong I can re init the disks to whatever it needs to be for this

Volker Halle
Honored Contributor
Solution

Re: IMAGE RESTORE TO A SHADOW DISK

Now this messages seems to indicate, that the output disk $1$DGA250: is write-locked. Is it not ?

 

What does $ SHOW DEV/FULL $1$DGA250: tell you ?

 

If you're sure, that you can overwrite the contents of $1$DGA250:, try a simple INIT $1$DGA250: SCRATCH - if the disk is really write locked, that will fail as well.

 

Volker.

 

 

gunners
Frequent Advisor

Re: IMAGE RESTORE TO A SHADOW DISK

Hi Volker , ok here is output

 

$ show dev/full $1$dga250/page

Disk $1$DGA250: (IBID91), device type HSV400, is online, file-oriented device,

shareable, available to cluster, device has multiple I/O paths, error

logging is enabled.

Error count 0 Operations completed 6082

Owner process "" Owner UIC [SYSTEM]

Owner process ID 00000000 Dev Prot S:RWPL,O:RWPL,G:R,W

Reference count 0 Default buffer size 512

Current preferred CPU Id 1 Fastpath 1

WWID 01000010:6001-4380-05DE-CA67-0000-5000-033A-0000

Total blocks 37748736 Sectors per track 128

Total cylinders 2304 Tracks per cylinder 128

Allocation class 1

I/O paths to device 8

Path FGA0.5000-1FE1-5024-1348 (IBID91), primary

Error count 0 Operations completed 24

Last switched to time: Never Count 0

Last switched from time: 27-JUN-2011 16:46:02.73

Path FGA0.5000-1FE1-5024-134A (IBID91)

Error count 0 Operations completed 24

RETURN/SPACE=More, PREV/NEXT=Scroll, INS/REM=Pan, SELECT=80/132, CTRL/Z=Quit 0

Last switched from time: Never

Path FGA0.5000-1FE1-5024-134C (IBID91)

Error count 0 Operations completed 24

Last switched to time: 27-JUN-2011 16:46:02.73 Count 1

Last switched from time: 27-JUN-2011 16:46:19.73

Path FGA0.5000-1FE1-5024-134E (IBID91)

Error count 0 Operations completed 24

Last switched to time: Never Count 0

Last switched from time: Never

Path FGB0.5000-1FE1-5024-1349 (IBID91)

Error count 0 Operations completed 24

Last switched to time: Never Count 0

Last switched from time: Never

Path FGB0.5000-1FE1-5024-134B (IBID91), current

Error count 0 Operations completed 5914

Last switched to time: 27-JUN-2011 16:46:19.73 Count 1

Last switched from time: Never

Path FGB0.5000-1FE1-5024-134D (IBID91)

RETURN/SPACE=More, PREV/NEXT=Scroll, INS/REM=Pan, SELECT=80/132, CTRL/Z=Quit 4

Last switched to time: Never Count 0

Last switched from time: Never

Path FGB0.5000-1FE1-5024-134F (IBID91)

Error count 0 Operations completed 24

Last switched to time: Never Count 0

Last switched from time: Never

gunners
Frequent Advisor

Re: IMAGE RESTORE TO A SHADOW DISK

Hi Volker , since the last post I decided to init the disk as we mentioned previously and hey presto - it worked a treat . Many thanks again for your help today

Volker Halle
Honored Contributor

Re: IMAGE RESTORE TO A SHADOW DISK

Is $1$DGA250: a new unit created for you to restore this image backup ? You can try a MOUNT/FOREIGN $1$DGA250: to see, if this disk has an OpenVMS disk volume label.

 

The disk may be write-locked at the SAN level (on the EVA controller), maybe there is a problem on the underlying diskgroup on the EVA as well.

 

If you're sure the disk contains nothing of value, try $ INIT $1$DGA250: SCRATCH

 

If you can write to that disk with INIT, I would not expect the BACKUP/IMAGE restore to fail.

 

Volker.

 

 

Volker Halle
Honored Contributor

Re: IMAGE RESTORE TO A SHADOW DISK

After you did INIT the disk o.k., did the BACKUP/IMAGE also succeed ?

 

Maybe the disk $1$DGA250: had been a previous shadowset member. If you mount such a disk as a non-shadowed disk, it will automatically be write-locked. This would happen with a normal MOUNT. Maybe something also caused this effect to happen after a MOUNT/FOREIGN while BACKUP was trying to init the disk...

 

Volker.