Softpanorama
(slightly skeptical) Open Source Software Educational Society

May the source be with you, but remember the KISS principle ;-)

Softpanorama Search

LVM quick reference

News

See also

Redbooks IBM Links Recommended Links Recommended eBooks and Papers Reference
what disks are in the root volume group How many disks are on the system Create a volume group Add a disk to the root volume group Make sure the disks are in an active state Mirror the logical volumes Create the boot image on the new disk
Extend the size of filesystem Remove a file system

Sadly, the original web site that this useful intel was on is no longer available.

IBM AIX: Volume Management
IBM AIX Logical Volume Management
System Administrator Information

How to create a file system

How to expand a file system

How to create a volume group (Using Powerpath)

 How to re-create a file system when there are sub file systems present

Task AIX 5L Version 5
Storage structure A disk is composed of physical partitions.

A physical volume is a physical disk the same thing as a disk.

A volume group is composed of physical volumes.

A volume group is divided into logical volumes.

A filesystem is placed into a logical volume.


A logical volume is extensible and can reside on more than one volume.

Run multiple tasks in a GUI environment smit lvm
wsm
Move a logical volume to another logical volume migratepv
Create a logical volume mklv
Extend a logical volume extendlv
Remove a logical volume rmlv
Create a volume group mkvg
Remove a disk from a volume group reducevg
Add disks to a volume group extendvg
Change logical volume settings chlv
Display volume group information lsvg
Display performance statistics for storage lvmstat
Manage volumes chlv
mklv
rmlv
Add a copy to an existing volume mklvcopy

IBM Disk Utilities in a nutshell

IBM Volume Manager in a nutshell

Listing Volume Groups

lsvg

rootvg

HACMPvg

paritemvg

yatirimvg

pbackupvg

ybackupvg

Detailed information about a Volume Group

root@paritem:/ >lsvg paritemvg

VOLUME GROUP:paritemvgVG IDENTIFIER:00c076eb00004c000000010852f95257

VG STATE:activePP SIZE:32 megabyte(s)

VG PERMISSION:read/writeTOTAL PPs:3196 (102272 megabytes)

MAX LVs:256FREE PPs:5 (160 megabytes)

LVs:2USED PPs:3191 (102112 megabytes)

OPEN LVs:2QUORUM:3

TOTAL PVs:4VG DESCRIPTORS: 4

STALE PVs:0STALE PPs:0

ACTIVE PVs:4AUTO ON:no

MAX PPs per VG:32512

MAX PPs per PV:1016MAX PVs:32

LTG size (Dynamic): 1024 kilobyte(s)AUTO SYNC:no

HOT SPARE:noBB POLICY:relocatable

Listing logical volumes in a Volume Group

root@paritem:/ >lsvg -l paritemvg

paritemvg:

LV NAMETYPELPsPPsPVsLV STATEMOUNT POINT

parfslogjfs2log111open/syncdN/A

paritemlvjfs2319031904open/syncd/paritem

Detailed information about a Logival Volume

root@paritem:/ >lslv paritemlv

LOGICAL VOLUME:paritemlvVOLUME GROUP:paritemvg

LV IDENTIFIER:00c076eb00004c000000010852f95257.2 PERMISSION:read/write

VG STATE:active/completeLV STATE:opened/syncd

TYPE:jfs2WRITE VERIFY:off

MAX LPs:4096PP SIZE:32 megabyte(s)

COPIES:1SCHED POLICY:parallel

LPs:3190PPs:3190

STALE PPs:0BB POLICY:relocatable

INTER-POLICY:maximumRELOCATABLE:yes

INTRA-POLICY:middleUPPER BOUND:32

MOUNT POINT:/paritemLABEL:/paritem

MIRROR WRITE CONSISTENCY: on/ACTIVE

EACH LP COPY ON A SEPARATE PV ?: yes

Serialize IO ?:NO

Listing physical volumes in a Logical Volume

root@paritem:/ >lslv -l paritemlv

paritemlv:/paritem

PVCOPIESIN BANDDISTRIBUTION

hdisk5798:000:00020%160:160:159:160:159

hdisk6798:000:00020%160:160:159:160:159

hdisk7797:000:00020%160:160:159:160:158

hdisk4797:000:00019%160:159:159:160:159

Listing All Physical Volumes in the system

root@paritem:/ >lspv

hdisk000c076eb47dc9ccdrootvgactive

hdisk100c076eb48a321d1rootvgactive

hdisk200c076eb52dc8486HACMPvg

hdisk300c076eb52dc87cbHACMPvg

hdisk400c076eb52f945b8paritemvgactive

hdisk500c076eb52f948ecparitemvgactive

hdisk600c076eb52f94c26paritemvgactive

hdisk700c076eb52f94f61paritemvgactive

hdisk800c076eb52f9882eyatirimvg

hdisk900c076eb52f98b5cyatirimvg

hdisk1000c076eb52f98e8byatirimvg

hdisk1100c076eb52f99260yatirimvg

hdisk1200c076ebb148f11dpbackupvgactive

hdisk1300c076ebb148f470pbackupvgactive

hdisk1400c076ebb14935e2ybackupvg

hdisk1500c076ebb1493921ybackupvg

Detailed information about a Physical Volume

root@paritem:/ >lspv hdisk5

PHYSICAL VOLUME:hdisk5VOLUME GROUP:paritemvg

PV IDENTIFIER:00c076eb52f948ec VG IDENTIFIER00c076eb00004c000000010852f95257

PV STATE:active

STALE PARTITIONS:0ALLOCATABLE:yes

PP SIZE:32 megabyte(s)LOGICAL VOLUMES:1

TOTAL PPs:799 (25568 megabytes)VG DESCRIPTORS:1

FREE PPs:1 (32 megabytes)HOT SPARE:no

USED PPs:798 (25536 megabytes)MAX REQUEST:1 megabyte

FREE DISTRIBUTION:00..00..00..00..01

USED DISTRIBUTION:160..160..159..160..159

Listing logical volumes on a Pyhsical Volume

root@paritem:/ >lspv -l hdisk5

hdisk5:

LV NAMELPsPPsDISTRIBUTIONMOUNT POINT

paritemlv798798160..160..159..160..159 /paritem

Changing FileSystem Properties

# first check the avaliable free space

# previously explained

lsvg <volume group name>

# adding 40GB to a mount point

Chfs –a size=+20000000 /pbackup(20000000/512=39063MB)

# can also be made by smitty chfs

Smitty chfs > Change / Show Characteristics of an Enhanced Journaled File System > Select the file system

# changing a mount point

Chfs –d /pbackup /paritem_backup

# config file

/etc/filesystems

# further chfs options are in chfs manual pages

man chfs

# if there is hacmp managed system then

# changing filesystem should be made by “smitty hacmp”

Smitty hacmp > System Management > Logical Volume Management > Shared File Systems > Enhanced Journaled File Systems > Change / Show Characteristics of a Shared Enhanced Journaled File System > Select the File System

Recommended Links



Copyright © 1996-2009 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Site uses AdSense so you need to be aware of Google privacy policy. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

Disclaimer:

Last modified: August 15, 2009