Showing posts with label LUN commands. Show all posts
Showing posts with label LUN commands. Show all posts

Monday, 23 March 2009

HP-UX - some disk, LV, LUN and VG commands

Monitor LVM with the following commands:
bdf Similar to a Solaris style "df -k" output.
pvdisplay Display PV Information (PV = phys volume)
vgdisplay Display VG Information (VG = volume group)
lvdisplay Display LV Information (LV = logical volume


- Here's a list of commands:

----VG-----
vgcfgbackup
vgchange
vgcreate
vgexport
vgimport
vgremove
vgcfgrestore
vgchgid
vgdisplay
vgextend
vgreduce
vgscan

---LV----
lvchange
lvdisplay
lvlnboot
lvreduce
lvrmboot
lvcreate
lvextend
lvmmigrate
lvremove

---PV----
pvchange
pvck
pvcreate
pvdisplay
pvmove
pvremove

- There are 3 LVM Objects:

----------------------------
| Logical Volume |
----------------------------
\/ \/ \/ \/
----------------------------
| Volume Group |
----------------------------
\/ \/ \/ \/
----------------------------
| Physical Volume |
----------------------------

or: Disks are used to create PV's,
which we group into VG's, from
which we create LV's which
contains the filesystem we use.

- AIX Commands are:

--PV--
chpv
ldeletepv
lquerypv
lspv
replacepv
lchangepv
linstallpv
lresyncpv
migratepv

--VG--
cfgvg
importvg
lsvg
lvgenminor
reorgvg
varyonvg
chvg
lchangevg
lsvgfs
mirrorvg
syncvg
exportvg
lcreatevg
lvaryoffvg
mkvg
unmirrorvg
extendvg
lqueryvg
lvaryonvg
redefinevg
updatevg
getvgname
lqueryvgs
lvgenmajor
reducevg
varyoffvg

--LV--
chlv
getlvodm
lresynclv
lvrelmajor
rmlv
chlvcopy
lchangelv
lslv
lvrelminor
rmlvcopy
clvm_cfg
lchlvcopy
lvaryoffvg
mklv
splitlvcopy
clvmd
lcreatelv
lvaryonvg
mklvcopy
synclvodm
copyrawlv
ldeletelv
lvchkmajor
namerslv
updatelv
cplv
lextendlv
lvgenmajor
putlvcb
extendlv
lmigratelv
lvgenminor
putlvodm
getlvcb
lquerylv
lvlstmajor
readlvcopy
getlvname
lreducelv
lvmmsg