You are not logged in.

#1 2009-03-08 17:21:24

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

[SOLVED] LVM extend issue?

i built an old box the other night to toy with LVM, seemed like something cool to learn. anyway, there was data on 2 of the drives, a 320, and a 200, but i had another 320 that was empty, to i set it up first. set it to 100gb, then added 60 to see if it resized without losing anything, and added 60gb again. then tried to extend it to 100%, and thats where im getting the problem, it wont add anything after the first 220gb that are there. anyway, i had enough space to back up the other 320gb, and i added it to the volume, and tried to extend it to 100% again, and it still wont add anything after the first 220gb.

heres my terminal output anyway

Filesystem at /dev/home/lvhome is mounted on /home; on-line resizing required
old desc_blocks = 14, new_desc_blocks = 19
Performing an on-line resize of /dev/home/lvhome to 78142464 (4k) blocks.
resize2fs: Invalid argument While trying to add group #1792
bash-3.2# pcreate /dev/hdg
bash: pcreate: command not found
bash-3.2# pvcreate /dev/hdg
  Physical volume "/dev/hdg" successfully created
bash-3.2# vgextend home /dev/hdg
  Volume group "home" successfully extended
bash-3.2# lvextend -l +100%FREE home/lvhome
  Extending logical volume lvhome to 596.18 GB
  Logical volume lvhome successfully resized
bash-3.2# resize2fs /dev/home/lvhome
resize2fs 1.41.4 (27-Jan-2009)
Filesystem at /dev/home/lvhome is mounted on /home; on-line resizing required
old desc_blocks = 14, new_desc_blocks = 38
Performing an on-line resize of /dev/home/lvhome to 156284928 (4k) blocks.
resize2fs: Invalid argument While trying to add group #1792

is there something im doing wrong, or could it be a bad block on teh drive, i need help here[SO

Last edited by ssl6 (2009-03-09 04:07:15)


this is a signature

Offline

#2 2009-03-09 02:37:21

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: [SOLVED] LVM extend issue?

Searching on google for that error message turns up a few hits. A couple bug reports for other distros suggest unmounting the partition and then trying to resize. An online resize should work, so i suppose something is broken with the current e2fstools or the kernel..

Offline

#3 2009-03-09 04:06:42

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

Re: [SOLVED] LVM extend issue?

i ended up unmounting it and running e2fsck, it extended fine afterwards. i also added the third hard drive, and extended it again. totalling just under 800gb.........now i dont know what to do with the machine.


this is a signature

Offline

Board footer

Powered by FluxBB