Monday, January 29, 2007

AIX LVM Quick Refrence

Quick reference only. Assumed the reader is familiar with the concept of AIX LVM

Action

smitty command

Command line

Remarks

Create a VG

smitty mkvg

mkvg -y '' -s '128'


Create a LV

smitty mklv

mklv -t jfs -y ''

jfs2 is preferred

Create a filesystem

smitty crfs

crfs -v jfs -a bf=true -d -m -A

jfs2 is preferred

Resize FS

smitty chfs

chfs -a size=+


Extend a VG

smitty extendvg

extendvg ...


Reduce a VG

smitty reducevg

reducevg


Move PV data

smitty migratepv

migratepv -l


Online a vg

smitty varyonvg

varyonvg


Offline a vg

smitty varyoffvg

varyoffvg


Export a VG

smitty exportvg

exportvg


Import a VG

smitty importvg

importvg -y


Remove a filesystem

smitty rmfs

Not recommend to use CLI


Make a lvcopy

smitty mklvcopy


Mirror a LV

Remove a lvcopy

smitty rmlvcopy


Remove the mirror of a LV

Split a lvcopy

No smitty

splitlvcopy -y 1

Mirror a vg

smitty mirrorvg

mirrorvg


Unmirror a vg

smitty unmirrorvg

Not recommend to use CLI


1 comment:

Vinod said...

Hi,

Love your blog..for AIX contents super cool.. Am new to AIX world, but am eager to learn it.. I too have created a blog.. please visit the blog for guiding me of any mistakes..
URL- http://aix-guide.blogspot.com