Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems extending a LVM with another disk.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dargosch
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2003
Posts: 101

PostPosted: Thu Jan 12, 2006 7:56 pm    Post subject: Problems extending a LVM with another disk. Reply with quote

Hi,

I have a problem extending the lvm I use for the recordings on a mythtv box. Here is what I have:


Code:


mythtv ~ # vgexport -a
  Volume group "mythvideo" successfully exported
mythtv ~ # vgimport -a mythvideo
  No arguments permitted when using -a for all.
mythtv ~ # vgimport -a
  Volume group "mythvideo" successfully imported
mythtv ~ # vgchange -a y
  1 logical volume(s) in volume group "mythvideo" now active
mythtv ~ # vgdisplay
  --- Volume group ---
  VG Name               mythvideo
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  10
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               134.81 GB
  PE Size               64.00 MB
  Total PE              2157
  Alloc PE / Size       2157 / 134.81 GB
  Free  PE / Size       0 / 0
  VG UUID               QT42d2-W9ML-0uVp-qi4U-4yKR-lY65-6U0mMj

mythtv ~ # vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "mythvideo" using metadata type lvm2
mythtv ~ # lvscan
  ACTIVE            '/dev/mythvideo/video' [134.81 GB] inherit
mythtv ~ # mount -a
mythtv ~ # df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3              6833440   4695468   2137972  69% /
/dev/hdb1              9765248       272   9764976   1% /myth/mythburn/temp
none                    111364         0    111364   0% /dev/shm
none                    111364         0    111364   0% /dev/shm
/dev/mythvideo/video  72971456  65534992   7436464  90% /mnt/video


I have formated and initialised with pvcreate the added partition, I get no error messages, but as you can see, there are a couple of Gigs missing :-)

Please, what did I forget to do?

/Fredrik
_________________
Registered Linux user #163029 http://counter.li.org/
My Gentoo + PVR-350 + IVTV + MythTV blog is on
http://gentoomythtv.blogspot.com/
Back to top
View user's profile Send private message
Nil_Spaar
Apprentice
Apprentice


Joined: 10 Jul 2004
Posts: 179
Location: Berlin, Germany

PostPosted: Thu Jan 12, 2006 11:20 pm    Post subject: Reply with quote

It looks like you correctly created the physical volume from the new disk, added that to the volume group and then added the new PEs to the correct logical volume. So now your lvm "partition" is bigger but I guess you haven't yet resized the filesystem on that partition. for details see http://www.linux.org/docs/ldp/howto/LVM-HOWTO/extendlv.html
Back to top
View user's profile Send private message
dargosch
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2003
Posts: 101

PostPosted: Fri Jan 13, 2006 12:44 pm    Post subject: Reply with quote

Nil_Spaar wrote:
It looks like you correctly created the physical volume from the new disk, added that to the volume group and then added the new PEs to the correct logical volume. So now your lvm "partition" is bigger but I guess you haven't yet resized the filesystem on that partition. for details see http://www.linux.org/docs/ldp/howto/LVM-HOWTO/extendlv.html


Than you so very much. Of course! :-) I'll try tonight!
_________________
Registered Linux user #163029 http://counter.li.org/
My Gentoo + PVR-350 + IVTV + MythTV blog is on
http://gentoomythtv.blogspot.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum