Thursday, April 23, 2009

Website Load - Measure Time

Website Load - Measure Time

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

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

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.

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.