LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-12-2010, 07:30 AM   #1
harshaabba
Member
 
Registered: Aug 2009
Posts: 73

Rep: Reputation: -14
resize LVM volume


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
Attached Thumbnails
Click image for larger version

Name:	lvm.JPG
Views:	16
Size:	69.5 KB
ID:	4832  
 
Old 10-12-2010, 10:55 AM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
I suggest you boot with a live CD, run fsck and try again.

Last edited by quanta; 10-12-2010 at 10:57 AM.
 
Old 10-13-2010, 02:23 PM   #3
williebens
Member
 
Registered: Jan 2008
Posts: 88

Rep: Reputation: 16
Hello harshaabba:

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

I hope it helps you.

--Willie
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Resize Root LVM Logical Volume??? jdupre Fedora 17 10-02-2010 07:21 AM
How do I resize LVM volume group? rconan Fedora 5 04-22-2009 07:45 PM
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 11:26 AM
Resize LV with LVM Slipstream2006 Linux - General 4 03-30-2007 09:47 AM
LVM Resize - After logical resize, FS size does not match physical size. spectra Linux - Software 6 11-01-2006 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration