- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- moving a page and swap file
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
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
тАО12-06-2005 02:46 AM
тАО12-06-2005 02:46 AM
moving a page and swap file
DISK$ALPHA32:[PAGE_SWAP]PAGEFILE_1.SYS;1
I need to rename that disk and use it for another purpose - how to i get rid of this reference or move it to another disk. Openvms 7.3-1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 03:02 AM
тАО12-06-2005 03:02 AM
Re: moving a page and swap file
If the pagefile is currently in use, you will want to make sure that the system startup procedures no longer attempt to install it.
Check to see if the file is in use by doing a SHOW MEMORY/FILE on each node that has access to the disk(all nodes in a cluster if MSCP served).
Next you will want to make sure that the file cannot by found. This can be done by RENAME.
Rename the file to something else like TOBEDELETED.JUNK
If the file was in use and you need to recreate it on another disk, then use SYSGEN to create another file. I usually look for a disk that's got plenty of room and is lightly used in terms of I/O load.
$ MCR SYSGEN CREATE DISK$
Then edit your SYS$MANAGER:SYPAGSWPFILES.COM or other startup procedures/data files to point to the new disk to find the file.
Then reboot whichever system was using the file. After the reboot make sure that the file you are wanting to remove is no longer in use anywhere, and verify that the new one has been installed as a pagefile.
Then you can delete the old file, rename the old disk volume and/or re-init it and do whatever you like.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 03:06 AM
тАО12-06-2005 03:06 AM
Re: moving a page and swap file
You must create a new Pagefile on another disk.
$ MC SYSGEN cre disk:[page_swap]pagefile_1.sys/size=xy
Then You have to change SYS$STARTUP:SYPAGSWPFILES.COM. There You must mount the new disk and You have to install the new Pagefile with
MC sysgen instal disk:[page_swap]pagefile_1.sys/PAGEFILE
Finnaly You will have to reboot Your machine that this changes take effect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 03:11 AM
тАО12-06-2005 03:11 AM
Re: moving a page and swap file
But caveat: if in one of the VMS startup files the disk is referenced in a way to wait for the disk, then first remove the reference.
References may be in either:
sys$manager:syslogicals.com, systartup_vms.com
sys$system:satellite_page.com
sys$system:sypagswpfiles.com
or any file called from them.
To use a pagefile on another disk, don't copy or backup the existing, but create a new one on the other disk with SYSGEN:
$ MCR SYSGEN
Create filespec /CONTIG/SIZE=nblocks
then add the SYSGEN INSTALL command to one of the above files (or modify existing commands to point to the new location).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 03:12 AM
тАО12-06-2005 03:12 AM
Re: moving a page and swap file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 03:15 AM
тАО12-06-2005 03:15 AM
Re: moving a page and swap file
good answers given already.
But DO NOT forget to check your MODPARAMS.DAT for any references! If you find any, remove or adjust them, or you might be in for a nasty surprise sometime in the future!
Success.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 03:15 AM
тАО12-06-2005 03:15 AM
Re: moving a page and swap file
As I recall, there is no way to migrate the pages currently active in a page file to a different page file.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 03:26 AM
тАО12-06-2005 03:26 AM
Re: moving a page and swap file
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 03:43 AM
тАО12-06-2005 03:43 AM
Re: moving a page and swap file
00000000 [PAGE_SWAP]PAGEFILE_1.SYS;1
can I assume at this point that no application is using the pagefile_1.sys file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 03:59 AM
тАО12-06-2005 03:59 AM
Re: moving a page and swap file
no. A process does not handle a page file by opening it, so you can't easily see, which processes are currently using (or having reserved for them) pages in a pagefile.
$ ANAL/SYS
SDA> CLUE MEM/FILES
would at least tell you total size and free blocks, so if both are equal, there is a good chance that SYSGEN DEINSTALL might work.
Consider to first create and install a NEW pagefile, before you try to DEINSTALL the existing one. A reboot certainly helps ;-)
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 04:05 AM
тАО12-06-2005 04:05 AM
Re: moving a page and swap file
you can check the pagefile reference count with SDA:
$ ANAL/SYS
SDA> CLUE MEM/FILES
...
Pagefile (Index 254) Device DSA0:
PFL Address FFFFFFFF.82DC7900 UCB Address FFFFFFFF.82D39580
...
SDA> FORMAT 82DC7900 ! use PFL addr from above
...
FFFFFFFF.82DC7960 PFL$L_REFCNT 0000B5F7
...
If PFL$L_REFCNT is ZERO, there are no references to this pagefile and DEINSTALL should work immediately.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 04:12 AM
тАО12-06-2005 04:12 AM
Re: moving a page and swap file
FFFFFFFF.82297A80 PFL$L_SWPREFCNT 00000000
FFFFFFFF.82297A98 PFL$L_REFCNT 00000000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 04:15 AM
тАО12-06-2005 04:15 AM
Re: moving a page and swap file
looks like ZERO to me as well.
Go ahead and try SYSGEN> DEINSTALL on that pagefile...
Make sure you just didn't look at the FIRST entry shown by CLUE MEM/FILES, as this would be a SWAPFILE entry !
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 04:18 AM
тАО12-06-2005 04:18 AM
Re: moving a page and swap file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 04:22 AM
тАО12-06-2005 04:22 AM
Re: moving a page and swap file
to just give you an indication, that it's not a straightforward and 'easy' procedure to find out, which processes have pages in which pagefile, here are 2 - not very helpful ;-) references to ATW:
http://h71000.www7.hp.com/wizard/wiz_5535.html
http://h71000.www7.hp.com/wizard/wiz_7232.html
The pagefile assignment code has also changed slightly over the recent versions of OpenVMS.
Volker.