- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Swap Help
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
09-25-2002 07:41 AM
09-25-2002 07:41 AM
I have a new server with 4G swap on /vg00/lvol2. Two internal disks are going to be mirrored. I'd like to make the swap space upto 6G, but sam gives me error like these:
------------------------------
The command used to extend logical volumes, /sbin/lvextend, has
failed. The stderr output from the command is shown below. The
logical volume has not been extended.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol2" could not be extended.
Failure possibly caused by contiguous allocation policy.
---------------------------
As noted, there is no advantage to add 2nd swap on the same disk. But how to add up the size of the primary swap?
Help will be greatly appreciated.
Steven
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2002 07:50 AM
09-25-2002 07:50 AM
SolutionCheck with vgdisplay -v /dev/vg00 and see if there are any free pe's available. Or best way is if you have spare disk try to create secondary swap on that disk.
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2002 08:05 AM
09-25-2002 08:05 AM
Re: Swap Help
You could not extend your swap space probably because of the contiguous allocation policy enforced on /dev/vg00/lvol2. This policy forbids the logical volume to be "fragmented" on the disk. lvol2 is probably "surrounded" by other logical volumes.
One (discouraged) solution would be to remove the contiguous allocation policy on the logical volume. The command is "lvchange -C n /dev/vg00/lvol2", but it's a bad idea, since it would have very bad performance issues.
Another solution is to create one additional 6GB swap volume on the same disk (with a contiguous allocation policy), designate it as the primary swap, and then remove the previous one. That will require a reboot. And don't forget to change the dump device to your new swap space (crashconf -r /dev/vg00/new_lvol) as you will probably remove your former swap volume, which is probably configured as the kernel crash dump device.
Regards,
Olivier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2002 08:23 AM
09-25-2002 08:23 AM
Re: Swap Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2002 05:04 AM
09-26-2002 05:04 AM
Re: Swap Help
#!/bin/ksh
# Defaults
PS3="Please select desired printer: "
fulllist="`cd /etc/lp/interface;ls`"
all_printers ()
{
# This is where your current syntax goes.
# Ex: hpnpadmin ${fulllist} If you can send all devices into the command ?
}
single_printer ()
{
select prtname in ALL Quit ${fulllist}
do
[ "${prtname}" = "Quit" ] && exit 0
if test -n "${prtname}"
then
if test "${prtname}" = "ALL"
then
prtlist="${fulllist}"
else
prtlist="${prtname}"
fi
break
fi
done
# Put the syntax for running the hpnpadmin
# Ex: hpnpadmin ${prtlist}
}
# Main
if test ${#} -ne 0
then
while getopts :s option
do
case ${option} in
s) select_on="Y" ;;
?) echo "Usage: ${0} [<-s>] (-s turns select option on)."
exit 4 ;;
esac
done
fi
[ "${select_on}" = 'N' ] && all_printers || select_printer
exit 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2002 07:18 AM
09-26-2002 07:18 AM
Re: Swap Help
That's a funny answer to our SWAP problem... :o)