DISCLAIMER : Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility.If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.


Showing posts with label paging. Show all posts
Showing posts with label paging. Show all posts

Paging space commands in AIX

Below are the commands related to the paging space in AIX.


lsps -a To list out all paging spaces


lsps hd6 To display the details of the paging space hd6


chps -a y paging00 To turn on the paging space paging00 on next reboot


chps -a n paging00 To turn off the paging space paging00 on next reboot


chps -s4 paging00 To increase the size of the paging space in 4 LP blocks


mkps -a -n -s4 newvg To create a paging space on VG newvg of 4 LP size (-s4) and activate it immediately (-n) and activate it at every restarts


rmps paging00 To remove the paging space paging00


swapon -a To invoke all entries in /etc/swapspaces file


swapon /dev/paging00 To make available swap space paging00


swapoff /dev/paging00 To disable swap space paging00



Switching between 32-bit & 64-bit modes in AIX

SWITCHING BETWEEN 32-BIT AND 64-BIT MODES
----------------------------------------------------------------------------------------------
To switch from 32-bit mode to 64-bit mode run do following commands,
in the given order:
1. ln -sf /usr/lib/boot/unix_64 /unix
2. ln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix
3. smitty load64bit
4. Select Enable/Disable at System Restart
5. Choose Yes and press ENTER.
6. Quit smitty.
7. bosboot -ad /dev/ipldevice
8. shutdown -Fr
9. bootinfo -K (should now show 64)
 
===============================================================
SWITCHING BETWEEN 64-BIT AND 32-BIT MODES
-----------------------------------------------------------------------------------------------
 To switch from 64-bit mode to 32-bit mode run the following commands,
in the given order:
1. ln -sf /usr/lib/boot/unix_mp /unix
2. ln -sf /usr/lib/boot/unix_mp /usr/lib/boot/unix
3. smitty load64bit
4. Select Enable/Disable at System Restart
5. Choose No and press ENTER.
6. Quit smitty.
7. bosboot -ad /dev/ipldevice
8. shutdown -Fr
9. bootinfo -K (should now show 32)

Paging Space in AIX


System paging space

#lsps -a -- current utilization of each of the paging spaces on a system

lsps -s ------- total active paging space and its current utilization.

swapon----  to activate the initial paging-space device.

swapoff --command to dynamically deactivate the paging space,

swapon -a ---Activates listed in the /etc/swapspaces


Creating paginglv-----

smit mklv

eg:   Name-------paging03
On ---------------------hdisk5
VG --------------------rootvg

b) swapon /dev/paging03-----To activate paging


Increasing and decreasing paginglv

Use the chps -d command to decrease the size of paging03 by 2 logical partitions

# chps -d 2 paging03

To increase

#chps –s 2 paging03