- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- creating swap space
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-14-2004 11:46 AM
04-14-2004 11:46 AM
I have allocated a swap space on /dev/vg00/swap about 12G. Using the command "swapinfo", it's showing up fine.
Under SAM, the primary swap is set to none, and using lvlnboot -v, it says "no swap/dump configured"
I'm trying to do "lvlnboot -s /dev/vg00/swap" and it complains that the LV must be contiguous.
How do I fix this issue?
Thanks
Arnold
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2004 11:51 AM
04-14-2004 11:51 AM
Re: creating swap space
I recommend starting over.
lvremove /dev/vg00/swap
Use sam to add in new swap.
You will be forced to boot after configuration to get swap working, which may be the problem in the first place btw. You might want to check that.
I also favor allocating swap in smaller chunks. Lets say you have 8 GB primary memory, make a priority 0 swap for 4 GB, then a priority 1 for 8 GB. This will give you better light/medium load performance.
Also whatever the size of your swap areas the individual areas themselves need to be contiguous.
If you could elaborate on the process used to create the swap, I could elaborate on the process to correct this situation without starting over.
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-14-2004 11:52 AM
04-14-2004 11:52 AM
Re: creating swap space
Are you trying to add a secondary swap inaddition to the primary one ?
In swapinfo whatelse is showing up ? - Only the pseudo swap (memory) and the /dev/vg00/swap ?
lvlnboot -s lvol2 /dev/vg00
Try the above command.
12 Gigbytes of swap ? - how much is the total RAM you have ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2004 12:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2004 12:03 PM
04-14-2004 12:03 PM
Re: creating swap space
This is what I did. The system came with lvol2 as a swap/dump space, which was small. So I created a different swap (/dev/vg00/swap) and blew away the lvol2. I was thinking that I did not need lvol2 anymore and just used the new swap. i did most of my work using SAM by the way.
After a couple reboots, the machine went up fine, no problem. Doing a swapinfo, it shows up the new swap, and no more lvol2.
I just tried to do lvlnboot -v, and it said no swap/dump space available, which is bad.
So I guess my goal is, to have a primary swap back online.
Thanks a lot
-a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2004 12:46 PM
04-14-2004 12:46 PM
Re: creating swap space
lvlnboot -s swap vg00
From man page:
/usr/sbin/lvlnboot [[-A autobackup] { -b boot_lv | -d dump_lv | -r root_lv | -R | -s swap_lv }] [-v] [vg_name]
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2004 12:48 PM
04-14-2004 12:48 PM
Re: creating swap space
-s swap_lv Define swap_lv to be the primary swap volume the next time the system is booted on the volume group. swap_lv must be a contiguous logical volume, and a root logical volume must have been previously defined with this command.
The command updates the Boot Data Reserved Area of each bootable physical volume in the volume group (see pvcreate(1M) ). Any existing swap area previously defined must be removed via lvrmboot(1M) .
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2004 08:57 PM
04-14-2004 08:57 PM
Re: creating swap space
# lvlnboot -s /dev/vg00/lvol2
lvlnboot: Logical Volume "/dev/vg00/lvol2" must be contiguous
# lvlnboot -s lvol2 vg00
The volume group to which the logical volume "lvol2" belongs
could not be found. The logical volume path is probably wrong.
Thanks
Arnold
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2004 09:07 PM
04-14-2004 09:07 PM
Re: creating swap space
Then hpux -lm (maint mode)
lvcreate -C y -r n -n lvol2 -L
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol
lvlnboot -R /dev/vg00
reboot
once node is up remove the temp lv
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2004 09:09 PM
04-14-2004 09:09 PM
Re: creating swap space
Regds,
Kaps