Operating System - HP-UX
1832892 Members
2482 Online
110048 Solutions
New Discussion

Re: Swap, VGCreate and Memory

 
SOLVED
Go to solution
Bona_1
Frequent Advisor

Swap, VGCreate and Memory

Hello People,
three questions this time around.
1) How do I increase my swap space? Will a simple lvextend on /vg01/lvol2 be sufficient?

2) How do I check the memory size?

3) (Most Important) I am trying to create more than 10 VGs. Now, I have already increased the maximum VGs parameter to 20, but I seem to be having some problems choosing major and minor numbers. (Mknod command et all). Can anyone assist me as to what major and minor number I can use when I have used the first 10 major and minor groups (0x000000-0x090000)

Thanks
6 REPLIES 6
KapilRaj
Honored Contributor

Re: Swap, VGCreate and Memory

1. No. you will need to have contegious space for this; I have documented this in forums before search for it / use ignite

2. dmesg |grep -i physical

3. 0x000000-0x190000

Regds,

Kaps
Nothing is impossible
KapilRaj
Honored Contributor

Re: Swap, VGCreate and Memory

Sorry missed something in Point No.1 You can add another SWAP lv instead of playing around with Primary swap which is easy and doens'nt need system, to be down

Kaps
Nothing is impossible
Bona_1
Frequent Advisor

Re: Swap, VGCreate and Memory

And How do I do that Kaps? Some hints would be nice. ;-)

Bona
T G Manikandan
Honored Contributor
Solution

Re: Swap, VGCreate and Memory

Leave the primary swap as it is.
Do not push more I/O on the root disk.Also,it is best that the primary swap is kept as minimum as possible,

Now,Just create a new volume on a other disk on the machine and use it as swap.

If you have increased the maxvgs parameter,
0x000000 -0x090000 - 10
0x0a0000 -0x0f0000 - 5
0x100000 - 0x140000 -5
KapilRaj
Honored Contributor

Re: Swap, VGCreate and Memory

If you have space available,

1. Create a logical volume (Recommended same size as the poriomary swap)
2. swapon

Why not do it through sam it would be better if you have'nt worked on commands

Regds,

Kaps
Nothing is impossible
Steve Post
Trusted Contributor

Re: Swap, VGCreate and Memory

3. what comes after
mknod /dev/vgent/group c 64 0x090000 ?

that would be....
mknod /dev/vgent/group c 64 0x0a0000
then 0x0b0000, 0x0c0000, 0x0d0000, 0x0e0000, and 0x0f0000.
Now you need to add a 16th volume group?
that would be...
mknod /dev/vgent/group c 64 0x100000

Note it's 0x##0000. Where ## is a hexidecimal number.

And this assumes you do not exceed the max volume groups allowed per the kernel parameter (whatever it is).

steve