aix_lvm_intro_20130311
TRANSCRIPT
-
7/29/2019 AIX_LVM_INTRO_20130311
1/21
AIX LVM INTRO
sina@
-
7/29/2019 AIX_LVM_INTRO_20130311
2/21
2
Agenda
Components of LVM
Mirroring
Striping
Backup LV & VG
How to mirror the rootvg
LVM
-
7/29/2019 AIX_LVM_INTRO_20130311
3/21
3
Components of LVMOverview
-
7/29/2019 AIX_LVM_INTRO_20130311
4/21
4
Components of LVM
:
Physical volumes
-
7/29/2019 AIX_LVM_INTRO_20130311
5/21
5
Components of LVMThe structure of PV
-
7/29/2019 AIX_LVM_INTRO_20130311
6/21
6
Components of LVMPVID
1. AIX ODM is used to attach an hdiskx name to PVID of a disk.
2. The PVID is the soft "serial number" of a disk that is created.
3. The PVID can be obtained by issuing:
#chdev -l hdiskX -a pv=yes
#lspv
hdisk0 00c9c7c56ca27a2a rootvg active
hdisk1 00c9c7c5018928b6 rootvg active
-
7/29/2019 AIX_LVM_INTRO_20130311
7/21
7
Components of LVMPV Layout
Starting
Sector
Description
0 bootrecord
1 Configuration
2 MWC cache
7 LVM
8 bad block
22 bad block length
64 config backup
70 LVM backup
71 bad block backup
Starting
Sector
Description
120 concurrent config
128 VGDA / VGSA
-
7/29/2019 AIX_LVM_INTRO_20130311
8/21
8
Components of LVMVolume Groups
1. VGID
2. VGDA
3. VGSA
-
7/29/2019 AIX_LVM_INTRO_20130311
9/21
9
Components of LVMLogical Volumes
1. LVID: logical volume identifier
2. LVCB: logical volume control block
3. LP: LV is made up of LPs.
-
7/29/2019 AIX_LVM_INTRO_20130311
10/21
10
Components of LVMFileSystem
inode
JFS Log
log
log
inode
log
-
7/29/2019 AIX_LVM_INTRO_20130311
11/21
11
Agenda
Components of LVM
Mirroring
Striping
Backup LV & VG
How to mirror the rootvg
LVM
-
7/29/2019 AIX_LVM_INTRO_20130311
12/21
12
MirroringMirror
1. Each logical volume may have two or three mirrored copies
2. Only logical volumes are mirrored
PP2PP1
hdisk0
PP2PP1
hdisk1
PP2PP1
hdisk2
LP1
LP2
-
7/29/2019 AIX_LVM_INTRO_20130311
13/21
13
Agenda
Components of LVM
Mirroring
Striping
Backup LV & VG
How to mirror the rootvg
LVM
-
7/29/2019 AIX_LVM_INTRO_20130311
14/21
14
StripingStripe
As known as RAID 0, The Striping is a technology that was developed to
achieve I/O performance gain.
-
7/29/2019 AIX_LVM_INTRO_20130311
15/21
15
Agenda
Components of LVM
Mirroring
Striping
Backup LV & VG
How to mirror the rootvg
LVM
-
7/29/2019 AIX_LVM_INTRO_20130311
16/21
16
Backup LV&VGBackup LV
1. mirror vg / mklvcopy
2. cplv
3. migratepv
4. mksysb
-
7/29/2019 AIX_LVM_INTRO_20130311
17/21
17
Backup LV&VGBackup VG
1. mirror vg
2. exportvg
3. alt_disk_copy
4. mksysb
5. savevg
-
7/29/2019 AIX_LVM_INTRO_20130311
18/21
18
Agenda
Components of LVM
Mirroring
Striping
Backup LV & VG
How to mirror the rootvg
LVM
-
7/29/2019 AIX_LVM_INTRO_20130311
19/21
19
How to mirror the rootvgMirror Rootvg
Why ?
To provide the continuous operation of the AIX operating
system in the event that a disk that is part of the operating
system experiences failure, and there exists an activemirrored copy of the operating system on some other disk.
To provide the ability to boot more than one disk of the
rootvg in the event that another boot disk has failed. In some
cases, the ability to boot from an alternate disk may require
some user intervention.
-
7/29/2019 AIX_LVM_INTRO_20130311
20/21
20
How to mirror the rootvgMirror Rootvg
How to do it ?
1.# extendvg rootvg hdiskX
2.# chvg -Qn rootvg
3.# mirrorvg -s rootvg
4.# syncvg -v rootvg
5.# bosboot a
6.# bootlist -m normal hdisk0 hdiskX
7.# bootlist -m normal -o
-
7/29/2019 AIX_LVM_INTRO_20130311
21/21
Thank You
SINA@Make Presentation much more fun