- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SwapSpace increase
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
тАО02-10-2006 06:58 PM
тАО02-10-2006 06:58 PM
Thanks in advance.
Regards
mehul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 07:20 PM
тАО02-10-2006 07:20 PM
Re: SwapSpace increase
Hi Mehul,
You can create and add a secondary SWAP in the system.
Follow the below procedure...
1. # lvcreate -L 400 -n swap1 -C y -r n /dev/vg00
==> this creates a 400MB contigous lv called swap1 in vg00 with bad block reallocation turned off
2. # swapon -p 1 /dev/vg00/swap1
==> enable swap with priority 1.
3. # swapinfo -ta
==> check to see if added swap is enabled.
# vi /etc/fstab
....
/dev/vg01/swap2 ... swap pri=1
==> this makes the change persistent accross reboots,
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 08:13 PM
тАО02-10-2006 08:13 PM
Re: SwapSpace increase
We have already swapspace of 6GB installed and this can be shown from the following output and I would like to add an addtional 3GB space on existing one.
# swapinfo -atm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 6144 47 6097 1% 0 - 1 /dev/vg00/lvol2
reserve - 3672 -3672
memory 2315 451 1864 19%
total 8459 4170 4289 49% - 0 -
Thanks in advance.
Waiting for your prompt response.
Regards,
Mehul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 08:19 PM
тАО02-10-2006 08:19 PM
Re: SwapSpace increase
easiest way though will be using SAM.
SAM Areas:
Disks and File Systems:
SWAPS
You may as well create additional new swaps!
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 10:41 PM
тАО02-10-2006 10:41 PM
Re: SwapSpace increase
You can not easily put more space to you exicting swap.
This is because it's a LV put in place when you install your OS and there for it's protected with a sxtrict allocation policy.
There are ways to go by it but it's not recommanded. There for it's beter to add additional swap as explained. Or ignite your system and make your swap space bigger at the beginning.
Alse when you add additional swap make the kernel change
swapmem=0
tp swapmem=1
Also a document about swap and pseudoswap.
I found it very helpfull.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 10:41 PM
тАО02-10-2006 10:41 PM
Re: SwapSpace increase
You can not easily put more space to you exicting swap.
This is because it's a LV put in place when you install your OS and there for it's protected with a sxtrict allocation policy.
There are ways to go by it but it's not recommanded. There for it's beter to add additional swap as explained. Or ignite your system and make your swap space bigger at the beginning.
Alse when you add additional swap make the kernel change
swapmem=0
tp swapmem=1
Also a document about swap and pseudoswap.
I found it very helpfull.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 10:53 PM
тАО02-10-2006 10:53 PM
Re: SwapSpace increase
Regards,
Mehul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 10:55 PM
тАО02-10-2006 10:55 PM
Re: SwapSpace increase
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 10:58 PM
тАО02-10-2006 10:58 PM
Re: SwapSpace increase
You can do it through sam.
But i'm a prompt geek. i like to do it through the prompt. But no problems to do it by sam.
grtz. mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2006 03:23 PM
тАО02-16-2006 03:23 PM
Re: SwapSpace increase
$lvlnboot -v /dev/vg00
This will display the current root and swap volumes
(Note: lvol2 is the default primary swap.)
$ lvrmboot -s /dev/vg00
# remove the swap link to the current primary swap.
REBOOT the system into lvm maintenance mode:
$ shutdown -r 0
# reboot
at ISL> boot -lm (;0)/stand/vmunix
$ lvextend -L 12000 /dev/vg00/lvol2 # YYY is new size of lvol
$ lvlnboot -s lvol2 /dev/vg00
# recreate a swap link with the lvol.
$ lvlnboot -R /dev/vg00
# to relink everything
$ shutdown -r 0
# reboot
We have already a enough free space of 15GB in dev/vg00 but surprisingly enough I was unable to extend logical volume giving error message as there is no contigious space.Is it a fragmentation problem.
Pl, guide me in this regard
Thanks
Mehul