- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need to Add secondary 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
Forums
Discussions
Discussions
Discussions
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
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
04-29-2009 06:12 AM
04-29-2009 06:12 AM
Need to Add secondary swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 06:25 AM
04-29-2009 06:25 AM
Re: Need to Add secondary swap
you can check it through vgdisplay command, before that you should know how much vg are there in your system,
1) strings /etc/lvmtab
this will list out all vg info with physical Hdd path,
2) vgdisplay vgname
this will show you the vg info and also show you how much PE is available there.
3)if you want to add another disk then you have few options
a) add new disk in existing VG and extend existing VG
once you extend you can create new logical volume and swap,
hope this will help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 06:25 AM
04-29-2009 06:25 AM
Re: Need to Add secondary swap
Secondary swap can be on any disk with free PE's.
http://docs.hp.com/en/B2355-90950/ch06s03.html
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 06:31 AM
04-29-2009 06:31 AM
Re: Need to Add secondary swap
Thanks for the reply, its helpful. Going back to the commands 'vgdisplay' and strings /etc/lvmtab, I have ran these commands, the 'vgdisplay' output shows that ther are 3 VG's but no PE left on any of them, so I'm trying to find if there is a unused disk on the server which i could add to the existing VG. I dont know how to find this part out, strings /etc/lvmtab shows alot, but i'm not quite sure on what to look for to see which disk is unused.. ?? pls advise .. thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 06:51 AM
04-29-2009 06:51 AM
Re: Need to Add secondary swap
Dear Friend
if u want to check the space availabe in a volume group u can use vgdisplay then volume group name
if u want to see any physical disk is availabe in system but not used
u can use ioscan -funC disk if u are seeing
there is unclaimed disk that means it is not used ok
in volume group once u put the command
vgdisplay then volume group
u can see free physical extent colume multiply with that 4 because each physical extent size is 4 mb
which means 4* free physical extent is free physical extent in that volume group.
lvcreate -C -L size-inMB -n swapname /dev/vgxx
if want to activate swap
use swapon -a command
if u want permanently
make an entry in /etc/fstab file
thanks and regards
Sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 06:57 AM
04-29-2009 06:57 AM
Re: Need to Add secondary swap
Thanks Sajjad. From running 'ioscan -funC disk', I see every disk has 'CLAIMED' on it, so i guess none are available. Is there any aother way around this to increase swap?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 07:03 AM
04-29-2009 07:03 AM
Re: Need to Add secondary swap
use vgdisplay -v to see the used physical volume (disk)by volume groups.
use ioscan -fnkC disk to list disk attached to the machine..
then reduce the disk those who listed on pvdisplay from ioscan...
totaldisk - useddisk = unuseddisk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 07:15 AM
04-29-2009 07:15 AM
Re: Need to Add secondary swap
Hi Blu, Thanks for the reply, WOuld you be able to explian further in details/commands which need to be run as to the below comments,
"use vgdisplay -v to see the used physical volume (disk)by volume groups.
use ioscan -fnkC disk to list disk attached to the machine..
then reduce the disk those who listed on pvdisplay from ioscan..
totaldisk - useddisk = unuseddisk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 10:07 AM
04-29-2009 10:07 AM
Re: Need to Add secondary swap
What Blu wanted to say is that you should run vgdisplay -v
You can also find that information by doing strings /etc/lvmtab. For each entries after /dev/vgxx will list a disk used for that vg.
Also, cat /etc/fstab will list the disk used for a filesystem (if any).
After you've done that, do the ioscan command and select a disk that wasn't listed in previous command. Don't forget that swap space must be continuous. You won't be able to extend your lvol currently used just by adding a disk in you vg00. There are other solutions if you're running on 11.31
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 10:19 AM
04-29-2009 10:19 AM
Re: Need to Add secondary swap
it is very easy
check each volume group
in which volume group u want swap tell us
vgdisply -v /dev/vg##
check space
u know how
see my previous thread
if space there u can create swap space in this volume group
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 10:39 PM
04-29-2009 10:39 PM
Re: Need to Add secondary swap
kctune swchunk=
swchunk values
default = 2048
Recommended for oracle based DB = 4096
MAX = up to 65536 for large RAM
reboot
shutdown -r -y 0
1.pvcreate /dev/rdsk/c29t7d0
2.vgextend /dev/vgswap /dev/dsk/29t7d0
3.lvcreate -L 8192 -n swap2 /dev/vgswap
4.swapon /dev/vgswap/swap2
add the additional swap into /etc/fstab as well so it gets activated automatically at boiot time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 04:24 AM
04-30-2009 04:24 AM
Re: Need to Add secondary swap
Thanks to everyone who has replied, appreciate your help.
The position I face currently is that by running vgdisplay and strings /etc/lvmtab and ioscan commands all indicate that there is no free disk, all are being used.
So from this, Would you guys suggest to buy another disk ? or perhaps buy some more RAM memory ? or is there another way with the current disks ? Sorry If i'm going over any previous points, But this is my current position I'm facing.. thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 05:34 AM
04-30-2009 05:34 AM
Re: Need to Add secondary swap
since you dont have any free space in your vg you can not create new logical volume mean you can not create secondary swap area in this server
my suggestion you can buy new hdd and extend existing vg.
you may can buy RAM but again once you will increase RAM you should have to increase swap accordingly,
Please assign points for all reply, thanks,