LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   resize LVM volume (https://www.linuxquestions.org/questions/linux-server-73/resize-lvm-volume-837578/)

harshaabba 10-12-2010 07:30 AM

resize LVM volume
 
1 Attachment(s)
Hi

I have a prolem when resizing the Logical volomu.I created logvolopt1 logical volume and need to resize it to 1.5G.In order to acheive this i did the following configurations

pvcreate /dev/hdb1 /dev/hdd1

vgcreate volgroup001 /dev/hdb1 /dev/hdd1

lvcreate -L 2G -n logvolopt1 volgroup001

mke2fs -j /dev/volgroup001/logvolopt1

lvresize -L 1.5G /dev/volgroup001/logvolopt1

then i did a "lvdisplay" . It shows the correct volume (1.5G)

then i ran the resize2fs -f -p /dev/volgroup001/logvolopt1 , following error occurred(attached)

I restart the PC but still correct volume doesn't appear once i issued "df -h"

how can i solve this ? your responses are highly

tnx

quanta 10-12-2010 10:55 AM

I suggest you boot with a live CD, run fsck and try again.

williebens 10-13-2010 02:23 PM

Hello harshaabba:

Try going to this page: www.unixmultiverse.com. There is an article about resizing with LVM.

I hope it helps you.

--Willie


All times are GMT -5. The time now is 03:05 AM.