Friday, February 6, 2009

HP-UX LVM listing

- Monitor LVM with the following commands:
bdf : Similar to a Solaris style "df -k" output.
pvdisplay :Display PV Information
vgdisplay :Display VG Information
lvdisplay :Display LV Information

- Remove LVM Objects with the commands:
pvremove: Removes a PV Device (ie: /dev/dsk/c0t1..)
vgreduce : Remove a PV from a VG Binding
use as: vgreduce /dev/vg01 /dev/dsk/c0t1d0
vgremove : Removes a VG, only done when there
is only ONE disk left in the VG.
lvremove Removes a LV.

To remove a complete volume you must unmount the fs, then
remove the LV, then reduce the VG to all but one disk. Then
remove the VG. Then you only need to remove each PV untill
you have normal disks again, not under LVM control.

- 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.

..:-)

No comments:

Post a Comment

Post a Comment