- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- dismounting a shadow set with installed images
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 07:58 AM
тАО09-18-2009 07:58 AM
I am wondering if there is an easier / simpler way to dismount a volume shadow set (with installed images) to avoid rebuilding the volume after a reboot?
Thanks in advance
Kevin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 09:14 AM
тАО09-18-2009 09:14 AM
SolutionThe OpenVMS SHUTDOWN doesn't have good staging here, and modifying the contents of the site-local SYSHUTDWN.COM procedure is the central choice.
For more complex requirements, I've tended to create a wrapper around the shutdown that does what is needed, or (unsupported) insert a site-local hook directly into the SHUTDOWN.COM procedure.
If you need get in ahead of the usual SYSHUTDWN.COM in the sequence, some of the "sneaky" (documented) approaches involve trapping the DECnet network shutdown in an application, or using the logical name SHUTDOWN$MINIMUM_MINUTES and then polling for and trapping the SHUTDOWN$TIME logical name or such.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2009 02:09 PM
тАО09-20-2009 02:09 PM
Re: dismounting a shadow set with installed images
Sorry, no short cuts. To dismount the volume, you need to close everything.
Does the rebuild interfere with anything? I'd expect it to be quite fast, since the open files were read only. If you're like most VMS shops your reboot interval should be measured in months, if not years, so is it really a huge issue?
If it causes enough trouble to be bothered with, check out the images involved. If they're small enough, you may be able to move the images onto a RAM drive and install them from there, leaving the shadow set clean, and possibly getting a small performance boost for a small investment in memory.
You would need to hijack the startup procedures for WEBES and Oracle to create the RAM drive, copy images and define logical names.
You don't actually "fix" anything. You're still dismounting a volume with open files, but it's a RAM drive, soon to be vaporised, so it doesn't matter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2009 05:45 AM
тАО09-21-2009 05:45 AM
Re: dismounting a shadow set with installed images
$! SYSHUTDWN.COM
$ set noon
$!
$!
$ set process/privilege=all ! some software doesn't enable authorized privs
.
.
.
$! ** Start WEBES Shutdown - DESTA Director and WCCPROXY
$! ** +
$ if f$search("sys$startup:desta$shutdown.com") .nes. "" then -
@sys$startup:desta$shutdown
$ wccproxy stop
$! ** -
$! ** End of WEBES shutdown
.
.
.
$! ** Start disk dismounting
$! ** +
$! dismount any disks that are possible
$diskloop:
$ disk = f$device(,"disk")
$ if disk .eqs. "" then goto disksdone
$ if disk .eqs. f$getdvi("sys$sysdevice","fulldevnam") then goto diskloop
$ if f$getdvi(disk,"shdw_member") then goto diskloop
$ if .not f$getdvi(disk,"mnt") then goto diskloop
$ if f$getdvi(disk,"transcnt") .gt. 1 then call deinstall "''disk'"
$ if f$getdvi(disk,"transcnt") .eq. 1
$ then
$ write sys$output "Dismounting ''disk'"
$ dismount/nounload 'disk'
$ else
$ write sys$output -
f$fao("!_"),"*** Unable to dismount disk ",disk," - disk still active"
$ endif
$ goto diskloop
$disksdone:
$ show device d
$! ** -
$! ** End disk dismounting
$!
$ exit 1
$!
$!
$!
$deinstall: subroutine ! attempt to locate and remove any INSTALLed images
$ ! %X00000110 => %SYSTEM-W-INSFARG, insufficient call arguments
$ if p1 .eqs. "" then exit ! %X00000110
$ ! %X00000908 => %SYSTEM-W-NOSUCHDEV, no such device available
$ if .not. f$getdvi(p1,"exists")
$ then
$ write sys$output "Unable to deINSTALL images, ''p1' does not exist"
$ exit %X00000908
$ endif
$ target = f$getdvi(p1,"devnam")
$ write sys$output ""
$ write sys$output "Scanning for INSTALLed images on ''target' . . ."
$ write sys$output ""
$ tmpfil := sys$scratch:'f$unique()'.tmp
$ define/user sys$output 'tmpfil'
$ install list
$ count = 0
$ match = 0
$ open/read input 'tmpfil'
$next_image:
$ read/error=nomore_images input record
$ if f$locate(":",record) .ne. f$length(record)
$ then
$ match = 0
$ device = f$getdvi(f$element(0,":",record),"devnam")
$ if device .eqs. target
$ then
$ match = 1
$ location = f$element(0,">",record) + ">"
$ ext = f$element(1,">",record)
$ endif
$ goto next_image
$ endif
$ if .not. match then goto next_image
$ if f$locate(";",record) .eq. f$length(record) then goto next_image
$ filename = f$element(0,";",f$edit(record,"trim"))
$ filespec = location + filename + ext
$ write sys$output " deINSTALLing ''filespec' . . ."
$ install remove 'filespec'
$ count = count + 1
$ goto next_image
$nomore_images:
$ close input
$ delete 'tmpfil';0
$ write sys$output ""
$ if count .ne. 0
$ then
$ write sys$output "''count' images deINSALLed on ''target' . . ."
$ else
$ write sys$output "No INSTALLed images located on ''target' . . ."
$ endif
$ write sys$output ""
$ exit 1
$ endsubroutine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2009 07:42 AM
тАО09-22-2009 07:42 AM