- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Urgent! Can I allocate swap on other volume group...
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
Forums
Discussions
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
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
06-12-2001 01:15 AM
06-12-2001 01:15 AM
Urgent! Can I allocate swap on other volume group besides root volume group?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 01:22 AM
06-12-2001 01:22 AM
Re: Urgent! Can I allocate swap on other volume group besides root volume group?
make sure to create the lvol with
-C y -r n
then swapon or add to /etc/fstab.
The only problem you can possibly run into is booting into maintenance modes. Apparently with systems with lots of mem, if pseudoswap id on and additional secondary swap is not activated. You cannot boot at all...
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 01:24 AM
06-12-2001 01:24 AM
Re: Urgent! Can I allocate swap on other volume group besides root volume group?
Yes, you can, if you set it as secondary swap.
/dev/vg00/lvol2 /swap ignore sw,pri=1 0 1 # 2 GB Pri. Swap
/dev/vg09/lvol1 /swap swap sw,pri=2 0 1 # 2 GB Sec. Swap
/dev/vg02/lvol6 ... swap pri=3 0 0
/dev/vg16/lvol1 ... swap pri=1 0 0
This is an extract from /etc/fstab
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 01:34 AM
06-12-2001 01:34 AM
Re: Urgent! Can I allocate swap on other volume group besides root volume group?
If contiguous disk space is not available, you will need to create a new contiguous logical volume for primary swap within the root volume group, the volume group that contains the root logical volume. You do not need to designate a specific disk. For example:
lvcreate -C y -L 48 -r n -n pswap /dev/vgroot
After creating a logical volume that will be used as primary swap, you will need to use lvlnboot (1M):
lvlnboot -s /dev/vgroot/pswap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 01:53 AM
06-12-2001 01:53 AM
Re: Urgent! Can I allocate swap on other volume group besides root volume group?
If you're going to create extra swap by hand (not via SAM), don't forget to increase the maxswapchunks kernel parameter as it determines how much swap space can actually be allocated by the system. If you add secondary swap via SAM, it will prompt you if you want to increase maxswapchunks as well.
Also, it's advisable to make your secondary swap equally big as your primary swap and set the pri option in /etc/fstab to the same value. The OS will then alternately swap to your secondary and primary swap space, which is good for performance if the disks aren't connected to the same SCSI bus.
Regards,
Vincent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 11:00 AM
06-12-2001 11:00 AM
Re: Urgent! Can I allocate swap on other volume group besides root volume group?
The only catch is that you will not be able to use this space as the "dump" space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 11:12 AM
06-12-2001 11:12 AM
Re: Urgent! Can I allocate swap on other volume group besides root volume group?
Please try using SAM , it will do the operation perfectly , if you are not confident doing it from the command line and it is very easy too. Incase you have ONLINE JFS installed then you can do it w/o rebooting the machine.
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 05:04 PM
06-12-2001 05:04 PM
Re: Urgent! Can I allocate swap on other volume group besides root volume group?
#swapinfo -tm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 704 0 704 0% 0 - 1 /dev/vg00/lvol2
dev 704 0 704 0% 0 - 1 /dev/vg13/lvol4
reserve - 546 -546
memory 765 516 249 67%
total 2173 1062 1111 49% - 0 -
But, From lvlnboot I noticed that this secondary swap was not assigned as dump.
Does it mean dump can only reside within root VG? There is some restriction such as swap/dump must be within first 2GB of physical volume. Is that true?
Regarding priority of swap, I run sam to check that the priority of both primary/secondary are set to 1. But how come there is the difference in the following?
# grep swap /etc/fstab
/dev/vg00/lvol2 swap ignore sw 0 0
/dev/vg00/lvol2 ... swap pri=1 0 2 #why 2?
/dev/vg13/lvol4 ... swap pri=1 0 0
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 05:57 PM
06-12-2001 05:57 PM
Re: Urgent! Can I allocate swap on other volume group besides root volume group?
In the shared design, that is correct. Shared means that swap is also used as a dump area. The use of dump space is quite different on 11.0 however.
> Regarding priority of swap, I run sam to check that the priority of both primary/secondary are set to 1. But how come there is the difference in the following?
> # grep swap /etc/fstab
> /dev/vg00/lvol2 swap ignore sw 0 0
> /dev/vg00/lvol2 ... swap pri=1 0 2 #why 2?
> /dev/vg13/lvol4 ... swap pri=1 0 0
SAM has had an annying habit of creating meaningless backup and fsck pass numbers for swap areas. swap areas are normally raw partitions--there is no filesystem. The pri=1 is all there is for swap areas. The rest of the numbers are ignored.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2001 04:54 PM
06-13-2001 04:54 PM
Re: Urgent! Can I allocate swap on other volume group besides root volume group?
e full crashdump." Previous, dump was sharing space with secondary swap(220MB) on root VG. But the sufficient contiguous space is not available. What can I do?
Is there any way to move a disk from one VG into another VG such as root VG?