Solved

AIX - Paging space assistance

Posted on 2012-04-11
25
2,104 Views
Last Modified: 2012-04-19
Need assistance with manipulating the paging space on a server. I currently have 82G of paging space on an internal disk. I need to create new paging space lv on the new san disk and allocate 82G to it. Then change the paging space to 1G located on a local disk. Not sure the correct oder that this needs to been done, I do not want this server to start paging and send alerts out.

root@server[/]# lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type
paging00        hdisk2            rootvg       16384MB    15   yes   yes    lv
hd6             hdisk2            rootvg       65536MB     4   yes   yes    lv

root@server[/]# lspv hdiskpower21
0516-320 : Physical volume hdiskpower21 is not assigned to
        a volume group.
0
Comment
Question by:AIX25
  • 13
  • 12
25 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 37834599
What are you trying to achieve by placing a new PS on a SAN disk and reducing the existing PS
by nearly the size of the new one?

This will just move your paging activity away from the internal hdisk2, but will not reduce paging rates.
Moreover, the utilization of your existing paging spaces doesn't seem very elevated.

Anyway.

Since hdiskpower21 is not a member of a VG we should best create a new VG.
If we use this new VG exclusively for paging we could use up the whole disk, or do you want to place other things there as well?

I will show you how to create this VG, how to place a PS of your desired size on it and how to shrink the existing PSs.

1) mkvg -s 256 -y pagingvg hdiskpower21

2) mkps -s 328 -n -a pagingvg

In order to shrink the existing paging spaces we must know the partition size of rootvg.
As a first step we will remove paging00

3) rmps paging00

Please find out the PP size of rootvg, then use this size to calculate how many PPs to remove
so that 1 GB would remain (I'll call this number "n" below).

4) chps -d n hd6

This step will take quite a lot of time!

Please keep in mind that hd6 must continue to exist, of which size ever!

wmp
0
 

Author Comment

by:AIX25
ID: 37834853
I'm getting this error:

root@server[/]# mkvg -s 256 -y pagingvg hdiskpower21
pagingvg
0516-013 /usr/sbin/varyonvg: The volume group cannot be varied on because
        there are no good copies of the descriptor area.
0516-862 mkvg: Unable to create volume group.
root@server[/]#

What are you trying to achieve by placing a new PS on a SAN disk and reducing the existing
PS by nearly the size of the new one?

Right now, we currently have a bunch of processes turned off. We know it probably won't give us significant performance change, but it will help once we turn on the processes and will have more space to expand our ps if needed, where on our current internal disk, its full.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37834906
Seems that hdiskpower21 is not actually accessible!

What's the output of lsvg -p pagingvg ?

What does lqueryvg -Atp hdiskpower21 say?

Do you get a PVID with lspv |grep hdiskpower21 ?

What do you get with lspv hdiskpower21 ?
0
 

Author Comment

by:AIX25
ID: 37834972
root@server[/]# lsvg -p pagingvg
0516-306 : Unable to find volume group pagingvg in the Device
        Configuration Database.
root@server[/]#

root@server[/]# lqueryvg -Atp hdiskpower21
0516-320 lqueryvg: Physical volume hdiskpower21 is not assigned to
        a volume group.
Max LVs:        256
PP Size:        28
Free PPs:       400
LV count:       0
PV count:       1
Total VGDAs:    2
Conc Allowed:   0
MAX PPs per PV  1016
MAX PVs:        32
Quorum (disk):  1
Quorum (dd):    1
Auto Varyon ?:  1
Conc Autovaryo  0
Varied on Conc  0
Physical:       0007bcbbfddf3b33                2   0
Total PPs:      400
LTG size:       128
HOT SPARE:      0
AUTO SYNC:      0
VG PERMISSION:  0
SNAPSHOT VG:    0
IS_PRIMARY VG:  0
PSNFSTPP:       4352
VARYON MODE:    ???????
VG Type:        0
Max PPs:        32512
root@server[/]#

root@server[/]# lspv |grep hdiskpower21
hdiskpower21    0007bcbbfddf3b33                    None
root@server[/]#

root@server[/]# lspv hdiskpower21
0516-320 : Physical volume hdiskpower21 is not assigned to
        a volume group.
root@server[/]#
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37835054
Has this disk been in use by some other volume manager?

Try chpv -C hdiskpower21

If this doesn't return an error retry the mkvg operation using the "-f" flag:

mkvg -f -s 256 -y pagingvg hdiskpower21
0
 

Author Comment

by:AIX25
ID: 37835080
root@server[/]# chpv -C hdiskpower21
root@server[/]#
root@server[/]# mkvg -s 256 -y pagingvg hdiskpower21
pagingvg
0516-013 /usr/sbin/varyonvg: The volume group cannot be varied on because
        there are no good copies of the descriptor area.
0516-862 mkvg: Unable to create volume group.

It didn't return no errors when I ran the chpv command.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37835088
You should retry mkvg with the "-f" flag.

I'm really unsure what happens here. Do you see any messages with "errpt"?
0
 

Author Comment

by:AIX25
ID: 37835111
root@server[/]# mkvg -f -s 256 -y pagingvg hdiskpower21
pagingvg
0516-013 /usr/sbin/varyonvg: The volume group cannot be varied on because
        there are no good copies of the descriptor area.
0516-862 mkvg: Unable to create volume group.
root@server[/]#
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37835132
There's something badly wrong with this particular disk.

lqueryvg says there are 2 VGDAs (which is normal and sufficient),
but varyonvg complains about "no good copies".

Did you try "errpt"?

I'd suggest removing hdiskpower21: rmdev -dl hdiskpower21
and let the system rediscover it: cfgmgr

Any messages/errors?
0
 

Author Comment

by:AIX25
ID: 37839767
Finally got it working.

Now I ran into this error:

root@server[/]# mkps -s 328 -n -a pagingvg
Paging space limit exceeded. Please specify smaller size.
root@server[/]#
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37839925
How did you get it to work?

As for the error - I forgot that there is a paging space size limit of 64 GB per device.

So, with the configured PP size of 256 the limit is 256 PPS.

mkps -s 256 -n -a pagingvg

Since your disk is probably bigger - how about placing your dump device there?
I/O to dump devices only takes place in case of a crash, so the activity of the dump device will not interfere with paging activity.
0
 

Author Comment

by:AIX25
ID: 37839962
I rmdev'ed hdiskpower21 and hdisk multipaths associated with it, then emc_cfgmgr.

Next error:
root@server[/]# rmps paging00
0517-062 rmps: Paging space paging00 is active.
0517-061 rmps: Cannot remove paging space paging00.

I can't move the dump device. The request was for only ps.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37839986
Seems I had an off day yesterday.

Deactivate the paging space with

swapoff paging00

then proceed with rmps.
0
 

Author Comment

by:AIX25
ID: 37839997
root@server[/]# swapoff paging00
0517-081 swapoff: Cannot deactivate paging space paging00.
: A file or directory in the path name does not exist.
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
ID: 37840021
Oh boy. It must have been years since I had to do stuff like this.

swapoff /dev/paging00

of course.
0
 

Author Comment

by:AIX25
ID: 37840107
Ok, I ran sawoff /dev/paging00. But, its still hanging at the prompt. Not sure if that takes a long time. Whats the next step?
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
ID: 37840138
Yes, swapoff can take some time, because the contents of paging00 must be moved to other spaces.

Next step is rmps paging00

Did you run mkps successfully in the meantime? If so, you can  proceed with shrinking hd6.

Do an lsps -a beforehand. You should see 2 spaces, hd6 and paging01 of 64 GB each.

Did you already calculate the number of PPs to remove?
0
 

Author Comment

by:AIX25
ID: 37840149
root@server[/]# lsvg -p rootvg
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk2            active            546         93          00..00..00..64..29

root@server[/]# lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type
paging01        hdiskpower21      pagingvg     65536MB     1   yes   yes    lv
hd6             hdisk2            rootvg       65536MB     4   yes   yes    lv
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37840175
Perfect.

What is the PP size of rootvg? "lsvg rootvg", the value next to "PP SIZE:"

Subtract the number of MBs (in multiples of the PP size) you'd like to keep in hd6 from 65536,
divide the result by the PP size. That's the number of PPs to remove.

Use this number "x" in

chps -d x hd6
0
 

Author Comment

by:AIX25
ID: 37840257
I think I accidently removed the paging space on hd6? Did I just create myself a new problem? Please help me get hd6 back to normal

root@server[/]# lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  0007bcbb0000d6000000011a9710da69
VG STATE:           active                   PP SIZE:        256 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1092 (279552 megabytes)
MAX LVs:            256                      FREE PPs:       218 (55808 megabytes)
LVs:                17                       USED PPs:       874 (223744 megabytes)
OPEN LVs:           16                       QUORUM:         1 (Disabled)
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        no
MAX PPs per VG:     32512
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable

root@server[/]# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk3            active            546         125         00..00..00..64..61
hdisk2            active            546         93          00..00..00..64..29

root@server[/]# bootinfo -s hdisk2
140013
root@txcdbsnwh005[/]# chps -d 200 hd6
shrinkps: Temporary paging space paging00 created.

shrinkps: Paging space hd6 removed.

root@server[/]# lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type
paging01        hdiskpower21      pagingvg     65536MB     1   yes   yes    lv
paging00        hdisk3            rootvg       14336MB     1   yes   yes    lv
hd6             hdisk2            rootvg       14336MB     0    no    no    lv
root@server[/]#
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37840267
Did you interrupt the chps process??

chps would have created hd6 anew.
0
 

Author Comment

by:AIX25
ID: 37840292
No, I did not interrupt it. I opened another terminal and ran the lsps -a. Paging00 must have been a temp one. Here is my new output:

root@server[/]# lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type
paging01        hdiskpower21      pagingvg     65536MB     1   yes   yes    lv
hd6             hdisk2            rootvg       14336MB     1   yes   yes    lv
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37840314
Of course paging00 was temporary. AIX told you so:

shrinkps: Temporary paging space paging00 created.

Now you have hd6 on rootvg with 14 GB and the new paging01 with 64 GB on pagingvg.

It think this is (roughly) what you desired.
0
 

Author Comment

by:AIX25
ID: 37843359
I would like to have 82G on pagingvg and 1G on hd6. Can you assit...never worked with ps before.
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
ID: 37843539
OK,

so you'll need a second paging device of 18 GB on pagingvg, and you'll have to shrink hd6 further.

mkps -s 72 -n -a pagingvg

( 18 GB = 256 MB PP size * 72 PPs ). The new space will be named paging00 (since this name is now "free").

When the above command has finished verify the result with "lsps -a", then:

chps -d 52 hd6

hd6 is now 14 GB, so we must remove:
(current size in GB - desired size in GB) * ( 1024 / PP size ):
 (14 -1) * (1024 / 256 ) = 52

Please don't panic, chps will take a while, and hd6 will vanish for a short time inbetween, and there will be a temporary "paging02".
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Vmware Vswitch  VS  Redhat  Bridge 1 91
Solaris 10.  Nmap installation fails 2 40
MarkLogic 1 51
unix solaris snoop command 6 49
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now