Short | Definition | Description |
---|---|---|
PV | PHYSICAL VOLUME | |
Command | Definition |
---|---|
Physical Volumes related |
|
lspv [-l] [-M|p-] [-L] PV | Lists the disks on the server, including the physical volume will give details about that disk. -l option will list the details of how the filesystems are distributed on the disk. -M | -p option lists logical volumes details on physical disk. -L displays the physical volume characteristics. |
chdev -l PV -a pv=yes | assign a PVID to a new hdisk (PV) |
lsvpcfg | Lists each vpath and the hdisks that make up the vpath |
Logical Volume related |
|
lslv [-l|-m] [-L] LV | Lists information about the logical volumes. -l | -m option lists disks in the logical volume. -L displays the logical volume characteristics. |
chlv -n newname oldname | Change the name of a logical volume (it must be inactive) |
mklv -y LV_name VG | Makes a logical volume in a volume group |
rmlv LV | Removes a logical volume (it must be inactive) |
Volume Group related |
|
lsvg [-l] [-L] [-p] VG | Lists the volume groups on the server, including the volume group name will give details about that vg. -l option list the logical volumes in the volume group. -L displays the logical volume characteristics. -p option lists disks in the volume group |
mkvg -y VG PV . . . PV | Makes a volume group out of one or more physical volumes |
varyonvg VG | take the VG online |
varyoffvg VG | take the VG offline |
exportvg VG | removes a volume group from a machine |
extendvg VG PV ... PV | Adds a new physical volume to an existing volume group |
importvg -y VG PV | add a volume group to another machine |
savevg -l -f device VG | makes a backup copy of another volume group |
reducevg VG PV ... PV | Removes a physical volume from a volume group |
Filesystem related |
|
df -k | Shows the disk usage of logical volumes on the server. |
df -Pm | Shows the disk usage of logical volumes in portability modus and size in MB |
crfs -v jfs -m filesystem -g VG -a logname=LV_Name -a size="# of 512 byte blocks" | This command makes a logical volume LVName, with size=#, mount point with a journaled file system |
crfs -v jfs2 -A yes -p rw -d LV -m MP -a logname=INLINE | creates a read write jfs2 file system on a logical volume LV and for Mount Point MP and logging on the same LV |
crfs -v jfs2 -m filesystem -d LV | creates a jfs2 file system on a logical volume |
chfs -a size="#512 byte blocks" filesystem | Increases the size of a journaled file system to the total number of 512 byte blocks specified |
chfs -a size="+512 byte blocks" filesystem | Increases the size of a journaled file system by the addional number of 512 byte blocks specified. Beispiel:chfs -a size=+393216 /usr |
rmfs filesystem | removes a file system and it's logical volume |
mount LV filesystem | mount logical volume on files system mount point |
mount filesystem | mount filesystem if it is already in /etc/filesystems |
umount filesystem | unmount the file system |
Filesystem backup |
|
mksysb -l -f device | makes a bootable backup of rootvg |
Term | Definition |
---|---|
Journaled File System (JFS) | File system that uses a journaled log for faster, more reliable data recovery |
Logical Partition (LP) | The LV is made up of LPs. The LP corresponds to 1 or more (in the case of mirroring) PPs. |
Logical Volume (LV) | The VG is subdivided into logical volumes and each LV can have a file system on it. |
Physical Partition (PP) | All physical volumes are subdivided into pps. PPs are all the same size. |
Physical Volume (PV) | Disk that is being managed by LVM. |
rootvg | Default volume group created during installation. The vg holds the OS filesystems ( /,/usr, /home, /proc /opt, /tmp, /var and swap space ) |
Volume Group (VG) | Area of storage that consists of one or more PVs |
extendvg [VG] [hdisk##]
migratepv -l lv02 hdisk_old hdisk_new1 ... hdisk_new#
migratepv -l lv02 hdisk_old hdisk_new1 ... hdisk_new#
reducevg [Volume Group] [physical Volume]
migratelp httplv/63/2 hdisk27/100
extendvg [VG] [hdisk##]
mklvcopy -s y [Logical Volume] [Number of mirrors 2|3] [physical Volume]
syncvg -v [Volume Group]
syncvg -p [Physical Volume(s)]
lsvg -l [Volume Group]
rmlvcopy [Logical Volume] 1 [OLD physical Volume]
reducevg [Volume Group] [physical Volume]
extendvg rootvg hdisk1
mirrorvg rootvg
bootlist -o -m normal
bootlist -m normal hdisk0 hdisk1
bosboot -ad hdisk0 bosboot -ad hdisk1
Das Originaldokument ist zu finden unter http://ccf-consulting.de/tiki-5.0/tiki-index.php?page=CCF_AIX_LVM