AIX storage management physical volumes and logical partitions
Source: Internet
Author: User
AIX storage management physical volume, logical partition 1. basic concept: PV physical volume: common direct access to storage devices, there are fixed and removable points, representative is the hard disk. Vg volume group: the largest storage unit in AIX. a volume group consists of one or more physical hard disks... information AIX storage management physical volume, logical partition 1. basic concept: PV physical volume: a common storage device that can be directly accessed. it can be fixed or movable, and a hard disk is representative. Vg volume group: the largest storage unit in AIX. a volume group consists of a group of physical hard disks, that is, one or more physical volumes. Pp physical partition: physical partitions are divided into consecutive storage units of the same size. the physical partitions in a volume group are of the same size. Lp Logical Partition: The Logical Unit mapped to a physical partition. a logical partition can correspond to one or more physical partitions. Lv logical volume: a set of logical partitions in a volume group. The logical partitions in a logical volume are continuous, but the physical partitions are discontinuous, it can be on one disk or different disks. Fs file system: refers to the user-oriented storage space in the AIX system. A logical volume can only create one file system. that is to say, a file system corresponds to one logical volume. if a logical volume is deleted, the file system is also deleted. 2. storage structure: The Logical Volume lv cannot be directly accessed. it is a raw device (bare device). a file system is built on the logical volume, and the file system can be accessed by users. Create a directory in the file system and a file in the directory. Physical volumes, Volume groups, physical partitions, logical volumes, logical partitions, and logical volumes are file systems, directories, and files for operating systems. 3. LVM configuration data volume group description area (VGDA): describes the corresponding relationship between all physical and logical volumes in the volume group status area (VGSA ): record the status information of physical volumes and physical partitions in the volume group. when the volume Group is activated, determine which physical partitions are available logical volume control blocks (LVCB): Located at the beginning of each logical volume, the management command of LVM, which contains the logical volume and takes several hundred bytes, is used to update the VGDA content. when a hard disk becomes PV, the hard disk begins to retain part of the space to store VGDA information, when you add it to a volume group, you start to write the volume group information to the VGDA region. when you delete it from the volume group, the VGDA data is also cleared, this data also exists in the ODM database of the AIX system. when importing a volume group, the VGDA information is written to the ODM and deleted during export. 4. each physical volume in the disk Quorum volume group contains at least one VGDA and VGSA. When a volume group has only one hard disk, the hard disk contains two copies of VGDA and VGSA. when the volume group consists of two hard disks, one has two copies, and the other has one copy, when the volume group consists of more than three hard disks, each disk has one copy. If the disk Quorum exists, ensure that more than 51% of VGDA/VGSA in the volume group can be accessed normally. You can also disable the disk Quorum. 5. limits on the number of VG for logical storage management: a maximum of 255 vgpvs for each system: for common volume groups, each VG can have a maximum of 32 PVS. for large VG, each volume group can have a maximum of 128 PVPP values: each PV can have a maximum of 1016 PPLV values: for common VG, each volume group can have a maximum of 255 LV values, for large VG, up to 512 LVLP numbers per VG: each LV can have up to 32512 LPPP and LP sizes: 1 M to 1024 M must be 2 power-power LP ing PP quantity: one LP can map 1-3 PP 6. distribution Outer Edge (Outer-Edge) of the physical area: stores the inner Middle (Outer-Middle) of infrequently accessed data: the default Center when the logical volume is created ): the fastest disk search time and speed. Inner-Middle: the Inner-Edge is a little slower than the Inner-Edge to store infrequently accessed data. add a hard disk to the system. Method 1: After adding the hard disk, start the machine and run ipvmgr automatically. view the result directly. if the result is not identified, configure it manually. # Cfgmgr-v # lspv # chdev-l hdisk2-a pv = yes Method 2: When the system cannot be restarted, check the original hard disk, install the new hard disk, and check the new device, configure the new device # lspv # rjmgr-v # lspv # chdev-l hdisk2-a pv = yes # mkdev-c disk-s scsi-t 670 mb-p scsi3-w 6, 0- a pv = yes # smit makdsk8. modify physical volume attributes # chpv-a n hdisk1 disable hdisk1 from allocating new PP # chpv-a y hdisk1 allow # chpv-v r hdisk1 to disable hdisk1 availability, unable to read/write and access the physical volume logically # chpv-v a hdisk1 allows # chpv-c hdisk1 to clear the boot records on hdisk1 # smit chpv9. display the physical volume information # lsdev-Cc disk display System definition and configured Physical Volume # lspv displays all physical volume information in the system without any parameters # lspv hdisk0 displays the attribute of a physical volume hdisk0 # lspv-l hdisk0 displays the distribution of the physical volume hdisk0. # Lspv-p hdisk0 displays the distribution of physical partitions of each logical volume on the physical volume, and displays the logical volume type and file mount point. # Lspv-M hdisk0: displays the correspondence between physical and logical partitions. 10 content on the physical volume for Migration:. determine which disks are available in the system # lsdev-Cc dev # lspv # extendvg rootvg hdisk5b. check the disks in the volume Group and confirm that the source disk and target disk are in the same volume group. # lsvg-p rootvgc. make sure there is sufficient space on the target disk to store the content of the source disk # lspv hdisk0 | grep "USED PPs" # lspv hdisk5 | grep "USED PPs" d. if the disk is a rootvg disk, check whether the boot logical volume is on the source disk # lspv-l hdisk0 | grep hd5 # megratepv-l hd5 hdisk0 hdisk5e. reset the system boot record # bosboot-a-d/dev/hdisk5 # bosboot-m normal hdisk5 # mkboot-c-d/dev/hdisk0f. migration # smit migratevg # migratevg hdisk0 hdisk5 # migratevg-l lv01 hdisk0 hdisk5 G. delete original disk data # cecevg rootvg hdisk0 # rmdev-dl hdisk011. volume Group management # mkvg-y datavg-d 6-s 8 hdisk7 hdisk8 # smit mkvg create volume Group is guaranteed/etc/vg 2 MB space # lsvg View All VG # lsvg-o view activated VG # lsvg rootvg view rootvg attributes # lsvg-l rootvg view LV # lsvg-p rootvg in rootvg view the physical volumes contained in rootvg # chvg-ay datavg enables the volume group to be automatically activated when it is started # chvg-an datavg prevents automatic activation of the volume group when it is started # chvg-u datavg to the volume Group unlock # extendvg datavg hdisk5 # reducevg datavg hdisk5 # varyonvg datavg # varyoffvg datavg # exportvg datavg # importvg-y datavg hdisk5 # syncvg-p hdisk03 hdisk05 hdisk05 # syncvg-v vg05 vg06 copy a volume on vg05 and vg06 # redefinevg-d hdisk0 rootvg redefines the volume group information in the ODM Library, # swapoff paging_spce_name make the page space inactive # mirrorvg-c 3 datavg make three copies of the volume group image # mirrorvg-S-c 3 datavg background synchronization Image environment replace disk # unmirrorvg datavg volumes delete images on hdisk7 # reduncevg datavg hdisk7 delete images in the volume group # rmdev-dl volumes delete images in the system # extendvg datavg hdisk7 add new disks to datavg # mirrorvg datavg set datavg as image # unmirrorvg to cancel volume group Image 12. logical Volume management # getlvcb-TA hd2 view logical volume control block information # lsvg-l rootvg view logical volume information on rootvg # lslv mylv view detailed attributes of a lv # lslv-l lv_01 displays the physical volumes that a logical volume spans, and the distribution of PP on the physical volume # lslv-p hdisk1 shows the logical volume distribution graph on the physical volume
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.