AIX - LVM (Logical Volume Manager)
In AIX first Physical volumes (PV) are added into volume group(VG),
After that only we can create logical volumes, and file systems.
Minimum one PV is belongs to VG, While creating the VG we should mention physical partition (pp) size, this pp’s pointed to logical portions (LP),
Suppose we have 40GB HDD, we have added in one VG named DataVG , While creating the VG we should mention the pp size, i.e.
PP size will be 4MB to 128MB, suppose we are mentioned pp size is 32MB, then that 40GB HDD divided into
1024MB *40 = 40960MB
Each pp size is 32MB, then 40GB HDD spited into i.e.
40960 / 32 = 1280 PP’s
So DATAVG has 1280 PP’s
While creating the Logical volumes we should mention the lv size by giving the no of pp
Suppose you want to create one file system /userdata, that file system size will be 1GB, this file system is belongs to one particular LV, So while creating the LV we should mention the lv size is 1GB, but directly we cannot mention the GB size.
Each pp has 32MB, So you create LV with 315 PP’s, then that lv size will be 1GB.
After creating the LV using 1GB space we can increase LV size online, reboot is not required.
We can perform the following operation in LVM.
1. List PV
2. Change PV
3. Create VG
4. List VG
5. Extend VG
6. Reduce VG
7. Varryon VG
8. Varryoff VG
9. Create LV
10. List LV
11. Extend LV
12. Change LV
13. Create LV copy
14. Remove LV copy
15. Remove LV
16. Create FS
17. Change FS
18. List Fs
19. Mount FS
20. Unmount FS
21. Remove FS
22. Repair FS
23. Mirror VG
24. Syncvg
25. Unmirror VG
26. Migrate PV
27. Migrate LV
28. Export VG
29. Import VG
30. Change VG
NOTE:
After AIX installation by default root volume group (rootvg) will be available
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.