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

Removing page and swap files

 
SOLVED
Go to solution
John A. Beard
Regular Advisor

Removing page and swap files

Hi folks,

I currently have secondary page and swap files mapped to a local scsi drive. I need the disk for other purposes (image restore from another disk).

Is there any way of removing them without eventually going through the process of rebooting, or are they active as long as the system remains up.

Process name PID File name
00000000 [000000]INDEXF.SYS;1
00000000 [PAGE_SWAP]PAGEFILE2.SYS;1
00000000 [PAGE_SWAP]SWAPFILE2.SYS;1
Glacann fear críonna comhairle.
12 REPLIES
Ian Miller.
Honored Contributor
Solution

Re: Removing page and swap files

SYSGEN DEINSTALL will prevent any new use and when all the processes that are using the files have gone they should be closed.
____________________
Purely Personal Opinion
John A. Beard
Regular Advisor

Re: Removing page and swap files

Thanks Ian...

What method can I use to verify when activity on those files has ceased.

I'm assuming once verified I can just use sysgen to create them on another volume of choice.
Glacann fear críonna comhairle.
John A. Beard
Regular Advisor

Re: Removing page and swap files

Sorry Ian...should have mentioned that I only want to remove the secondary files, not the primary ones (which is probably obvious)
Glacann fear críonna comhairle.
John A. Beard
Regular Advisor

Re: Removing page and swap files

reference by index?
Glacann fear críonna comhairle.
Hoff
Honored Contributor

Re: Removing page and swap files

Your OpenVMS uptime requirements seem to conflict with your available hardware.

Order up some (used) storage hardware while you're fixing this with the deinstallation and with rolling processes into other files.

Roll any dinky SCSI disks (eg: anything smaller than 72 GB) to larger spindles, and/or add a SCSI disk shelf. Or add a shelf on the SAN, if you have one of those.

John A. Beard
Regular Advisor

Re: Removing page and swap files

Hi Hoff...

I know I should have explained a few additional points beforehand. We are upgrading our EVA soon and I was asked to make a copy of the boot disk (on the SAN) to the local drive DKA0:

This was deemed appropriate because in the event of a SAN upgrade catastophic failure at the disk level we would need to access our backup data which is held on TSM.
Glacann fear críonna comhairle.
Hoff
Honored Contributor

Re: Removing page and swap files

If the consistency of the system disk device contents are a consideration and an issue for your organization, then you'll want to boot and create the copy standalone; by booting another disk and using BACKUP from a quiescent device.

The online stuff is good for creating the impression of a recovery path. I've patched together online BACKUPs and gotten the results to boot, but the online approach and the recovery process can sometimes be problematic; there can be data loss with the approach.

The backing storage assignment for a process page is visible via SDA> SHOW PROCESS /PAGE and the "Bak" column, if you're into brute-force.
John A. Beard
Regular Advisor

Re: Removing page and swap files

Appreciate the advice....

Maybe we have just got a little too complacent with having got away with it on all the VMS boxes here at some point in the past.
Glacann fear críonna comhairle.
Hoff
Honored Contributor

Re: Removing page and swap files

>Maybe we have just got a little too complacent with having got away with it on all the VMS boxes here at some point in the past.

When recovering from online backups and my "favorite" /IGNORE=INTERLOCK switch (my previous rants, err, comments on this switch are easy to locate), the most common case tends to be a gronked queue database; entries tend to get lost or stuck.

Whether and what other stuff tends to gets slammed depends on what you're doing on the particular disk; look for stuff with open files and moderate application-level caching or with frequent and multi-part I/O writes and for transactional stuff, as a start.

If the applications happen to be quiescent or can be convinced to be quiescent, you're good to go.

If not, well...
John A. Beard
Regular Advisor

Re: Removing page and swap files

Thank you Ian and Hoff for the info...
Glacann fear críonna comhairle.
RBrown_1
Trusted Contributor

Re: Removing page and swap files

You asked "What method can I use to verify when activity on those files has ceased."

Many years ago Bruce Ellis's _Hitch Hiker's Guide to VMS_ had some code to identify which processes where using each pagefile.

In my experience there was always some process (or VMS itself) using that could not be gotten rid of using the pagefile that I wanted to stop using.
Ian Miller.
Honored Contributor

Re: Removing page and swap files

The page and swap files will be deinstalled when no process is using them.

There is a SDA Extension called PF$SDA which tries to show which processes are using a specified page file. It is on Freeware V8 and
on my freeware page
http://eisner.encompasserve.org/~miller/

The information in the Bruce Ellis book is out of date for current VMS.
____________________
Purely Personal Opinion