- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- how to set swapinfo on disk
-
- Forums
-
Blogs
- Hybrid Cloud
- Edge
- Data & AI
- Working in Tech
- AI Insights
- Alliances
- Around the Storage Block
- Behind the scenes at Labs
- Careers in Tech
- HPE Storage Tech Insiders
- Inspiring Progress
- IoT at the Edge
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Russia
- HPE Blog, UK & Ireland
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-25-2010 03:19 AM
11-25-2010 03:19 AM
My server has little RAM and swap spaces and coz of these my oracle databases gives error. I decided to increase my swap area by using disk arrays space. I created new Vdisk(24Gb) on EVA and presentationed to my server. The number should be - disk33. SAM shows me following information (on attached file).
What should i do now? how to set this value to my server? I read these articles and aren't clear properly. I'm afraid do mistake, because it's production server. Also i need no rebooting.
thanks,
Rustam.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-25-2010 03:37 AM
11-25-2010 03:37 AM
Re: how to set swapinfo on disk
Hope this will help you.
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1452958
Regards,
Ani
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-25-2010 03:47 AM
11-25-2010 03:47 AM
Re: how to set swapinfo on disk
You forgot to attach it.
What HP-UX version are you using?
SAM should be able to allocate swap on that new device.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-25-2010 03:48 AM
11-25-2010 03:48 AM
Re: how to set swapinfo on disk
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-25-2010 03:51 AM
11-25-2010 03:51 AM
Re: how to set swapinfo on disk
http://hpux-guides.blogspot.com/2009/02/2-ways-to-increase-swap-space.html
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-25-2010 03:52 AM
11-25-2010 03:52 AM
Re: how to set swapinfo on disk
I'm not sure if SMH is showing your new disk?
The highlighted lvol2 seems like your existing swap.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-25-2010 03:54 AM
11-25-2010 03:54 AM
Re: how to set swapinfo on disk
Ani, so i have to create second swap area? should i use lvcreate and then swapon commands? is it safe?
# lvcreate -C y -r n -L 32768 -n lvolN /dev/vgXX
# swapon -p /dev/vgXX/lvolN
will be my command like this:
#lvcreate -C y -r n -L 32768 -n lvolN /dev/disk33
# swapon -p /dev/vgXX/lvolN
lvolN - where can i find\determine N?
Dennis,
my OS version 11.3
regards,
Rustam
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-25-2010 04:12 AM
11-25-2010 04:12 AM
Re: how to set swapinfo on disk
It might be safer if you can get SMH do do everything for you. Is there a builtin task for this?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-25-2010 04:17 AM
11-25-2010 04:17 AM
Re: how to set swapinfo on disk
#lvcreate -L "xxM" -C y -r n /dev/vgxx
Add swap as,
#swapon -f /dev/vgXX/myswap
then edit fstab
/dev/vgxx/lvolx . swap pri=x 0 0
[Swap must be contiguous. lvcreate must have parameter "-C y".
-f - very important, forces swapon to use the whole logical volume, because if there once a filesystem and lvol, it will recognize it and use the space that left after the FS.
]
I have not worked on 11.31.DEnnis, pls correct me if i am wrong.
Regards,
Ani
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-25-2010 04:30 AM
11-25-2010 04:30 AM
SolutionYou can choose to use device swap, or file system swap.
To enable device swap, run the command below:
"swapon /dev/disk/disk33"
To enable file system swap, create a file system within the logical volume, turn on swap as below:
"newfs -F {vxfs/hfs} /dev/vgoo/lvol2"
"swapon /dev/vgoo/lvol2"
You can notice in your output that the logical volume /dev/vgoo/lvol2 does not have a mount point. After enabling swap, create a mount point for the logical volume as below:
"mkdir /swap2"
"mount /dev/vgoo/lvol2"
Recall that this mount point will not be available after a reboot. To make it permanent, make an entry in the /etc/fstab file as below:
"vi /etc/fstab"
add this line
"/dev/vgoo/lvol2 /swap2 swap defaults 0 0"
save and quit: issue the "mount -a" command to re-read the file into the system.
Regards,
Emmanuel
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP