User Tools

Site Tools


classnotes:rh134:lvm

Manage Storage Stack

interestingly enough he does not create partitions before creatting the pv

here is a lvresize comand

 lvresize -r -L 2G /dev/vg_DB/lv_maria

-r is to extend filesystem -L specifies the final size of LV and the last bit i cnonical path of lv

to remove pv that being flaky here are steps 1: add a new disk

 pvcreate /dev/sdX
vgextend volume-name /dev/sdX 

2: move data out of flaky disk say /dev/sdY

 pvmove /dev/sdY 

No need to specify a destination

3: now you can remove the flaky disk

 vgreduce volumegroup_name /dev/sdY 

3: stop the disk from being a physical volume disk

 pvremove /dev/sdY 
classnotes/rh134/lvm.txt · Last modified: by 127.0.0.1