HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Adding Secondary Swap File
Operating System - HP-UX
1827808
Members
2893
Online
109969
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-11-2004 01:45 AM
10-11-2004 01:45 AM
Adding Secondary Swap File
Hi there --
I am going to be adding an external drive to a Visualize C class system running 10.20. I plan on making a portion of the new disk, 1 GB, a secondary swap partition. My plan is to use SAM to complete this task. Is there anything in particular I should look for in SAM? Thanks.
I am going to be adding an external drive to a Visualize C class system running 10.20. I plan on making a portion of the new disk, 1 GB, a secondary swap partition. My plan is to use SAM to complete this task. Is there anything in particular I should look for in SAM? Thanks.
A Journey In The Quest Of Knowledge
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 01:50 AM
10-11-2004 01:50 AM
Re: Adding Secondary Swap File
Why exactly you are adding the swap space?? How much RAM you have?? and what is the swap space configured???
If enought swap space is configured, whay would one add secondary swap??
In case you still want to add it, the procedure is simple. Create a lvol.
lvcreate -L xxxM -Cy -r N /dev/vgxx
Add the line to the /etc/fstab
/dev/vgxx/lvolx ... swap pri=x 0 0
The priority can be set as you want. If you want to use secndary swap first, set the priority lower than the primary swap.
Anil
If enought swap space is configured, whay would one add secondary swap??
In case you still want to add it, the procedure is simple. Create a lvol.
lvcreate -L xxxM -Cy -r N /dev/vgxx
Add the line to the /etc/fstab
/dev/vgxx/lvolx ... swap pri=x 0 0
The priority can be set as you want. If you want to use secndary swap first, set the priority lower than the primary swap.
Anil
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 01:59 AM
10-11-2004 01:59 AM
Re: Adding Secondary Swap File
Hi Andrew,
Nothing in particular.
Just go to the Disks and File Systems section.
Then into Volume Groups -> Actions -> Create and choose the new disk, give the VG a name, optionally modify the defaults (do this if any more larger disks may be added to the VG). Then in this screen you can also create the new swap LV (Just make sure you define it as a swap device). That's all there is to it.
Of course it's usually faster from the command line - as follows:
pvcreate /dev/rdsk/cXtYdZ #(Use the appropriate new disk device)
vgcreate vg_name /dev/dsk/cXtYdZ
lvcreate -L 1000 -n lv_name vg_name
Edit the /etc/fstab & insert the following
/dev/vg_name/lv_name ... swap pri=0 0 0
Then run
swapon -a
NOTE: You may have to increase one of the following kernel parms to use more swap:
maxswapchunks
swchunk
Either/or will require a kernel rebuild & reboot.
HTH,
Jeff
Nothing in particular.
Just go to the Disks and File Systems section.
Then into Volume Groups -> Actions -> Create and choose the new disk, give the VG a name, optionally modify the defaults (do this if any more larger disks may be added to the VG). Then in this screen you can also create the new swap LV (Just make sure you define it as a swap device). That's all there is to it.
Of course it's usually faster from the command line - as follows:
pvcreate /dev/rdsk/cXtYdZ #(Use the appropriate new disk device)
vgcreate vg_name /dev/dsk/cXtYdZ
lvcreate -L 1000 -n lv_name vg_name
Edit the /etc/fstab & insert the following
/dev/vg_name/lv_name ... swap pri=0 0 0
Then run
swapon -a
NOTE: You may have to increase one of the following kernel parms to use more swap:
maxswapchunks
swchunk
Either/or will require a kernel rebuild & reboot.
HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 02:00 AM
10-11-2004 02:00 AM
Re: Adding Secondary Swap File
We currently have to little swap set up and there is no additional filesystem space available to add to the primary swap file. Consequently, the move to add the external drive and make it a secondary swap file.
A Journey In The Quest Of Knowledge
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP