2007-02-08

lvm2 notes

One of my boxes crashed, and would kernel panic on boot. It turned out to be an issue with the upgraded kernel, but before I figured that out I did some playing with lvm in knoppix.
root@3[~]# lvscan
inactive '/dev/VolGroup00/LogVol01' [5.84 GB] inherit
inactive '/dev/VolGroup00/LogVol03' [219.91 GB] inherit
inactive '/dev/VolGroup00/LogVol02' [5.84 GB] inherit
inactive '/dev/VolGroup00/LogVol00' [1.00 GB] inherit

root@3[~]# pvdisplay
--- Physical volume ---
PV Name /dev/hda2
VG Name VolGroup00
PV Size 232.62 GB / not usable 0
Allocatable yes
PE Size (KByte) 32768
Total PE 7444
Free PE 1
Allocated PE 7443
PV UUID JnTR2m-XuJh-ddhr-Alr5-UCZz-3m9V-rausR0

root@3[~]# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 232.62 GB
PE Size 32.00 MB
Total PE 7444
Alloc PE / Size 7443 / 232.59 GB
Free PE / Size 1 / 32.00 MB
VG UUID ChwLAR-5vp4-WWYX-SYi5-1nFS-KqT8-M0ofxk

root@3[~]# vgchange -a y
4 logical volume(s) in volume group "VolGroup00" now active

root@3[~]# lvscan
ACTIVE '/dev/VolGroup00/LogVol01' [5.84 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol03' [219.91 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol02' [5.84 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol00' [1.00 GB] inherit

No comments: