| LVs automatically created at system installation are: | |
| hd5 | boot LV (boot image). Available only at startup. |
| hd6 | Default paging space. |
| hd8 | Default logging space (jfslog) for the journaled file systems. |
| hd4 | / (root) file system. |
| hd2 | /usr file system. |
| hd9var | /var file system. |
| hd10opt | /opt file system. |
| hd3 | /tmp file system. |
| hd1 | /home file system. Users' home directories. |
| Note: hd7 was used in earlier AIX versions as dump device. Maximum LV size is 1 TB (32-bit kernel) or 128 TB (64-bit kernel). A dedicated dump device lg_dumplv is created in systems with at least 4 Gigabytes of real memory. | |
| lslv | Displays information about a logical volume (LV). Total LVsize=PPsize * LPs assigned to LV * Number of LV copies. lslv lvdata : lists all the attributes related to LV lvdata. lslv -m lvdata : lists the LP to PP/PV mapping of LV lvdata. |
| mklv | Creates a logical volume. The smallest LV is equal to one PP. mklv -y lvdata -c 3 datavg 10 : creates LV lvdata in VG datavg with ten LPs and a total of three copies of the data. mklv -y lvdb datavg 50M : creates LV lvdb with a minimum size of 50MB (b/B=512B, k/K=KB, m/M=MB, g/G=GB). Rounded to whole LVs to make up 50 MB. mklv -a c datavg 2 : creates LV lv00 with a size of two LPs and intra-physical volume allocation policy center (e=[outer] edge, m=[outer] middle, c=center, im=inner middle, ie=inner edge). |
| chlv | Changes the characteristics of a logical volume. chlv -w p lvdata : turns on passive MWC for LV lvdata (big VG only). |
| rmlv | Removes logical volumes from a volume group. rmlv -f lvdata : remove LV lvdata without requiring user confirmation (attention: all data on this LV is destroyed). |
| extendlv | Increases the size of a logical volume by adding unallocated physical partitions. extendlv lvdata 12 : adds twelve more LPs to LV lvdata. extendlv lvraw 64M : adds 64 MB to LV lvraw. Rounded to whole LVs needed to make up 64 MB. |
| lquerylv * | Queries the attributes of a logical volume. |
| lreducelv *! | Reduces the number of allocated logical partitions of a logical volume (attention: if not used with care, data is lost). Official procedure to reduce a LV: 1. Back up all data in the logical volume. 2. Remove the logical volume. 3. Recreate the logical volume with the reduced logical partition allocation. 4. Restore the data. |
| cplv | Copies the contents of a logical volume to a new logical volume. cplv -v datavg -y lvnew lvold : copies the contents of lvold to new LV lvnew in VG datavg. cplv -e lvtest -f lvdata : copies the contents of LV lvdata to a smaller, existing LV lvtest within the same VG, without requiring user confirmation (attention: if lvtest is smaller than lvdata, then data will be lost, probably resulting in corruption). |
| mklvcopy | Adds copies to a logical volume. mklvcopy lvdata 3 : increases the number of copies in each LP in LV lvdata to three. |
| rmlvcopy | Removes copies from a logical volume. rmlvcopy lvuser 2 : decreases the number of copies in each LP in LV lvuser to two. |
| migratelp | Moves an allocated LP from one PP to another PP on a different PV in the same VG. migratelp datalv/23 hdisk3/105 : moves the 23th LP of LV datalv to the 105th PP of PV hdisk3. See lspv -p to display the free PPs of PV hdisk3. |
| splitlvcopy | Splits copies from one logical volume and creates a new logical volume from them. splitlvcopy -y newlv oldlv 2 : splits one copy of each LP belonging to the LV oldlv which currently has 3 copies of each LP, and creates the LV newlv. |
| getlvcb * | Displays a formatted output of the data in the LVCB of a LV. getlvcb -TA hd3 : displays the information held in the LVCB of LV hd3. |
| putlvcb *! | Writes the control block information (only the specified fields) into block 0 of a logical volume (LVCB). putlvcb -t jfs lvdata : writes the LV type jfs to the LVCB of LV lvdata. |
다음검색