- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reduce the size of Primary Swap
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
тАО01-08-2002 08:24 PM
тАО01-08-2002 08:24 PM
I would like to reduce the size of the primary swap space which is too large (2048MB) and I just want to split it into 2 physical disk to gain the performance. Therefore reduce the Primary to 1024 and then add another secondary swap 1024. By the way, my machine L1000 is equipped 1024MB RAM
Are there anyways to accomplish this? Thanks,
Chris,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2002 08:57 PM
тАО01-08-2002 08:57 PM
SolutionFirst, ensure that swapmem_on is set to "1" to enable psuedo swap:
sysdef | grep swapmem_on
Next, verify that there is a good backup of the root volume group:
lvlnboot -v /dev/vg00
Record the logical volume name information. Then backup a copy of
the vg00 configuration:
vgcfgbackup -f [filename] /dev/vg00
Finally, follow the procedure below to reduce swap dump.
A. Boot Psuedo-SWAP for decreasing size of Primary SWAP:
1. Display the current root and swap volumes:
lvlnboot -v /dev/vg00
Note: lvol2 is the default primary swap.
2. Remove the swap and dump link to the current primary swap.
lvrmboot -s /dev/vg00
lvrmboot -d /dev/vg00/lvol2
B. Reboot the system into LVM maintenance mode:
1. Reboot:
a. shutdown -ry 0
b. at ISL> hpux -lm (;0)/stand/vmunix
2. vgchange -a y vg00
3. lvreduce -L XXX /dev/vg00/lvol2
Note: XXX is the new size of lvol.
4. Recreate a swap and dump link with the lvol:
lvlnboot -s lvol2 /dev/vg00
lvlnboot -d lvol2 /dev/vg00
5. Relink:
lvlnboot -R /dev/vg00
6. Reboot:
shutdown -ry 0
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2002 08:58 PM
тАО01-08-2002 08:58 PM
Re: Reduce the size of Primary Swap
It is a good idea. However before creating the secondary swap, make sure it is on another disk otherwise there is no point.
This procedure can also be used to extend /stand file system. Go ahead if you want by removing lvol2, extend stand and then recreate lvol2.
***Make sure you have a make_recovery tape prior to following the procedure****
This is basically from Resource Center DocID: KBRC00004288
//start
PROBLEM
What is the procedure to reduce primary swap on the system?
RESOLUTION
First, ensure that swapmem_on is set to "1" to enable psuedo swap:
sysdef | grep swapmem_on
Next, verify that there is a good backup of the root volume group:
lvlnboot -v /dev/vg00
Record the logical volume name information. Then backup a copy of
the vg00 configuration:
vgcfgbackup -f [filename] /dev/vg00
Finally, follow the procedure below to reduce swap dump.
A. Boot Psuedo-SWAP for decreasing size of Primary SWAP:
1. Display the current root and swap volumes:
lvlnboot -v /dev/vg00
Note: lvol2 is the default primary swap.
2. Remove the swap and dump link to the current primary swap.
lvrmboot -s /dev/vg00
lvrmboot -d /dev/vg00/lvol2
B. Reboot the system into LVM maintenance mode:
1. Reboot:
a. shutdown -ry 0
b. at ISL> hpux -lm (;0)/stand/vmunix
2. vgchange -a y vg00
3. lvreduce -L XXX /dev/vg00/lvol2
Note: XXX is the new size of lvol.
4. Recreate a swap and dump link with the lvol:
lvlnboot -s lvol2 /dev/vg00
lvlnboot -d lvol2 /dev/vg00
5. Relink:
lvlnboot -R /dev/vg00
6. Reboot:
shutdown -ry 0
//END
If anything unexpected happens, boot through ignite tape and change the primary swap during the installation process.
Good luck.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2002 09:39 PM
тАО01-08-2002 09:39 PM
Re: Reduce the size of Primary Swap
Try this link,
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=1f0f7a0e07899f58b4/screen=ckiDisplayDocument?docId=200000053868348
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2003 07:59 AM
тАО03-16-2003 07:59 AM
Re: Reduce the size of Primary Swap
This step is wrong:
2. Remove the swap and dump link to the current primary swap.
lvrmboot -s /dev/vg00
lvrmboot -d /dev/vg00/lvol2
it should be:
2. Remove the swap and dump link to the current primary swap.
lvrmboot -s /dev/vg00
lvrmboot -d /dev/vg00/lvol2 /dev/vg00