- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to set swapinfo on disk
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
тАО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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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