AIX - LVM - Extend Logical Volume
If we want to increase LV size using extendlv command
#lslv newlv
The above command shows LV size, no of LP’s and some other information about LV, suppose LV has 10 LP’s and usage is up to 95% full, that time we can increase the LV size online by adding no of LP’s in newlv i.e.
#extendlv newlv 5
After executing the above command 5 PP’s added with newlv, then some additional space will available in newlv. Suppose you want to see this changes again use the lslv command
#lslv newlv (it will show no of LV’s is 15 and some additional space)
Friday, April 24, 2009
Thursday, April 23, 2009
AIX - LVM - List Logical Volume
List LV
Suppose we want see what are the Lv’s available in datavg, then your command will be
#lsvg –l datavg
It will login list LV details
newlv
Now we want see newlv properties, then your command will be
#lslv newlv
The above command is used to display the newlv properties, i.e. available pp’s mount pint, label name, stale partitions. Etc.
#lslv –m newlv – To display the lvcopy information’s
Suppose we want see what are the Lv’s available in datavg, then your command will be
#lsvg –l datavg
It will login list LV details
newlv
Now we want see newlv properties, then your command will be
#lslv newlv
The above command is used to display the newlv properties, i.e. available pp’s mount pint, label name, stale partitions. Etc.
#lslv –m newlv – To display the lvcopy information’s
AIX - LVM - Create Logical Volume
Create LV
All the File systems belongs to individual LV, after creating the VG’s we should create the LV using mklv command
Suppose you want to create LV name as newlv
#mklv –y newlv –t jfs2 datavg 5 hdisk4
-y for confirmation
-t type mentioning the filesystem type i.e. jfs or jfs2,
Datavg – lv created on datavg
5 – 5 PP’s allocated for newlv ( 1 pp size 32MB the newlv size is 32MB*5 = 160MB)
Hdisk4 – that newlv is belongs to PV hdisk4
All the File systems belongs to individual LV, after creating the VG’s we should create the LV using mklv command
Suppose you want to create LV name as newlv
#mklv –y newlv –t jfs2 datavg 5 hdisk4
-y for confirmation
-t type mentioning the filesystem type i.e. jfs or jfs2,
Datavg – lv created on datavg
5 – 5 PP’s allocated for newlv ( 1 pp size 32MB the newlv size is 32MB*5 = 160MB)
Hdisk4 – that newlv is belongs to PV hdisk4
AIX - LVM - Varryoff Volume Group
Varryoff VG
This is just for VG deactivation; some clients want to deactivate VG for project Restriction. Suppose customer want deactivate testvg then your command will be
#lsvg –o
Rootvg
Datavg
Testvg
#Varryoff testvg
#lsvg –o
Rootvg
Datavg
The above command display only two online VG’s and it will not show testvg because testvg is offline VG.
This is just for VG deactivation; some clients want to deactivate VG for project Restriction. Suppose customer want deactivate testvg then your command will be
#lsvg –o
Rootvg
Datavg
Testvg
#Varryoff testvg
#lsvg –o
Rootvg
Datavg
The above command display only two online VG’s and it will not show testvg because testvg is offline VG.
AIX - LVM - VarryOn Volume Group
AIX - LVM - VarryOn Volume Group
Varryon VG
This is just for VG activation; some times clients want to deactivate VG for project restriction. After that we want to activate the VG for further data access
Suppose we want to activate testvg, then your command will be
#lsvg
Rootvg
Datavg
Testvg
The above command shows what are VG’s available
#lsvg –o
Rootvg
Datavg
The above commands shows only online VG’s because testvg is offline so we have to activate testvg
#varryonvg testvg
#lsvg –o
Rootvg
Datavg
Testvg
Now above command is display the testvg.
Varryon VG
This is just for VG activation; some times clients want to deactivate VG for project restriction. After that we want to activate the VG for further data access
Suppose we want to activate testvg, then your command will be
#lsvg
Rootvg
Datavg
Testvg
The above command shows what are VG’s available
#lsvg –o
Rootvg
Datavg
The above commands shows only online VG’s because testvg is offline so we have to activate testvg
#varryonvg testvg
#lsvg –o
Rootvg
Datavg
Testvg
Now above command is display the testvg.
Wednesday, April 22, 2009
AIX - Reduce Volume Group
Reduce VG
We can remove the VG using reducevg command, if we want remove testvg and testvg has one pv hdisk9
#lsvg –p testvg
Hdisk9
#
Now we will remove the pv from testvg
#reducevg –f testvg hdisk9
f- option is used to force reduce, you have data in pv hdisk9, that time I will not any questions, directly it will remove the pv from testvg. Suppose 2 PV’s available in testvg then one by one we can reduce the PV’s
We can remove the VG using reducevg command, if we want remove testvg and testvg has one pv hdisk9
#lsvg –p testvg
Hdisk9
#
Now we will remove the pv from testvg
#reducevg –f testvg hdisk9
f- option is used to force reduce, you have data in pv hdisk9, that time I will not any questions, directly it will remove the pv from testvg. Suppose 2 PV’s available in testvg then one by one we can reduce the PV’s
AIX -Extend Volume Group
AIX -Extend Volume Group
Extend VG
We can increase VG size by adding Pv into existing VG, example: extendvg command
#lsvg –p datavg
Hdisk4
Hdisk5
#
datavg has 2 PV’s now we want to extend datavg, then your command will be
#extendvg datavg hdisk6
After executed command hdisk6 pv added with datavg
#lsvg –l datavg
Hdisk4
Hdisk5
Hdisk6
Extend VG
We can increase VG size by adding Pv into existing VG, example: extendvg command
#lsvg –p datavg
Hdisk4
Hdisk5
#
datavg has 2 PV’s now we want to extend datavg, then your command will be
#extendvg datavg hdisk6
After executed command hdisk6 pv added with datavg
#lsvg –l datavg
Hdisk4
Hdisk5
Hdisk6
AIX - List Volume Group
AIX - List Volume Group
List VG
We can list VG information using following commands
#lsvg – It will display the available vg’s
#lsvg datavg – It will display full details about datavg only
#lsvg –o It will display the online vg’s
#lsvg – l datavg – It will display the all logical volume details across the datavg
#lsvg –p datavg – It will display the information about all PV’s in datavg
Above operations can be performed by using lsvg commands
List VG
We can list VG information using following commands
#lsvg – It will display the available vg’s
#lsvg datavg – It will display full details about datavg only
#lsvg –o It will display the online vg’s
#lsvg – l datavg – It will display the all logical volume details across the datavg
#lsvg –p datavg – It will display the information about all PV’s in datavg
Above operations can be performed by using lsvg commands
AIX - Create Voulme Group
AIX - Create Voulme Group
We can create VG by using mkvg commands
#mkvg –s 32 –y datavg hdisk4
The above command is creating datavg using pv hdisk4 and pp size is 32MB
#mkvg datavg hdisk4
The above command will create datavg using pv hdisk4 and pp size is by default 128MB.
We can create VG by using mkvg commands
#mkvg –s 32 –y datavg hdisk4
The above command is creating datavg using pv hdisk4 and pp size is 32MB
#mkvg datavg hdisk4
The above command will create datavg using pv hdisk4 and pp size is by default 128MB.
Subscribe to:
Posts (Atom)