LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-12-2005, 04:03 PM   #1
billehunt
LQ Newbie
 
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
lvm questions


I need to reduce the size of an ext3 lv. When I try to do a resize2fs, I get an error "Filesystem has unsupported feature(s)". I'm using a gentoo rescue cd. I get the same error with a FC3 rescue cd and an FC2 rescue cd.

Q#1) how can I reduce the size of this lv?

Q#2) Is there a way I can see what data is on what pv? (there is no striping)

Q#3) Is there a way I can move data from one pv to another? (pvmove isn't an option, because there are no extents free, hence Q#1. There is actually tons of space free on the lv's).

Q#4) if I physically remove a drive from the setup, what will the effect be? Will I be able to boot and access whatever data wasn't on that pv? Can I remove and replace disks without worry?

Thanks.
 
Old 06-13-2005, 04:37 AM   #2
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
(1) - Assuming for a sec your lv is mounted on /home:
Code:
# umount /home
# resize2fs /dev/myvg/homevol 524288
# lvreduce -L-1G /dev/myvg/homevol
# mount /home
_should_ do the trick.

(2) I'm not sure... pvdisplay or pvdata?

(3) If pvmove isn't an option, I would say the answer is "no"

(4) Depends on what is on the disk (and in the volume group). If /usr, or /var is on there, I suspect your system won't boot very well

Excellent LVM HOWTO: http://www.tldp.org/HOWTO/LVM-HOWTO/index.html
Hope you can find some more info there to help you further along.
 
Old 06-13-2005, 11:46 AM   #3
billehunt
LQ Newbie
 
Registered: Mar 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks, ReefShark. But the problem is that I can't do a resize2fs. As I mentioned, I get an error, "Filesystem has unsupported feature(s)"
 
Old 06-13-2005, 01:33 PM   #4
matt.x33
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian/GNU (2.6.11)
Posts: 5

Rep: Reputation: 0
"Filesystem has unsupported Features"

I remember seeing something about this in the LinuxFromScratch book... apparently it has to do with a filesystem created by/for a non-vanilla (eg, customized for a certain distro) kernel. They can add extra features (well, set bits I suppose) that are only understood by the kernel for that distro.

I would try to use as close to the same kernel that the filesystem was created with, and the resize2fs program that goes with it. Otherwise, there may be some filesystem corruption?

Matthew
 
Old 06-15-2005, 04:12 PM   #5
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
I'm not sure, but Qtparted might be an option? I think you can work LVM partitions too with it.
I would also recommending a different scheme in the future:
/dev/hdb1 swap
/dev/hdb2 /boot
/dev/hdb3 /
/dev/hdb4 /home

Is / in LVM too by the way? That could cause a whole bunch of problems
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
lvm anyone? puffinman Linux - Software 2 06-26-2005 12:07 PM
Lvm ItsNotMe Linux - General 1 04-22-2005 08:17 AM
lvm Ammad Linux - General 2 02-22-2005 09:19 PM
LVM on RH AS 2.1 yoggieb Linux - Enterprise 2 07-18-2004 06:49 AM
To LVM or not to LVM? illtbagu Linux - Software 3 12-29-2003 05:17 PM


All times are GMT -5. The time now is 11:49 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration