Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Paging device in AIX

Posted on 2011-02-25
Medium Priority
Last Modified: 2013-11-17
Hi All,

I want to know how to deactivate/delete  the paging device on the AIX system. I know some of the steps but just want to clarify the same. Is it goes like this :

# lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type
paging00        hdisk474          rootvg       49152MB     1   yes   yes    lv
hd6             hdisk472          rootvg       49152MB     1   yes   yes    lv

#chps -a n /dev/paging00
#swapoff /dev/paging00
#rmlv /dev/paging00

Actually the thing is I want to use that disk hdisk474 for creating alternate disk installation, as I want to prepare this server for TL12 upgrade. Also, let me know what will be the steps to create the paging space again. kindly verify whether the above steps are correct ?

Question by:virgo0880
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
LVL 68

Accepted Solution

woolmilkporc earned 1600 total points
ID: 34982757
Hi again,

your steps are basically correct, but don't use "rmlv"!
There is a special command "rmps" for that purpose!
It will take care to remove the PS definition from ODM.

Further, use the LV name, not the device name (i.e. omit "dev/...")!

So it's

chps -a n paging00   (not really needed, but can't do any harm)
swapoff paging00
rmps paging00

Creating a new pagespace is easy:

mkps -a -n -s number_of_partitions -t lv rootvg

Replace number_of_partitions with the desired value. Change rootvg to the name of a different VG if you don't want to use rootvg.

-a : activate at system restart
-n : also activate immediately
-s  number : number of PPs to use.
-t lv : (default) create a logical volume, not an NFS page space.

Please note that you can't give a name to your new paging space. It will be created automatically as paging00


LVL 30

Assisted Solution

by:Kerem ERSOY
Kerem ERSOY earned 400 total points
ID: 34982874

I understand that this isi the only paging space in your system. Paging space has two uses. The first is regular paging the econd is the dump area. So if you'll be changing the only paging space then you should chage the default dump dev to it too.

I don't know about disk layour but this volume might be in use for other volumes in rootvg too. Then you'll need to move all these volumes to other disks and remove the disk from the rootvg.

So the steps would be:

mkps -s 96 -a rootvg

issue sysdumpdev -l  and if it points to /dev/paging00 then issue this command:

sysdumpdev -P -p /dev/sysdumpnull

edit the /sbin/rc.boot and set the paging to the new name (the name would be something like /dev/paging01

change "swapon /dev/paging00" to "swapon /dev/paging01"

Deactivate the volume on next reboot
chps -a n /dev/pagigin00


lspv -l   hdisk474

make sure that no volume uses the disk


reducevg -d -f rootvg /dev/paging00

now you've removed the sdisk and moved the ps to another logical volume. Reenable sysdump:

sysdumpdev -P -p /dev/paging01


LVL 68

Expert Comment

ID: 34983101
There is still hd6, isn't it?

Another tip: You can use "smitty mkps"  to create a new PS.

"smitty rmps" exists as well, but won't help you much, because you will have to run "smitty chps" and "smitty swapoff" beforehand. Using commandline is probably faster.

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 34983597
Ok got it, yes wmp is right, that hd6 is available.

One more thing is I have 2 disks - hdisk472 and hdisk473 in rootvg and I have 2 spare disks hdisk0 and hdisk1, all are of same sizes. Now, I dont want to break the mirror of rootvg and start the alternate disk installation, so whether I have to specify both hdisk0 and hdisk1 in the disk column of smitty or I should specify only one disk hdisk0. Correct me if I am wrong. If I specify hdisk0 & hdisk1, then whether alternate disk installation will take more time as it has to do the alternate install of the mirrored rootvg to 2 disks. Just want to clarify this point ?

LVL 68

Expert Comment

ID: 34983738
No, you don't have to specify both disks.

But it won't take considerably longer anyway, because there is virtually no difference in creating an LV with one resp. two copies, and the actual writes will be carried out in parallel.

Please keep in mind that hdisk0 and hdisk1 must not belong to a VG!



Author Comment

ID: 34983803
You mean to say that as currently rootvg is having 2 copies..one on hdisk472 and mirrored on hdisk473. Now when I start alternate disk installation, i will specify hdisk0 and it will the create a cloned rootvg on hdisk0...right. That means, it will consider the mirrored rootvg(2 disks) as a single copy and create the clone on hdisk0...right ?

LVL 68

Expert Comment

ID: 34983990
Yes.  A new VG will be created, LVs and filesystems will be defined and populated by means of "backup" and "restore", which is independent of whether the source LVs/FSs are mirrored or not.

Attention: Only mounted filesystems will be backed up, so take care not to have unmounted filesystems which you want to get cloned.
On the other hand, you can umount filesystems which you don't want to get cloned!

The above is true for cloning. Things are a bit different when restoring an mksysb. To get rid of mirroring here you will have to edit the image.data file (COPIES=1) beforehand.


Author Comment

ID: 35001935
Just to clarify, I logged a call with IBM for this and they told that you have to specify 2 disks for cloning the mirrored rootvg (2 disks), also they commented saying that usually you should not do this procedure as it might create the problems and may be hung. So, always do alt disk install by unmirroring the root disk. What are your thoughts on this.

LVL 68

Expert Comment

ID: 35002021
That's more a question for our other thread!

OK, if you got this info from IBM - what am I supposed to say?

I told you my thoughts in my previous comment -  but rather follow IBM, it might well be that they made experiences which I didn't.


Author Comment

ID: 35200746
Will update the status

Author Closing Comment

ID: 35202491
Thanks for providing help on this.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.
Suggested Courses

609 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