You are on page 1of 5

I)

How to create a Volume Group (VG).

II)

How to create a Logical Volume (LV) and mount the file system.

III)

How to add a disk to a Volume Group

IV) How to increase the size of a logical volume without OnlineJFS

IV)

How to remove a Logical Volume

V)

How to reduce the size of a logical volume without OnlineJFS advanced JFS)

VI)

How to remove a disk from a volume group

VII)

How to remove a volume group

IX) How to increase the primary swap

X) How to create a secondary boot disk LVM Mirroring

XI) How to mirror a logical volume

Volume groups and logical volumes


How do I know if my volume group is normal, big, or scalable? Run the lv command on s g the volume group and look at the value for MAX PVs. The value is 32 for normal, 128 for big and 1,024 for scalable volume group. How do I create a volume group? Use the following command, where s partition_size sets the number of megabytes (MB) in each physical partition where the partition_size is expressed in units of MB from one through 1,024. (It's one through 131,072 for AIX 5.3.) The partition_size variable must be equal to a power of two (for example: one, two, four or eight). The default value for standard and big volume groups is the lowest value to remain within the limitation of 1,016 physical partitions per physical volume. The default value for scalable volume groups is the lowest value to accommodate 2,040 physical partitions per physical volume. How can I change the characteristics of a volume group? You use the c command to h change the characteristics of a volume group. How do I create a logical volume? Type the following: How do I increase the size of a logical volume? To increase the size of the logical volume represented by the lv05 directory by three logical partitions, for example, type e .x How do I display all logical volumes that are part of a volume group (e,g, rootvg)? You can display all logical volumes that are part of rootvg by typing the following command: lv s g How do I list information about logical volumes? Run the following command to display information about the logical volume lv1: lsv .l How do I remove a logical volume? You can remove the logical volume lv7 by running the following command: rmlv lv7. The rmlv command removes only the logical volume, but does not remove other entities, such as file systems or paging spaces that were using the logical volume.

How do I remove a copy of a logical volume? You can use the rmv command to remove l copies of logical partitions of a logical volume. To reduce the number of copies of each logical partition belonging to logical volume testlv, ente: rmv . lc logical partition in the Each y p o logical volume now has at most two physical partitions. Queries about volume groups: To show volume groups in the system, type lv show .sg To all the characteristics of rootvg, type lsvg rootvg. To show disks used by rootvg, type lo .st r pg -v o How to add a disk to a volume group? Type the following: How do I replace a disk?

How do I mirror a logical volume?

How can I clone the rootvg? You can run the alt_ command to copy the current rootvg to an _c do i s k alternate disk. The following example shows how to clone the rootvg to hdisk1: al _d . tp d o - y c _ k s i

Network
How can I display or set values for network parameters? The n command sets or o displays current or next boot values for network tuning parameters. How do I get the IP address of my machine? Type one of the following: i hFor or .o f example, h sa . ot t s u . p o l c y How do I identify the network interfaces on my server? Either of the following two commands will display the network interfaces: l iTo get information about one specific or .f s network interface, for eaxample tr0, run the command i .f How do I activate a network interface? To activate the network interface tr0, run the command icf .fo n How do I deactivate a network interface? For example, to deactivate the network interface tr0, run the command: i0f .ro tw dc on f How do I display routing table, interface and protocol information? To display routing table information for an Internet interface, type nTo display interface information .e for an Internet interface, type nta display statistics for each protocol, type netstat -s -f inet .es To t .

Workload Partitions
Workload Partitions (WPARs), a set of completely new software-based system virtualization features, were introduced in IBM AIX Version 6.1. How do I create a workload partition? To create a workload partition named temp with IP Address xxx.yyy.zzz.nnn, type To create a workload partition with the specification file wpar1.spec, type How do I start a workload partition? To start the workload partition called temp, type saw .trr tt ep a How do I view the characteristics of workload partitions? To view the characteristics of all workload partitions, type lw . sp How do I run a command in a workload partition? To run the /usr/bin/ps command as user root in a workload partition named howdy, type clogin howdy-l root /usr/bin/ps . How do I remove a workload partition? To remove the workload partition called temp, type rTo stop and remove the workload partition called temp preserving data on its file .m system, type rwa . mp p r -

Performance Monitoring Tools


How do I display virtual memory statistics? To display a summary of the virtual memory statistics since boot, type vmt .s How do I display statistics for all TTY commands, CPUs and disks? To display a single set of statistics for all TTY, CPU, and Disks since boot, type iot .s How do I display a detailed local and remote system statistics? Type the following command:
tps o a tp odisplays a tps -a odisplays tp odisplays a tp odisplays a

process logical partition disk metric file system

How do I report system unit activity? Type the sar command. To report processor activity for the first two processors, enter sar -uproduces output similar to the following: . This -P 0,1

Admittedly, a list such as this can be helpful in quickly answering some of your own questions. However, it doesnt cover everything that you might need. You can extend the usefulness of such a list by adding other commands that answer additional questions not addressed here.

You might also like