LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   lvm questions (https://www.linuxquestions.org/questions/linux-software-2/lvm-questions-332822/)

billehunt 06-12-2005 03:03 PM

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.

ReefShark 06-13-2005 03:37 AM

(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.

billehunt 06-13-2005 10:46 AM

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)"

matt.x33 06-13-2005 12:33 PM

"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

ReefShark 06-15-2005 03:12 PM

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 :eek:


All times are GMT -5. The time now is 06:59 PM.