Thursday, 15 September 2011

Common AIX Commands 1.4

 
System Paging Space Management

Lists paging space and attributes. Configuration file: /etc/swapspaces (contains a list of swap devices).
lsps
Changes attributes of a paging space.
chps -a {y|n} paging00 : specifies that the paging space paging00 is active (y) or inactive (n) at subsequent system restarts.
chps -s 10 paging02 : adds ten LPs to paging02 without rebooting.
chps -d 5 paging01 : removes five LPs from paging01 without rebooting.
chps -d 50 hd6 : removes fifty LPs from hd6 without rebooting.
Adds an additional paging space to the system.
mkps -a -n -s20 datavg : creates a permanent paging space pagingxx in VG datavg of 20 LPs and activates it immediately.
Removes a paging space from the system (exept hd6).
rmps paging00 : removes deactivated paging space paging00.
Deactivates one or more paging space.
swapoff paging01 : deactivates paging space paging01.
Activates a paging space.
swapon paging01 : activate paging space paging01.
swapon -a : activates all paging spaces defined in /etc/swapspaces.
Displays paging characteristics and enables the allocation and deallocation of paging devices.
swap -l : displays device, major and minor numbers, and total and free space.
swap -a /dev/paging01 : activates paging space paging01 (like swapon).
swap -d /dev/paging01 : deactivates paging space paging01 (like swapoff).
migratepv -l hd6 hdisk0 hdisk2 : moves hd6 from hdisk0 to PV hdisk2 within the same VG (always use VG rootvg for hd6 performance).

No comments:

Post a Comment