Logical Volume Operations


Logical Volumes Operations:

How do I ...

Start smit/smitty at top menu level for logical volumes

smit lvm

List all logical volumes in a volume group

lsvg -l vgname

List attributes of logical volume

lslv lvname

Usage: lslv [-L] [-l | -m] [-n DescriptorPV] LVname

Usage: lslv: [-L] [-n DescriptorPV] -p PVname [LVname]

 List logical and physical partitions and the physical volumes (shows mirroring)

lslv -m lvname

List number of copies and distribution on physical volumes

lslv -p lvname

Add a logical volume (should us smit at first)

smit mklv

mklv

Usage: mklv [-a IntraPolicy] [-b BadBlocks] [-c Copies] [-d Schedule]

[-e InterPolicy] [-i] [-L Label] [-m MapFile] [-r Relocate] [-s Strict]

[-t Type] [-u UpperBound] [-v Verify] [-w MWC] [-x MaxLPs] [-y LVname]

[-Y Prefix] [-S StripeSize] [-U userid] [-G groupid] [-P modes]

VGname NumberOfLPs [PVname...]

Change attributes of a logical volume (should use smit at first)

smit chlv

chlv

 Usage:

chlv -n NewLVname LVname

Usage: chlv [-a IntraPolicy] [-e InterPolicy] [-L Label] [-u UpperBound]

[-s Strict] [-b BadBlocks] [-d Schedule] [-p Permission]

[-r Relocate] [-t Type] [-w MirrorWriteConsistency]

[-v Verify] [-x MaxLPs] [-U userid] [-G groupid]

[-P modes] LVname...

Remove a logical volume

smit rmlv

rmlv lvname

Usage: rmlv [ -B ] [ -f ] [ -p Physical Volume ] LogicalVolume ...

Copy the contents of a logical volume to a new or existing logical ( NOT MIRRORING)

smit cplv

cplv

Usage: cplv [-v VGname] [-y NewName | -Y Prefix] SourceLV

cplv -e [-f] DestinationLV SourceLV.

Make a copy of a logical volume (MIRRORING us smit)

smit mklvcopy

mklvcopy lvname total#ofcopies hdisk#

Usage: mklvcopy [-a IntraPolicy] [-e InterPolicy]

[-k] [-m MapFile] [-u UpperBound] [-s Strict]

LVname LPcopies [PVname...]

Rename a logical volume

smit chlv2

chlv -n newname oldname

Increase size of logical volume

smit extendlv

extendlv lvname #PP hdisk#

Usage: extendlv [-a IntraPolicy] [-e InterPolicy] [-m MapFile]

[-s Strict] [-u UpperBound] LVname NumberOfLPs [PVname...]

Remove a copy of a logical volume (remove a mirror us smit)

smit rmlvcopy

rmlvcopy lvname #ofcopie hdisk#

 

Move a logical volume from one hdisk to another

migratepv -l lvname sourcehdisk# desthdisk#

Usage: migratepv [-i] [-l LVname] SourcePV DestinationPV...

 

Back to Contents